jupyterbook-latex [IN DEVELOPMENT]
Sphinx extension to support LaTeX infrastructure for Jupyter Book.
This repository is a development project to improve LaTeX support
in Jupyter Book.
Get started
To get started with jupyterbook-latex, first install it through pip:
pip install jupyterbook-latex
then, add jupyterbook_latex to your extensions,
in a Sphinx conf.py:
extensions = ["jupyterbook_latex"]
# autoload the sphinx.ext.imgconverter extension, optional (default is True)
# jblatex_load_imgconverter = True
# turn root level toctree captions into top-level `part` headings, optional (default is to auto-infer)
# jblatex_captions_to_parts = True
OR in the jupyterbook config.yml:
sphinx:
extra_extensions:
- jupyterbook_latex
# config:
# jblatex_load_imgconverter: true
# jblatex_captions_to_parts: true
Extension Details
This extension does not provide an actual Sphinx LaTeX theme, instead it instantiates a number of transforms (for LaTeX builders only) that manipulate the AST into the required format:
- Overrides some configuration:
latex_engine->xelatexlatex_theme->jupyterBook- appends necessary LaTeX commands to the preamble
- When a latex builder is specified:
- Set's up
sphinx.ext.imgconverter(ifjblatex_load_imgconverter) - Replace sub-headers in the root document
- Create headings from the root-level toctree captions (if
jblatex_captions_to_parts) - Move bibliographies to the bottom of the document
Issues
A list of issues that need to be addressed:
https://github.com/executablebooks/meta/issues/169
Developer Notes
A repository that contains many different project configurations for testing and development is available, along with implementation idea and notes
Release files for jupyterbook-latex 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| jupyterbook_latex-0.3.1.tar.gz | 11.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| jupyterbook_latex-0.3.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 22.2 kB
Release files / jupyterbook_latex-0.3.1.tar.gz
| Download URL | jupyterbook_latex-0.3.1.tar.gz |
|---|---|
| Size | 11.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2606e27e285d58cf8a5d9fad0b0f79a0180604e15c641a6790a4bd81667f3d63
|
|
BLAKE2b-256 checksum How to use checksums |
5f1bec6ed7ddbca3c94991d475133fc617de7b6fa2708b6ab665c5cec002c3f5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.4.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.7.10
|
Release files / jupyterbook_latex-0.3.1-py3-none-any.whl
| Download URL | jupyterbook_latex-0.3.1-py3-none-any.whl |
|---|---|
| Size | 10.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
497b95db02224602903e0e60275eac2a7aabe4a6977dc5b743fde4151b8ab27f
|
|
BLAKE2b-256 checksum How to use checksums |
cac38b90b9199cad9cf5dc27676f0b70fcd7bed859c038517eff779f86eb0c22
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.4.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.7.10
|