Skip to content

Commit 9c941f6

Browse files
committed
change the tex formatter for publication branch
1 parent 543a8d8 commit 9c941f6

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

.github/workflows/ci_docs.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,10 @@ jobs:
4141
key: pip-${{ hashFiles('requirements.txt') }}-${{ hashFiles('_requirements/docs.txt') }}
4242
restore-keys: pip-
4343

44-
- name: Install Texlive & tree
44+
- name: Install tree
4545
run: |
4646
sudo apt-get update --fix-missing
47-
# install Texlive, see https://linuxconfig.org/how-to-install-latex-on-ubuntu-20-04-focal-fossa-linux
48-
sudo apt-get install -y cmake tree pandoc texlive-latex-extra dvipng texlive-pictures
47+
sudo apt-get install -y cmake tree pandoc
4948
5049
- name: Install dependencies
5150
run: |

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
default_language_version:
2-
python: python3.8
2+
python: python3
33

44
ci:
55
autofix_prs: true

_docs/source/conf.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,12 @@
6565
"sphinx.ext.intersphinx",
6666
"sphinx.ext.todo",
6767
"sphinx.ext.napoleon",
68-
"sphinx.ext.imgmath",
6968
"sphinx.ext.githubpages",
7069
"nbsphinx",
7170
"myst_parser",
7271
"sphinx_paramlinks",
7372
"pt_lightning_sphinx_theme.extensions.lightning",
73+
"sphinx.ext.mathjax",
7474
]
7575

7676
# Add any paths that contain templates here, relative to this directory.
@@ -207,6 +207,11 @@
207207
),
208208
]
209209

210+
# MathJax configuration
211+
mathjax3_config = {
212+
"tex": {"packages": {"[+]": ["ams", "newcommand", "configMacros"]}},
213+
}
214+
210215
# -- Options for Epub output -------------------------------------------------
211216

212217
# Bibliographic Dublin Core info.

0 commit comments

Comments
 (0)