diff options
author | Akira Yokosawa <akiyks@gmail.com> | 2023-07-07 21:05:17 +0900 |
---|---|---|
committer | Paul E. McKenney <paulmck@kernel.org> | 2023-07-07 09:29:10 -0700 |
commit | 1063ddafb476eea8bf847641846f6cbc533081d0 (patch) | |
tree | de115ca6666e9d88ac5602e2d610cb5bf3a2f7a3 | |
parent | f78aed35958ba9e0e90df68574be2c7cc40c1396 (diff) | |
download | perfbook-1063ddafb476eea8bf847641846f6cbc533081d0.tar.gz |
Get rid of 'twocolumn' option in \documentclass
There is a lingering warning from the multicol package (indirectly
required by the idxlayout package) which reads:
Package multicol Warning: May not work with the twocolumn
option on input line 143.
This is due to the twocolumn option in \documentclass at the top
of preamble.
It turns out that it can be removed with minor tweaks.
One is the setting of \twocolumnwidth using \columnwidth for
2c builds. Column width set by geometry becomes accessible after
\begin{document}. Previously, the twocolumn option at
\documentclass permitted its use in the middle of preamble.
Instead, always set it using the value of 3.125in.
Another is the use of \sloppy. It is implied in the book class
when the twocolumn option is specified. Its effect is to prefer
wide inter-word white spaces to horizontal overfulls.
For perfbook, \sloppy is used explicitly for eb builds.
Do the same for 2c builds.
For 1c builds, as they have wider margins, occasional overfulls
should look better than wide inter-word spaces.
Get rid of the warning by removing the twocolumn option and applying
those minor tweaks.
Signed-off-by: Akira Yokosawa <akiyks@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
-rw-r--r-- | perfbook-lt.tex | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/perfbook-lt.tex b/perfbook-lt.tex index 61b7a3b3..af60f6f2 100644 --- a/perfbook-lt.tex +++ b/perfbook-lt.tex @@ -1,4 +1,4 @@ -\documentclass[10pt,twocolumn,letterpaper]{pfbook} % book class customized for perfbook +\documentclass[10pt,letterpaper]{pfbook} % book class customized for perfbook % For arxiv.org, must be on or before line 5: \pdfoutput=1 @@ -464,8 +464,8 @@ \newlength{\twocolumnwidth} \newlength{\onecolumntextwidth} \setlength{\onecolumntextwidth}{4.75in} +\setlength{\twocolumnwidth}{3.125in} \IfTwoColumn{ - \setlength{\twocolumnwidth}{\columnwidth} \renewcommand\floatpagefraction{.75} \IfHardCover{ \usepackage[papersize={8.25in,10.75in},body={6.5in,8.25in},twocolumn,columnsep=0.25in]{geometry} @@ -473,14 +473,15 @@ \IfAfourPaper{ \usepackage[a4paper,body={6.5in,8.25in},twocolumn,columnsep=0.25in]{geometry} }{ - \usepackage[letterpaper,body={6.5in,8.25in},twocolumn,columnsep=0.25in]{geometry} -}}}{ % One Column - \setlength{\twocolumnwidth}{3.125in} + \usepackage[letterpaper,body={6.5in,8.25in},twocolumn,columnsep=0.25in]{geometry} + }} + \sloppy % prefer wide inter-word spaces to occasional horizontal overfulls +}{ % One Column \IfEbookSize { % From https://tex.stackexchange.com/questions/16735/latex-options-for-kindle \usepackage[papersize={4.5in,6.3in},margin=0.2in,footskip=0.2in, headsep=0.0335in,headheight=0.1665in,onecolumn,twoside=false]{geometry} - \sloppy + \sloppy % prefer wide inter-word spaces to occasional horizontal overfulls \setlength{\onecolumntextwidth}{4.1in} \usepackage{fancyhdr} \fancypagestyle{plain}{% |