Wrap section title around figure - latex

I have a twosided document and want to add some wrapfigures. The speciality is that I want wrapped section titles on left pages.
The example shows the problem for the second section. For the first and third everything is fine.
MWE:
\documentclass[12pt,a4paper,twoside,openright]{scrbook}
\usepackage{wrapfig}
\usepackage{graphicx}
\usepackage{caption}
\usepackage[english]{babel}
\usepackage{blindtext}
\begin{document}
\chapter{First Chapter}
\section{First Section}
\begin{wrapfigure}[14]{o}{0.4\linewidth}
\begin{center}
\includegraphics[width=0.75\linewidth]{picture}
\end{center}
\vspace*{-1em}
\captionsetup{width=0.75\linewidth}
\caption[short]{long.}
\end{wrapfigure}
\blindtext[5]
\section{Second Section}
\begin{wrapfigure}[14]{o}{0.4\linewidth}
\begin{center}
\includegraphics[width=0.75\linewidth]{picture}
\end{center}
\vspace*{-1em}
\captionsetup{width=0.75\linewidth}
\caption[short]{long.}
\end{wrapfigure}
\blindtext
\section{Third Section}
\begin{wrapfigure}[14]{o}{0.4\linewidth}
\begin{center}
\includegraphics[width=0.75\linewidth]{picture}
\end{center}
\vspace*{-1em}
\captionsetup{width=0.75\linewidth}
\caption[short]{long.}
\end{wrapfigure}
\blindtext
\end{document}
Result:
https://i.imgur.com/N8cuf0D.jpg

Related

How could I list the subsections in beamer (table of contens)?

Hello I trying to list the subsections in table of contents (beamer), but I can't get the result ? Anyone knows how to do it ?
My code (I am using the \usetheme{CambridgeUS}):
\documentclass[handout,10pt,aspectratio=169]{beamer}
\usepackage[spanish]{babel}
\usepackage{multirow,rotating}
\usepackage{color}
\usepackage{hyperref}
\usepackage{tikz-cd}
\usepackage{array}
\usepackage{siunitx}
\usepackage{mathtools,nccmath}%
\usepackage{etoolbox, xparse}
\usecolortheme{dolphin}
\usepackage{lipsum}
\usepackage{natbib}
\usepackage{hyperref}
\usepackage{calc}
\usepackage{environ}
\usepackage{courier}
\usepackage{tcolorbox}
\usetheme{CambridgeUS}
\title[]{\textcolor{black}{\vskip 1.5cm\textbf {Title}}}
\begin{document}
\begin{frame}
\maketitle
\end{frame}
\begin{frame}
\frametitle{Contenido}
\tableofcontents
\end{frame}
\section{Introducción}
\begin{frame}{Introducción}
\subsection{sismos lentos}
\end{frame}
\end{document}
Never use sectioning commands like \section or \subsection within a frame. They must be used outside the frame.
Apart from this problem, you can use https://stackoverflow.com/a/74094309/2777074 to get squares in the toc:
\documentclass[handout,10pt,aspectratio=169]{beamer}
\usepackage[spanish]{babel}
\usepackage{multirow,rotating}
%\usepackage{color}
%\usepackage{hyperref}
\usepackage{tikz-cd}
\usepackage{array}
\usepackage{siunitx}
\usepackage{mathtools,nccmath}%
\usepackage{
%etoolbox,
xparse}
\usecolortheme{dolphin}
\usepackage{lipsum}
\usepackage{natbib}
%\usepackage{hyperref}
\usepackage{calc}
\usepackage{environ}
\usepackage{courier}
\usepackage{tcolorbox}
\usetheme{CambridgeUS}
\title[]{\textcolor{black}{\vskip 1.5cm\textbf {Title}}}
\setbeamertemplate{sections/subsections in toc}[square]
\begin{document}
\begin{frame}
\maketitle
\end{frame}
\begin{frame}
\frametitle{Contenido}
\tableofcontents
\end{frame}
\section{Introduccion}
\subsection{sismos lentos}
\begin{frame}{Introduccion}
\end{frame}
\end{document}

Remove numbering on sub-section slide

