Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexanderthclark/latex-book-template
Example project
https://github.com/alexanderthclark/latex-book-template
book-template latex latex-examples latex-template
Last synced: 9 days ago
JSON representation
Example project
- Host: GitHub
- URL: https://github.com/alexanderthclark/latex-book-template
- Owner: alexanderthclark
- License: other
- Created: 2021-12-04T17:24:18.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-05T21:42:14.000Z (almost 2 years ago)
- Last Synced: 2024-11-15T15:49:34.920Z (2 months ago)
- Topics: book-template, latex, latex-examples, latex-template
- Language: TeX
- Homepage:
- Size: 4.41 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# LaTeX Book Template
The only piece not provided here is the kdp.cls file, which helps optimize things for self publishing on Amazon. This can be found at [github.com/JenniferMack/latex-kdp](https://github.com/JenniferMack/latex-kdp).
### Value Added
The value added is just in gathering a few different things. The advantages over another template from the book class might be
* KDP class for adjusting page sizes.
* Adding images at the beginning of each new part in the book with the epigraph package.
* Use of the lstlistings package for inline code and code blocks.
* Some custom helper commands like `\code{}` or `\link{}{}` that simplify other commands.Some more things in the style files could be removed for the example included. I have experimented with `\marginpar` and `\marginnote` to label code blocks with the filenames. While not demonstrated here, my solution has been to use `(*@\margintext{filename}@*)` inside the code blocks, where `(*@` and `@*)` are escape characters. `\margintext` is a custom command that uses `\marginnote` with some extra text formatting. Previously, I tried to use `\marginpar` to force all labels to the right and rotate them 90 degrees, but I was never happy with the results.
### Compilation
This compiles without any trouble on Overleaf. If you are compiling locally and have trouble with the bibliography, use the following.
```
pdflatex main
biber main
pdflatex main
pdflatex main
```