[Python-checkins] r65268 - in doctools/branches/0.4.x: CHANGES sphinx/texinputs/sphinx.sty

georg.brandl python-checkins at python.org
Tue Jul 29 10:21:34 CEST 2008


Author: georg.brandl
Date: Tue Jul 29 10:21:33 2008
New Revision: 65268

Log:
Fix by Markus Gritsch to place correct links to headings.


Modified:
   doctools/branches/0.4.x/CHANGES
   doctools/branches/0.4.x/sphinx/texinputs/sphinx.sty

Modified: doctools/branches/0.4.x/CHANGES
==============================================================================
--- doctools/branches/0.4.x/CHANGES	(original)
+++ doctools/branches/0.4.x/CHANGES	Tue Jul 29 10:21:33 2008
@@ -1,6 +1,8 @@
 Release 0.4.2 (in development)
 ==============================
 
+* Fix a bug with LaTeX links to headings leading to a wrong page.
+
 * Reread documents with globbed toctrees when source files are
   added or removed.
 

Modified: doctools/branches/0.4.x/sphinx/texinputs/sphinx.sty
==============================================================================
--- doctools/branches/0.4.x/sphinx/texinputs/sphinx.sty	(original)
+++ doctools/branches/0.4.x/sphinx/texinputs/sphinx.sty	Tue Jul 29 10:21:33 2008
@@ -336,14 +336,14 @@
 
 % Augment the sectioning commands used to get our own font family in place,
 % and reset some internal data items:
-\titleformat{\section}{\Large\py at HeaderFamily\py at TitleColor}%
-{\thesection}{0.5em}{}{\py at NormalColor}
-\titleformat{\subsection}{\large\py at HeaderFamily\py at TitleColor}%
-{\thesubsection}{0.5em}{}{\py at NormalColor}
-\titleformat{\subsubsection}{\py at HeaderFamily\py at TitleColor}%
-{\thesubsubsection}{0.5em}{}{\py at NormalColor}
-\titleformat{\paragraph}{\large\py at HeaderFamily\py at TitleColor}%
-{}{0em}{}{\py at NormalColor}
+\titleformat{\section}{\Large\py at HeaderFamily}%
+            {\py at TitleColor\thesection}{0.5em}{\py at TitleColor}{\py at NormalColor}
+\titleformat{\subsection}{\large\py at HeaderFamily}%
+            {\py at TitleColor\thesubsection}{0.5em}{\py at TitleColor}{\py at NormalColor}
+\titleformat{\subsubsection}{\py at HeaderFamily}%
+            {\py at TitleColor\thesubsubsection}{0.5em}{\py at TitleColor}{\py at NormalColor}
+\titleformat{\paragraph}{\large\py at HeaderFamily}%
+            {\py at TitleColor}{0em}{\py at TitleColor}{\py at NormalColor}
 
 
 % Now for a lot of semantically-loaded environments that do a ton of magical


More information about the Python-checkins mailing list