summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2016-02-29 11:25:27 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2016-03-02 11:11:11 +0900
commita2efd1475a026b09918a276813164fca3880c97c (patch)
tree2fb29060f0c1b6104160f3cbaeee0ce0310110cc
parent8ab5cdca2bf4b2c0e9ba5c129e9eeca522ef21d4 (diff)
downloadsphinx-git-a2efd1475a026b09918a276813164fca3880c97c.tar.gz
Move tocdepth definition to above of user-preamble (ref #2358)
-rw-r--r--CHANGES1
-rw-r--r--sphinx/writers/latex.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/CHANGES b/CHANGES
index 3c47589dc..93daf6aca 100644
--- a/CHANGES
+++ b/CHANGES
@@ -30,6 +30,7 @@ Bugs fixed
* #1565, #2229: Revert new warning; the new warning will be triggered from version 1.4 on.
* #2329: Refresh environment forcely if source directory has changed.
* #2019: Fix the domain objects in search result are not escaped
+* #2358: Fix user-preamble could not override the tocdepth definition.
Release 1.3.5 (released Jan 24, 2016)
=====================================
diff --git a/sphinx/writers/latex.py b/sphinx/writers/latex.py
index e187ae377..73b7b1721 100644
--- a/sphinx/writers/latex.py
+++ b/sphinx/writers/latex.py
@@ -48,6 +48,7 @@ HEADER = r'''%% Generated by Sphinx.
%(usepackages)s
%(contentsname)s
%(numfig_format)s
+%(tocdepth)s
%(preamble)s
\title{%(title)s}
@@ -56,7 +57,6 @@ HEADER = r'''%% Generated by Sphinx.
\author{%(author)s}
\newcommand{\sphinxlogo}{%(logo)s}
\renewcommand{\releasename}{%(releasename)s}
-%(tocdepth)s
%(makeindex)s
'''