Wandmalfarbe / pandoc-latex-template

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

Option to disable text on the title page #378

Open wouterla opened 7 months ago

wouterla commented 7 months ago

It would be helpful for me to be able to have a cover/title page that has just the 'background' full-page image.

I was trying to insert a designed cover page for my book, and had trouble doing that. The easiest way is just to set the background image for the title page, but in that case the title and author (etc) are superposed over the image, of course.

It was easy enough to add an if statement in the template, like:

$if(titlepage-background)$
% The titlepage with a background image has other text spacing and text size
{
  $if(titlepage-text)$ {
    \setstretch{2}
    \vfill
    \vskip -8em
    \noindent {\huge \textbf{\textsf{$title$}}}
    $if(subtitle)$
    \vskip 1em
    {\Large \textsf{$subtitle$}}
    $endif$
    \vskip 2em
    \noindent {\Large \textsf{$for(author)$$author$$sep$, $endfor$} \vskip 0.6em \textsf{$date$}}
    \vfill
  }
  $endif$
}

I'm not sure if something like that would be welcome for the template, but for me it was useful.