- Improve bigfloat behavior.

- Add Hyphenation package.
- Make margin figure caption ragged right/left depending on page.
This commit is contained in:
Silcantar
2025-07-11 23:06:02 -05:00
parent 8dfaf66c18
commit c1f308ad19
5 changed files with 52 additions and 27 deletions

View File

@@ -35,14 +35,27 @@
}[#1]%
}
\RequirePackage{changepage}
\RequirePackage{ifthen}
\newcommand{\mfig}[5][0pt]{%
% This strut ensures that the margin figure is counted as part of the
% following paragraph and is vertically aligned with it.
\strut%
\marginnote{%
\captionsetup{%
type = figure,%
font = {color=marginTextColor},%
\checkoddpage%
\ifthenelse{\boolean{oddpage}}{%
\captionsetup{%
type = figure,%
font = {color=marginTextColor},%
justification = raggedright,%
}%
}{%
\captionsetup{%
type = figure,%
font = {color=marginTextColor},%
justification = raggedleft,%
}%
}%
{\centering#5{#2}\par}%
\captionof{figure}{#4}%