Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 304551

Summary: dev-texlive/texlive-latex{,recommended}-2009: caption and hyperref don't work together
Product: Gentoo Linux Reporter: Martin von Gagern <Martin.vGagern>
Component: Current packagesAssignee: Alexis Ballier <aballier>
Status: RESOLVED FIXED    
Severity: normal CC: tex
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://tug.ctan.org/cgi-bin/ctanPackageInformation.py?id=caption
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 314795    

Description Martin von Gagern 2010-02-11 13:12:05 UTC
The versions of caption and hyperref shipped with texlive 2009 are incompatible.
\ProvidesPackage{caption}[2009/10/09 v3.1k Customizing captions (AR)]
\ProvidesPackage{hyperref}[2009/12/28 v6.79z Hypertext links for LaTeX]

The latest version of caption, v3.1m, does again work with hyperref v6.79z.


Reproducible: Always

Steps to Reproduce:
Run the following through pdflatex:

\documentclass{article}
\usepackage{caption}
\usepackage{hyperref}
\begin{document}
\begin{figure}
\centering
\rule{2cm}{2cm}
\caption*{a caption}
\end{figure}
\end{document}

Actual Results:  
Black box with two lines of caption
"Figure 1: *"
"a caption"

Messages from pdflatex printed to the command line include:
Package caption Warning: \caption will not be redefined since it's already
(caption)                redefined by a document class or package which is
(caption)                unknown to the caption package.
See the caption package documentation for explanation.


Expected Results:  
Black box with one line of caption:
"a caption"

No warnings printed to pdflatex standard output.


Announcement for caption v3.1l:
This version includes adaptions to the very recent hyperref and nameref 
package versions. Furthermore it should work with the combine document 
class, too.

Announcement for caption v3.1m:
The usage of the subfig package without the hyperref package was broken in 
version 3.1l, fixed
Comment 1 Alexis Ballier gentoo-dev 2010-10-24 18:14:14 UTC
caption 3.1m is in texlive 2010, closing