Skip to content

Instantly share code, notes, and snippets.

@mtask
Created November 26, 2023 16:18
Show Gist options
  • Save mtask/29dfa98cb3efdc8fc44a8ce10339abbb to your computer and use it in GitHub Desktop.
Save mtask/29dfa98cb3efdc8fc44a8ce10339abbb to your computer and use it in GitHub Desktop.
Pandoc title page example with specific bg color and numbering starting after TOC page
---
title: |
![](logo.png){width=50%}
\newline
\textcolor{white}{Hello There}
header-includes: |
\definecolor{bg}{HTML}{41617d}
\pagecolor{bg}
\setcounter{page}{0}
\pagenumbering{gobble}
toc: true
include-before: |
\newpage{}
\pagecolor{white}
---
\pagebreak
\pagenumbering{arabic}
# H1 Test
Some Text
## H2 Test
More text
\pagebreak
# H1 New Page
New Page Text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment