Added entry to docs Makefile and Sphinx config to build PDF usinx XeTeX

We have a few unicode chars in the docs now. Plus this should be a good
change for future non-English builds of the docs.
This commit is contained in:
Seth House 2014-06-04 17:40:31 -06:00
parent 3890872164
commit 63dc40bd06
2 changed files with 18 additions and 0 deletions

View file

@ -139,6 +139,12 @@ latexpdfja: translations
$(MAKE) -C $(BUILDDIR)/latex all-pdf-ja
@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
xetexpdf: translations
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
@echo "Running LaTeX files through xelatex..."
cd $(BUILDDIR)/latex; xelatex *.tex && xelatex *.tex; cd -
@echo "xelatex finished; the PDF files are in $(BUILDDIR)/latex."
text: translations
$(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text
@echo

View file

@ -235,6 +235,18 @@ latex_documents = [
latex_logo = '_static/salt-logo.pdf'
latex_elements = {
'inputenc': '', # use XeTeX instead of the inputenc LaTeX package.
'utf8extra': '',
'preamble': '''
\usepackage{fontspec}
\setsansfont{DejaVu Sans}
\setromanfont{DejaVu Serif}
\setmonofont{DejaVu Sans Mono}
''',
}
### Linkcheck options
linkcheck_ignore = [r'http://127.0.0.1',
r'http://salt:\d+',