Skip to content

teotimepacreau/obsidian-snippet-export-to-pdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 

Repository files navigation

Features

  • Type scale system based on vertical rythm best practices on a Minor Third modulo for h1 to h5
  • Classic serif Baskervville for work-compatible documents
  • Automatic pagination
  • Blockquotes

Obsidian & the hidden customization of CSS snippets in order to control PDF export formatting

Obsidian is amazing, not documenting hidden CSS customization is not @kepano

In order to control the font of the exported PDF you have to tweak two CSS vars --font-print and --font-text and use the precise name of the font as it appears installed in your OS (cc @OzAmoyal for pointing this); for example "EB Garamond" won't work, it has to be the name under the font directory of the font as it is registered by your OS. Why ? It's not explained in the Obsidian docs.

All CSS rules must have !important to take effect. It's mandatory in order to override the native Obsidian CSS that applies when exporting to PDF

About

An Obsidian CSS Snippet in order to enhance document structure and style for export to PDF

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages