Rewrite Float commands in Latex3 and move them to new Floats package.
This commit is contained in:
@@ -21,11 +21,20 @@
|
||||
style verso outer = {\RaggedLeft\small\color{marginText}},
|
||||
}
|
||||
|
||||
\NewDocumentCommand{\MarginHyperSetup}{}{
|
||||
\ifthenelse{\boolean{isElectronic}}{
|
||||
\hypersetup{allcolors = link}
|
||||
}{
|
||||
\hypersetup{allcolors = marginText}
|
||||
}
|
||||
}
|
||||
|
||||
% Put a glossary definition in a margin paragraph.
|
||||
\NewDocumentCommand{\mdef}{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%
|
||||
\strong{\Glsentryname{#2}:} % Create the title of the margin note.
|
||||
\glsdesc*{#2}% Create the text of the margin note.
|
||||
}%
|
||||
@@ -47,6 +56,7 @@
|
||||
\NewDocumentCommand{\mnote}{O{} +m}{%
|
||||
\footnotemark%
|
||||
\marginalia[#1]{%
|
||||
\MarginHyperSetup%
|
||||
\footnotemark[\value{footnote}]#2%
|
||||
}%
|
||||
}
|
||||
@@ -68,6 +78,7 @@
|
||||
% following paragraph and is vertically aligned with it.
|
||||
\strut%
|
||||
\marginalia{%
|
||||
\MarginHyperSetup%
|
||||
\captionsetup{%
|
||||
type = figure,%
|
||||
justification = RaggedOutside,%
|
||||
|
||||
Reference in New Issue
Block a user