From: Radek Czajka Date: Thu, 22 Mar 2012 10:13:14 +0000 (+0100) Subject: add empty defaultleading pdf customization X-Git-Tag: 1.7~164 X-Git-Url: https://git.mdrn.pl/librarian.git/commitdiff_plain/b8e34e0e6730ef76a353a15ff653faa9e8c88a77?ds=inline add empty defaultleading pdf customization --- 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}}