Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Background

Trying to reference the label of figures that are side-by-side.

Problem

Referencing figures by their label works, except when the figure is in a mini-page. That's when the word "Figure" does not appear in the output:

enter image description here

Preamble Source

The preamble is at: http://pastebin.com/Uq1sGrSd

LyX Source

The code LyX generates is:

\begin{figure}[H]
%
\begin{minipage}[t]{0.45\textwidth}%
\subfloat[\label{fig:Design-Flower-Title-Page}Title Page]{\includegraphics[width=8.89cm,height=6.281cm]{captures/template-flower-title-01}

}%
\end{minipage}\hfill{}%
\begin{minipage}[t]{0.45\textwidth}%
\subfloat[\label{fig:Design-Flower-Design-Page}Design Page]{\includegraphics[width=8.89cm,height=6.281cm]{captures/template-flower-title-02}

}%
\end{minipage}

\caption{Title and Detail Pages}

\end{figure}

Related

Line up captions on side by side figures

Question

What needs to change in the preamble so that the "Figure" label appears when referencing side-by-side graphics?

Thank you!

share|improve this question

1 Answer 1

up vote 3 down vote accepted

You did not tell us which referencing command and which subfigure package you use (there's no such package in your preamble).

I guess you use subfig (because of \subfloat) and \autoref. This would explain the behavior and can be fixed by

\newcommand*{\subfigureautorefname}{\figureautorefname}

Btw. hyperref is the first package in your preamble, it should be the last one (besides some exceptions).

share|improve this answer
    
Are you on Knuth's speed dial? Thank you, once again. –  Dave Jarvis Dec 9 '10 at 3:36

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.