Tag Info

Hot answers tagged

4

You need to specify a width in the mandatory argument for each of the subfigure environments; something like \begin{subfigure}[b]{.6\textwidth} ... \end{subfigure}% \begin{subfigure}[b]{.4\textwidth} ... \end{subfigure} (the % after the first \end{subfigure} is esential). It is not clear to me, however, why are you using subfigure for each matrix; ...


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

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

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} ...


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}{}}\\ ...


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

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

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

I worked out a solution to my problem and thought I would post it here in case anyone else had the same problem as me. I ended up giving up on the subfigure environment and just using the maths environment to format them. \begin{figure}[h!] \centering \[ \left[ \begin{array}{ccccc} w_{1,1} & w_{1,2} & \cdots & w_{1,m-1} & w_{1,m}\\ ...


1

The problem can be resolved by using \renewcommand\arraystretch{value} in the columns with lesser rows. The value is set to the row ratio, in this case 10/9 = 1.111 (theoretically). A small increase may be required above the theoretical value of 10/9 to account for the fact that there are 11 \hlines in the one column, and only 10 in the second. EDITED ...


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} ...



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