Tag Info

Hot answers tagged

8

hyperref supports \numberwithin, but only if it awares of it. Therefore, \numberwithin should be used after package hyperref. Further remarks: Option allcolors simplifies the setting of the colors to one color with option colorlinks. Package hyperref detects driver pdftex automatically, it does not need to be set explicitly. KOMAScript option ...


5

pdftex is warning you in the log that the destination anchors are not unique l.43 \caption{Tab two} pdfTeX warning (ext4): destination with the same identifier (name{table.1}) has been already used, duplicate ignored <to be read again> As Heiko wrote in this case the easiest is to move the \numberwithin ...


3

Here's one option using the \sidesubfloat command from the floatrow package; using subcapbesideposition (possible values= top, bottom, center) you can control the vertical position of the labels for the subfloats: The code: \documentclass[a4paper,10pt]{article} \usepackage{graphicx} \usepackage{floatrow} \usepackage{subfig} \begin{document} As we can ...


3

Just place the \caption above the \includegraphics: \documentclass{article} \usepackage{graphicx,subcaption} \begin{document} \begin{figure}[h!] \begin{subfigure}[b]{.329\textwidth} \caption{} \includegraphics[width=\textwidth]{example-image-a} \end{subfigure} \begin{subfigure}[b]{.329\textwidth} \caption{} ...


3

Just put \centering in the first line of your figure to get them all horizontally centred and put your second subfigure into a savebox in order to have the correct height for your first image: % arara: pdflatex \documentclass{article} \usepackage{caption} % do not load that twice \usepackage{subcaption} % do not load that twice \usepackage{float} ...


3

In your MWE are missing package subfig and begin{document} ... Also the use of \makebox is tu align figures in one column is not necesary. Try: \documentclass{IEEEtran} \usepackage[demo]{graphicx} \usepackage{subfig} \usepackage{lipsum} \begin{document} \lipsum[2] \begin{figure}[h] \centering ...


2

No wrapfigure: just a couple of minipages. \documentclass{article} \usepackage{graphicx,subcaption} \begin{document} \begin{figure}[htp] \centering \begin{minipage}[b]{0.38\textwidth} % almost 40% \includegraphics[width=\textwidth]{example-image} \caption{Rainbow gnome} \end{minipage}% \hspace{\stretch{2}}% \begin{minipage}[b]{0.58\textwidth} % almost ...


2

Don't use the [h] option alone, use [htp]. Second, the [h] option doesn't make sense for subfigure (for which the same options as for minipage apply, that is, [t] or [b], where the absence is equivalent to [c]). It's also better to specify the width of figures, rather than a scale factor. In order to be independent of the actual text width, use a multiple ...


2

\documentclass{article} \usepackage{pgfplots} \usepackage{subcaption} \pgfplotsset{compat=1.3} \usepackage[margin=1in]{geometry} \captionsetup{compatibility=false} \begin{document} \begin{figure}\small \begin{minipage}[b]{.5\linewidth} \centering \begin{tikzpicture} \begin{axis}[ybar, symbolic x coords={x1, x2, x3}, xtick={x1, x2, x3}, ytick={5, 4, ...


2

Something like this? The trick here is to put the full width minipage inside the sub-figure, so that the caption width is \textwidth, and to then set the horizontal alignment within each such environment: \documentclass{memoir} \usepackage{graphicx} \newsubfloat{figure} \begin{document} \begin{figure} \centering \subbottom[A figure.]{% ...


2

Use the more modern package subcaption for this. % arara: pdflatex % arara: pdflatex \documentclass{article} \usepackage[demo]{graphicx} \usepackage{subcaption} \begin{document} \listoffigures \begin{figure} \centering \begin{subfigure}[b]{.15\textwidth}\includegraphics[width=\linewidth]{FileA}\caption{}\label{Fig:Fig21A}\end{subfigure}\hfil ...


1

I get no error and also the reset of subfigure numbering if I remove tabularx, that's probably the cause for the issue. You simply don't need it just for setting multiple subfigures. I also changed Thesis to book, as it's impossible to know what class you're loading. \PassOptionsToPackage{demo}{graphicx} % just for this example \documentclass[11pt, ...


1

Your question is very general, so it is impossible to give specific answer. I summarize advice given by Torbjorn, and add tow examples for figures: The code for above picture: \documentclass{article} \usepackage{tabularx}% for tables \usepackage{ragged2e}% for smart right adjusting text in table \usepackage{graphicx}% for figures ...


1

I'm not sure why you are using \centerline, but using \centering instead is probably the better way to go in your case.


1

I infer from your write-up (though it's not made explicit) that your document uses a two-column format. Moreover, you're looking to generate a figure that spans both text columns. If that's the case, you should use a figure* environment instead of a figure environment; the former is set up to span both columns, and its caption will thus also be able to span ...



Only top voted, non community-wiki answers of a minimum length are eligible