diff options
| author | Steve Piercy <web@stevepiercy.com> | 2018-04-25 02:40:44 -0700 |
|---|---|---|
| committer | Steve Piercy <web@stevepiercy.com> | 2018-05-16 14:00:14 -0700 |
| commit | d4be9a573c575ae38f38325e3e8332eb399ae87e (patch) | |
| tree | 266a300a0e2598659fe98b5b1b64bd275b020cf9 /docs | |
| parent | a5dc96147bc939d17404073f617c30a6903d22b5 (diff) | |
| download | pyramid-d4be9a573c575ae38f38325e3e8332eb399ae87e.tar.gz pyramid-d4be9a573c575ae38f38325e3e8332eb399ae87e.tar.bz2 pyramid-d4be9a573c575ae38f38325e3e8332eb399ae87e.zip | |
Support xelatex for PDF output
- Now with Unicode character support
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/Makefile | 8 | ||||
| -rw-r--r-- | docs/conf.py | 11 |
2 files changed, 18 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 diff --git a/docs/conf.py b/docs/conf.py index 5d68a73a3..c0cb2bdcb 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -223,6 +223,17 @@ latex_domain_indices = False _PREAMBLE = r""" \usepackage[]{geometry} \geometry{bindingoffset=0.45in,textheight=7.25in,hdivide={0.5in,*,0.75in},vdivide={1in,7.25in,1in},papersize={7.5in,9.25in}} + +%XeLaTeX packages +\usepackage{xltxtra} +\usepackage{fontspec} %Font package +\usepackage{xunicode} + +%Select fonts +\setmainfont[Mapping=tex-text]{nimbusserif} +\setsansfont[Mapping=tex-text]{nimbussans} +\setmonofont{nimbusmono} + \hypersetup{ colorlinks=true, linkcolor=black, |
