Skip to content

Commit

Permalink
Merge pull request #9687 from tk0miya/9500_latexpdf_on_windows
Browse files Browse the repository at this point in the history
Fix #9500: LaTeX: Failed to build Japanese document on Windows
  • Loading branch information
tk0miya committed Sep 30, 2021
2 parents f34eb49 + 3cde487 commit c1f8afa
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions CHANGES
Expand Up @@ -133,6 +133,7 @@ Bugs fixed
with the HEAD of 3.10
* #9436, #9471: autodoc: crashed if ``autodoc_class_signature = "separated"``
* #9456: html search: html_copy_source can't control the search summaries
* #9500: LaTeX: Failed to build Japanese document on Windows
* #9435: linkcheck: Failed to check anchors in github.com

Release 4.1.1 (released Jul 15, 2021)
Expand Down
2 changes: 1 addition & 1 deletion sphinx/texinputs/make.bat_t
Expand Up @@ -4,7 +4,7 @@ REM Command file for Sphinx documentation

pushd %~dp0

{% if latex_engine == 'platex' -%}
{% if latex_engine in ('platex', 'uplatex') -%}
REM latexmkrc is read then overridden by latexmkjarc
set PDFLATEX=latexmk -r latexmkjarc -pdfdvi -dvi- -ps-
{% else -%}
Expand Down
12 changes: 6 additions & 6 deletions sphinx/texinputs_win/Makefile_t
Expand Up @@ -16,7 +16,7 @@ LATEX = latex
PDFLATEX = {{ latex_engine }}
MAKEINDEX = makeindex

{% if latex_engine == 'platex' %}
{% if latex_engine in ('platex', 'uplatex') -%}
all: all-pdf-ja
all-pdf: all-pdf-ja
{% else %}
Expand All @@ -28,12 +28,12 @@ all-ps: $(ALLPS)

all-pdf-ja:
for f in *.pdf *.png *.gif *.jpg *.jpeg; do extractbb $$f; done
for f in *.tex; do platex -kanji=utf8 $(LATEXOPTS) $$f; done
for f in *.tex; do platex -kanji=utf8 $(LATEXOPTS) $$f; done
for f in *.tex; do platex -kanji=utf8 $(LATEXOPTS) $$f; done
for f in *.tex; do {{ latex_engine }} -kanji=utf8 $(LATEXOPTS) $$f; done
for f in *.tex; do {{ latex_engine }} -kanji=utf8 $(LATEXOPTS) $$f; done
for f in *.tex; do {{ latex_engine }} -kanji=utf8 $(LATEXOPTS) $$f; done
-for f in *.idx; do mendex -U -f -d "`basename $$f .idx`.dic" -s python.ist $$f; done
for f in *.tex; do platex -kanji=utf8 $(LATEXOPTS) $$f; done
for f in *.tex; do platex -kanji=utf8 $(LATEXOPTS) $$f; done
for f in *.tex; do {{ latex_engine }} -kanji=utf8 $(LATEXOPTS) $$f; done
for f in *.tex; do {{ latex_engine }} -kanji=utf8 $(LATEXOPTS) $$f; done
for f in *.dvi; do dvipdfmx $$f; done

zip: all-$(FMT)
Expand Down

0 comments on commit c1f8afa

Please sign in to comment.