mirror of
https://github.com/vale981/website
synced 2025-03-04 09:01:41 -05:00
some revisions
This commit is contained in:
parent
2b225c1041
commit
feb4d4f7a1
2 changed files with 18 additions and 18 deletions
18
content.org
18
content.org
|
@ -3141,7 +3141,7 @@ CLOSED: [2025-02-15 Sat 19:32]
|
||||||
:ID: d036f9e0-a55d-41a6-a884-8c377b50caf4
|
:ID: d036f9e0-a55d-41a6-a884-8c377b50caf4
|
||||||
:END:
|
: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
|
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"
|
immediately on a two-panel figure with sub figures called "a" and "b"
|
||||||
saying:
|
saying:
|
||||||
|
@ -3176,7 +3176,7 @@ generate use labels to reference them.
|
||||||
#+begin_src latex :tangle site/static/tex/poormanssubfig.sty
|
#+begin_src latex :tangle site/static/tex/poormanssubfig.sty
|
||||||
\newcounter{subfigure}
|
\newcounter{subfigure}
|
||||||
#+end_src
|
#+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
|
subfigure counter[fn::Which could also have been accomplished by an
|
||||||
argument to ~\newcounter~.], and redefines the ~\thesubfigure~ macro to
|
argument to ~\newcounter~.], and redefines the ~\thesubfigure~ macro to
|
||||||
display references to the subfigure as ~[Figure Number] ([figure
|
display references to the subfigure as ~[Figure Number] ([figure
|
||||||
|
@ -3196,13 +3196,13 @@ is printed and formatted.
|
||||||
{\addtocounter{figure}{-1}}
|
{\addtocounter{figure}{-1}}
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
Now the hackery begins. We define an internal variables ~\if@insubfig~
|
This is the point where the real hackery begins. We define an internal
|
||||||
whose use will become clear later. The subfigure environment takes two
|
variables ~\if@insubfig~ whose use will become clear later. The
|
||||||
arguments, the first one being the width of the subfigure and the
|
subfigure environment takes two arguments, the first one being the
|
||||||
second being an optional label string (it's also where you put
|
width of the subfigure and the second being an optional label string
|
||||||
~\label{[label]}~). The environment then creates a minipage with the
|
(it's also where you put ~\label{[label]}~). The environment then
|
||||||
appropriate width and prints the label of the figure in the top-left
|
creates a minipage with the appropriate width and prints the label of
|
||||||
corner.
|
the figure in the top-left corner.
|
||||||
#+begin_src latex :tangle site/static/tex/poormanssubfig.sty
|
#+begin_src latex :tangle site/static/tex/poormanssubfig.sty
|
||||||
\makeatletter
|
\makeatletter
|
||||||
\ExplSyntaxOn
|
\ExplSyntaxOn
|
||||||
|
|
|
@ -7,7 +7,7 @@ categories = ["Hacks"]
|
||||||
draft = false
|
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
|
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"
|
immediately on a two-panel figure with sub figures called "a" and "b"
|
||||||
saying:
|
saying:
|
||||||
|
@ -46,7 +46,7 @@ generate use labels to reference them.
|
||||||
\newcounter{subfigure}
|
\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
|
subfigure counter[^fn:1], and redefines the `\thesubfigure` macro to
|
||||||
display references to the subfigure as `[Figure Number] ([figure
|
display references to the subfigure as `[Figure Number] ([figure
|
||||||
sublabel])`. The environment temporarily increases the Figure counter
|
sublabel])`. The environment temporarily increases the Figure counter
|
||||||
|
@ -66,13 +66,13 @@ is printed and formatted.
|
||||||
{\addtocounter{figure}{-1}}
|
{\addtocounter{figure}{-1}}
|
||||||
```
|
```
|
||||||
|
|
||||||
Now the hackery begins. We define an internal variables `\if@insubfig`
|
This is the point where the real hackery begins. We define an internal
|
||||||
whose use will become clear later. The subfigure environment takes two
|
variables `\if@insubfig` whose use will become clear later. The
|
||||||
arguments, the first one being the width of the subfigure and the
|
subfigure environment takes two arguments, the first one being the
|
||||||
second being an optional label string (it's also where you put
|
width of the subfigure and the second being an optional label string
|
||||||
`\label{[label]}`). The environment then creates a minipage with the
|
(it's also where you put `\label{[label]}`). The environment then
|
||||||
appropriate width and prints the label of the figure in the top-left
|
creates a minipage with the appropriate width and prints the label of
|
||||||
corner.
|
the figure in the top-left corner.
|
||||||
|
|
||||||
```latex
|
```latex
|
||||||
\makeatletter
|
\makeatletter
|
||||||
|
|
Loading…
Add table
Reference in a new issue