Skip to content

Commit

Permalink
Merge pull request #7116 from tk0miya/7115_override_LATEXMKOPTS
Browse files Browse the repository at this point in the history
Close #7115: LaTeX: Allow to override LATEXOPTS and LATEXMKOPTS via envvars
  • Loading branch information
tk0miya committed Feb 9, 2020
2 parents ebb9a9a + 46e58d3 commit 89e3169
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGES
Expand Up @@ -44,6 +44,8 @@ Features added
* #6446: duration: Add ``sphinx.ext.durations`` to inspect which documents slow
down the build
* #6837: LaTeX: Support a nested table
* #7115: LaTeX: Allow to override LATEXOPTS and LATEXMKOPTS via environment
variable
* #6966: graphviz: Support ``:class:`` option
* #6696: html: ``:scale:`` option of image/figure directive not working for SVG
images (imagesize-1.2.0 or above is required)
Expand Down
4 changes: 2 additions & 2 deletions sphinx/texinputs/Makefile_t
Expand Up @@ -15,13 +15,13 @@ ALLIMGS = $(wildcard *.png *.gif *.jpg *.jpeg)
# Prefix for archive names
ARCHIVEPREFIX =
# Additional LaTeX options (passed via variables in latexmkrc/latexmkjarc file)
export LATEXOPTS =
export LATEXOPTS ?=
# Additional latexmk options
{% if latex_engine == 'xelatex' -%}
# with latexmk version 4.52b or higher set LATEXMKOPTS to -xelatex either here
# or on command line for faster builds.
{% endif -%}
LATEXMKOPTS =
LATEXMKOPTS ?=
{% if xindy_use -%}
export XINDYOPTS = {{ xindy_lang_option }} -M sphinx.xdy
{% if latex_engine == 'pdflatex' -%}
Expand Down

0 comments on commit 89e3169

Please sign in to comment.