-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding support to build PDFs for e-readers
- Loading branch information
1 parent
2a00e9a
commit f3f21e8
Showing
4 changed files
with
12 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
*.olean | ||
/_target | ||
/leanpkg.path | ||
/__pycache__ | ||
/_build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,12 +11,19 @@ leanproject get [email protected]:leanprover/theorem_proving_in_lean.git | |
``` | ||
to clone the repository and install the `mathlib` library. | ||
|
||
The build requires python 3 (install `python3-venv` on ubuntu). | ||
The build requires python 3, xelatex, latexmk and free serif fonts (in OTF format). | ||
|
||
On Ubuntu, you may install these dependencies by running | ||
|
||
```bash | ||
sudo apt install python3-venv texlive-xetex latexmk fonts-freefont-otf | ||
``` | ||
|
||
```bash | ||
make install-deps | ||
make html | ||
make latexpdf | ||
PAPER_SIZE=a5paper make latexpdf # for e-readers | ||
``` | ||
|
||
The call to `make install-deps` is only required the first time, and only if you want to use the bundled version of Sphinx and Pygments with improved syntax highlighting for Lean. | ||
|
@@ -35,4 +42,4 @@ make leantest | |
|
||
# How to contribute | ||
|
||
Pull requests with corrections are welcome. Please follow our `commit conventions <https://github.com/leanprover/lean/blob/master/doc/commit_convention.md>`. If you have questions about whether a change will be considered helpful, please contact Jeremy Avigad, ``[email protected]``. | ||
Pull requests with corrections are welcome. Please follow our `commit conventions <https://github.com/leanprover/lean/blob/master/doc/commit_convention.md>`. If you have questions about whether a change will be considered helpful, please contact Jeremy Avigad, ``[email protected]``. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters