[OS X TeX] Memoir question

Michael Sharpe msharpe at ucsd.edu
Sun Jan 8 15:36:34 EST 2012


On Jan 8, 2012, at 10:10 AM, Herbert Schulz wrote:

> 
> On Jan 8, 2012, at 12:02 PM, Themis Matsoukas wrote:
> 
>> On Jan 8, 2012, at 12:24 PM, Alan Munn wrote:
>> 
>>> Can you post a minimal example?  The following seems to work as you would expect:
>> 
>> Alan,
>> 
>> thanks to your suggestion I did some more experimention and its seems that the problem is a conflict with hyperref:
>> 
>> \documentclass{memoir}
>> \usepackage[utf8]{inputenc}
>> \usepackage[backref,colorlinks=true,citecolor=blue,linkcolor=blue]{hyperref}
>> \chapterstyle{thatcher}
>> \begin{document}
>> \tableofcontents
>> \chapter{A chapter}
>> \begin{equation}
>> y = x^{2}
>> \label{abc}
>> \end{equation}
>> \chapter{Another chapter Eq.~\ref{abc}}
>> \end{document}
>> 
>> In the console I get:
>> 
>> LaTeX Warning: Reference `ABC' on page 5 undefined on input line 12.
>> 
>> 
>> Themis
> 
> 
> Howdy,
> 
> Does
> 
> \chapter{Another chapter Eq.~\lowercase{\ref{abc}}}
> 
> solve the problem? Don't know what you'd do if the reference was `Abc'; is there a \keepcase command?
> 
> Good Luck,
> 
> Herb Schulz
> (herbs at wideopenwest dot com)
> 

The textcase package, loaded with  \usepackage[overload]{textcase}, seems to solve the problem without using \lowercase and works with mixed cases. Eg,

\documentclass{memoir}
\usepackage[overload]{textcase}
\usepackage[utf8]{inputenc}
\usepackage[backref,colorlinks=true,citecolor=blue,linkcolor=blue]{hyperref}
\chapterstyle{thatcher}
\begin{document}
\tableofcontents
\chapter{A chapter}
\begin{equation}
y = x^{2}
\label{Abc}
\end{equation}
\chapter{Another chapter Eq.~\ref{Abc}}
\end{document}

Michael


More information about the MacOSX-TeX mailing list