Search code examples
latexmarkdownquarto

get rid of the titlepage in Quarto (PDF Output)


I want to get rid of the title page in Quarto but did not get it. I've found some option that have no effect in my document https://github.com/periodicpoint/robusta/blob/master/settings/00_00_settings.yaml

custom_title_page: false
format:
  pdf:
    classoption:
      - 'titlepage=false'

Maybe i'm just irritated and it's trivial

---
title: "test"
format: pdf
---

text

gives a title

---
format: pdf
---

text

gives no title. But maybe there is also a switch in yaml to omit the title page even if the title is set?


Solution

  • You can do this easily using a Pandoc Lua filter, which will remove the document title even if the title is set and this will work not just for pdf output, but also html and docx.

    ---
    title: "Title"
    format: pdf
    filters: [remove_title.lua]
    ---
    
    text
    
    

    remove_title.lua

    function Meta(m)
      m.title = nil
      return m
    end