# Tag Info

0

Here is a solution using answers package and based on write18 compilation \documentclass{article} \usepackage{answers} \Newassociation{xxx}{yyy}{page} % contents of the page \Opensolutionfile{page}[mtfile] \begin{Filesave}{page} \section{Foo} \lipsum[1] \includegraphics[height=3cm]{example-image-a} \subsection{Barbar} \lipsum[1] \end{Filesave} ...

2

It's a feature of the subcaption package. When subfigure is used, the figure counter is stepped independently on whether \caption is used. More precisely, this is done if the caption is expected to be at the bottom, which is usual for figures. The reason is simple: the caption to a subfigure needs to know the number of the main figure caption, which however ...

0

The following is from another question No caption number for figures and tables. Hopefully you can get rid of the caption together with the labeling. \documentclass{article} \usepackage{caption} \usepackage{graphicx} \begin{document} \begin{figure}[h!] \centering \includegraphics[height=2cm]{figure} \caption{Une figure.} \end{figure} \begin{figure}[h!] ...

1

\@xdblarg is an internal command that handles the optional argument to \caption making \caption{zzz} the same as \caption[zzz]{zzz}. So either you have a misplaced {} or [] or (more likely) a fragile command in the main argument, that should be prefixed with \protect

2

The caption package provides the \ContinuedFloat macro for figures that are split over multiple floats. Combined with the subfigure environment, as in Matt's answer, to get the subfigure-numbering. \documentclass{report} \usepackage{subcaption} \DeclareCaptionSubType*[Alph]{figure} \captionsetup[subfigure]{labelformat=simple} ...

1

You can use the subcaption package to get subfigure labeling. Normally you would just include multiple subfigures within a single \begin{figure} ... \end{figure} environment, but if you want it to break across pages you can't do that. In order to get the numbering to work out, I reset the subfigure counter every time I start a new figure. ...

2

The images will only be listed if you give them a caption, if you put them, in table environments the order of the three items will be maintained.

2


2

You mention no concern about float numbering, so my suggestion would be to forego any kind of floating for the single-column figures. For this, use the [H] float specifier: \documentclass[twocolumn]{article} \usepackage{lipsum} %used to generate filler text \usepackage{afterpage,float} \usepackage[demo]{graphicx} \begin{document} \section{Section with ...

2

As the two column float has to span the top of the following page, and (in latex 2015 release, or with fixltx2e with older format) all floats are kept in order, and so the single column floats have to come after that, I do not see how you can avoid a lot of white space after the first section, however you can do \documentclass[twocolumn]{article} ...

0

There is actually a built-in workaround, which is to use \begin{tikzfigure}[Caption]%Figure environment does not work \label{test} \includegraphics[width=0.2\textwidth]{figure.pdf} \end{tikzfigure}

2

You can use the marginnote package to put a note into the margin for a floating figure. For example: \documentclass{book} \usepackage{lipsum,graphicx} \usepackage{marginnote} \begin{document} \lipsum[1] \begin{figure} \marginnote{\includegraphics[width=\marginparwidth]{prerequis.png}}% \includegraphics[width=\textwidth]{example-image-a} ...

1

With \marginpar, I tried \marginpar{\includegraphics]{iconFigure}} \begin{figure} \centering \includegraphics[width=\textwidth]{actualFigure} \caption{Caption of actual figure} \label{labelActualFigure} \end{figure} Result: Actual figure is above the icon figure, although icon figure is outside the text margin (something which I want). With minipage, I ...

1

Package float without package caption Package defines the macro \fnum@<float>, which sets the float name and its number. It can be redefined to contain the name only. The numbers in the list of algorithms can be removed by temporarily disabling \numberline: \documentclass{article} \usepackage{float} \floatstyle{ruled} \newfloat{afloat}{t!}{loa}% The ...

2

