Tag Info

Hot answers tagged

5

Three options: Using a tabular* of width equal to \textwidth and m{<length>} columns. Using the adjustbox package. Boxing one of the images to measure its height (this assumes all four images have the same height). In all three cases the labels are placed inside a \rotatebox. The code: \documentclass{article} ...


4

Try this config file: \Preamble{xhtml} \Configure{@HEAD}{\HCode{<link href="basic.css" rel="stylesheet" type="text/css" />\Hnewline}} \DeclareGraphicsRule{.png}{bmp}{.xbb}{} \ConfigureEnv{figure} {\ifvmode\IgnorePar\fi\EndP\HCode{<div class="figure"\Hnewline>}% \bgroup \Configure{float}{\ShowPar}{}{}% } {\egroup ...


3

The \label must go after or inside the \caption command. It cannot be placed before. This is because \caption increments the relevant counter, which is what \label hooks onto. If you put the \label first, there is nothing onto which it might hook. For example, turning your code into a (semi-)Minimal Working Example by adding a preamble and substituting ...


3

Here is a solution \documentclass{article} \usepackage{subfig} \usepackage{graphicx} \begin{document} \begin{figure*} \centering \subfloat[]{\includegraphics[width =\linewidth]{example-image}} \subfloat[]{\includegraphics[width =\linewidth]{example-image}} \subfloat[]{\includegraphics[width =.3\linewidth]{example-image}} ...


3

Many options are available for placing two figures side-by-side. See this question and the answers therein, for example. Here is a solution using the the subfig package: \documentclass[12pt,a4paper]{article} \usepackage[demo]{graphicx} \usepackage[margin=1in,showframe]{geometry} \usepackage{subfig} \renewcommand{\thesubfigure}{Figure \arabic{subfigure}} ...


3

If you don't want the subfigure captions to show up in the \listoffigures and you can remember the alphabet, you can use: \documentclass{article} \usepackage{mwe}% for images only \begin{document} \begin{figure} \centering \includegraphics[width=0.32\linewidth]{example-image} \includegraphics[width=0.32\linewidth]{example-image} ...


3

Here's one option implementing your "L" shape idea for the longer caption: The code: \documentclass{article} \usepackage{graphicx} \usepackage{caption} \usepackage{subcaption} \begin{document} \begin{figure} \centering \begin{subfigure}[t]{0.65\textwidth} \includegraphics[width=\textwidth]{example-image-a} \caption{Lorem ipsum dolor sit amet, ...


2

Obvious your picture is to wide to be fit in text width. See comparison: As you can see, figures b and c overlap. What to do: 1. enlarge (locally text width for example with help of package changepage. With \adjustwidth}{<leftmargin>}{<rightmargin>} <your figures> \end{adjustwidth} redesign your second and third figures so, that ...


2

\phantomsubcaption seems to work fine here. \documentclass{revtex4-1} \usepackage{subcaption} \usepackage{graphicx} \begin{document} \begin{figure} \centering{\phantomsubcaption\label{sub1}\phantomsubcaption\label{sub2}} \includegraphics[width=0.5\linewidth]{example-image-a} \caption{\subref{sub1} shows this, \subref{sub2} shows that.} \label{fig} ...


2

Two options: Using some tabulars for each layer and the subcaption package: The code: \documentclass{article} \usepackage{subcaption} \usepackage{graphicx} \begin{document} \begin{figure} \begin{minipage}{\linewidth} \centering \begin{tabular}{ccc} \includegraphics[width=.28\linewidth,height=1cm]{example-image-a} & ...


1

One option is to use a tabular with two columns of type m{<length>} (requires the array package) with centered content. The first column for the 2x2 array of images and the second column for the colorbar. A little example illustrating this approach (adjust the settings according to your needs): \documentclass{article} \usepackage{graphicx} ...


1

Without specifying coordinates for pspicture it uses 10cm x 10cm! However, package subfigure is obsolete, usesubfig` instead: \documentclass[12pt]{article} \usepackage[utf8]{inputenc} \usepackage[frenchb]{babel} \usepackage{subfig} \usepackage{pstricks} \begin{document} \begin{figure*} \centering \subfloat[]{% \centering ...



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