[OS X TeX] Question about changing subsection name

Michael Kubovy kubovy at virginia.edu
Sat Jun 14 23:30:58 EDT 2008


Thanks so much to Chris Skeels, Bruno Voisin, Charilaos Skiadas, and  
Herbert Schulz

I now have
\renewcommand{\subsectionautorefname}{\S$\!\!$}
\renewcommand{\subsubsectionautorefname}{\S$\!\!$}
\renewcommand{\paragraphautorefname}{\S$\!\!$}

which is good for tight spaces.

If there's a cleaner way to reduce the space after the \S, I'd love to  
hear about it.

_____________________________
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/




On Jun 14, 2008, at 5:41 PM, Chris Skeels wrote:

> 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/
>>
>
>
> -------------------------- 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://email.esm.psu.edu/pipermail/macosx-tex/attachments/20080614/208664fa/attachment.html>


More information about the MacOSX-TeX mailing list