I am preparing my thesis defense slides and I can't remove the numbering from the slide that displays the name of the sub-section (slide 5 and 7).
I have tried to modify the metropolis template I am using, but without success.
Is there anyone who knows how to do this?
Thank you very much for your help!
\documentclass{beamer}
\usetheme[progressbar=frametitle, sectionpage=progressbar, subsectionpage=progressbar, block=fill]{metropolis}
\setbeamertemplate{footline}{}
\setbeamertemplate{navigation symbols}{%
\ifnum\insertframenumber>0
\normalsize\insertframenumber%
\fi%
}
\title{Title}
\subtitle{Sub-title}
\date{\today}
\author{author}
\institute{institute}
\AtBeginSection[]
{
\setbeamertemplate{navigation symbols}{}
\frame[plain,c,noframenumbering]{
\sectionpage
\tableofcontents[currentsection,subsectionstyle=hide]}
\setbeamertemplate{navigation symbols}{\normalsize\insertframenumber}
}
\makeatletter
\setbeamertemplate{section in toc}[sections numbered]
\setbeamertemplate{subsection in toc}[subsections numbered]
\makeatother
\begin{document}
\maketitle
\section{First section}
\begin{frame}
Content
\end{frame}
\section{Second section}
\subsection{First sub section}
\begin{frame}
Content
\end{frame}
\subsection{Second sub section}
\begin{frame}
Content
\end{frame}
\section{Third section}
\end{document}
Funny coincidence, I just answered basically the same problem a couple of hours ago at https://topanswers.xyz/tex?q=2047#a2293
\documentclass{beamer}
\usetheme[progressbar=frametitle, sectionpage=progressbar, subsectionpage=progressbar, block=fill]{metropolis}
\setbeamertemplate{footline}{}
\setbeamertemplate{navigation symbols}{\normalsize\insertframenumber}
\title{Title}
\subtitle{Sub-title}
\date{\today}
\author{author}
\institute{institute}
\AtBeginSection[]
{
\setbeamertemplate{navigation symbols}{}
\frame[plain,c,noframenumbering]{
\sectionpage
\tableofcontents[currentsection,subsectionstyle=hide]}
\setbeamertemplate{navigation symbols}{\normalsize\insertframenumber}
}
\makeatletter
\setbeamertemplate{section in toc}[sections numbered]
\setbeamertemplate{subsection in toc}[subsections numbered]
\patchcmd{\ps#empty}{\usebeamertemplate***{navigation symbols}}{}{}{}
\makeatother
\begin{document}
\maketitle
\section{First section}
\begin{frame}
Content
\end{frame}
\section{Second section}
\subsection{First sub section}
\begin{frame}
Content
\end{frame}
\subsection{Second sub section}
\begin{frame}
Content
\end{frame}
\section{Third section}
\end{document}

Numbering of the subfigures are not centered with the figure in LATEX

The numbering (a,b,c) in the subfigures is a little off-center with the subfigures. I keep \caption inside the subfigure section empty because I do not want any captions but if I remove it, the numbering will go away. Is there any way to keep the numbering and make it centers with subfigures?
\documentclass[conference]{IEEEtran}
\IEEEoverridecommandlockouts
\usepackage{cite}
\usepackage{amsmath,amssymb,amsfonts}
\usepackage{algorithmic}
\usepackage{graphicx}
\usepackage{textcomp}
\usepackage{xcolor}
\usepackage{algorithm}
\usepackage{amsmath,amssymb}
\usepackage{subcaption}
\usepackage{url}
\usepackage{hyperref}
\begin{document}
\begin{figure*}[!h]
\centering
\begin{subfigure}[t]{0.3\textwidth}
\centering
\includegraphics[scale=0.3]{Paper/results.PNG}
\caption{} \label{fig1}
\end{subfigure}\hfill
\begin{subfigure}[t]{0.3\textwidth}
\centering
\includegraphics[scale=0.3]{Paper/results.PNG}
\caption{} \label{fig2}
\end{subfigure}\hfill
\begin{subfigure}[t]{0.3\textwidth}
\centering
\includegraphics[scale=0.3]{Paper/results.PNG}
\caption{} \label{fig3}
\end{subfigure}
\caption{Figures}
\label{fig:my_label}
\end{figure*}
\end{document}

Align Sub Figures in latex (IEEE paper format)

I want to align three figures in one row. I used the following latex code but got this output. What to change in this code to get these figures in one row? Thank you in advance.
\documentclass[conference]{IEEEtran}
\IEEEoverridecommandlockouts
\begin{document}
\usepackage{cite}
\usepackage{amsmath,amssymb,amsfonts}
\usepackage{algorithmic}
\usepackage{graphicx}
\usepackage{textcomp}
\usepackage{xcolor}
\usepackage{algorithm}
\usepackage{amsmath,amssymb}
\usepackage{subcaption}
\usepackage{url}
\usepackage{hyperref}
\begin{figure*}[!h]
\centering
\begin{subfigure}[t]{0.5\textwidth}
\centering
\includegraphics[scale=0.5]{Paper/results.PNG}
\caption{Fig_1} \label{fig1}
\end{subfigure}\hfill
\begin{subfigure}[t]{0.5\textwidth}
\centering
\includegraphics[scale=0.5]{Paper/results.PNG}
\caption{Fig_2} \label{fig2}
\end{subfigure}\hfill
\begin{subfigure}[t]{0.5\textwidth}
\centering
\includegraphics[scale=0.5]{Paper/results.PNG}
\caption{Fig_3} \label{fig3}
\end{subfigure}
\caption{Figures}
\label{fig:my_label}
\end{figure*}
\end{document}
This is a two-column paper
Output I get from the above code
The sum of 3 times .5\textwidth is much bigger than the available space on one line. If you want to fit all three images in a single line, make them smaller:
\documentclass[conference]{IEEEtran}
\IEEEoverridecommandlockouts
\usepackage{cite}
\usepackage{amsmath,amssymb,amsfonts}
\usepackage{algorithmic}
\usepackage{graphicx}
\usepackage{textcomp}
\usepackage{xcolor}
\usepackage{algorithm}
\usepackage{amsmath,amssymb}
\usepackage{subcaption}
\usepackage{url}
\usepackage{hyperref}
\begin{document}
\begin{figure*}[!h]
\centering
\begin{subfigure}[t]{0.3\textwidth}
\centering
\includegraphics[width=\textwidth]{example-image-duck}
\caption{Fig1} \label{fig1}
\end{subfigure}\hfill
\begin{subfigure}[t]{0.3\textwidth}
\centering
\includegraphics[width=\textwidth]{example-image-duck}
\caption{Fig2} \label{fig2}
\end{subfigure}\hfill
\begin{subfigure}[t]{0.3\textwidth}
\centering
\includegraphics[width=\textwidth]{example-image-duck}
\caption{Fig3} \label{fig3}
\end{subfigure}
\caption{Figures}
\label{fig:mylabel}
\end{figure*}
\end{document}

Table of content in latex

Could you help me to solve this problem? How I can separate the table of content, list of figure, list of table in different line in content?
Here, my command
\documentclass[12pt,a4paper,reqno,openbib]{extreport}
\usepackage[a4paper,left=1.60in,right=1.0in,top=1.0in,bottom=1.2in,footskip=0.5in]{geometry}
\usepackage{tocbibind}
%------------------
\usepackage{titletoc}%% http://ctan.org/pkg/titletoc
\titlecontents*{chapter}% <section-type>
[0pt]% <left>
{}% <above-code>
{\bfseries\chaptername\ \thecontentslabel\quad}% <numbered-entry-format>
{}% <numberless-entry-format>
{\bfseries\hfill\contentspage}% <filler-page-format>
\begin{document}
\begin{center}
{\Large \bf{Abstract}}
\end{center}
\addcontentsline{toc}{chapter*}{\noindent\text{Abstract}\hspace{12.5cm} }
\bigskip
\begin{center}
{\Large \bf{Abstrak}}
\end{center}
\addcontentsline{toc}{chapter*}{\noindent\text{Abstrak}\hspace{12.8cm}}
\bigskip
\begin{center}
{\Large \bf{Acknowledgment}}
\end{center}
\addcontentsline{toc}{chapter*}{\noindent\text{Acknowledgement}\hspace{11.0cm}}
\bigskip
\tableofcontents
\newpage
\listoffigures
\newpage
\listoftables
\newpage
%\newpage
\chapter{Chapter 1}
\section{Background of the study}
\chapter{Chapter2}
\section{Background of the study}
\end{document}
The output is:
Please find the attachment showing answers of your query.

Resources