mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Close #7115: LaTeX: Allow to override LATEXOPTS and LATEXMKOPTS via envvars
This commit is contained in:
2
CHANGES
2
CHANGES
@@ -42,6 +42,8 @@ Features added
|
|||||||
* #6446: duration: Add ``sphinx.ext.durations`` to inspect which documents slow
|
* #6446: duration: Add ``sphinx.ext.durations`` to inspect which documents slow
|
||||||
down the build
|
down the build
|
||||||
* #6837: LaTeX: Support a nested table
|
* #6837: LaTeX: Support a nested table
|
||||||
|
* #7115: LaTeX: Allow to override LATEXOPTS and LATEXMKOPTS via environment
|
||||||
|
variable
|
||||||
* #6966: graphviz: Support ``:class:`` option
|
* #6966: graphviz: Support ``:class:`` option
|
||||||
* #6696: html: ``:scale:`` option of image/figure directive not working for SVG
|
* #6696: html: ``:scale:`` option of image/figure directive not working for SVG
|
||||||
images (imagesize-1.2.0 or above is required)
|
images (imagesize-1.2.0 or above is required)
|
||||||
|
|||||||
@@ -15,13 +15,13 @@ ALLIMGS = $(wildcard *.png *.gif *.jpg *.jpeg)
|
|||||||
# Prefix for archive names
|
# Prefix for archive names
|
||||||
ARCHIVEPREFIX =
|
ARCHIVEPREFIX =
|
||||||
# Additional LaTeX options (passed via variables in latexmkrc/latexmkjarc file)
|
# Additional LaTeX options (passed via variables in latexmkrc/latexmkjarc file)
|
||||||
export LATEXOPTS =
|
export LATEXOPTS ?=
|
||||||
# Additional latexmk options
|
# Additional latexmk options
|
||||||
{% if latex_engine == 'xelatex' -%}
|
{% if latex_engine == 'xelatex' -%}
|
||||||
# with latexmk version 4.52b or higher set LATEXMKOPTS to -xelatex either here
|
# with latexmk version 4.52b or higher set LATEXMKOPTS to -xelatex either here
|
||||||
# or on command line for faster builds.
|
# or on command line for faster builds.
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
LATEXMKOPTS =
|
LATEXMKOPTS ?=
|
||||||
{% if xindy_use -%}
|
{% if xindy_use -%}
|
||||||
export XINDYOPTS = {{ xindy_lang_option }} -M sphinx.xdy
|
export XINDYOPTS = {{ xindy_lang_option }} -M sphinx.xdy
|
||||||
{% if latex_engine == 'pdflatex' -%}
|
{% if latex_engine == 'pdflatex' -%}
|
||||||
|
|||||||
Reference in New Issue
Block a user