diff options
author | Michal Minar <miminar@redhat.com> | 2013-09-13 09:59:53 +0200 |
---|---|---|
committer | Michal Minar <miminar@redhat.com> | 2013-09-13 09:59:53 +0200 |
commit | d0be7041459f3a3e6640135c513a7063ce067d4e (patch) | |
tree | a86f3eecb6b31b37ee4bc0ead86e7b42cd79a6a3 /doc | |
parent | 5670b54b1b9be9012f41d4152e67ed375c115158 (diff) | |
download | openlmi-scripts-d0be7041459f3a3e6640135c513a7063ce067d4e.tar.gz openlmi-scripts-d0be7041459f3a3e6640135c513a7063ce067d4e.tar.xz openlmi-scripts-d0be7041459f3a3e6640135c513a7063ce067d4e.zip |
improved making of pdf documentation
Index now contains just one column. There are too long lines
for 2-columns making the index unreadable.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/Makefile | 8 | ||||
-rw-r--r-- | doc/conf.py | 1 |
2 files changed, 5 insertions, 4 deletions
diff --git a/doc/Makefile b/doc/Makefile index 68eab5d..34fcff7 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -6,6 +6,7 @@ SPHINXOPTS = SPHINXBUILD = sphinx-build PAPER = BUILDDIR = _build +PROJECTNAME = OpenLMIScripts # Internal variables. PAPEROPT_a4 = -D latex_paper_size=a4 @@ -107,21 +108,20 @@ devhelp: @echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/AnacondaStorageProvider" @echo "# devhelp" -epub:figures api.rst +epub: figures api.rst $(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub @echo @echo "Build finished. The epub file is in $(BUILDDIR)/epub." latex: figures api.rst $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex + sed -i 's/^\\makeindex$$/\0[columns=1]/' $(BUILDDIR)/latex/$(PROJECTNAME).tex @echo @echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex." @echo "Run \`make' in that directory to run these through (pdf)latex" \ "(use \`make latexpdf' here to do that automatically)." -latexpdf: figures api.rst - $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex - @echo "Running LaTeX files through pdflatex..." +latexpdf: latex $(MAKE) -C $(BUILDDIR)/latex all-pdf @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex." diff --git a/doc/conf.py b/doc/conf.py index 8fb4359..bb5748a 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -178,6 +178,7 @@ latex_elements = { # Additional stuff for the LaTeX preamble. 'preamble': u""" +\\usepackage{imakeidx} \\usepackage{tikz} \\makeatletter |