From d2997b73a50a2885a993408d277d511f98320ed3 Mon Sep 17 00:00:00 2001 From: Jan Szejko Date: Fri, 23 Mar 2018 17:03:24 +0100 Subject: [PATCH] organization name in footer --- librarian/formats/pdf/__init__.py | 1 + librarian/formats/pdf/res/default.sty | 2 ++ librarian/formats/pdf/res/wl.cls | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/librarian/formats/pdf/__init__.py b/librarian/formats/pdf/__init__.py index 10313c8..8bb68b0 100644 --- a/librarian/formats/pdf/__init__.py +++ b/librarian/formats/pdf/__init__.py @@ -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") diff --git a/librarian/formats/pdf/res/default.sty b/librarian/formats/pdf/res/default.sty index 40b867d..b934dcb 100755 --- a/librarian/formats/pdf/res/default.sty +++ b/librarian/formats/pdf/res/default.sty @@ -9,6 +9,8 @@ \fi } +\newcommand*{\organization}[1]{\gdef\@organization{#1}% +} \renewcommand{\maketitle}{} diff --git a/librarian/formats/pdf/res/wl.cls b/librarian/formats/pdf/res/wl.cls index d871e51..f515688 100755 --- a/librarian/formats/pdf/res/wl.cls +++ b/librarian/formats/pdf/res/wl.cls @@ -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}} -- 2.20.1