From 86bdfe73f488081e6abc9397693e35b400cfc6b6 Mon Sep 17 00:00:00 2001 From: Ulrich Müller Date: Thu, 3 Aug 2023 18:12:16 +0200 Subject: Reformat the footnotes in the env variables longtable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ulrich Müller --- ebuild-env-vars.tex | 12 ++++++++---- pms.cls | 3 +++ 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/ebuild-env-vars.tex b/ebuild-env-vars.tex index b8deb04..533936a 100644 --- a/ebuild-env-vars.tex +++ b/ebuild-env-vars.tex @@ -12,13 +12,17 @@ the various different \t{pkg_*} phases. Ebuilds must recalculate any variable th inconsistent variable. \begin{landscape} +% Reduce width of text area to make room for margin notes +\addtolength{\hsize}{-25mm} +\setlength{\linewidth}{\hsize} +\setlength{\columnwidth}{\hsize} +\addtolength{\footskip}{25mm} \reversemarginpar -\addtolength{\marginparsep}{-25mm} % Workaround for broken marginnote positioning in lscape environment \addtolength{\marginparsep}{-\textwidth} % FIXME -\setlength{\LTleft}{25mm plus 1fil} +\setlength{\LTleft}{0pt plus 1fil} \setlength{\LTright}{0pt plus 1fil} -\begin{longtable}{!{\extracolsep{\fill}} l P{7.5em} l p{0.5\linewidth}} +\begin{longtable}{!{\extracolsep{\fill}} l P{7.5em} l p{35em}} \caption{Defined variables\label{tab:defined-vars}}\\ \toprule \multicolumn{1}{c}{\textbf{Variable}} & @@ -34,7 +38,7 @@ inconsistent variable. \multicolumn{1}{c}{\textbf{Description}} \\ \midrule \endhead -\midrule +%\midrule \endfoot \bottomrule \endlastfoot diff --git a/pms.cls b/pms.cls index dcef98c..d1a85fa 100644 --- a/pms.cls +++ b/pms.cls @@ -22,8 +22,10 @@ \PassOptionsToPackage{utf8}{inputenc} \PassOptionsToPackage{quiet}{marginnote} \PassOptionsToPackage{nohyphen}{underscore} +\PassOptionsToPackage{hang,flushmargin}{footmisc} \PassOptionsToPackage{nottoc,notlot,notlof}{tocbibind} \PassOptionsToPackage{hyphens}{url} % url.sty implicitly loaded by hyperref +\PassOptionsToPackage{hyperfootnotes=false}{hyperref} % footmisc compatibility \PassOptionsToPackage{local}{gitinfo2} \PassOptionsToPackage{chapter}{algorithm} % algorithmic and algorithm to be loaded last to avoid failures @@ -41,6 +43,7 @@ marginnote, % Typeset a paragraph in the page margin paralist, % Additional list environments underscore, % Allow simple _ instead of \_ + footmisc, % Customise footnotes chngcntr, % Redefinition of counters tocbibind, % Add bibliography to table of contents float, % More control over float environments -- cgit v1.2.3-65-gdbad