I am writing a PhD thesis. Sometimes when I reference to a figure the following problem occurs. In PDF the word Fig.[number of figure] are written in two lines (Fig. and [] are separated). How to write the code that it will not be separated.  my code for figure:  \begin{figure}[h!] \centering \includegraphics[width=1.0\textwidth]{(4)13.png} \caption{The dielectric permittivity bla bla bla.} \label{(4)13} \end {figure}   in text it is like  At the end of this chapter let us compare the numerical results for the phase mode frequency and dielectric response with experimental results. Fig. \ref{(4)13} shows the relaxation frequency ($\omega$) bla bla bla...   And in the PDF looks like:    Thank you very much for your help.  Best regards, Kristina
1788
My question is in the title of this post, but extends to other referencing commands like \eqref, \citep, \citet (and the like) as well.
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?
84695
I have a single image which contains two sub-images. I want the following subtitles (a) and (b) to be shown correctly.   In which, left sides is my current image which contains two rectangular. And right sides is my expected result. I found a solution is that we can use subfig package. However, it requires separating the original figure into two subfigure. In that question, I am regarding that we do not need split original figure, I want to write (a),(b) directly below figure. Thanks Current solution is  \begin{figure}[H] \captionsetup{labelfont={bf}}   \centering     \subfloat[]{\centering\includegraphics[scale=0.5]{Fig1a.png}} \\     \subfloat[]{\centering\includegraphics[scale=0.5]{Fig1b.png}}   \caption{This is main figure}   \label{fig:9} \end{figure}
118393
I'm trying to insert a figure into my LaTeX file using the following syntax:  \begin{figure}   \centering   \includegraphics [width=3in]{fig1.png}   \caption{Calculation of shortest path betweenness}   \label{Fig.3:Shortest path betweenness} \end{figure}   It worked for me before but this time I'm getting the following error:   LaTeX Error: \begin{figure} on input line xxx ended by \end{document}   Also, hovering over the red cross symbol indicating error in Eclipse, I see this message    paragraph ended before Gin@iii was completed.   It's obvious that I have the \end{figure} to end my \begin{figure} so I don't understand how I still get that error.  Can someone please tell me what the problem is?  Edit: Add more details for debugging. The problem went away if I remove '[width=3in]'. Here is the detail error:  pdflatex&gt; Runaway argument? pdflatex&gt; width=3in]{fig1.png} \caption {Caption} \label {Fig.1}  pdflatex&gt; ! Paragraph ended before \Gin@iii was complete. pdflatex&gt; &lt;to be read again&gt;  pdflatex&gt;                    \par  pdflatex&gt; l.40  pdflatex&gt;        pdflatex&gt;  pdflatex&gt; Underfull \vbox (badness 10000) has occurred while \output is active pdflatex&gt; (./document.bbl pdflatex&gt;  pdflatex&gt; Package natbib Warning: Empty `thebibliography' environment on input line 3.   Added sample code:  \documentclass[10pt,psfig,letterpaper,twocolumn]{article} \usepackage{geometry} \usepackage{graphics} \usepackage{setspace} \usepackage{natbib} \usepackage{verbatim} \usepackage[scaled=0.9]{helvet} \singlespacing \paperwidth 8.5in \paperheight 11in \oddsidemargin 0in \headsep 1.3cm  \geometry{left=0.75in,top=0.75in,right=0.75in,bottom=1in} \textwidth 7in  \textheight 9.25in \columnsep 0.4in \footskip 0in  \renewcommand{\bibname}{REFERENCE} \pagestyle{empty}  \begin{document} \bibliographystyle{acm}   \title{\fontfamily{phv}\selectfont{\huge{\bfseries{Title here}}}} \author{ {\fontfamily{ptm}\selectfont{\large{\bfseries{author name}}}}\thanks{contact info }}  \maketitle \thispagestyle{empty}  \section*{\fontfamily{phv}\selectfont{\normalsize{\bfseries{Section name}}}}  \begin{figure} \centering \includegraphics[width=3in]{fig1.png} \caption{Caption} \label{Fig.1} \end{figure}  \pagebreak[4] \vspace*{5.52in} \bibliography{ref} \end{document}
117414
I am facing a weird problem. I am trying to include an eps file into my thesis. The code I am using is as follows:    \documentclass[11pt,twoside]{ce}  \usepackage{graphicx}  \usepackage{wrapfig}  \usepackage{color}  \usepackage{caption}  \usepackage{amsmath}  \usepackage{amssymb}  \usepackage{float}  \usepackage{url}  \begin{document}   \newpage   \begin{figure}[H]      \includegraphics[angle=45,width=0.75\textwidth]{images/final.eps}       \caption{Final image}       \label{fig:final}   \end{figure} %working code, page does not rotate. just image rotates.    \end{document}   This code works. But when I rotate the image with 90 deg., the image rotates but the page also rotates. If I rotate it by an angle less than or equal to 45, then the page does not rotate and only the image rotates. When the rotation is greater than 45, the page and image both rotate.    \begin{figure}[H]      \includegraphics[angle=46,width=0.75\textwidth]{images/final.eps}       \caption{Final image}       \label{fig:final}   \end{figure} % non-working code, image as well as page rotates.   \begin{figure}[H]      \includegraphics[angle=90,width=0.75\textwidth]{images/final.eps}       \caption{Final image}       \label{fig:final}   \end{figure} % non-working code, image as well as page rotates.   I want to rotate the image by 90 deg but not the page. Since each page has a header, page rotation is annoying me. Due to rotation of the page, the header comes to the right side, instead of being on the top. Can somebody help?
39927
I am having the following problem with adding a figure inside the multicol environment:  \documentclass[10pt, twoside]{book} \usepackage{graphicx} \usepackage{subfig}  \begin{document}   \begin{multicols}{2}  a test file for picture inclusion along with the captions and labeling \begin{figure}  \centering  \includegraphics[width=5cma]{Cauchy_sequence_illustration-png}\\  \caption{Lets see}\label{pinki} \end{figure} \end{multicols}  \begin{figure}  \centering   \includegraphics[width=5cm]{Cauchy_sequence_illustration-png}\\  \caption{Lets see}\label{pinki} \end{figure}    \end{document}    After this while I am pressing Ctrl + Shift + X (usually I compile like this in DVI format and then clicking "dvi--->pdf" I convert it into PDF document.) the picture in multicol environment is not shown in YAP Viewer but the second one (which is outside of multicol environment) is shown along with the caption.  Kindly help me how to handle this problem. Please note that I am using the figure in .ps format. And I am not allowed to use any other format according to the instruction.
64791
I have a TeX document that is embedding a huge amount of figures from a fig folder that is full of another humongous amount of other figures.  I would like to move the document along with its figures, but I don't want to take the whole fig folder, just the figures in there that are embedded by the document.  Is there a package (or any other way) that allows me to, for example, print out the filenames of all the figures embedded by the document? Something like:  fig/figurename1.eps fig/figurename2.eps ... etc   I could then just copy-paste that list and add some cp's in a plain text file and automate the copy of those files to my desired location by running the file in my shell:  $ cp fig/figurename1.eps wherever/fig/ $ cp fig/figurename2.eps wherever/fig/ ... etc   Of course this is just an idea, if somebody has an alternative to the "file listing and copy-pasting in a shell file" I would be happy to listen =)
90830
I know there is a command like   \begin{figure}[p] \end{figure}   But when I use it in a two-column model, the $[p]$ cannot work. So I am wondering if there is any solution to preserve the figure in current page when I use $\begin{figuire*}$.
94245
I'm a beginning latex user. I have some programming code in my document which I format using the lstlisting environment from the package listings.  However this still allows the code segments to be split into two pieces when placed near the end of a page.  To fix this I also use a figure environment for code. This causes an often recurring pattern:  \begin{figure}[H] \begin{lstlisting} ..code.. \end{lstlisting} \end{figure}   How can I define a new environment for this pattern? I tried:  \newenvironment{mylisting} { \begin{figure}[H] \begin{lstlisting} } { \end{lstlisting} \end{figure} }   However using this environment gave errors all over.
119662
I'm using the "listings" package to write pieces of code (XML, RDF, Java, etc) and I want them to have the same counter of the Figure environment.  For example,   Listing 1: blablabla Listing 2: blebleble Figure 3: bliblibli Listing 4: blobloblo Figure 5: blublublu   The purpose of doing it is to change the "Listing" label to "Figure". But I need both environments to share the same counter. How I do it?  Thanks in advance.
117545
Can u please help me in this table. The problem in this table that is not move to the next page in a proper way and kindly mention the size of the figure as well as the place of the figure. \begin{longtable}[c]{@{}|c|c|c|c|c|c|c|c|c|@{}} \caption{Bacteria isolates on different media} \label{tab:my-table}\\ \toprule \textbf{Sr.No} &amp;   \textbf{Reference Code} &amp;   \textbf{Sample Location} &amp;   \textbf{Colony Color} &amp;   \textbf{Colony Morphology} &amp;   \textbf{Pigmentation} &amp;   \textbf{Media} &amp;   \textbf{Predicted Name Of Strain} &amp;   \textbf{Figures} \\* \midrule \endhead % 1 &amp;   EMB(P)1 &amp;   Islamabad &amp;   Green sheen &amp;   Circular &amp;   Green Sheen &amp;   \begin{tabular}[c]{@{}c@{}}Eosin methylene\\    \\ blue agar\end{tabular} &amp;   \textit{\textbf{E.coil}} &amp;    \\* \midrule 2 &amp;   MSA(P)1 &amp;   Islamabad &amp;   Yellow &amp;   Punctiform &amp;   Yellow &amp;   Mannitol salt agar &amp;   \textit{\textbf{\begin{tabular}[c]{@{}c@{}}Staphylococcus\\    \\ Epidermidis\end{tabular}}} &amp;    \\* \midrule 3  &amp; MACC(P)1 &amp; Islamabad &amp; Off white       &amp; Circular  &amp; Off white       &amp; MacConkey agar     &amp; \textit{\textbf{Salmonella}}              &amp;  \\* \midrule 4  &amp; MSA(P)2  &amp; Islamabad &amp; White           &amp; Circular  &amp; White           &amp; Mannitol salt agar &amp; \textit{\textbf{Staphylococcus   aureus}} &amp;  \\* \midrule 5 &amp;   B.A(P)1 &amp;   Islamabad &amp;   White &amp;   Smooth &amp;   White &amp;   \begin{tabular}[c]{@{}c@{}}Blood \\    \\ Agar\end{tabular} &amp;   \textit{\textbf{Pseudomonas   aeruginosa}} &amp;    \\* \midrule 6  &amp; B.A(P)2  &amp; Islamabad &amp; White           &amp; Circular  &amp; White           &amp; Blood agar         &amp; \textit{\textbf{Lactobacilli}}            &amp;  \\* \midrule 7  &amp; MACC(P)2 &amp; Islamabad &amp; Pink            &amp; Circular  &amp; Pink            &amp; MacConkey agar     &amp; \textit{\textbf{Klebsiella}}              &amp;  \\* \midrule 8  &amp; MACC(P)3 &amp; Islamabad &amp; Purple          &amp; Irregular &amp; Purple          &amp; MacConkey agar     &amp; \textit{\textbf{pseudomonas}}             &amp;  \\* \midrule 9  &amp; MSA(P)3  &amp; Islamabad &amp; Crystal White   &amp; spherical &amp; Crystal White   &amp; Mannitol salt agar &amp; \textit{\textbf{Salmonella}}              &amp;  \\* \midrule 10 &amp; B.A(P)3  &amp; Islamabad &amp; White           &amp; Puntiform &amp; White           &amp; Blood agar         &amp; \textit{\textbf{Staphylococcus}}          &amp;  \\* \midrule 11 &amp; MACC(P)4 &amp; Islamabad &amp; Orange to amber &amp; Circular  &amp; Orange to amber &amp; MacConkey agar     &amp; \textit{\textbf{Shigella}}                &amp;  \\* \midrule 12 &amp; MSA(P)4  &amp; Islamabad &amp; Yellow          &amp; Circular  &amp; Yellow          &amp; Mannitol salt agar &amp; \textit{\textbf{S. aureus}}               &amp;  \\* \midrule 13 &amp; MACC(P)5 &amp; Islamabad &amp; Pink to purple  &amp; Circular  &amp; Pink to purple  &amp; MacConkey          &amp; \textit{\textbf{Klebisella}}              &amp;  \\* \bottomrule \end{longtable}
114255
I know this has been asked before. However, none of the solutions helped me. I have tried \notoccite and that did not work. My issue is that each figure with a citation in the list of figures counts so, List of Figures Figure 1 LoF Caption [1] ..........  1 Figure 2 LoF Caption [2] ..........  2 Introduction Sentence with citation [3] Figure 1: Figure 1 LoF Caption [1] Figure 2: Figure 2 LoF Caption [2] \documentclass{article}  \usepackage{graphicx, cite, caption, subcaption, notoccite} \begin{document}  \listoffigures  \section{Introduction}  Sentence with a citation \cite{first}  \begin{figure}     \caption{Figure 1 LoF Caption \cite{second}} \end{figure} \begin{figure}     \caption{Figure 2 LoF Caption \cite{third}} \end{figure} \end{document}  It is important to note that \autocite does not work and I am using a *.bib file for my references. I do not want any citations citations to count in the list of figures.
55104
So its a fairly simple question to a problem people normally experience. I have a rough idea of what to do, but I am looking for the correct way of doing things. So in the solution I will include what would be the bare minimum requirements I think would get this problem solved. I am looking for feedback and corrections though.  So please tell me, how does one go about creating subfigures within a figure. After that, caption it. Then label it for reference and then refer to it in the text?
57575
I am facing problem to write the code of this below picture in my Latex document. kindly guide me about this.
111349
I want to place two or more figures on top of the two-column page next to each other (horizontally). However, for some reason I can't do this. This is the code that I use, it puts the second figure in the new line. Why is that? Btw, figures are tiny and many of them can fit in one line.  \begin{figure*}[t] \centering  \subfigure[Market revenue]{ {\epsfig{file = figures/graphs/revenue.pdf, width = 3cm}} \label{fig:evaluation:revenue} }  \subfigure[Average price]{ {\epsfig{file = figures/graphs/avgPrice.pdf, width = 3cm}} \label{fig:evaluation:avgPrice} }  \caption{Simulation results} \end{figure*}
111142
I am using the  to typeset a preprint. The MNRAS template is divided into two columns and I am using the figure and figure* environment to place graphs either into one column or over the two columns.   However, the figures are put into the document in the order of appearance and figures* are independently put into the document in the order of appearance of figures*. As a result a "Figure 5" (a non* figure) appears in the document before "Figure 1" (a figure*).   How can I force the correct order of appearance of both figures and figures*?    Renumbering the figures is not an option as the journal requires the figures to appear in order of reference in text. I have tried using the afterpage package as a workaround so that Figures 1-4 are typesetted before Figure 5 but unfortunately \afterpage{\clearpage} triggers already after the left-column ending and the whole right column is left blank.
61041
I'm trying to understand why I cannot effectively reference figures or equations that I have defined with labels.  For example:  \begin{figure}   \label{fig:area_Treasuries}   \caption{Treasuries as a portion of total financial flows.}   \centering   \includegraphics[width=0.75\textwidth]{graphs/Area_Treasuries.png} \end{figure}  \paragraph{} Figure~\ref{fig:area_Treasuries} presents Treasuries (both flowing into and out of the United States) as a share of total financial flows.  From 1985 to 2010, Treasuries account for, on average, 53.2\% of total financial flows.   With the above code, I get this warning:      LaTeX Warning: Reference `fig:area_Treasuries' on page 37 undefined on   input line 477.   The result is "Figure ?? presents Treasuries..."  Why is this happening?  Related, I don't understand why I can't reference, say, an equation before (I mean physically above in the text) the actual equation.  Isn't this what compiling multiple times and cross references is supposed to take care of?