Mercurial > hgrepos > Python > libs > pygments-lexer-pseudocode2
comparison docs/_latex/my-doc-style.sty @ 213:d470250f8451
Title/metadata of PDF documentation builds:
- make the printet "normal" date also a revision date
- print an extra line with creation date and the revision number
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Fri, 15 May 2026 05:15:59 +0200 |
| parents | |
| children | 8ef73270beae |
comparison
equal
deleted
inserted
replaced
| 212:18553f595b34 | 213:d470250f8451 |
|---|---|
| 1 % -*- coding: utf-8 -*- | |
| 2 % | |
| 3 % Some font hacks for my Sphinx PDF documents | |
| 4 % | |
| 5 \NeedsTeXFormat{LaTeX2e} | |
| 6 \ProvidesPackage{my-doc-style}[% | |
| 7 2026/05/14 v0.1 (Franz Glasner) Some style customizations] | |
| 8 | |
| 9 % | |
| 10 % For the title page: "Last updated on ..." | |
| 11 % | |
| 12 \DeclareRobustCommand*\vcsrevision[1]{\gdef\mds@vcs@revision{#1}} | |
| 13 \DeclareRobustCommand*\builddate[1]{\gdef\mds@builddate{#1}} | |
| 14 \vcsrevision{} | |
| 15 \builddate{} | |
| 16 % \sphinxmaketitle references \@thanks: abuse this | |
| 17 \gdef\@thanks{% | |
| 18 \ifx\mds@builddate\@empty\relax% | |
| 19 \else% | |
| 20 \hfill\normalsize\textsf{Last updated on \mds@builddate% | |
| 21 \ifx\mds@vcs@revision\@empty\relax\else\enspace(rv:\mds@vcs@revision )\fi} | |
| 22 \fi | |
| 23 } | |
| 24 \endinput |
