This repository contains stuff to convert this book to HTML, EPUB and PDF.
Install:
- pandoc
- Rust and cargo
- XeLaTeX, up to date (
sudo tlmgr update -all
) and probably some additional packages (sudo tlmgr install $pkg
) such as:- framed
- hyphenat
- quotchap
- collection-fontsrecommended
- mathspec
- euenc
- xltxtra
- xecjk
- fancyhdr
- the DejaVu Sans Mono font: http://dejavu-fonts.org/
- the IPA font for Japanese Text: http://ipafont.ipa.go.jp/ipaexfont/download.html#en
Then run:
$ cargo run --release
VoilĂ !
There are some CLI arguments that you can use to compile books other than the default (trpl
). E.g., this repository also include the Rustonomicon.
You can build it like this:
$ cargo run --release -- --prefix=nomicon --source=nomicon --meta=nomicon_meta.yml
The book content itself as well as any code I added as part of this repository is Copyright (c) 2015 The Rust Project Developers and licensed like Rust itself (MIT and Apache).