You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* docs update
* edits for docs
* building pdf in ci
* doc requires
* checking out a branch
* ci cloning jupyter-book branch
* install xindy
* testing workflows
* adding pdf doc build
* shuffling pdf build workflow
* shuffling pdf build
* added a new workflow file for pdf
* formatting
* change till jupyterbok-latex is introduced in the docs
* path of artifact
Co-authored-by: mmcky <[email protected]>
To get started with `jupyterbook-latex`, first install it through pip:
23
13
24
14
```bash
25
-
cd jupyterbook-latex
26
-
python setup.py install
15
+
pip install jupyterbook-latex
27
16
```
28
17
29
-
### Configuration
30
-
31
-
Add this extension to the extensions list in your sphinx project's `conf.py`:
18
+
Then add this extension to the extensions list in your sphinx project's `conf.py`:
32
19
33
20
```python
34
21
extensions = ["jupyterbook_latex"]
@@ -41,51 +28,57 @@ A list of features that are implemented in this `jupyter-book` extension:
41
28
42
29
### Table Of Contents Page:
43
30
44
-
*`part` key in `_toc.yml` is handled in the pdf output.
45
-
With the part name specified in `_toc.yml` being the part
46
-
name in the output.
31
+
* Support for [parts/chapter structure](https://jupyterbook.org/customize/toc.html#defining-chapters-and-parts-in-toc-yml) in `_toc.yml` is implemented and
32
+
will preserve the intended document structure when producing the `latex`/`pdf`.
47
33
48
34
* Files specified under `chapters:` in `_toc.yml` are translated
49
35
to chapters in pdf output.
50
36
51
37
* Files specified under the `sections:` key are included
52
-
in the parent `chapter` document with file title being `h2` headers in the document.
38
+
in the parent `chapter` document with file title being `h2`
39
+
headers in the document.
53
40
54
-
*Master document is not included in table of contents page
55
-
and is instead treated as a frontmatter.
41
+
*The `master document` is not included in table of contents page
42
+
and is instead treated as a `frontmatter`.
56
43
57
44
*`url` key in `_toc.yml` is being ignored in the final
58
-
pdf output. [`tableofcontents`](https://jupyterbook.org/customize/toc.html#add-a-table-of-contents-to-a-page-s-content) directive is
59
-
also ignored at present, but plans to handle it in a later
60
-
release is underway.
45
+
pdf output.
46
+
47
+
* Support for `tableofcontents`](https://jupyterbook.org/customize/toc.html#add-a-table-of-contents-to-a-page-s-content) directives in `LaTeX`
48
+
is translated as a list with links preserved.
61
49
62
50
* The table of contents page title is fixed to be `Contents` at present.
63
51
64
52
### Master Document:
65
53
66
-
Master doc page is treated as a front matter page. Like an `Introduction` to the book and does not appear in Table Of Contents. All the sections and sub-sections in the Master doc are internally converted to bolded text of varying sizes based on the level of the section.
54
+
The `masterdoc` page is treated strictly as `front matter`. This is similar to an `Introduction` to the book and does not appear in Table Of Contents. All the sections and sub-sections in the `masterdoc` are internally converted to bolded text of varying sizes based on the level of the section.
67
55
68
56
### Code Cell Tags:
69
57
70
58
A list of available tags can be found in https://jupyterbook.org/reference/cheatsheet.html#tags
71
59
72
-
*`hide-cell` is handled by removing the input and output cell content in the pdf output.
60
+
*`hide-cell` is handled by removing the input and output cell content in the `pdf` output.
73
61
74
-
*`hide-input` is handled by removing the cell but displaying the output in the pdf output.
62
+
*`hide-input` is handled by removing the cell but displaying the output in the `pdf` output.
75
63
76
-
*`hide-output` is handled by removing the outputs of a cell in the pdf output.
64
+
*`hide-output` is handled by removing the outputs of a cell in the `pdf` output.
77
65
78
66
### Others:
79
67
80
68
* Handling of `png` and `gif` images using `sphinx.ext.imgconverter` package.
81
-
Which uses [ImageMagick](https://www.imagemagick.org/script/index.php), so
82
-
make sure to have it installed in your system.
69
+
Which uses [ImageMagick](https://www.imagemagick.org/script/index.php), which
70
+
will need to be installed on your system to work.
71
+
72
+
```{note}
73
+
[ImageMagick](https://www.imagemagick.org/script/index.php) is not installed by default
74
+
so it is up to users to provide this software
75
+
```
83
76
84
77
* Fonts used at the moment are [GNU Free Fonts](https://www.gnu.org/software/freefont/),
85
78
but it may change in the near future owing to its handling of math characters.
86
79
87
80
* Direct LaTeX syntax for math is handled by default in source documents
88
81
using `myst_amsmath_enable` key of `jupyter-book`.
89
-
More info in [https://myst-parser.readthedocs.io/en/latest/using/syntax-optional.html#syntax-amsmath](https://myst-parser.readthedocs.io/en/latest/using/syntax-optional.html#syntax-amsmath)
82
+
More info on [myst_amsmath_enable](https://myst-parser.readthedocs.io/en/latest/using/syntax-optional.html#syntax-amsmath).
90
83
91
-
*`xelatex` is used as the default LaTeX engine because of its support for unicode characters.
84
+
*`xelatex` is used as the **default LaTeX engine** because of its support for unicode characters.
0 commit comments