| 1 | # LaTeX Class for My Books |
| 2 | |
| 3 | [](https://github.com/yegor256/yb-book/actions/workflows/l3build.yml) |
| 4 | [](https://ctan.org/pkg/yb-book) |
| 5 | [](https://github.com/yegor256/yb-book/blob/master/LICENSE.txt) |
| 6 | |
| 7 | This LaTeX class I use to format |
| 8 | [my books](https://www.yegor256.com/books.html), |
| 9 | which I sell [on Amazon](https://www.amazon.com/Yegor-Bugayenko/e/B01AM1QMDK). |
| 10 | |
| 11 | First, |
| 12 | [install it](https://en.wikibooks.org/wiki/LaTeX/Installing_Extra_Packages) |
| 13 | from [CTAN](https://ctan.org/pkg/yb-book) |
| 14 | and then use in the preamble: |
| 15 | |
| 16 | ```tex |
| 17 | \documentclass{yb-book} |
| 18 | \renewcommand*\thetitle{New Book About OOP} |
| 19 | \renewcommand*\theauthor{Jeff Lebowski} |
| 20 | \renewcommand*\thevolume{1} |
| 21 | \renewcommand*\theversion{1.0} |
| 22 | \begin{document} |
| 23 | \ybPrintTitlePage |
| 24 | \chapter{First One} |
| 25 | \section{About Something Interesting} |
| 26 | Hello, world! |
| 27 | \end{document} |
| 28 | ``` |
| 29 | |
| 30 | Otherwise, you can download |
| 31 | [`yb-book.cls`](https://yegor256.github.io/yb-book/yb-book.cls) and |
| 32 | use it in your document. |
| 33 | |
| 34 | If you want to contribute yourself, make a fork, then create a branch, |
| 35 | then run `make` in the root directory. |
| 36 | It should compile everything without errors. If not, submit an issue and wait. |
| 37 | Otherwise, make your changes and then run `make` again. If the build is |
| 38 | still clean, submit a pull request. |