Latex specific features for jupyter book
Project description
sphinx-jupyterbook-latex
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 sphinx-jupyterbook-latex
, first install it through pip
:
pip install sphinx-jupyterbook-latex
then, add sphinx_jupyterbook_latex
to your extensions,
in a Sphinx conf.py
:
extensions = ["sphinx_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:
- sphinx_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
->xelatex
latex_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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for sphinx_jupyterbook_latex-0.4.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b169ab271f512f45cea93587bd573f32f513eb744a680908874a2a60c62f6884 |
|
MD5 | 97ee89a687a3aa70f33e9cb1a2e65988 |
|
BLAKE2b-256 | 179e8c59b90569f57d74ac289f1376c34bef0dd5c57046a0e7328c27a8ddca64 |
Hashes for sphinx_jupyterbook_latex-0.4.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d92f967563213374775034f993abaf5a109de94134a02badd9ef0eaa4bab13ef |
|
MD5 | 2c0aa73a26fa391bf3c3236a67f0b70b |
|
BLAKE2b-256 | 5987e95b9eb9b4966ef2fadb2071601360ec59fdd88a4d2cc3a55724a3db3991 |