poor-mans-subfigure/README.md

44 lines
1.4 KiB
Markdown
Raw Permalink Normal View History

2025-02-22 14:52:11 -05:00
# A Poor Man's Subfigure for REVTeX
2025-02-22 14:46:57 -05:00
2025-02-22 14:54:04 -05:00
A subfigure package that works with REVTeX. See also [my blog
post](https://protagon.space/2025/02/subfigures-in-revtex/) on the
matter.
2025-02-22 14:52:11 -05:00
## Installation
To use, simply put the
`.sty` file somewhere where `TeX` will find it, such as next to you
`.tex` file.
## Usage
```TeX
\begin{figure*}
\begin{multifig}
\begin{subfigure}{\columnwidth}{\label{subfig:descriptive-label}Some
text label.}
\begin{center}
\includegraphics[width=.8\columnwidth]{example-image-a}
\end{center}
\end{subfigure}
\begin{subfigure}{\columnwidth}{\label{subfig:another-descriptive-label}Another
text label.}
\begin{center}
\includegraphics[width=.8\columnwidth]{example-image-b}
\end{center}
\end{subfigure}
\end{multifig}
\caption{\label{fig:beautiful-figures}As the discerning eye may have
spied, the figures \subref{subfig:descriptive-label} and
\subref{subfig:another-descriptive-label} have the potential to
rock the foundations of society.}
\end{figure*}
Total nonsense, but I couldn't think of anything better to demonstrate
Figure \ref{subfig:descriptive-label} and \ref{subfig:another-descriptive-label}.
```
2025-02-22 14:54:04 -05:00
This produces the below result...
2025-02-22 14:52:11 -05:00
![The resulting figure](.resources/screenshot.png)
2025-02-22 14:54:04 -05:00
… and references in the text look like
![inline references](.resources/inline.png)