To install m1book on your machine:
- Clone this repository.
- Change directory to the cloned repository and run the installation script (
./install.sh) - Restart your terminal, afterwards the
m1bookcommand is available on your machine.
- Change directory to a folder you want to store your new project in.
- Run:
m1book new <name-of-book>to create a new folder named<name-of-book>, which contains an empty book project
- Change directory to the folder of your book project
- Run:
m1book generate - Find the generated book in
build/output.pdf
- See
config.ymlto change default values like the title of the book - Take a look at the files inside
src/frontandsrc/mainto learn how to structure your book
The following Latex packages are required:
- collection-fontsrecommended
- sectsty
These packages can be installed by running:
tlmgr install collection-fontsrecommendedtlmgr install sectsty