diff options
author | Ulrich Müller <ulm@gentoo.org> | 2012-09-15 14:42:33 +0200 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2012-09-16 23:12:25 +0200 |
commit | a460436e1722831d36d9316de853a529c74a7929 (patch) | |
tree | 2661f85beef3dd1835f4662ebc17a2a89183e6b1 /pms.cls | |
parent | Suppress spurious space in output of \featurelabel. (diff) | |
download | pms-a460436e1722831d36d9316de853a529c74a7929.tar.gz pms-a460436e1722831d36d9316de853a529c74a7929.tar.bz2 pms-a460436e1722831d36d9316de853a529c74a7929.zip |
Tune LaTeX formatting to suppress overfull boxes in output.
- Change teletype font from Courier to Computer Modern Typewriter which
is narrower.
- Be more tolerant when formatting paragraphs, to avoid overfull boxes.
Do this by increasing \tolerance, \hfuzz, and \emergencystretch.
- Allow line breaks after underscores (but with a large penalty).
- The second column of the "defined variables" table was too narrow.
- Increase the width of margin notes to 40 mm (was about 33 mm before).
- Rename the two longest featurelabels (profile-iuse-injection and
controllable-compress) because they still didn't fit into the margin.
- I'd rather have avoided explicit \allowbreak commands, but in very few
cases there is no other way.
Diffstat (limited to 'pms.cls')
-rw-r--r-- | pms.cls | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -55,7 +55,6 @@ \ifx\HCode\undefined \RequirePackage{% mathptmx, - courier, pdfpages % Insert whole PDF documents as separate pages } \RequirePackage[scaled=.90]{helvet} @@ -94,6 +93,11 @@ \newcommand{\e}[1]{\emph{#1}} \newcommand{\note}[1]{\paragraph{Note:} #1} +% Allow line breaks after underscores (but with a large penalty) +\newcommand{\origunderscore}{} +\let\origunderscore\_ +\renewcommand{\_}{\origunderscore\penalty500\hskip0pt} + % Because we are lazy, we define a table environment to fulfil our needs \newenvironment{centertable}[1]% { @@ -109,6 +113,11 @@ \renewcommand*{\l@figure}{\@dottedtocline{1}{1.5em}{2.8em}} % was 2.3em \let\l@table\l@figure +% Be more tolerant when formatting paragraphs, to avoid overfull boxes +\tolerance=400 % was 200 +\setlength\hfuzz{0.2pt} % was 0.1pt +\setlength\emergencystretch{1em} % was 0 + % Define some PDF meta-data. % tex4ht workaround: this needs to happen after loading hyperref \g@addto@macro\@documentclasshook{ @@ -137,6 +146,7 @@ % and then move it 30mm to the left to increase the right (outer) % margin. \areaset[-30mm]{400pt}{700pt} +\setlength{\marginparwidth}{40mm} % To find everywhere that needs updating when we add an EAPI \newcommand{\CurrentEAPIIs}[1]{\def\TheCurrentEAPI{#1}} |