organization name in footer
authorJan Szejko <janek37@gmail.com>
Fri, 23 Mar 2018 16:03:24 +0000 (17:03 +0100)
committerJan Szejko <janek37@gmail.com>
Fri, 23 Mar 2018 16:03:24 +0000 (17:03 +0100)
librarian/formats/pdf/__init__.py
librarian/formats/pdf/res/default.sty
librarian/formats/pdf/res/wl.cls

index 10313c8..8bb68b0 100644 (file)
@@ -114,6 +114,7 @@ class PdfFormat(Format):
         title = self.doc.meta.title()
         t.append(texml_cmd("author", author))
         t.append(texml_cmd("title", title))
+        t.append(texml_cmd("organization", build_ctx.organization))
 
         doc = etree.SubElement(t, TexmlNS('env'), name="document")
 
index 40b867d..b934dcb 100755 (executable)
@@ -9,6 +9,8 @@
     \fi
 }
 
+\newcommand*{\organization}[1]{\gdef\@organization{#1}%
+}
 
 \renewcommand{\maketitle}{}
 
index d871e51..f515688 100755 (executable)
@@ -167,7 +167,7 @@ Letters={SmallCaps,UppercaseSmallCaps}
 \fancyhf{}
 \renewcommand{\headrulewidth}{0pt}
 \renewcommand{\footrulewidth}{0pt}
-\lfoot{{\footnotesize \@author{} \emph{\@title}}}
+\lfoot{{\footnotesize \@organization}} %\@author{} \emph{\@title}}}
 \cfoot{}
 \rfoot{{\footnotesize \thepage}}