Skip to content

Commit

Permalink
pandoc template introduced
Browse files Browse the repository at this point in the history
  • Loading branch information
k-wolski committed Oct 7, 2024
1 parent ccea421 commit 2f88a07
Show file tree
Hide file tree
Showing 4 changed files with 722 additions and 19 deletions.
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,28 @@ rye run mkdocs serve
```

The docs will be available at http://127.0.0.1:8000/ (Ctrl+left click to open).

## Exporting markdown page as PDF

### Install pandoc

On Windows, it can be installed using package installer from main pandoc page: https://pandoc.org/installing.html. Alternatively, it can be installed with Chocolatey:
```
choco install pandoc
choco install rsvg-convert miktex
```
On MacOS:
```
brew install pandoc
brew install librsvg homebrew/cask/basictex
```

### Basic usage

```
pandoc docs/{folder}/{file_name}.md -o {file_name}.pdf --toc --template=docs/assets/dyvenia-template.tex --listings
```

### Additional commands

Sometimes pandoc is putting image on next page with text from next pargraphs laying above it. In such situation page break command below image will help: `\clearpage`
Loading

0 comments on commit 2f88a07

Please sign in to comment.