Support {lua,xe}tex as alternative usetex engine. by anntzer · Pull Request #29807 · matplotlib/matplotlib · GitHub
Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions lib/matplotlib/dviread.py
6 changes: 3 additions & 3 deletions lib/matplotlib/mpl-data/matplotlibrc
Original file line number Diff line number Diff line change
Expand Up @@ -331,9 +331,9 @@
# computer modern sans serif, computer modern typewriter

## The TeX engine/format to use. The following values are supported:
## - "latex": The classic TeX engine (the current default). All backends render
## TeX's output by parsing the DVI output into glyphs and boxes and emitting
## those one by one.
## - "latex", "xelatex", "lualatex": The corresponding TeX engines. All
## backends render TeX's output by parsing the DVI output into glyphs and
## boxes and emitting those one by one.
## - "latex+dvipng": The same as "latex", with the exception that Agg-based
## backends rely on dvipng to rasterize TeX's output. This value was the
## default up to Matplotlib 3.10.
Expand Down
2 changes: 1 addition & 1 deletion lib/matplotlib/rcsetup.py
Original file line number Diff line number Diff line change
Expand Up @@ -1111,7 +1111,7 @@ def _convert_validator_spec(key, conv):
# text props
"text.color": validate_color,
"text.usetex": validate_bool,
"text.latex.engine": ["latex", "latex+dvipng"],
"text.latex.engine": ["latex", "latex+dvipng", "xelatex", "lualatex"],
"text.latex.preamble": validate_string,
"text.hinting": ["default", "no_autohint", "force_autohint",
"no_hinting", "auto", "native", "either", "none"],
Expand Down
32 changes: 28 additions & 4 deletions lib/matplotlib/texmanager.py
Loading