Tag Info

Hot answers tagged

3

They should be inside separate figure environments like this: \documentclass[12pt]{book} \usepackage{subfig} \usepackage{caption} \usepackage{graphicx} \begin{document} \begin{figure} \centering \subfloat{% \centering \includegraphics[width=435pt]{example-image-a} } \caption{sdfsdfsdf}\label{fig:cont} \end{figure} \begin{figure} \ContinuedFloat ...


3

Put the \labels inside the brackets meant for sub captions like \subfloat[\label{img1}]{.... Code: \documentclass{article} \usepackage[demo]{graphicx} \usepackage{subfig} \begin{document} \begin{figure}[t] \subfloat[\label{img1}]{\includegraphics[width=.49\linewidth]{img1}} \subfloat[\label{img2}]{\includegraphics[width=.49\linewidth]{img2}} ...


2

I assume that you want 1(b) when you do \ref{f5}. For that change: \usepackage[labelformat=simple]{subcaption} \renewcommand\thesubfigure{(\alph{subfigure})} Your code modified \documentclass{book} \usepackage{caption} \usepackage[labelformat=simple]{subcaption} \usepackage[demo]{graphicx} \renewcommand\thesubfigure{(\alph{subfigure})} \begin{document} ...


2

Make the images to be centered with respect to the baseline and rotate the labels at their center. This works under the assumption that all the images on a line have the same height. Note that the subfigure package is obsolete. Either use subfig (as here) or subcaption. \documentclass{article} \usepackage[export]{adjustbox} %\usepackage{graphicx} % ...


2

Instead, if you want this result: The code is the following, with the same recommandations of the previous one: \documentclass{article} \usepackage{adjustbox} \usepackage{booktabs,rotating,bigstrut} \begin{document} \begin{center} \begin{tabular}{cccc} &\multicolumn{3}{c}{\adjustimage{width=.94\textwidth}{}}\\ ...


2

Just scale the following pictures so that they have the same height as the first one and finally resize the row to be the width you want: \documentclass{article} \usepackage{graphicx,etoolbox} \newenvironment{imageRow}[1][\textwidth] {\center\firstimagetrue\def\rowwidth{#1}} {\resizebox{\rowwidth}{!}{\addimagerow}\endcenter} \newif\iffirstimage ...


2

You can use bottom alignment. The third narrow figure can be set with its top level to the other two images by using the additional optional arguments to subfigure (that's actually a minipage). In the example I set the width for the images because I can't know how wide yours are. \documentclass{article} \usepackage{subcaption} \usepackage[demo]{graphicx} ...


1

I'm not sure I understood your question, but I think you are looking for something like this: That can be achieved with a simple usage of the environment tabular like this: \documentclass{article} \usepackage{adjustbox} \usepackage{booktabs} \begin{document} \begin{figure}[h] \begin{center} \begin{tabular}{ccc} ...


1

Using the subcaption package instead of subfig will get you most of the way. subcaption provides a \subref command, which gives you only the subfigure index without the figure number. \documentclass{article} \usepackage{graphicx} \usepackage{cleveref} \usepackage{subcaption} \begin{document} \begin{figure} \centering \begin{subfigure}{0.2\textwidth} ...


1

This solution avoids the need to load caption and thereby retains the facilities of memoir. At least, it seems so although my testing has been somewhat minimal. Uncomment/comment the appropriate line to achieve formatting with or without the dot, as the mood takes you. \documentclass[oneside,article,12pt,danish]{memoir} \newsubfloat{figure} ...


1

May be you can organize them with columns environment help. \documentclass{beamer} \usepackage{mwe} \begin{document} \begin{frame}{Organizing figures} \begin{columns}[onlytextwidth] \column[T]{.7\textwidth} \includegraphics[width=\linewidth]{example-image-a} \column[T]{.3\textwidth} \includegraphics[width=\linewidth]{example-image-b}\\ ...


1

You forgot to mention what kind of label you want to use for the rows (a counter? some words?). In any case, one option is to use \parboxes for the labels on each row (using \raisebox you can further control the vertical alignment for these labels). Something like the following simple example: \documentclass{article} \usepackage[demo]{graphicx} ...


1

You have to put a caption for the figure too to get an anchor there. Otherwise, the anchor from previous \caption will be taken (here it is a table) and throw an error. . . . \ref{cat} \begin{figure}[htb] \caption{Figure here} \end{figure} to get things right. Code: \documentclass[12pt, a4paper]{article} \usepackage{subfig} \begin{document} ...


1

Add an extra \hbox like \vfil \hbox to 0.45\textwidth{% \includegraphics[width=0.45\textwidth]{images/Graphiti/diagram-type-agent-new}} \vfil} Make to 0.45\textwidth same as that in \includegraphics[width=0.45\textwidth] \documentclass[demo]{article} \usepackage{subfig,graphicx} \begin{document} \newsavebox{\tempbox} ...



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