[OS X TeX] Caption-hyperref conflict
Axel E. Retif
axel.retif at mac.com
Mon Jul 16 05:38:22 CEST 2007
On 15 Jul, 2007, at 20:18, Herbert Schulz wrote:
> On Jul 15, 2007, at 8:01 PM, McGarry Vince wrote:
>
>> ...
>> Regardless of the calling order of caption and hyperref, the
>> figure number has a colon (:) after it. I don't believe it should.
>> It doesn't if hyperref is commented out. Should I call \caption
>> with different option(s) when using hyperref to prevent the colon
>> from being printed?
>>
>> Vince McGarry
>
> Howdy,
>
> I'm not getting the colon with either order.
I do get a colon too, but this works for me:
\documentclass{article}
\usepackage{hyperref}
\usepackage[hyperref=no]{caption} %% <-not necessary, but maybe better
\begin{document}
\begin{figure}[htbp]
\centering
This is a test!
\captionsetup{labelformat=simple,labelsep=none}%% <-- use
captionsetup first,
\caption{} %% with simple, rather
than
\label{fig:Test} %% empty, and then
caption
\end{figure}
\end{document}
Best,
Axel
------------------------- Helpful Info -------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
List Reminders & Etiquette: http://www.esm.psu.edu/mac-tex/list/
More information about the macostex-archives
mailing list