Tag Info

Hot answers tagged

4

This seems to do what you want, unless you want text in your subcaptions. \documentclass[a4paper]{article} \usepackage{graphicx} \usepackage{caption,subcaption} \newcommand{\figurerow}[6]{% \sbox{0}{\includegraphics[width=.3\textwidth]{#1}}% \sbox{2}{\includegraphics[width=.3\textwidth]{#3}}% \sbox{4}{\includegraphics[width=.3\textwidth]{#5}}% ...


4

The problem with \begin{tikzpicture}[scale=0.65] is that the fonts get scaled too making them look smaller. You can adjust the width of the plots instead with the option width provided by pgfplots. You can make this for all plots by adding \usepackage{pgfplots} %For creating plots inside LaTeX itself \pgfplotsset{width=2in} %%<-------------------- this ...


4

\documentclass[twocolumn]{article} \usepackage{capt-of} \def\a{One two three four five six seven eight nine ten. } \def\b{\a\a\a\a\par\a Red green blue. \a\a\a Yellow. \a.\par} \title{zzz} \author{me} \begin{document} \maketitle \enlargethispage{-3.2cm} \noindent\begin{picture}(0,0) \put(0,-390){\begin{minipage}{\textwidth} \centering ...


3

You can add an empty minipage before the last image: \begin{minipage}[b]{0.3\textwidth} \end{minipage} and the result is: Full MWE: \documentclass{article} \usepackage{graphicx,subcaption} \begin{document} \begin{figure*}[!htb] \begin{minipage}[b]{0.3\textwidth} \caption{The quick brown fox jumps over the lazy} ...


3

The problem is that you use c for the columns and this specifier doesn't admit paragraph-like material; changing to p{...} columns solves the problem. However, looking at the nesting in your code, it seems that you are using unnecessary nesting levels. According to comments to the question, you want to organize some images in a 2x2 array. Each figure ...


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

If you want the last row to be justified, with subfigure (h) exactly below subfigure (e), then this is a way: \documentclass[twocolumn]{article} \usepackage{subfig} % not subfigure!!! \usepackage[demo]{graphicx} \begin{document} \begin{figure*} \setlength{\lineskip}{1ex}% increase spacing ...


2

This is a solution (where article cass is used here since revtex4 can not be installed currently). Two different lablel skills are applied. One (auto title, requiring alphalph package) uses \makeatletter \pgfplotsset{ auto title/.style={title=(\AlphAlph{\pgfplots@group@current@plot}) } } \makeatother The other (in red color) uses \node (A) at (group ...


2

use for both \begin{tikzpicture}[scale=0.65] ...


2

This uses the same idea as subequations of amsmath. \documentclass{article} \usepackage{graphicx} \usepackage{subcaption} \makeatletter \newcounter{parentsubcaption} \newenvironment{subsubcaption} {\refstepcounter{sub\@captype}% \protected@edef\theparentsubcaption{\@nameuse{thesub\@captype}}% \setcounter{parentsubcaption}{\value{sub\@captype}}% ...


2

You have a lot of spurious $ and the subfigure markup wasn't doing a lot so I deleted it. Here I use \raisebox to vertically centre the tikz. \documentclass[12ptm]{article} \usepackage{amsmath, amsthm} \usepackage{tikz} \usepackage{graphicx} \usetikzlibrary{arrows} \usepackage{subcaption} \begin{document} \begin{figure} ...


2

The subfig package loads caption, so it's best to use the features of this package. \documentclass{scrbook} \usepackage{xcolor} \usepackage{subfig} \DeclareCaptionLabelFormat{bluesf}{\sffamily\color{blue}#1 #2} \DeclareCaptionLabelFormat{subbluesf}{\sffamily\color{blue}(#2)} \DeclareCaptionLabelSeparator{bluecolon}{\sffamily\color{blue}: } ...


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


1

One possibility using subcaption: The code: \documentclass{article} \usepackage{graphicx} \usepackage{subcaption} \begin{document} \begin{figure} \centering \begin{subfigure}{0.333\textwidth} \centering \includegraphics[width=.8\linewidth]{example-image-a} \caption{} \end{subfigure}% \begin{subfigure}{0.333\textwidth} \centering ...


1

width=7cm is too much for two pictures to be placed side by side. And you shouldn't leave a blank line between \end{tikzpicture} % <------------------no blank line \begin{tikzpicture} which amounts to a \par. For captions and friends, you can use subcation package. Width width=3cm and no blank line between subcaptionboxes we have ...


1

I prefer using tabular to subfig, subcaption or subfloat. \documentclass{article} \usepackage{siunitx} \sisetup{per=slash, load=abbr} % GRAPHICS \usepackage{graphicx}% for \resizebox \usepackage{caption}% for \captionof \usepackage{pgfplots} \pgfplotsset{width=7cm,compat=1.3} \begin{document} \noindent\resizebox{\textwidth}{!}{% your plots are ...


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

You haven't indicated how the last two subfigures should be placed, so I'll assume that they should be centered. This may be achieved by providing three \hspace*{\fill} instructions in the final row. (Rows 1 and 2 require only two \hspace*{\fill} instructions.) Note that the subfigure package and its macros are deprecated. In the example below, I load the ...



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