]> pere.pagekite.me Git - text-mekanikerord.git/commitdiff
Change to only use several columns in body.
authorPetter Reinholdtsen <pere@hungry.com>
Sat, 15 Aug 2020 13:56:35 +0000 (15:56 +0200)
committerPetter Reinholdtsen <pere@hungry.com>
Sat, 15 Aug 2020 13:56:35 +0000 (15:56 +0200)
pdf.xsl

diff --git a/pdf.xsl b/pdf.xsl
index f027849ccfd7d3802809a3ff64360c8256e35e6f..5d8f6769dc221e98b13e13bfc259b960056baf19 100644 (file)
--- a/pdf.xsl
+++ b/pdf.xsl
@@ -7,7 +7,8 @@
   <xsl:param name="page.margin.outer">0.55in</xsl:param>
   <xsl:param name="page.margin.top">0.55in</xsl:param>
   <xsl:param name="page.margin.bottom">0.55in</xsl:param>
-  <xsl:param name="latex.class.options">a4paper,openright,twoside,twocolumn</xsl:param>
+  <xsl:param name="latex.class.book">book</xsl:param>
+  <xsl:param name="latex.class.options">a4paper,openright,twoside</xsl:param>
 
   <!-- No use showing table of content, it is empty -->
   <xsl:param name="doc.toc.show">0</xsl:param>
 
   <!-- insert a few latex tricks at the top of the .tex document -->
   <xsl:param name="latex.begindocument">
-    <xsl:text>
-% Trick to wrap glossary term
-\setlist[description]{style=unboxed}
+    <xsl:text>% start of latex.begindocument
+\usepackage{multicol}
+
+% unboxed = wrap glossary term
+% multicols = get two columns only in mainpart
+\setlist[description]{%
+  style=unboxed,
+  before*=\begin{multicols}{3},
+  after*=\end{multicols}
+%  first*=
+%  topsep=30pt,               % space before start / after end of list
+%  itemsep=5pt,               % space between items
+%  font=\normalfont,
+}
 
 % Trick to avoid many words sticking out of the right margin of the text.
 \sloppy
 
 \begin{document}
+% end of latex.begindocument
     </xsl:text>
   </xsl:param>