Using the subfig with memoir when referencing, it produces, for
example, 1a, 1b etc. Is it possible to get 1(a) 1(b) instead?
I am aware memoir has something for including sub figures but I need
subfig here.
Here's a minimal example:
\documentclass[article]{memoir}
\usepackage[caption=false]{subfig}
\begin{document}
\chapter{One}
See figures \ref{fig:1a} and \ref{fig:1b}
\begin{figure}
\centering
\subfloat[G]{Good?\label{fig:1a}}\qquad
\subfloat[B]{Bad?\label{fig:1b}}
\caption{A random figure}
\label{fig:1}
\end{figure}
\end{document}
Thanks in advance.
Leo
from test4.tex (part of the subfig docs)
\documentclass[article]{memoir}
\usepackage[caption=false]{subfig}
\captionsetup[subfigure]{subrefformat=parens}
\begin{document}
\chapter{One}
See figures \subref*{fig:1a} and \ref{fig:1b}
\begin{figure}
\centering
\subfloat[G]{Good?\label{fig:1a}}\qquad
\subfloat[B]{Bad?\label{fig:1b}}
\caption{A random figure}
\label{fig:1}
\end{figure}
\end{document}
--
/daleif (remove RTFSIGNATURE from email address)
LaTeX FAQ: http://www.tex.ac.uk/faq
LaTeX book: http://www.imf.au.dk/system/latex/bog/ (in Danish)
Remember to post minimal examples, see URL below
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=minxampl
http://www.minimalbeispiel.de/mini-en.html
> from test4.tex (part of the subfig docs)
>
> \documentclass[article]{memoir}
> \usepackage[caption=false]{subfig}
> \captionsetup[subfigure]{subrefformat=parens}
> \begin{document}
> \chapter{One}
> See figures \subref*{fig:1a} and \ref{fig:1b}
> \begin{figure}
> \centering
> \subfloat[G]{Good?\label{fig:1a}}\qquad
> \subfloat[B]{Bad?\label{fig:1b}}
> \caption{A random figure}
> \label{fig:1}
> \end{figure}
> \end{document}
Unfortunately the one for \ref is not easy to customise. I'd like to
use it with packages such as varioref or cleveref and I have one
command for referencing everything. But thanks for the example.
Best wishes,
Leo
then study the subfig manual or contact the author of that package.
Similar questions were raised in the past but it seems subfig still
hasn't got this feature. Maybe it is not worth fixing. I will use the
current format.
Thanks for your suggestions.
Leo
--
H A P P Y H O L I D A Y S!