note making easy pdfs
This commit is contained in:
parent
531cb8da3d
commit
55d5862b10
21
vision/lowdown.md
Normal file
21
vision/lowdown.md
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
---
|
||||||
|
title: "Markdown to PDF"
|
||||||
|
tags: [ "Documentation", "Markdown", "PDF", "Vision" ]
|
||||||
|
---
|
||||||
|
|
||||||
|
Turn a markdown file into a pdf:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
lowdown -stms "$FILE".md | pdfroff -itk -mspdf > "$FILE".pdf
|
||||||
|
```
|
||||||
|
|
||||||
|
To give the document a title, put that title in the metadata:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sed -i "1 i---" "$FILE".md
|
||||||
|
sed -i "1 ititle: $TITLE" "$FILE".md
|
||||||
|
sed -i "1 i---" "$FILE".md
|
||||||
|
lowdown -L "$FILE".md
|
||||||
|
lowdown -X title "$FILE".md
|
||||||
|
lowdown -stms "$FILE".md | pdfroff -itk -mspdf > "$FILE".pdf
|
||||||
|
```
|
Loading…
Reference in New Issue
Block a user