Wandmalfarbe / pandoc-latex-template

A pandoc LaTeX template to convert markdown files to PDF or LaTeX.
BSD 3-Clause "New" or "Revised" License
6.21k stars 968 forks source link

Adding version info on the titlepage #152

Open cavo789 opened 4 years ago

cavo789 commented 4 years ago

Hello

Is it already possible to extend the titlepage to add a version info property (defined in the yaml block)?

Actually, if I'm not wrong, we've the title, subtitle, author and date (https://github.com/Wandmalfarbe/pandoc-latex-template/blob/master/eisvogel.tex#L883)

On my local copy of eisvogel.tex, I've added this block:

$if(version)$
  \vskip 1em
  {\Large \textsf{$version$}}
$endif$

and it's works ;) (damned it's easy ;) )

My markdown source contains this YAML block:

title: "My title"
subtitle: "a subtitle"
version: "v2.0.0"

Is there any other ways that the one I've done : hack your .tex file and add lines at the right place?

Thanks.

microraptor commented 4 years ago

A similar issue was discussed in #112 and it seems something generic might be implemented.