You can use the caption package to define an unnumbered label format: \documentclass{article} \usepackage{caption} \usepackage{float} \floatstyle{ruled} \newfloat{afloat}{t!}{log} \newcommand\afloatname{Algorithm} \floatname{afloat}{\afloatname} \usepackage{algorithm} \usepackage{algpseudocode} \DeclareCaptionLabelFormat{unnumbered}{#1} ...

2

Put the tabular into the \intertext, too: \noindent\begin{minipage}{\linewidth} \begin{gather}\label{eq:1} R=\rho \frac{l}{A}, \intertext{Where: \begin{tabular}[t]{>{$}r<{$}@{\ :\ }l} P_{xi} & is the predicted rate for user~$x$ on item~$i$ \\ S_{ki} & is the rate of song~$i$ given by user~$k$ \\ D_{kx} ...

0

You can always lie: \documentclass{article} \usepackage{graphicx} \usepackage{subfig} \begin{document} \begin{figure} \centering \makebox(0,545){% \parbox[b]{5in}{% \subfloat[\label{fig:a}]{\includegraphics[width=5in]{example-image-a}} \par \subfloat[\label{fig:b}]{\includegraphics[width=5in]{example-image-b}} \vspace*{10mm}\par\mbox{ }}} ...

0

minipage environment will work as pointed by @Mico. You can also use tabular environment to tabulate your figures.

3

Something like this? Note that only the fourth image and the caption need to be placed inside minipage environments. \documentclass{article} \usepackage[demo]{graphicx} % omit "demo" option in real document \begin{document} \begin{figure} \includegraphics[width=\textwidth]{fig1} \includegraphics[width=0.49\textwidth]{fig2}% \hspace*{\fill}% ...

1

Assuming that the two tabular environments both fit on a single page, you may want to use a single table (not figure!) environment to contain them. For instance, the following code may work for you: \begin{table} \begin{tabular}{...} ... \end{tabular} \caption{Notation used in the big complicated table} \bigskip % create a bit of vertical separation ...

0

I think this method is frowned upon, but it should work at the cost of having perhaps slightly less well document layout before and after the table. \documentclass{article} \usepackage{float} \begin{document} \begin{figure}[H] \begin{tabular} ... \end{tabular} \caption{Notation used in the big complicated table} \end{figure} \begin{figure}[H] ...

0

The figcaps package uses \AtEndDocument{\iffigcaps\@tablepage\@figurecaps\@figurepage\fi} to typeset tables first and then the figure captions. This use of \AtEndDocument unfortunately makes that the solution cannot be given from your .tex file. However, there's a solution. Save a copy of figcaps.sty as myfigcaps.sty in the same directory where your .tex ...

1

Getting the code from your previous question, I add a command for stating the source to be typeset along with the image in a tabular: \documentclass{article} \usepackage{caption} \usepackage{graphicx} \usepackage{url} \captionsetup{ format=hang, justification=raggedright, singlelinecheck=false, figureposition=top, } ...

1

How about this? I used the measuredfigure environment, from threeparttable, to have a caption of the width of the figure, and the copyrightbox, which is done to add such an information to tables/figures: \documentclass{article} \usepackage{graphicx} \usepackage{caption, threeparttable} \usepackage{copyrightbox, url} \urlstyle{sf} \captionsetup{format=hang} ...

2

Here's a possibility using a \stackunder. I show two figures, the second with the boxhandler package to give the OP a similar caption format to what was presented, although it is below, rather than above the image. \documentclass{article} \usepackage{stackengine,lipsum,boxhandler} \usepackage[demo]{graphicx} \begin{document} \lipsum[4] \begin{figure}[ht] ...

3

One option is to put the image and its source text inside a varwidth (requires the varwidth package) environment: \documentclass[twocolumn]{scrartcl} \usepackage{graphicx} \usepackage{varwidth} \usepackage{url} \newcommand\Source[1]{\par\textbf{Source:} \url{#1}\par} \begin{document} \begin{figure} \centering \caption{some text goes here. This text is ...

1

\documentclass{article} \usepackage{xparse} \NewDocumentCommand{\captionsource}{omm}{% \IfNoValueTF{#1} {% no leading optional argument \caption[#2\formatsource{#3}]{#2}% } {% leading optional argument \caption[#1\formatsource{#3}]{#2}% } } \NewDocumentCommand{\formatsource}{m}{% \unskip\ (Source:~\cite{#1})% } \begin{document} ...

3

You could create a new macro like \newcommand\sourcecaption[2]{\caption[#2 \protect\cite{#1}]{#2}} Then you could write \sourcecaption{source1}{Image-Test}

0

Late response, but I recently had this issue. I put each plot into a subfigure environment, put all of these subfigures into a minipage, and then gave the minipage as the argument to \FIGURE. If you are dealing with multiple subtables you can do the same thing with \TABLE.

2

You can achieve this with a combination of using cleveref and subcaption: \documentclass{scrartcl} \usepackage[]{graphicx} \usepackage{subcaption} % label is a, b ... \renewcommand\thesubfigure{\alph{subfigure}} \usepackage[unicode]{hyperref} % multiple refs are compressed to a range with the compress option \usepackage[compress]{cleveref} % define the ...

2

\begin{minipage}[t]{7in} \includegraphics[width=7in]{Figures/SynthesisOverview} \end{minipage}% The minipage here isn't doing anything very useful as \includegraphics is already a box, and minipage just wraps it in another box. the problem is that [t] means make the reference point of the minipage the baseline of the top row, but here there is only one ...

4

Here is an example using \includegraphics: \documentclass{article} \usepackage{graphicx} \usepackage{lipsum} \title{Drost effect} \author{Droste} \begin{document} \maketitle \lipsum[1] \IfFileExists{\jobname-copy.pdf}{ \begin{figure} \centering \framebox{\includegraphics[width=.3\linewidth,page=1]{\jobname-copy}} \caption{Droste effect} ...

2

\documentclass[twocolumn]{article} \usepackage{graphicx} \begin{document} \begin{figure*} \centering \includegraphics[height=3cm]{example-image-a}\quad \includegraphics[height=3cm]{example-image-b}\par\medskip \includegraphics[height=3cm]{example-image-c} \caption{a figure with three subfigures} \end{figure*} \end{document}

1

Regarding OP additional question in comment I wrote separate answer. There are more possibilities how to vertical centering your sub images. First, which come to my mind is to use tabular environment with column type m{<width>}, which is defined in package array: Code: \documentclass{article} \usepackage{graphicx} \usepackage{subcaption} ...

2

See, if this is what you like to obtain: I guess that you have problem with definition of image width. I replace \includegraphics[width=0.84\linewidth]{Graph2} with \includegraphics[width=0.84\hsize]{example-image} and for images select test images which provide graphics package. I didn't give any attention to their height. The complete code is: ...

1

The comments have described how to do this with \captionof, here is a different approach with \phantomsubcaption from the subcaption package. \phantomsubcaption is useful for example if you have generated a figure with sub-figure labels included in the graphic, but it can also be used in this case. \documentclass{article} \usepackage{pgfplots,subcaption} ...

1

Building on Gustavo Mezzetti's answer, the image can be placed in a figure environment so it can be captioned and listed in the \listoffigures. A few other modifications are required, shown below. The \paperheight adjustment (-6cm) needs to be manually tuned depending on the aspect ratio of your image. This is best done by eye anyway, as an automatic ...

1

I am not completely sure of what you want to achieve and what limitations you have got, but, to begin with, you might want to have a look at the following code: \documentclass[a4paper]{report} \usepackage[T1]{fontenc} \usepackage{geometry} \usepackage{pdflscape} \usepackage{mwe} % for sample figures -- automatically loads graphicx \begin{document} ...

1

The \label must be written after \caption, not before. Labels need a \refstepcounter (here with figure counter) such that the latest stepped counter is known and the reference is correctly written. If \label{Figure: SimplyStupid} is used before \caption, it will use the last counter being stepped, this is section, that's why the reference prints II (the ...

7

LaTeX already told you the reason: Package multicol Warning: Floats and marginpars not allowed inside `multicols' environment!. And the entire float object is gone including the \label. Therefore the reference is undefined. Also H is not supported causing an error, which is fixed by adding package float. If you don't want a floating object, then there ...

2

Two options, but the general idea is the same: to use one subfigure environment (requires subcaption) or \subfloat command (requires subfig) for each group. Here's one option using the powerful subcaption package: \documentclass{article} \usepackage{subcaption} \usepackage{graphicx} \begin{document} \begin{figure} \begin{subfigure}{\linewidth} ...

0

try this \begin{figure}{h} \subfigure[caption 1]{\label{...} \includegraphics{img1-a}\hspace{1em} \includegraphics{img1-b}\hspace{1em} \includegraphics{img1-c} } subfigure[caption 2]{\label{...} \includegraphics{img2-a}\hspace{1em} \includegraphics{img2-b}\hspace{1em} \includegraphics{img2-c} } \caption{} \label{} \end{figure}

0

Actually the solution to this problem is very easy: Just remember to put the \caption below the \includegraphics{} code! Haha The following code is what produced the "error" of having the caption above the figure (which one should avoid) \begin{figure}[t] \centering \caption{This caption is above the figure (please avoid this!)} ...

2

The documentation of the package says If two consecutive paragraphs both contain a floating float, a "collision warning" is issued. This warning may be ignored.

1

I'd use \rule{1ex}{1ex} embedded in \textcolor: \documentclass{article} \usepackage{graphicx} \usepackage{xcolor} \DeclareRobustCommand{\legendsquare}[1]{% \textcolor{#1}{\rule{1ex}{1ex}}% } \begin{document} \begin{figure}[hbp] \centering \includegraphics[width=.4\textwidth]{example-image} \caption{Pattern of participants \legendsquare{green}~X, ...

1

A quick and dirty solution with \filledmedsquare symbol from the MnSymbol package. \documentclass{article} \usepackage[demo]{graphicx} \usepackage{MnSymbol} \usepackage{xcolor} \begin{document} \begin{figure}[hb] \begin{center} % \vspace{-10pt} \includegraphics[scale=0.8]{images/RunningTime} \end{center} % \vspace{-10pt} \caption[Text ...

2

This was a bug (or rather, a documented limitation) in latex which was fixed if you loaded the fixltx2e package, and is fixed by default in LaTeX 2015/01/01.

6

shorten <=1pt tells TikZ you want a gap. If you don't want one, don't say that you do ;). As mentioned in the comments 'standard arrow' is vague. Really, if you want a standard arrow you just say -> rather than -LaTeX or whatever. You might want something from the arrows.meta TikZ library. Try -Stealth[], for example, after adding arrows.meta to the ...

1

The \FloatBar­rier command from the placeins package seems to do the trick. The documentation states; Placeins.sty keeps floats ‘in their place’, preventing them from floating past a \FloatBarrier command into another section. To use it, declare \usepackage{placeins} and insert \FloatBarrier at places that floats should not move past, perhaps at ...

0

You can do that also with the floatrow package and its \RawCaption command: \documentclass{article} \usepackage{caption, subcaption} \usepackage{floatrow} \usepackage[demo]{graphicx} \usepackage[showframe]{geometry} \usepackage{ragged2e} \DeclareFloatVCode{myrowsep}{\vskip 3.5ex} \begin{document} \begin{figure} \centering \floatsetup{justification ...

Top 50 recent answers are included