Hot answers tagged

8

Well, it seems there is a bug (or is it a feature?) in your used class IEEEtran. Or it results in the using of package subfigure, which called package caption. And that package caption results in the following warning you should not oversee: Package caption Info: Unknown document class (or package), (caption) standard defaults will be used. ) ...


5

Assuming that all figures could be 6em wide, this can be done using booktabs in a normal tabular environment. \documentclass{article} \usepackage{graphicx,booktabs,array} \begin{document} \newcommand{\addpic}{\includegraphics[width=6em]{example-image}} \newcolumntype{C}{>{\centering\arraybackslash}m{6em}} \begin{table}\sffamily ...


4

Captions of subfigures should be inside subfigure environment. Try if the following MWE gives, what you like to obtain: \documentclass{article} %\usepackage[catalan]{babel} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[a4paper, top=1.75truecm,bottom=1.75truecm, left=1.75truecm,right=1.75truecm]{geometry} ...


4

Just drop those dreadful figure environments -- if it is not meant to float anyway, just use \includegraphics and a \captionof{figure}{caption text}\label{foo} etc. \documentclass{article} \usepackage{graphicx} \usepackage{caption} \usepackage{blindtext} \title{Theory on Ducks} \author{Paulo Roberto Massa Cereda (PhD. in Duckumentation)} \begin{document} ...


3

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

The comments above basically gave me the answer, and here it is \documentclass{article} \usepackage{graphicx} \begin{document} \begin{figure*} \includegraphics[width=.48\linewidth]{example-image-a} \hfill \includegraphics[width=.48\linewidth]{example-image-b} \\ \vspace{5mm} \includegraphics[width=.48\linewidth]{example-image-c}\hfill ...


2

Inspired by solution in sidesubfloats (to which your question is very similar): \documentclass{article} \usepackage{floatrow} \usepackage{graphicx} \usepackage{subfig} \usepackage{caption} \floatsetup[figure]{style=plain,subcapbesideposition=top} \usepackage[margin=70mm]{geometry} \begin{document} ...


2

Try \documentclass{article} \usepackage{subfig} \usepackage{mwe} %\usepackage[showframe]{geometry} \begin{document} \begin{figure} \subfloat[]{% \includegraphics[width=0.6666\linewidth]{example-image-a}} \subfloat[]{\begin{tabular}[b]{c}% \includegraphics[width=0.3333\linewidth]{example-image-b}\\ ...


2

See, if the following solution is close to ones you looking for: To your MWE I add showframe (for see page layout, in real use it should be omitted), options font=small and justification=RaggedRight to package caption (with this the height of images is slightly reduced) and usetwo image environment for hack to obtain desired form of page. Package lipsum ...


2

If you don't need captions for each axis, I would suggest dropping the \subfloats altogether. They're not needed. I would also suggest putting the first four axes in a groupplot environment, then alignment is default. By only having axis labels on the outer edges you can also save some space. \documentclass{article} \usepackage{pgfplots} ...


2

For a table of figures like this one you can use the package booktabs, like this: \documentclass[a4paper,10pt]{article} \usepackage{booktabs} \usepackage[dvipsnames]{xcolor} \usepackage{tikz} \newcommand{\dummyfigure}{\tikz \fill [NavyBlue] (0,0) rectangle node [black] {Figure} (2,2);} \begin{document} \begin{table} \centering ...


2

In general, this is a little bit tricky, as there so many things influencing the size, but for this case, where the ticklabels on the y-axis are the only thing causing problems, you could try adding 'extraAxisOptions','yticklabel style={text width= width("$-0.6$")},align=right}' the matlab2tikz calls, where $-0.6$ is the widest ticklabel. As a ...


1

You're forgetting outer sep. Don't be obsessed by end-of-lines! ;-) \documentclass[12pt,oneside,a4paper]{book} \usepackage{tikz} \usepackage[font+=footnotesize, subrefformat=parens]{subcaption} \newcommand{\customcaption}[2]{{% \begin{tikzpicture} \node[ anchor=south west, inner sep=0, outer sep=-0.2pt, fill=black, ...


1

Load subfig package with position=top option. \documentclass{article} \usepackage{graphicx} \usepackage[position=top]{subfig} \usepackage{floatrow} \begin{document} \begin{figure}[htb] \subfloat[Caption for sub-figure1]{\includegraphics[width=.35\linewidth]{example-image-a}}\hspace{-1cm} \qquad ...


1

It seems that you use obsolete package subfigure. Instead it try to use for example subfig which is replacement for it: \documentclass{article} \usepackage{graphicx} \usepackage{subfig} \begin{document} \begin{figure}[htb] \centering \begin{minipage}{0.8\textwidth} \centering \subfloat[First caption] { ...


1

Removing \qquad solved the problem


1

You are introducing some spurious white-space after the opening brace before including the image. It should be: % arara: pdflatex \documentclass{article} \usepackage[demo]{graphicx} \usepackage{subfig} \usepackage{blindtext} \begin{document} \begin{figure} \centering \includegraphics[width=\textwidth,height=0.1\textwidth]{dummy.pdf} ...



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