diff --git a/content.org b/content.org index 1583abc..02add99 100644 --- a/content.org +++ b/content.org @@ -3141,7 +3141,7 @@ CLOSED: [2025-02-15 Sat 19:32] :ID: d036f9e0-a55d-41a6-a884-8c377b50caf4 :END: -I'm in the process of writing a paper at the moment (yay!). Merrily I +I'm in the process of writing a paper (yay!). Merrily I add a formula here a plot there; but my supervisor zeroes in immediately on a two-panel figure with sub figures called "a" and "b" saying: @@ -3176,7 +3176,7 @@ generate use labels to reference them. #+begin_src latex :tangle site/static/tex/poormanssubfig.sty \newcounter{subfigure} #+end_src -Now there comes the meat! The ~multifig~ environment resets the +The ~multifig~ environment resets the subfigure counter[fn::Which could also have been accomplished by an argument to ~\newcounter~.], and redefines the ~\thesubfigure~ macro to display references to the subfigure as ~[Figure Number] ([figure @@ -3196,13 +3196,13 @@ is printed and formatted. {\addtocounter{figure}{-1}} #+end_src -Now the hackery begins. We define an internal variables ~\if@insubfig~ -whose use will become clear later. The subfigure environment takes two -arguments, the first one being the width of the subfigure and the -second being an optional label string (it's also where you put -~\label{[label]}~). The environment then creates a minipage with the -appropriate width and prints the label of the figure in the top-left -corner. +This is the point where the real hackery begins. We define an internal +variables ~\if@insubfig~ whose use will become clear later. The +subfigure environment takes two arguments, the first one being the +width of the subfigure and the second being an optional label string +(it's also where you put ~\label{[label]}~). The environment then +creates a minipage with the appropriate width and prints the label of +the figure in the top-left corner. #+begin_src latex :tangle site/static/tex/poormanssubfig.sty \makeatletter \ExplSyntaxOn diff --git a/site/content/posts/subfigures-in-revtex.md b/site/content/posts/subfigures-in-revtex.md index e41f85a..6fba7d6 100644 --- a/site/content/posts/subfigures-in-revtex.md +++ b/site/content/posts/subfigures-in-revtex.md @@ -7,7 +7,7 @@ categories = ["Hacks"] draft = false +++ -I'm in the process of writing a paper at the moment (yay!). Merrily I +I'm in the process of writing a paper (yay!). Merrily I add a formula here a plot there; but my supervisor zeroes in immediately on a two-panel figure with sub figures called "a" and "b" saying: @@ -46,7 +46,7 @@ generate use labels to reference them. \newcounter{subfigure} ``` -Now there comes the meat! The `multifig` environment resets the +The `multifig` environment resets the subfigure counter[^fn:1], and redefines the `\thesubfigure` macro to display references to the subfigure as `[Figure Number] ([figure sublabel])`. The environment temporarily increases the Figure counter @@ -66,13 +66,13 @@ is printed and formatted. {\addtocounter{figure}{-1}} ``` -Now the hackery begins. We define an internal variables `\if@insubfig` -whose use will become clear later. The subfigure environment takes two -arguments, the first one being the width of the subfigure and the -second being an optional label string (it's also where you put -`\label{[label]}`). The environment then creates a minipage with the -appropriate width and prints the label of the figure in the top-left -corner. +This is the point where the real hackery begins. We define an internal +variables `\if@insubfig` whose use will become clear later. The +subfigure environment takes two arguments, the first one being the +width of the subfigure and the second being an optional label string +(it's also where you put `\label{[label]}`). The environment then +creates a minipage with the appropriate width and prints the label of +the figure in the top-left corner. ```latex \makeatletter