When I try to add 2 figures and to add text between them, after compiling the text, I get the results: texts above and the two figures below...  I expected to have first figure and text after and after the text another figure and after the last figure another text.  Why it separate them in shape of two text and after the text two figures ?  first part:  The output results that shown in \autoref*{capacitors_voltages} help us to bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb \begin{figure}[!h]     \centering     \includegraphics[width=0.9 \textwidth]{figures/CAP_voltgs}     \caption{capacitor waveforms.}     \label{capacitors_voltages} \end{figure}   From \autoref*{ACcurrents} we can see aaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa  aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa \begin{figure}[!h]     \centering     \includegraphics[width=0.9 \textwidth]{figures/currents}     \caption{AC side currents}     \label{ACcurrents} \end{figure}   second part:  So, in this code part it behave exactly as I expected:  The number of SMs usually depends on the application,it is very common of using letter N to indicate the number of SMs in each ARM and 2N to whole phase.   \begin{figure}[!h]     \centering     \includegraphics[width=0.9\textwidth]{figures/Three_MMC_Phase2}     \caption{General one and three phase of modular multilevel converter (a) and (b) respectively}     \label{figures/Three_MMC_Phase2} \end{figure}   The fundamental construction of SM composed from capacitor, IGBTs (S1,S2) and their corresponding free-wheel diodes.\\  The two most common SM configurations found in literature are the Half-Bridge (HB) and Full-Bridge (FB) SM, as illustrated in \autoref*{figures/HB_FB}.  The FB-SM version of the MMC has twice as much semiconductor devices than the HB version, which results in higher losses, but confers certain advantages as well \cite{6864817}, \cite{6631955}.   \begin{figure}[!h]     \centering     \includegraphics[width=0.9\textwidth]{figures/HB_FB}     \caption{Converter configuration submodules: (a) half-bridge and (b) full-bridge}     \label{figures/HB_FB} \end{figure}   For the present analysis, and throughout the Thesis in general, the MMC under study is considered to be based on HB-SMs. Considering submodule structure , is a simple half bridge with a capacitor bank, as shown in \autoref*{figures/HB_FB}. Each phase leg of the converter has 2 ARMs, each one constituted by a number of series connected submodules.  So what wrong with the first part ?
5739
Is there any package or a method to force LaTeX to keep floating environments like table and figure closer to where they are declared?
49239
I have a figure that relates to two different issues discussed at very different point in a long document. Rather then send the reader back 50 pages to look up a figure, I would like to include the figure again at the later point.  However, I don't want it to appear twice in the list of figures or receive a new label number.  In this example, I would like it to appear in chapter 2 as figure 2.5 and again in chapter 4 as figure 2.5.  Is there a simple way to accomplish this? I am using Xelatex Version 3.1415926-2.5-0.9999.3 from the Texlive 2013 Arch Linux package.
43914
I am writing a book, and would like to be able to have the photographs labelled with an independent numbering system to my figures.  In the text I would refer to, for example, figure X and separately to photograph X, so I want them to have different numbering systems, just as equations and figures do.  Is it possible to have a different \begin{figure} environment so that the numbering can be separated?
95168
Problem:  I am trying to align three figures next to each other with text centered to each figure. This is going well until the box for the third box does not adjust after the text width.  Minimal Working Example (MWE):  \documentclass{article} \usepackage{graphicx} \usepackage{caption}  \begin{document}  \begin{figure}[!tbp]   \centering   \begin{minipage}[b]{0.2\textwidth}     \includegraphics[width=\textwidth]{icon-password.eps}     \caption*{Login system}   \end{minipage}   \hfill   \begin{minipage}[b]{0.2\textwidth}     \includegraphics[width=\textwidth]{icon-shopping.eps}     \caption*{Shopping cart}   \end{minipage}   \hfill   \begin{minipage}[b]{0.2\textwidth}     \includegraphics[width=\textwidth]{icon-clock.eps}     \caption*{Temporary information}   \end{minipage} \end{figure}  \end{document}   Outputs:   Desired outcome:  To get the width to adjust after the text so that "Temporary information" can be written out in one line instead of two.
112975
I don't know if this has been asked before. But so far nothing has come up with my search.  In some books, the figures are placed at the outer side of the page like in the picture below.    Is this achievable in TeX/LaTeX? That is how does one set up the page so that all text will appear in a 'text column' and the figures appear in a 'figures column' in every page?
98186
I have two same sized images and want them side by side with a caption under them.  My code looks like this:   \begin{figure}[H] \centering \begin{minipage}{.5\textwidth}   \centering     \includegraphics[width=\textwidth]{3}     \caption{label1}   \label{fig:test1} \end{minipage}% \begin{minipage}{.5\textwidth}   \centering     \includegraphics[width=\textwidth]{4}     \caption{label2}   \label{fig:test2} \end{minipage} \end{figure}   which works fine until one of the labels has 2 lines, than it looks like this:    and I woud like to prevent it to look something like this:    How can it be done?  Thanks
78061
When I'm generating a List of Figures in my project, all figures are grouped by chapter. I would like to have the whole list without any additional new lines between different chapters.  How it looks like:  Figure 1.1  Figure 1.2  Figure 2.1  Figure 3.1  Figure 3.2   How it should:  Figure 1.1  Figure 1.2 Figure 2.1 Figure 3.1  Figure 3.2   I tried to apply the following solutions but failed completely :        My main file:  \documentclass[12pt,oneside,titlepage,utf8x]{report}  \usepackage{times,a4wide,multirow,tabularx,graphicx}  \usepackage{psfrag,fancyhdr,longtable}  \usepackage[T1]{fontenc} \usepackage{float} \usepackage[utf8]{inputenc}  \usepackage{url} \usepackage{color} \usepackage{verbatim} \usepackage{fancyvrb} \usepackage{natbib} \usepackage{relsize}  \usepackage{caption} \captionsetup[longtable]{belowskip=10pt}  \usepackage[left=4cm,top=2cm,right=3cm,bottom=2.5cm]{geometry}  \renewcommand{\chaptermark}[1]{\markboth{\nouppercase{\thechapter.\ #1}}{}} \pagestyle{fancy} \headheight 30pt \rhead{} \lfoot{} \cfoot{\thepage} \rfoot{}  \setlength{\parindent}{2em} \setlength{\parskip}{1em} \linespread{1.3}   \begin{document}  \begin{titlepage} \maketitle \end{titlepage}  \tableofcontents  \chapter{First} \label{sec:First} \input{chapter1/chapter1}  \chapter{Second} \label{sec:Second} \input{chapter2/chapter2}  \chapter{Third} \label{sec:Third} \input{chapter3/chapter3}  \relsize{-1} \listoffigures \normalsize  \bibliography{praca_mgr} \bibliographystyle{plain} \nocite{*}  \end{document}
47489
Possible Duplicate:          When I add a piece of code of figure insertion to the context I'm faced with a problem: a number of irrelevant words appear.    Code:  \begin{figure}     \centering         \includegraphics[width=0.9\textwidth]{C:/Thesis/Latex/thesis_1(1)/Pictures/study area.jpg}         \rule{35em}{0.3pt}     \caption{The Grand St. Bernard wireless sensor network deployment (a) the coordinates of nodes according to the Swiss coordinate system (b) the distribution of the nodes in the study site \citep{r33}}     \label{fig:study area} \end{figure}   Problem:
25831
I have a figure in my paper (I am using IEEEtran package). After this figure there exists a space between the figure and the text. How can I reduce the size of this white space. To be specific the space is between the caption of the figure and the text of my paper. Any suggestions?
111938
How to layout images like the attached picture? Should I arrange them as tables or subfigure or some other layout? Thanks.    This is my latex code:  \begin{figure} \centering \subfloat[]{\includegraphics[width=\dimexpr(\textwidth-15pt+3pt*2)/2\relax]{fish}}% \hfill \subfloat[]{\vbox{\offinterlineskip\halign{#\hskip3pt&amp;#\cr   \includegraphics[width=\dimexpr(\textwidth-15pt-3pt*2)/4\relax]{fish}&amp;   \includegraphics[width=\dimexpr(\textwidth-15pt-3pt*2)/4\relax]{fish}\cr   \noalign{\vskip3pt}   \includegraphics[width=\dimexpr(\textwidth-15pt-3pt*2)/4\relax]{fish}&amp;   \includegraphics[width=\dimexpr(\textwidth-15pt-3pt*2)/4\relax]{fish}\cr   }}}  \subfloat[]{\vbox{\offinterlineskip\halign{#\hskip3pt&amp;#\cr   \includegraphics[width=\dimexpr(\textwidth-15pt-3pt*2)/4\relax]{fish}\cr   \noalign{\vskip3pt}   \includegraphics[width=\dimexpr(\textwidth-15pt-3pt*2)/4\relax]{fish}\cr   }}}  \subfloat[]{\vbox{\offinterlineskip\halign{#\hskip3pt&amp;#\cr   \includegraphics[width=\dimexpr(\textwidth-15pt-3pt*2)/4\relax]{fish}\cr   \noalign{\vskip3pt}   \includegraphics[width=\dimexpr(\textwidth-15pt-3pt*2)/4\relax]{fish}\cr   }}}  \caption{Test images} \end{figure}   The result is:    How to put "(d)" to the right of "(c)"?  Update: Thank Johannes_B, subcaption is the easiest way to meet my requirement. My code is:   \begin{figure}     \begin{subfigure}[b]{.237\textwidth}         \centering         \includegraphics[width=\textwidth]{image_a}         \caption{Our}\label{fig:1a}     \end{subfigure}     \hfill         \begin{subfigure}[b]{.237\textwidth}         \centering         \includegraphics[width=\textwidth]{image_b}         \caption{Adaptive order selection}\label{fig:1b}     \end{subfigure}     \hfill         \begin{subfigure}[b]{.15\textwidth}         \centering         \includegraphics[width=\textwidth]{image_c_1}         \includegraphics[width=\textwidth]{image_c_2}         \caption{Another subfigure}\label{fig:1c}     \end{subfigure}     \hfill     \begin{subfigure}[b]{.15\textwidth}         \centering         \includegraphics[width=\textwidth]{image_d_1}         \includegraphics[width=\textwidth]{image_d_2}         \caption{Another subfigure}\label{fig:1c}     \end{subfigure}     \hfill     \begin{subfigure}[b]{.15\textwidth}         \centering         \includegraphics[width=\textwidth]{image_e_1}         \includegraphics[width=\textwidth]{image_e_2}         \caption{Another subfigure}\label{fig:1c}     \end{subfigure}     \hfill \caption{A figure}\label{fig:1} \end{figure}
10949
I have multiple figures placed in my document (all of which are using [htbp], [ht] etc. and are placed correctly). The last figure receives a separate page (which is alright) but it's centered on this page, which looks weird as the figure is quite small.  Is there any way to get this figure on top of this page? As written above, its a separate page and the last one in this chapter.  I can't really provide a minimal example (since I guess that the position depends on my previous figures), but here's the code I use for the figure (I've tried [ht], [ht!], [htbp] etc but none of them work - I've also deleted the .aux files before compiling):  \begin{figure}[t!] \centering \begin{tabularx}{\columnwidth}{cc} \subfloat[Results 1] { \centering    \includegraphics[width=0.47\textwidth,height=0.47\textheight,keepaspectratio]{images/plot1} } &amp; \subfloat[Results 2] { \centering    \includegraphics[width=0.47\textwidth,height=0.47\textheight,keepaspectratio]{images/plot2} } \end{tabularx} \caption{Blabla} \end{figure}   Thanks in advance!
8010
I am writing a journal which has two column. I am using {figure} as well as {figure*} to place the figures in one column as well as stretch across two columns.   My problem is the order of the figures are not correct. e.g. their order of appearance is:                  Figure 1.                 Figure 2.                 Figure 5.                 Figure 3.                 Figure 4.   What should I do to make them appear in order?
95041
How to place text above the rotated Figure (LANDSCAPE) in the same page. I tried but text automatically moved to the following page.  TEXT TEXT....   \begin{landscape} \begin{table}[] \centering \includegraphics[width=160mm]{figures2/comparation3.png} \caption{A comparison of Aloha protocols} \label{tab:ComparationAloha} \end{table} \end{landscape}     I added this code, but one part of table disappeared. I must have type TABLE since I need it for list of tables later.  \lipsum[11] \begin{table}[h!] \rotatebox{90}{\parbox{100mm}{ \includegraphics[width=160mm, rotate=90]{figures2/comparation3.png} \caption{A comparison of Aloha protocols} \label{tab:ComparationAloha}}} \end{table} \lipsum[12]
83954
I'd like to know how this text gets adapted onto these 3D models. Could it be a PNG  which gets mapped. Or is this text pre planned how it would be layout onto the model? what's the method involved in this technique? Would the text layout need to be the same ratio done with a graphic editor like Photoshop or Illustrator? and have the mesh modelled in the same metric unit so the text can later fall correctly in place? All information is appreciated, unfortunately my college instructors are really lame in giving information....  Thank you.
38190
Here is the output I get when I use \includegraphics to import a figure in an equation environment:    But I want the output to be like this (edited photo):    My MWE:  \documentclass[]{IEEEtran}      \usepackage{graphicx}        \usepackage{amsmath}   \begin{document}   \begin{equation}     \includegraphics[width=0.8\columnwidth]{my_figure.png} \end{equation}   \end{document}
117595
I have been trying to put side by side figures and have tried many options but couldn't get the success. I want to put 3 images as following attached image WITH CAPTIONS. If someone can help me, that would be awesome [I did try and search A LOT... Like REALLY A LOT]. Thanks.
48389
I'm trying to get two separate lists of figures. Ones are the figures containing some plots created using tikzpicture like:  \begin{figure}   \begin{tikzpicture}     \begin{axis}     ...     \end{axis}   \end{tikzpicture} \end{figure}   and the others are simple images. At result I need to have List of Figures and a List of Plots. How can I achieve it? Please give an example if possible.