diff options
| author | Georg Brandl <georg@python.org> | 2010-08-23 14:54:17 +0000 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2010-08-23 14:54:17 +0000 |
| commit | 6b950c8a839efd9a61f1d0ec468aa2293b74e434 (patch) | |
| tree | ba1a69862b40379f3933fe6c176d5fe822e72911 /sphinx/texinputs | |
| parent | 7edde36af0a94a7fdca7fe9e1425b8946e78486e (diff) | |
| download | sphinx-6b950c8a839efd9a61f1d0ec468aa2293b74e434.tar.gz | |
#501: Fix regression when building LaTeX docs with figures that
don't have captions.
Diffstat (limited to 'sphinx/texinputs')
| -rw-r--r-- | sphinx/texinputs/sphinx.sty | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sphinx/texinputs/sphinx.sty b/sphinx/texinputs/sphinx.sty index b5381392..cee4dc56 100644 --- a/sphinx/texinputs/sphinx.sty +++ b/sphinx/texinputs/sphinx.sty @@ -446,7 +446,10 @@ linkcolor=InnerLinkColor,filecolor=OuterLinkColor, menucolor=OuterLinkColor,urlcolor=OuterLinkColor, citecolor=InnerLinkColor]{hyperref} -\RequirePackage[figure,table]{hypcap} +% Fix anchor placement for figures with captions. +% (Note: we don't use a package option here; instead, we give an explicit +% \capstart for figures that actually have a caption.) +\RequirePackage{hypcap} % From docutils.writers.latex2e \providecommand{\DUspan}[2]{% |
