latex-zines/README.md

20 lines
940 B
Markdown

# How to Make Zines with LaTeX
This is a demo of how to make a zine using Pandoc to convert marktown to LaTeX. It applies typesetting from a custom document class (zine.cls).
To generate the zine, run: `./build.sh`
## website
It also generates a standalone website. To view the website:
./html-build.sh
cd public
python3 -m http.server
### some notes on HTML
Usually I like to convert Pandoc documents as fragments and add my own document structure, to cut down on the messy markup Pandoc adds. For HTML in particular I like to see how little I can get away with by using [classless CSS](https://github.com/dbohdan/classless-css) for the style. However in this case I combined the two because Pandoc applies classes to each code token (i.e., it applies syntax highlighting) and there's no way to do this without Pandoc's preamble.
- [ ] TODO figure out how to extract the syntax highlighting from Pandoc's HTML template