- Improve bigfloat behavior.
- Add Hyphenation package. - Make margin figure caption ragged right/left depending on page.
This commit is contained in:
45
Layout.sty
45
Layout.sty
@@ -10,30 +10,19 @@
|
||||
%#region
|
||||
\RequirePackage[pass]{geometry}
|
||||
\RequirePackage{calc}
|
||||
\RequirePackage{ifoddpage}
|
||||
\RequirePackage{changepage}
|
||||
|
||||
\newlength{\contentwidth}
|
||||
\setlength{\contentwidth}{\textwidth+\marginparsep+\marginparwidth}
|
||||
|
||||
\newlength{\bfFigureWidth}
|
||||
\newlength{\bfMarginOffset}
|
||||
\newcommand{\bigfloat}[2][1in]{%
|
||||
\setlength{\bfFigureWidth}{#1*-2+\paperwidth}%
|
||||
\checkoddpage%
|
||||
\ifoddpage%
|
||||
\setlength{\bfMarginOffset}{-1in+#1-\oddsidemargin}%
|
||||
\else%
|
||||
\setlength{\bfMarginOffset}{-1in+#1-\evensidemargin}%
|
||||
\fi%
|
||||
\begin{figure}[ht]%
|
||||
{\leavevmode%
|
||||
\put(\bfMarginOffset,0in){%
|
||||
\begin{minipage}{\bfFigureWidth}%
|
||||
#2%
|
||||
\end{minipage}%
|
||||
}%
|
||||
}%
|
||||
\end{figure}%
|
||||
\newcommand{\bigfloat}[3][1in]{%
|
||||
\begin{#2}[htp]%
|
||||
\begin{adjustwidth*}{-#1}{-#1}%
|
||||
\begin{minipage}{#1 * 2 + \textwidth}%
|
||||
#3%
|
||||
\end{minipage}%
|
||||
\end{adjustwidth*}%
|
||||
\end{#2}%
|
||||
}
|
||||
%#endregion
|
||||
|
||||
@@ -51,4 +40,18 @@
|
||||
%#region
|
||||
\setlength{\parindent}{0pt}
|
||||
\setlength{\parskip}{2ex plus 0.5ex minus 0.5ex}
|
||||
%#endregion
|
||||
%#endregion
|
||||
|
||||
\renewcommand{\topfraction}{0.9} % max fraction of floats at top
|
||||
\renewcommand{\bottomfraction}{0.8} % max fraction of floats at bottom
|
||||
% Parameters for TEXT pages (not float pages):
|
||||
\setcounter{topnumber}{2}
|
||||
\setcounter{bottomnumber}{2}
|
||||
\setcounter{totalnumber}{4} % 2 may work better
|
||||
\setcounter{dbltopnumber}{2} % for 2-column pages
|
||||
\renewcommand{\dbltopfraction}{0.9} % fit big float above 2-col. text
|
||||
\renewcommand{\textfraction}{0.07} % allow minimal text w. figs
|
||||
% Parameters for FLOAT pages (not text pages):
|
||||
\renewcommand{\floatpagefraction}{0.7} % require fuller float pages
|
||||
% N.B.: floatpagefraction MUST be less than topfraction !!
|
||||
\renewcommand{\dblfloatpagefraction}{0.7} % require fuller float pages
|
||||
Reference in New Issue
Block a user