Wandmalfarbe/pandoc-latex-template

Option to disable text on the title page

wouterla opened this issue · 0 comments

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.