- Add reference to underscore package.
- Increase monospace font weight. - Add command for the most recent footnote number.
This commit is contained in:
@@ -60,6 +60,8 @@
|
|||||||
|
|
||||||
\RequirePackage{tikz}
|
\RequirePackage{tikz}
|
||||||
|
|
||||||
|
\RequirePackage{underscore}
|
||||||
|
|
||||||
\RequirePackage{wrapstuff}
|
\RequirePackage{wrapstuff}
|
||||||
|
|
||||||
% Color import and definition
|
% Color import and definition
|
||||||
|
|||||||
@@ -32,7 +32,7 @@
|
|||||||
|
|
||||||
luaotfload.add_fallback(
|
luaotfload.add_fallback(
|
||||||
"RobotoMono", {
|
"RobotoMono", {
|
||||||
"NotoMono:mode=harf;",
|
"NotoMono-Medium:mode=harf;",
|
||||||
"NotoSansSymbols-SemiBold:mode=harf;",
|
"NotoSansSymbols-SemiBold:mode=harf;",
|
||||||
"NotoSansSymbols2:mode=harf;",
|
"NotoSansSymbols2:mode=harf;",
|
||||||
"NotoEmoji:mode=harf;",
|
"NotoEmoji:mode=harf;",
|
||||||
@@ -74,9 +74,9 @@
|
|||||||
% Monospace font: Roboto Mono
|
% Monospace font: Roboto Mono
|
||||||
\setmonofont{RobotoMono}[
|
\setmonofont{RobotoMono}[
|
||||||
Extension = .ttf,
|
Extension = .ttf,
|
||||||
UprightFont = *-Regular,
|
UprightFont = *-Medium,
|
||||||
BoldFont = *-Bold,
|
BoldFont = *-Bold,
|
||||||
ItalicFont = *-Italic,
|
ItalicFont = *-MediumItalic,
|
||||||
BoldItalicFont = *-BoldItalic,
|
BoldItalicFont = *-BoldItalic,
|
||||||
RawFeature = {fallback=RobotoMono},
|
RawFeature = {fallback=RobotoMono},
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -30,35 +30,39 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
% Put a glossary definition in a margin paragraph.
|
% 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.
|
\index{\glsentryname{#2}}% Add a reference to this in the index.
|
||||||
\strong{#3{#2}}% This is the text that appears on the page.
|
\strong{#3{#2}}% This is the text that appears on the page.
|
||||||
\marginalia[#1]{%
|
\marginalia[#1]{
|
||||||
\MarginHyperSetup%
|
\MarginHyperSetup
|
||||||
\strong{\Glsentryname{#2}:}% Create the title of the margin note.
|
\strong{\Glsentryname{#2}:}% Create the title of the margin note.
|
||||||
\enspace\glsdesc*{#2}% Create the text of the margin note.
|
\enspace\glsdesc*{#2}% Create the text of the margin note.
|
||||||
}%
|
}
|
||||||
}
|
}
|
||||||
\NewDocumentCommand{\MarginDef}{O{} m}{%
|
\NewDocumentCommand{\MarginDef}{O{} m}{
|
||||||
\@MarginDef[#1]{#2}{\gls}%
|
\@MarginDef[#1]{#2}{\gls}
|
||||||
}
|
}
|
||||||
\NewDocumentCommand{\MarginDefCap}{O{} m}{%
|
\NewDocumentCommand{\MarginDefCap}{O{} m}{
|
||||||
\@MarginDef[#1]{#2}{\Gls}%
|
\@MarginDef[#1]{#2}{\Gls}
|
||||||
}
|
}
|
||||||
\NewDocumentCommand{\MarginDefPl}{O{} m}{%
|
\NewDocumentCommand{\MarginDefPl}{O{} m}{
|
||||||
\@MarginDef[#1]{#2}{\glspl}%
|
\@MarginDef[#1]{#2}{\glspl}
|
||||||
}
|
}
|
||||||
\NewDocumentCommand{\MarginDefCapPl}{O{} m}{%
|
\NewDocumentCommand{\MarginDefCapPl}{O{} m}{
|
||||||
\@MarginDef[#1]{#2}{\Glspl}%
|
\@MarginDef[#1]{#2}{\Glspl}
|
||||||
|
}
|
||||||
|
|
||||||
|
\NewDocumentCommand{\lastfootnotemark}{}{
|
||||||
|
\footnotemark[\value{footnote}]
|
||||||
}
|
}
|
||||||
|
|
||||||
% Put a footnote in a margin paragraph.
|
% Put a footnote in a margin paragraph.
|
||||||
\NewDocumentCommand{\MarginNote}{O{} +m}{%
|
\NewDocumentCommand{\MarginNote}{O{} +m}{
|
||||||
\footnotemark%
|
\footnotemark
|
||||||
\marginalia[#1]{%
|
\marginalia[#1]{
|
||||||
\MarginHyperSetup%
|
\MarginHyperSetup
|
||||||
\footnotemark[\value{footnote}]#2%
|
\footnotemark[\value{footnote}]#2
|
||||||
}%
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
% Wrapper for \marginalia with some improvements.
|
% Wrapper for \marginalia with some improvements.
|
||||||
|
|||||||
Reference in New Issue
Block a user