pfmc-assessments / sa4ss

Generate a stock assessment document from Stock Synthesis output
https://pfmc-assessments.github.io/sa4ss/
Other
12 stars 7 forks source link

Using \jobname for control rules #62

Open kellijohnson-NOAA opened 2 years ago

kellijohnson-NOAA commented 2 years ago

Problem

Working with multiple areas is slightly difficult and led to lots of if statements or duplicated text. For example, with lingcod it was hard to get the asis engine to print text in an existing paragraph.

Proposal

I recently came across a great example of the \jobname operator in LaTeX at https://latexref.xyz/Jobname.html in combination with a LaTeX if statement.

If a democracy is just a regime where citizens vote then
all banana republics \IfBeginWith*{\jobname}{my-doc}%
{\footnote{Including Respublica Bananensis Francorum.}}{} are
democracies.

:cucumber: