- add italic shape to slab font.

- add twinfig macro.
- add optional arguments to marginalia macros to be passed to the marginalia command.
This commit is contained in:
Silcantar
2025-08-06 22:42:05 -05:00
parent e0bad2e19b
commit 287c8fde8a
4 changed files with 54 additions and 23 deletions

View File

@@ -19,32 +19,32 @@
}
% Put a glossary definition in a margin paragraph.
\newcommand{\mdef}[2]{%
\index{\glsentryname{#1}}% Add a reference to this in the index.
\strong{#2{#1}}% This is the text that appears on the page.
\marginalia{%
\slab{\strong{\Glsentryname{#1}:}} % Create the title of the margin note.
\glsdesc*{#1}% Create the text of the margin note.
\newcommand{\mdef}[3][]{%
\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]{%
\strong{\Glsentryname{#2}:} % Create the title of the margin note.
\glsdesc*{#2}% Create the text of the margin note.
}%
}
\newcommand{\margindef}[1]{%
\mdef{#1}{\gls}%
\newcommand{\margindef}[2][]{%
\mdef[#1]{#2}{\gls}%
}
\newcommand{\Margindef}[1]{%
\mdef{#1}{\Gls}%
\newcommand{\Margindef}[2][]{%
\mdef[#1]{#2}{\Gls}%
}
\newcommand{\margindefpl}[1]{%
\mdef{#1}{\glspl}%
\newcommand{\margindefpl}[2][]{%
\mdef[#1]{#2}{\glspl}%
}
\newcommand{\Margindefpl}[1]{%
\mdef{#1}{\Glspl}%
\newcommand{\Margindefpl}[2][]{%
\mdef[#1]{#2}{\Glspl}%
}
% Put a footnote in a margin paragraph.
\newcommand{\mnote}[1]{%
\newcommand{\mnote}[2][]{%
\footnotemark%
\marginalia{%
\footnotemark[\value{footnote}]#1%
\marginalia[#1]{%
\footnotemark[\value{footnote}]#2%
}%
}