[OS X TeX] Question about changing subsection name

Charilaos Skiadas cskiadas at gmail.com
Sat Jun 14 23:54:38 CEST 2008


Does this fix it:

\documentclass[]{article}
\providecommand\subsectionname{subsection}
\renewcommand{\subsectionname}{section}


And perhaps if someone could explain to me what \subsectionname does,  
and what the added \providecommand does? I basically just found this  
suggestion in
http://www.cse.iitd.ernet.in/~anup/homepage/UNIX/latex.html
but had never encountered \subsectionname before.

Haris Skiadas
Department of Mathematics and Computer Science
Hanover College

On Jun 14, 2008, at 5:00 PM, Michael Kubovy 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/
>
>








More information about the macostex-archives mailing list