Tag Info

Hot answers tagged

8

You can use caption package and adjust the width of captions for subfigures. caption also provides other means to customize your captions, for details refer to its documentation. Please note that the subfigure package is obsolete and you can use either subcaption package (which provides subfigure environment) or subfig package (which provides subfloat). I ...


5

The techniques explained at the linked answer work with subfigure package also. \documentclass{article} \usepackage{graphicx,showframe} %% remove showframe \usepackage[hang]{subfigure} \begin{document} \begin{figure*} \makebox[\linewidth][c]{% \centering \subfigure[Caption]{\label{fig:a}\includegraphics[width=0.35\textwidth]{example-image-a}}% ...


5

The error message is produced since when subcaption gets loaded the compatibility boolean option for caption is found to be true, and subcaption.sty contains the lines: \caption@AtBeginDocument{\caption@ifcompatibility{% \caption@Error{% The `subcaption' package does not work correctly\MessageBreak in compatibility mode}}{}} which trigger the ...


5

You can place the figures inside a minipage of width \columnwidth (and no indent): \documentclass[a0,portrait]{a0poster} \usepackage{multicol} \columnsep=100pt \columnseprule=3pt \usepackage{subfig} \usepackage{graphicx} \usepackage[font=small,labelfont=bf]{caption} \usepackage{lipsum} \title{Morphological key at Afrilex 2014} % Poster ...


5

I took my answer at Looking for three images on top of each other with text underneath each, changed the figure (rule) widths to make them different, and added a [r] optional specifier to the \Shortstack for right alignment. The cited answer explains how the use of the \subcaptionbox variant in conjunction with a package like stackengine can allow great ...


4

It is not needed in the example as the (current) subcaption package code includes \RequirePackage{caption}[2012/03/25] % needs v3.3 or newer which would load caption if it is not loaded already. You'll notice the same thing when you do not load caption but include \listfiles in your preamble and check your .log file. And yes, there is no need to load ...


4

You can use subfigure for the subfigures and a minipage for the caption: \documentclass{article} \usepackage{graphicx} \usepackage{subcaption} \begin{document} \begin{figure} \begin{subfigure}{.3\textwidth} \includegraphics[width=\linewidth]{example-image-a} \caption{test subfigure} \end{subfigure}\hfill \begin{subfigure}{.3\textwidth} ...


4

\documentclass{article} \usepackage{subcaption} \usepackage[demo]{graphicx} \usepackage{stackengine} \begin{document} \begin{figure}[H] \centering \begin{subfigure}{.5\textwidth} \centering \includegraphics[width=.7\linewidth]{2D/cc1.png} \caption{Original Matrix, $A$} \end{subfigure}% ...


4

You can simply reduce your subfigures to .47\textwidth and insert something like {\LARGE$\xrightarrow{T}$} between them. MWE: \documentclass{article} \usepackage{float,subcaption} \usepackage[demo]{graphicx} \usepackage{amsmath} \begin{document} \begin{figure}[H] \centering \begin{subfigure}{.47\textwidth} \centering ...


4

Here is an attempt using tikz. This allows you to customize the arrow style and the position of T. \documentclass{article} \usepackage{float,subcaption} \usepackage{graphicx} \usepackage{amsmath} \usepackage{tikz} \begin{document} \begin{figure}[H] \centering \begin{subfigure}{.47\textwidth} \centering \tikz[remember picture]\node[inner sep=0pt,outer ...


3

You can use the varwidth environment from the package with the same name. \documentclass{memoir} \usepackage{lipsum,varwidth} \newsubfloat{figure} \begin{document} \lipsum[1] \begin{figure} \centering \begin{varwidth}{\linewidth} \raggedleft \subbottom[]{\framebox{Narrow subfig}} \\ \subbottom[]{\framebox{Wide subfigure with lots of stuff}} ...


3

This is a way. Let's define a new command \doublecaption to be used when you want that behavior in the LoF: \makeatletter \def\doublecaption{% \ifx\@captype\@undefined \@latex@error{\noexpand\caption outside float}\@ehd \expandafter\@gobble \else \refstepcounter\@captype \expandafter\@firstofone \fi ...


3

Please always post complete code in future. This is an alternative. Since you are not using separate captions (which are not needed for a presentation IMO), you need not use subcaption package. Simple minipage will do. Further, if you can save your pictures as .tikz files (I hope you use tikz for those pictures, if not I will discard this answer), you can ...


2

The subfigure environment has a mandatory argument specifying the width: \documentclass[a4paper,10pt]{article} \usepackage{amsmath,amssymb,amsfonts,amsthm,tikz,caption,subcaption} \begin{document} \begin{figure} \begin{subfigure}{.5\linewidth} \centering \begin{tikzpicture}[scale=1] \path (0,0) coordinate (P0) node[right=0.1cm] {P0}; \fill (P0) ...


2

Since multicols does not allow float environments, this proposal defines a new environment called figurehere. As you can see, the floating property is suppressed and it anchors at where one desires. This environment has been tested on subcaptionbox command from subcaption package (first image) and subfloat command from subfig package (second image). They ...


2

The blank lines inbetween the subfigure environments causes a line-break inside the figure environment, hence removing those blank lines where you want to remain in the same line in the produced document gives you the desired result: \begin{figure*} \centering \begin{subfigure}[b]{0.25\textwidth} ...


2

I put this together to demonstrate how you can do this. Since you did not give a full example, I can't guarantee that it will fit right into what you are doing. I used newfloat to create a new float type listing, as you seem to have. minipages are used to set the listings themselves into the sub-floats. Depending on what you have already, this may be ...


2

You can use \addtocounter{subfigure}{-1} as demonstrated in the following MWE: % arara: pdflatex \documentclass{article} \usepackage{subfig} \usepackage[demo]{graphicx} \begin{document} \begin{figure} \centering \subfloat[]{\includegraphics{image}} % label/numbering \subfloat{\includegraphics{image}} % no label/numbering \\ ...


2

You're using the subfigure syntax defined by the subcaption package1, and this is completely different to that defined in sciposter.cls. That definition, from lines 797-805 of sciposter.cls, is \newcommand{\subfigure}[2][]{ \refstepcounter{subfig} \begin{tabular}{c} #2 \\ ( \alph{subfig} ) #1\\ \end{tabular} } meaning that \subfigure is a command with ...


1

Since you just have a string of figures, I recommend making them NOT float. Here would be a setup for a given page of two figures. \clearpage...Rinse... repeat. \documentclass{article} \usepackage{caption} \usepackage[demo]{graphicx} \begin{document} {\centering \vfill \includegraphics[width=5in, height=3in]{Model1Active0yrs.png} ...


1

When you process your example document you'll receive several warnings; the second one is something like the following: Package caption Warning: `\label` without proper `\caption` on input line 10. See the `caption` package documentation for explanation. which suggests that you had the \label for the subfigure in the wrong position (in fact, it was ...


1

As far as I can tell from your write-up, you don't require any of the capabilities of the subfig package; you simply have one figure that shows two images, right? If that's the case, just leave off the \subfig wrappers and state the widths of the graphs as fractions of the overall text width, rather than as a fraction of the original design size. Separately, ...


1

You don't have to specify the drivers specifically as most compilers detect them by themselves. Hence remove [dvips] option from \usepackage[dvips]{color}. Then things work. Also you can use width key of \includegraphics to change the width. \documentclass[preprint, 3p, number]{elsarticle} \usepackage{color} \usepackage{graphicx} \usepackage{subfig} ...


1

Hi I have a similar problem. I tried the \fbox{} command and I can see that the extra space is not caused by the white pace around the graphics. I included a picture of my result. Basically there is too much space between the bottom of the figure caption and the text. This is the first time posting on a Latex forum, so I'm not exactly sure what I can/should ...


1

Page 150-167 of the Publication Manual of the American Psychological Association, 6th Edition has a detailed description of how figures should be displayed, and what they should convey. Here are two quotes from the book that should help you: pg 152-153: A good figure augments rather than duplicates the text, is easy to read-its elements (type, ...


1

You can use \vspace{...} like \documentclass{article} \usepackage{subcaption} \usepackage{tikz} \begin{document} \begin{figure} \begin{subfigure}{\textwidth} \centering \begin{tikzpicture}[scale=1] \draw (0,0) rectangle (2,2); \end{tikzpicture} \caption{...} \end{subfigure} \vspace{2ex} \begin{subfigure}{\textwidth} \centering ...


1

I have copied this from p48 of the subfig package manual, in the FAQ section: 6.9 “I want my sub-floats to be ordered by column rather than by row, how do I do that?” The following example shows a schematic for laying out six sub-floats in column order. The only problem with this approach is that, if the floats and their respective captions ...


1

You can arrange the content inside a tabular or a minipage: \documentclass{memoir} \usepackage{graphicx,float} \newsubfloat{figure} \newcommand{\tabstrut}{\rule{0pt}{\dimexpr.7\baselineskip+6pt}} \begin{document} \begin{figure}[H] \centering \begin{tabular}{c} \subbottom[QMF ...


1

Below I present two possibilities; in the first one, the object is treated as a floating object; in the second one, the object is static. One option using a minipage inside the figure environment; the minipage has fixed height equal to \textheight; the object is treated as a float: \documentclass{article} \usepackage{showframe} \usepackage{subfig} ...


1

I don't use the floatrow package, so I can't help here, but maybe a solution with only subcaption would be fine for you: % arara: pdflatex \documentclass{article} \usepackage{subcaption} \usepackage{graphicx} \begin{document} Here is Figure \ref{fig:test}: % \begin{figure}[h!] \centering \caption{Caption that is missing.}\label{fig:test} ...



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