- Add reference to underscore package.

- Increase monospace font weight.
- Add command for the most recent footnote number.
This commit is contained in:
2025-10-20 16:19:00 -05:00
parent acbc1dd669
commit 193b6f4145
3 changed files with 27 additions and 21 deletions

View File

@@ -30,35 +30,39 @@
}
% Put a glossary definition in a margin paragraph.
\NewDocumentCommand{\@MarginDef}{O{} m m}{%
\NewDocumentCommand{\@MarginDef}{O{} m m}{
\index{\glsentryname{#2}}% Add a reference to this in the index.
\strong{#3{#2}}% This is the text that appears on the page.
\marginalia[#1]{%
\MarginHyperSetup%
\marginalia[#1]{
\MarginHyperSetup
\strong{\Glsentryname{#2}:}% Create the title of the margin note.
\enspace\glsdesc*{#2}% Create the text of the margin note.
}%
}
}
\NewDocumentCommand{\MarginDef}{O{} m}{%
\@MarginDef[#1]{#2}{\gls}%
\NewDocumentCommand{\MarginDef}{O{} m}{
\@MarginDef[#1]{#2}{\gls}
}
\NewDocumentCommand{\MarginDefCap}{O{} m}{%
\@MarginDef[#1]{#2}{\Gls}%
\NewDocumentCommand{\MarginDefCap}{O{} m}{
\@MarginDef[#1]{#2}{\Gls}
}
\NewDocumentCommand{\MarginDefPl}{O{} m}{%
\@MarginDef[#1]{#2}{\glspl}%
\NewDocumentCommand{\MarginDefPl}{O{} m}{
\@MarginDef[#1]{#2}{\glspl}
}
\NewDocumentCommand{\MarginDefCapPl}{O{} m}{%
\@MarginDef[#1]{#2}{\Glspl}%
\NewDocumentCommand{\MarginDefCapPl}{O{} m}{
\@MarginDef[#1]{#2}{\Glspl}
}
\NewDocumentCommand{\lastfootnotemark}{}{
\footnotemark[\value{footnote}]
}
% Put a footnote in a margin paragraph.
\NewDocumentCommand{\MarginNote}{O{} +m}{%
\footnotemark%
\marginalia[#1]{%
\MarginHyperSetup%
\footnotemark[\value{footnote}]#2%
}%
\NewDocumentCommand{\MarginNote}{O{} +m}{
\footnotemark
\marginalia[#1]{
\MarginHyperSetup
\footnotemark[\value{footnote}]#2
}
}
% Wrapper for \marginalia with some improvements.