- Improve bigfloat behavior.
- Add Hyphenation package. - Make margin figure caption ragged right/left depending on page.
This commit is contained in:
@@ -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}%
|
||||
|
||||
Reference in New Issue
Block a user