summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2024-05-12 20:23:38 +0200
committerUlrich Müller <ulm@gentoo.org>2024-05-28 20:03:50 +0200
commit8f72b3b4a4c45c59e3d1ea7a1fff225cb827f344 (patch)
tree29de818902c686d6576a051158c9f3d37d9b9ed2
parentRevert "pms.cls: Require version 1 of parskip.sty" (diff)
downloadpms-8f72b3b4a4c45c59e3d1ea7a1fff225cb827f344.tar.gz
pms-8f72b3b4a4c45c59e3d1ea7a1fff225cb827f344.tar.bz2
pms-8f72b3b4a4c45c59e3d1ea7a1fff225cb827f344.zip
pms.cls: Slightly decrease textheight
Also make it a multiple of 12pt (= \baselineskip). Automatically calculate the width of the last column in the big variables table. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
-rw-r--r--ebuild-env-vars.tex7
-rw-r--r--pms.cls3
2 files changed, 6 insertions, 4 deletions
diff --git a/ebuild-env-vars.tex b/ebuild-env-vars.tex
index 268cb3f..ecc20b6 100644
--- a/ebuild-env-vars.tex
+++ b/ebuild-env-vars.tex
@@ -21,9 +21,10 @@ inconsistent variable.
\reversemarginpar
% Workaround for broken marginnote positioning in lscape environment
\addtolength{\marginparsep}{-\textwidth} % FIXME
-\setlength{\LTleft}{0pt plus 1fil}
-\setlength{\LTright}{0pt plus 1fil}
-\begin{longtable}{!{\extracolsep{\fill}} l P{7.5em} l p{35em}}
+\newlength{\mycolwidth}
+\setlength{\mycolwidth}{\linewidth-8\tabcolsep
+ -\widthof{\t{REPLACED_BY_VERSION}}-7em-\widthof{\textbf{Consistent?}}}
+\begin{longtable}{l P{7em} l p{\mycolwidth}}
\caption{Defined variables\label{tab:defined-vars}}\\
\toprule
\multicolumn{1}{c}{\textbf{Variable}} &
diff --git a/pms.cls b/pms.cls
index a3e3ea5..c8c6101 100644
--- a/pms.cls
+++ b/pms.cls
@@ -15,7 +15,7 @@
\PassOptionsToPackage{orig,english}{isodate}
% Dimensions of the text area. Define a narrow left margin to make
% room for margin notes in the right (outer) margin
-\PassOptionsToPackage{textwidth=400pt,textheight=700pt,
+\PassOptionsToPackage{textwidth=400pt,textheight=684pt,
left=20mm,marginparsep=10pt,marginparwidth=40mm,
vmarginratio=1:2,includehead}{geometry}
% Enable UTF-8 input encoding
@@ -36,6 +36,7 @@
inputenc, % Allow input methods apart from ASCII
booktabs, % Nicer formatting of tables
ifthen, % Comfortable conditional routines
+ calc, % Infix notation arithmetic
longtable, % Extend tables over more than one page
array, % Extended tabular environments
lscape, % Rotating pages