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

Titlepage does not fill the whole PDF page #258

Closed Kaszanas closed 2 years ago

Kaszanas commented 2 years ago

Currently as I am attempting to use this template it produces unreliable output.

For example when using the following YAML information:

---
title: "Test Title"
author: [Kaszanas]
date: "2021-09-24"
subtitle: "This is a test title"
lang: "pl"
titlepage: true
book: true
toc-own-page: true
---

It produces a faulty titlepage:

image

And even though within the README file it is specified that the default chapter number is set to 1 the chapters start from:

image

Same happens when attempting to use the provided PDF backgrounds. It doesn't scale the PDF background properly and is overall unreliable.

Please let me know if anyone knows how to fix this.

Kaszanas commented 2 years ago

I have just downloaded the example files and compiled a PDF using them and the problem went away. I think it might be because of some parameters and the order that they are defined?

Wandmalfarbe commented 2 years ago

The title page in your post looks good to me. I don't see the problem there.

The chapter numbers look strange because you might be using the wrong heading level. Please have a look at #114 and the mentioned examples there (in particular the comment https://github.com/Wandmalfarbe/pandoc-latex-template/issues/114#issuecomment-528210505).

Kaszanas commented 2 years ago

I have ultimately solved this problem somehow, and I am unable to reproduce it. I will have a look at the issues that You have pointed out. Thank You for Your time!