Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
%% lifespan macros:
%% person environment:
\textbf{\theperson:~#1} \textit{\floruitoutput{person:\theperson}}\par%
\begin{person}{Old MacDonald}
Old MacDonald had a farm in \floruit{1923}, but appears to have sold it by \floruit{1940}.
\begin{person}{Gary Cooper}
Gary Cooper starred in High Noon (\floruit{1952})...
\begin{person}{John Doe}
Blah blah (\floruit{1912}), more blah (\floruit{1930}) \& finally blah (\floruit{1931}).
\begin{person}{Jane Doe}
No floruit here...
The floruit should be with the name like so:
\textbf{3: John Doe} \textit{fl. 1912--1931}\par
Blah blah (1912), more blah (1930) \& finally blah (1931).\par

This comment has been minimized.

Copy link

ghost commented Jan 5, 2017

In my opinion this is very nice -- I did not think of writing the full lifespan to the .aux file via zref. This is possible of course, but it will bite you if you need the 'from' or 'to' value separately (just in case?)


This comment has been minimized.

Copy link
Owner Author

mikkelee commented Jan 5, 2017

I renamed it to lifespan as I intend to add \born{} and \died{} macros too, which if present will then override and be used instead of any \floruits.

But good point on saving from/to! It's still pretty early going for this project, so they might end up needed after all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.