[OS X TeX] Question about changing subsection name

Chris Skeels Chris.Skeels at unimelb.edu.au
Sat Jun 14 23:41:11 CEST 2008


Because there is no such variable:  Try the following:

\documentclass[]{article}

\usepackage[pdftex,backref,breaklinks]{hyperref}
\renewcommand{\subsectionautorefname}{section}
\begin{document}
\section{One}

\subsection{OneOne}
\label{ss:oneone}

XXX

\section{Two}
\autoref{ss:oneone}

\end{document}


\end{document}


On 15/6/08 7:00 AM, "Michael Kubovy" <kubovy at virginia.edu> wrote:

> Can anyone tell me why this is failing with
> 
> ! LaTeX Error: \subsectionname undefined.
> 
> See the LaTeX manual or LaTeX Companion for explanation.
> Type  H <return>  for immediate help.
>  ...             
>                  
> l.2 \renewcommand{\subsectionname}
>                                   {section}
> ? 
> 
> ***************
> file
> ***************
> 
> \documentclass[]{article}
> \renewcommand{\subsectionname}{section}
> 
> \usepackage[pdftex,backref,breaklinks]{hyperref}
> \begin{document}
> \section{One}
> 
> \subsection{OneOne}
> \label{ss:oneone}
> 
> XXX
> 
> \section{Two}
> \autoref{ss:oneone}
> 
> \end{document}
> 
> ***************
> end
>  
> ***************
> _____________________________
> 
> Professor Michael Kubovy
> 
> University of Virginia
> 
> Department of Psychology
> 
> USPS:     P.O.Box 400400    Charlottesville, VA 22904-4400
> 
> Parcels:    Room 102        Gilmer Hall
> 
>         McCormick Road    Charlottesville, VA 22903
> 
> Office:    B011    +1-434-982-4729
> 
> Lab:        B019    +1-434-982-4751
> 
> Fax:        +1-434-982-4766
> 
> WWW:    http://www.people.virginia.edu/~mk9y/
> 
> 
> 
>  
> 
> 
> 
>  
> -------------------------- Helpful Info --------------------------
> TeX FAQ: http://www.tex.ac.uk/faq
> List Reminders and Etiquette: http://www.esm.psu.edu/mac-tex/list/
> List Info: http://email.esm.psu.edu/mailman/listinfo/macosx-tex
> List Archive: http://tug.org/pipermail/macostex-archives/
> Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
> 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/macostex-archives/attachments/20080615/b62d7932/attachment.html>


More information about the macostex-archives mailing list