From 8f72b3b4a4c45c59e3d1ea7a1fff225cb827f344 Mon Sep 17 00:00:00 2001 From: Ulrich Müller Date: Sun, 12 May 2024 20:23:38 +0200 Subject: pms.cls: Slightly decrease textheight MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- ebuild-env-vars.tex | 7 ++++--- pms.cls | 3 ++- 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 -- cgit v1.2.3-65-gdbad