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.

How do you persistently change caption width in memoir? I know you can use \changecaptionwidth followed by a \captionwidth{...}, but that only works within a float and I don't want to have to specify that all the time.

Also, if caption widths can be set persistently, how do you revert to using the full width when using subcaptions?

share|improve this question

1 Answer 1

up vote 4 down vote accepted

At least for me, \changecaptionwidth does work in the document preamble.

\documentclass{memoir}

\newcommand*{\sometext}{Lorem ipsum dolor sit amet, consectetuer
    adipiscing elit. Ut purus elit, vestibulum ut, placerat ac,
    adipiscing vitae, felis. Curabitur dictum gravida mauris.}

\changecaptionwidth
\captionwidth{0.6\textwidth}

\setfloatadjustment{figure}{\centering}

\begin{document}

\begin{figure}
\rule{1cm}{1cm}
\caption{\sometext}
\end{figure}

\normalcaptionwidth

\begin{figure}
\rule{1cm}{1cm}
\caption{\sometext}
\end{figure}

\changecaptionwidth

\begin{figure}
\rule{1cm}{1cm}
\caption{\sometext}
\end{figure}

\end{document}
share|improve this answer
    
Huh. Now that I retry it, it works for me too; before I got a compilation error. Must have been after I fixed the memoir-caption conflicts after removing the subfig package. –  gablin Sep 18 '11 at 16:51
    
If you face an error, always try to delete auxiliary files and then compile again. –  lockstep Sep 18 '11 at 16:53

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.