Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing Color and Size of text in YAML Metadata block #353

Open
dadlMilestone opened this issue Jul 24, 2023 · 1 comment
Open

Changing Color and Size of text in YAML Metadata block #353

dadlMilestone opened this issue Jul 24, 2023 · 1 comment

Comments

@dadlMilestone
Copy link

Hello, I am attempting to change the size and color of fonts on the title page.

  • I would like to change the color of the subtitle and preferably use a hex value for the color.
  • I would like to change the size of the font for the title to be larger than the rest of the text on the title page.
  • I would also like to put my title on multiple lines.

Here is a copy of my YAML:

---
author: [Company Name]
titlepage: true
titlepage-text-color: "E6EDF3"
titlepage-rule-color: "EBD908"
titlepage-background: "pandoc/title.jpg"
toc: true
toc-own-page: true
header-includes: |
    \usepackage{sectsty}
    \sectionfont{\clearpage}
title: |
  Document
  Title
  Multiple
  Lines
subtitle: "SUBTITLE TEXT"
date: "EN v1.0"
footer-left: "Company Name - Document Title"
...

I have tried to change the title text by changing the title section of the yaml like so:

title: |
  {\Huge Document}
  {\Huge Title}
  {\Huge Multiple}
  {\Huge Lines}

I have tried to change the textcolor using:

subtitle: "\textcolor{yellow}{SUBTITLE TEXT}"

Neither seems to work how I'd like, and I would love to get this figured out, but also to get some knowledge about how and where I can use LaTeX commands in order to modify the title page.

The error I have been getting is:

[2023-07-24T23:01:28.177Z] Error producing PDF.
[2023-07-24T23:01:28.179Z] ! Too many }'s.
[2023-07-24T23:01:28.179Z] l.384 }

Please let me know if I've left out any pertinent information!!

Thanks!

@b1scoito
Copy link

b1scoito commented Mar 1, 2024

@Wandmalfarbe Any insights on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants