Commits

Takayuki Shimizukawa committed 211d6ad

add latexpdfja target for Makefile/make.bat

Comments (0)

Files changed (1)

sphinx/quickstart.py

 \t@echo "  epub       to make an epub"
 \t@echo "  latex      to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
 \t@echo "  latexpdf   to make LaTeX files and run them through pdflatex"
+\t@echo "  latexpdfja to make LaTeX files and run them through pdflatex"
 \t@echo "  text       to make text files"
 \t@echo "  man        to make manual pages"
 \t@echo "  changes    to make an overview of all changed/added/deprecated items"
 \tmake -C $(BUILDDIR)/latex all-pdf
 \t@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
 
+latexpdfja:
+\t$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
+\t@echo "Running LaTeX files through pdflatex..."
+\tmake -C $(BUILDDIR)/latex all-pdf-ja
+\t@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
+
 text:
 \t$(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text
 \t@echo
 \techo.  devhelp    to make HTML files and a Devhelp project
 \techo.  epub       to make an epub
 \techo.  latex      to make LaTeX files, you can set PAPER=a4 or PAPER=letter
+\techo.  latexpdf   to make LaTeX files and run them through pdflatex
+\techo.  latexpdfja to make LaTeX files and run them through pdflatex
 \techo.  text       to make text files
 \techo.  man        to make manual pages
 \techo.  changes    to make an overview over all changed/added/deprecated items
 \tgoto end
 )
 
+if "%1" == "latexpdf" (
+\t%SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex
+\tcd %BUILDDIR%/latex
+\tmake all-pdf
+\tcd %BUILDDIR%/..
+\techo.
+\techo.Build finished; the PDF files are in %BUILDDIR%/latex.
+\tgoto end
+)
+
+if "%1" == "latexpdfja" (
+\t%SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex
+\tcd %BUILDDIR%/latex
+\tmake all-pdf-ja
+\tcd %BUILDDIR%/..
+\techo.
+\techo.Build finished; the PDF files are in %BUILDDIR%/latex.
+\tgoto end
+)
+
 if "%%1" == "text" (
 \t%%SPHINXBUILD%% -b text %%ALLSPHINXOPTS%% %%BUILDDIR%%/text
 \tif errorlevel 1 exit /b 1