Skip to content

Commit

Permalink
Merge pull request #5 from dyvenia/pandoc_latex
Browse files Browse the repository at this point in the history
Pandoc latex
  • Loading branch information
k-wolski authored Oct 7, 2024
2 parents ad35e75 + 2f88a07 commit 73081a6
Show file tree
Hide file tree
Showing 4 changed files with 728 additions and 21 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 73081a6

Please sign in to comment.