Hot answers tagged

4

Instead of setting the width of the last subfigure to \textwidth, set that as well to 0.4\textwidth, add \centering at the start of the figure, and perhaps an \hfill between the subfigures that are on the same line. Some other comments: \footnotesize is not a macro that takes an argument, so to limit its effect you should use {\footnotsize ...\par}, not \...


3

I would like to suggest that you load the subcaption package and use side-by-side subtable environments. The one on the left will contain sub-tables (a) and (b), and the one on the right will contain sub-table (c). \documentclass{report} \usepackage{float} \usepackage{subcaption} \begin{document} \hrule % just to illustrate width of textblock \begin{...


3

Instead of having table environments inside minipages, use one table environment and two minipages inside that. You can have multiple captions inside the same table (or figure) environment. Note that with two minipages of 0.5\linewidth next to each other and a \quad space between, you'll get an overfull box and the second minipage poking a little bit into ...


3

A solution with tikzpicture: \documentclass{article} \usepackage{tikz} \usepackage{graphicx} \usetikzlibrary{positioning} \begin{document} \begin{figure}[htb] \begin{minipage}{0.4\textwidth} \begin{tikzpicture} \node (img) {\includegraphics[scale=0.225]{example-image}}; \node[below=of img, node distance=0cm, yshift=1cm,font=\color{red}] {x-axis}; \...


3

If you let tex page break normally and note where it breaks the page you can force a "hidden" paragraph break at exactly that spot and insert th ewrapfig: \documentclass{article} \usepackage{graphicx,wrapfig} \begin{document} \section{aaa} aaaa one two three four five six seven eight nine ten one two three four five six seven eight nine ten one two ...


3

Let me convert my comment to an answer: \documentclass{article} \usepackage{tikz} \usetikzlibrary{calc} \usepackage{ragged2e}% <-- added package \usepackage[justification=RaggedRight, format=hang]{subcaption}% <-- definition of the subcaption format \begin{document} \begin{figure} \tikzset{% <-- \tikzstyle is replaced by \tikzset ...


2

The caption package used with svmult.cls issues a warning Package caption Warning: \caption will not be redefined since it's already (caption) redefined by a document class or package which is (caption) unknown to the caption package. See the caption package documentation for explanation. More serious is the error message ...


2

Link which you provide, show the way how to managede your images. Using example-image from package graphics and change subfigure and included image width that consider width of minipage you can obtain: MWE for above image: \documentclass[]{article} \usepackage{graphicx} \usepackage{subcaption} \begin{document} \begin{figure} \begin{minipage}[t]{.48\...


2

Per default the reference to sub-figures will be the letter only (for example "a") and the caption labels will be surrounded by parenthesis. So if you want to move the parenthesis to the reference, one need to change this by adding them to the generic display format and remove them from the caption label format, e.g.: \documentclass[a4paper,aps,12pt]{...


2

Since svg loads subfig, which is in turn incompatible with subcaption,there's not left: Use \subfloat inside of a figure environment. The subfigure package is obsolete and shouldn't be used any longer! \documentclass{article} \usepackage{graphicx} \usepackage{svg} \usepackage{subfig} \begin{document} \begin{figure}% \centering \subfloat[First.]{\...


2

I recommend the following \begin{figure}[h] \centering \includegraphics[width=0.495\textwidth]{figure1} \includegraphics[width=0.495\textwidth]{figure2} \caption{Side by side figures.} \label{fig:sidebyside} \end{figure} This creates two side by side figures. Note that the width has to be set to a values slightly less that width=0.5\...


2

From you code I observe: you probably use deprecated package subfigure which is directly replaced with subfig. Beside it there is also very powerful subcaption your image together have width 1,6 text width, this is not possible to put in one row without to locally extend place for figures for 60% ..., for this the use of \hspace*{3.5cm} is not the best ...


1

Of course, you still have to count lines this way. \documentclass{article} \usepackage{graphicx} \usepackage{afterpage} \usepackage{caption} \usepackage{showframe} \begin{document} \section{aaa} aaaa one two three four five six seven eight nine ten one two three four five six seven eight nine ten one two three four five six seven eight nine ten \rule{...


1

I just added the package grffile, because my logo-name contains _ a line \captionsetup[subfigure]% %{margin=-1cm} {width=7cm} % choose width or margin \hspace*{1cm} right before \includegraphics I admit, you have to play with either margin or width in the captionsetup, but you can have a subfloat caption broader than the image: This is the code: ...


1

The IJCAS document class contains a build-in version of the (obsolete) caption2 package which is incompatible to the subfig package. (The actual version of caption2 can be used with subfig so it's a shame that they integrated caption2 support by copy+paste instead of \RequirePackage{caption2}.) So the only way to get the subfig package working is writing the ...



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