summaryrefslogtreecommitdiff
path: root/docs/Makefile
diff options
context:
space:
mode:
authorSteve Piercy <web@stevepiercy.com>2018-04-25 02:40:44 -0700
committerSteve Piercy <web@stevepiercy.com>2018-05-16 14:00:14 -0700
commitd4be9a573c575ae38f38325e3e8332eb399ae87e (patch)
tree266a300a0e2598659fe98b5b1b64bd275b020cf9 /docs/Makefile
parenta5dc96147bc939d17404073f617c30a6903d22b5 (diff)
downloadpyramid-d4be9a573c575ae38f38325e3e8332eb399ae87e.tar.gz
pyramid-d4be9a573c575ae38f38325e3e8332eb399ae87e.tar.bz2
pyramid-d4be9a573c575ae38f38325e3e8332eb399ae87e.zip
Support xelatex for PDF output
- Now with Unicode character support
Diffstat (limited to 'docs/Makefile')
-rw-r--r--docs/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/docs/Makefile b/docs/Makefile
index 411ff35df..1c752559c 100644
--- a/docs/Makefile
+++ b/docs/Makefile
@@ -12,7 +12,7 @@ PAPEROPT_a4 = -D latex_paper_size=a4
PAPEROPT_letter = -D latex_paper_size=letter
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
-.PHONY: help clean html text web pickle htmlhelp latex latexpdf changes linkcheck epub doctest
+.PHONY: help clean html text web pickle htmlhelp latex latexpdf changes linkcheck epub doctest xelatexpdf
help:
@echo "Please use \`make <target>' where <target> is one of"
@@ -30,6 +30,12 @@ help:
clean:
-rm -rf $(BUILDDIR)/*
+xelatexpdf:
+ $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
+ @echo "Running LaTeX files through xelatex..."
+ $(MAKE) PDFLATEX=xelatex -C $(BUILDDIR)/latex all-pdf
+ @echo "xelatex finished; the PDF files are in $(BUILDDIR)/latex."
+
html:
mkdir -p $(BUILDDIR)/html $(BUILDDIR)/doctrees
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html