Wandmalfarbe / pandoc-latex-template

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

Question: Adjust titlepage layout with Custom Template Variables #247

Closed ibayer closed 2 years ago

ibayer commented 3 years ago

Thanks for this great template. The pdfs in produce with default settings is amazing.

However, I run into two minor challenges with the title page layout in combination with the provided backgrounds.

image

The images has been created by modifying pandoc-latex-template/examples/title-page-logo/document.md.

---
title: "Vinaque sanguine metuenti cuiquam Alcyone fixus"
author: [Author Name]
date: "2017-02-20"
subject: "Markdown"
keywords: [Markdown, Example]
subtitle: "Aesculeae domus vincemur et Veneris adsuetus lapsum"
lang: "en"
titlepage: true
titlepage-text-color: "7137C8"
titlepage-rule-color: "7137C8"
titlepage-rule-height: 2
logo: "logo.pdf"
logo-width: 30mm
titlepage-background: "../page-background/backgrounds/background11.pdf"
...

Q1 Can the text spacing or position be adjusted to just move the date a little bit up or to the right?

image

---
title: "Vinaque sanguine metuenti cuiquam Alcyone fixus"
author: [Author Name]
date: "2017-02-20"
subject: "Markdown"
keywords: [Markdown, Example]
subtitle: "Aesculeae domus vincemur et Veneris adsuetus lapsum"
lang: "en"
titlepage: true
titlepage-text-color: "7137C8"
titlepage-rule-color: "7137C8"
titlepage-rule-height: 2
logo: "logo.pdf"
logo-width: 30mm
titlepage-background: "../page-background/backgrounds/background4.pdf"
...

Q2 Can the logo position be adjusted?

I understand that both layout issue can be address by changed the background pdf or digging into the latex code, however I was wondering if this Q1 &Q2 could also be addressed using Custom Template Variables. Any points are welcome. :)

Wandmalfarbe commented 2 years ago

I understand that both layout issue can be address by changed the background pdf or digging into the latex code, however I was wondering if this Q1 &Q2 could also be addressed using Custom Template Variables. Any points are welcome. :)

Technically this is possible. However, there are so many possible adjustments for which I have to create variables that I don't want to go down this path. The default title page and the one with a background are meant to be simple. As you already have noticed, more advanced use cases are possible by modifying the LaTeX or providing a custom background image.