-
Notifications
You must be signed in to change notification settings - Fork 0
/
FloatSettings.tex
33 lines (27 loc) · 1.44 KB
/
FloatSettings.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
% These settings are from:
% http://mintaka.sdsu.edu/GF/bibliog/latex/floats.html
% They give LaTeX more options on where to put your figures, and may
% mean that fewer of your figures end up at the tops of pages far
% away from the thing they're related to.
% Alters some LaTeX defaults for better treatment of figures:
% See p.105 of "TeX Unbound" for suggested values.
% See pp. 199-200 of Lamport's "LaTeX" book for details.
% General parameters, for ALL pages:
\renewcommand{\topfraction}{1} % max fraction of floats at top
\renewcommand{\bottomfraction}{1} % 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.2} % allow minimal text w. figs (previously 0.07, DG change to 0.2 based on https://tex.stackexchange.com/questions/192622/is-there-a-value-for-textfraction-and-totalnumber-floatpagefraction-that-i-s)
% 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
% remember to use [htp] or [htpb] for placement,
% e.g.
% \begin{figure}[htp]
% ...
% \end{figure}