# Tag Info

4

You need no \subfloat, for this. All trees can be encapsulated in a tabular environment that guarantees vertical centering with respect to the formula axis where the arrows sit. I also added \small that makes everything a tad smaller and helps in keeping the size under control. \documentclass[a4paper, 11pt, titlepage]{book} \usepackage[T1]{fontenc} ...

4

Since your MWE is not complete. I can anly guess, what is your problem. The following approximation of your MWE gives results as you like to obtain (if I understand correctly your question): I'm very sure, that this figure composition haven't any influence on tikz or pgfplots pictures in subfigure. \documentclass{article} \usepackage{subcaption} ...

3

You must declare that your captions are above: \documentclass[captions=tableabove]{scrartcl} \usepackage{subfig} \begin{document} \begin{table} \centering \caption{Table} \subfloat[a]{ \fbox{aaaa} } \\ \subfloat[b]{ \fbox{bbbb} } \end{table} \end{document}

3

The problem is mostly due to the .png images having extra wide space around them. Please check your images or try to upload them in your post. Here is your code with experimental images: \documentclass{article} %Document type \usepackage{amssymb,amsmath} %Inserting symbols \usepackage{graphicx} %Inserting graphics \usepackage{fullpage} ...

2

Try for example this code: \documentclass{article} \usepackage{pgfplots} \pgfplotsset{width=3cm,height=3cm} \begin{document} \begin{tikzpicture} \begin{axis}[xmin=0,xmax=2,ymin=0,ymax=2,ytick=0.5,xtick=0.5] \end{axis} \draw [red] (current bounding box.south west) rectangle (current bounding box.north east); \end{tikzpicture} \begin{tikzpicture} ...

2

My suggestion would be to clip the image contents within LaTeX; graphicx allows for that: \documentclass{article} \usepackage{graphicx,subcaption} \begin{document} \begin{figure} \centering \setbox1=\hbox{\includegraphics{example-image-a}}% \subcaptionbox{}{\centering\includegraphics[scale=0.5,viewport=.5\wd1 0 \wd1 \ht1,clip]{example-image-a}}% ...

2

Instead of assigning absolute widths, such as 9.8cm, to the graphs, consider assigning relative widths, such as 0.475\textwidth. I'd get rid of the \hspace{-30pt} and \hspace{-50pt} statements. \documentclass[prodmode,acmtaco]{acmsmall} % Aptara syntax \usepackage{subfig} \begin{document} \begin{figure}[t!] \subfloat[subfloatA11]{\includegraphics[width ...

2

From the description and the code, I guess you want the images to occupy part of the outer margins. Here's a possibility, I left a very small separation at the center. \documentclass[prodmode,acmtaco]{acmsmall} % Aptara syntax \usepackage{graphicx} \usepackage{subfig} \usepackage{lipsum} % just for the example \begin{document} \lipsum[1-3] ...

1

For this you have more possibilities. The simple one is to omit empty line between last and one before subfigure. In this case the subfigure d will be vertically aligned with subfigure c. More elegant result you can achieve with use of tabular environment: \documentclass[11pt]{article} \usepackage{pgfplots} \usepackage{graphicx} \usepackage{caption} ...

1

You can set the entire sub-figure construction inside a tabular and then set by-pair captions as a regular \multicolumn{2}{c}: \documentclass{article} \usepackage{graphicx,subcaption} \begin{document} \begin{figure}[ht] \begin{tabular}{c@{\quad}c} \subcaptionbox{first}{\includegraphics[width=.3\linewidth]{example-image-a}} & ...

1

\begin{tabular}{@{}l@{}} \includegraphics{zzz}\\ \hspace{1cm}(a)\hspace{2cm}(b) \end{tabular} Adjust the lengths to fit.

1

You can use this setup: \captionsetup[figure]{% use subfigure to confine changes to subcaptions justification = RaggedRight, % Or justified format=hang} The complete example is like this: \documentclass[authoryear, review]{elsarticle} \usepackage{graphicx} \usepackage[font = footnotesize, labelfont=bf]{subcaption} \usepackage[font = footnotesize, ...

1

The problem is not with tufte-book and it can be reproduced with article as well. \documentclass{article} \usepackage{graphicx} \usepackage[caption=false]{subfig} \usepackage{lipsum} \begin{document} \lipsum[2] \begin{figure}[!htp] \centering \includegraphics[width=.6\textwidth,height=2cm]{example-image} \end{figure} \lipsum[2] \begin{figure}[!htp] ...

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