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
|
||||
: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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue