From b8e34e0e6730ef76a353a15ff653faa9e8c88a77 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Thu, 22 Mar 2012 11:13:14 +0100 Subject: [PATCH] add empty defaultleading pdf customization --- librarian/pdf.py | 15 ++++++++------- librarian/pdf/wl.cls | 2 ++ 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/librarian/pdf.py b/librarian/pdf.py index bcf8d9a..cb65311 100644 --- a/librarian/pdf.py +++ b/librarian/pdf.py @@ -34,13 +34,14 @@ STYLESHEETS = { 'wl2tex': 'pdf/wl2tex.xslt', } -CUSTOMIZATIONS = [ - 'nofootnotes', - 'nothemes', - 'onehalfleading', - 'doubleleading', - 'nowlfont', - ] +#CUSTOMIZATIONS = [ +# 'nofootnotes', +# 'nothemes', +# 'defaultleading', +# 'onehalfleading', +# 'doubleleading', +# 'nowlfont', +# ] def insert_tags(doc, split_re, tagname, exclude=None): """ inserts for every occurence of `split_re' in text nodes in the `doc' tree diff --git a/librarian/pdf/wl.cls b/librarian/pdf/wl.cls index c9305ca..c387b03 100644 --- a/librarian/pdf/wl.cls +++ b/librarian/pdf/wl.cls @@ -6,6 +6,7 @@ % % nofootnotes - disable generation of footnotes % nothemes - disable generation of themes +% defaultleading - default leading % onehalfleading - leading of 1.5 (interlinia) % doubleleading - double leading (interlinia) % a4paper,... - paper size as required by LaTeX @@ -39,6 +40,7 @@ %% \DeclareOption{14pt}{\renewcommand{\normalsize}{\AtEndOfClass{\fontsize{14}{17}\selectfont}}} +\DeclareOption{defaultleading}{} \DeclareOption{doubleleading}{\AtBeginDocument{\doublespacing}}%\setlength{\leading}{1em plus 0.5ex minus 0.2ex}} \DeclareOption{onehalfleading}{\AtBeginDocument{\onehalfspacing}}%\setlength{\leading}{1em plus 0.5ex minus 0.2ex}} -- 2.20.1