# Tag Info

1

The syntax of the \subfloat command you tried to use in your original code does not match the syntax that is edfined in the subfig or the subcaption package. Based on your comment "No package (s) " I assume, you actually did not include either subfig or subcaption in your document. Without one of the two packages, you should recieve Undefined ...

1

Each posterbox is a box. You cannot put floating environments like figure and table into boxes. The solution is to make a fake figure environment using \setcaptiontype{figure} from the subcaption package. Note you need to change \usepackage{caption} to usepackage{subcaption} in the preamble. Subfloat then works as intended. You can revert to using \caption ...

0

For whom might end up here looking for an answer Note that revtex provides the commads \onecolumngrid and \twocolumngrid. From my experience they help dealing with floats that require two columns. Here is possible solution that at least takes it close to the justified option: \documentclass[reprint,amsmath,amssymb,aps,prd]{revtex4-1} % \documentclass{article}...

0

phantomsubcaption works in revtex but it will mess up the caption formatting. I found an elegant solution. You can find it in this answer.

2

Yes, just place two images in each \subcaptionbox. \documentclass{article} \usepackage[demo]{graphicx} % the demo option replace images with black boxes \usepackage{subcaption} \begin{document} \begin{figure} \centering \subcaptionbox{image 1 and 2}% {\includegraphics{image1.png}\hspace{0.5cm}\includegraphics{image2.png}}% \bigskip \...

0

You will get the two subfigures stacked vertically with the code you present, because the space after the first \end{subfigure} allows for a line break. However, a blank line and some additional vertical space will provide some separation. In the code I had to add height=8cm in order to not exceed the page dimensions. Your images are probably much less tall. ...

1

\documentclass[twocolumn]{article} \usepackage[demo]{graphicx} % do not use demo option in actual document. \usepackage{subcaption} \begin{document} \begin{figure*}[!h] \centering \begin{subfigure}[b]{0.48\textwidth} \includegraphics[width=1.0\linewidth]{figure.png} \caption{Caption 1} \label{fig:fig1} \end{subfigure} % \begin{subtable}[b]{0....

0

If you are already using the cleveref package and wish to only print the numbers of the references, you can use the \labelcref command to accomplish this. \labelcref{fig1,fig2,fig3} which will result in 1a to 1c

0

Here is my suggestion using the subcaption package: \documentclass[twocolumn]{article} \usepackage[demo]{graphicx} % do not use the demo option in actual document \usepackage{subcaption} \begin{document} \begin{figure*} \begin{subfigure}{0.6\textwidth} \captionsetup[subfigure]{labelformat=simple} \begin{subfigure}{0.5\textwidth} \renewcommand\...

1

this is not really related to tagging you get the same from \documentclass{article} \usepackage{subcaption} \usepackage{graphicx} \begin{document} \begin{figure}[!htbp] \begin{subfigure}[b]{0.50\textwidth} \includegraphics[width=3cm]{example-image-a.pdf} \end{subfigure} \begin{subfigure}[b]{0.35\textwidth} {} \...

Top 50 recent answers are included