From: Jan Szejko Date: Fri, 23 Mar 2018 16:03:24 +0000 (+0100) Subject: organization name in footer X-Git-Url: https://git.mdrn.pl/librarian.git/commitdiff_plain/d2997b73a50a2885a993408d277d511f98320ed3?ds=sidebyside organization name in footer --- 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}}