[texhax] Put a . after the section number

Uwe Lueck uwe.lueck at web.de
Fri Nov 12 16:17:12 CET 2010


LaTeX has 

    \def\@seccntformat#1{\csname the#1\endcsname\quad}

and you could change it into 

    \def\@seccntformat#1{\csname the#1\endcsname.\quad}

-- so much for the section heading in main text, vs. TOC!?

HTH -- Uwe. 


"Michael Barr" <barr at math.mcgill.ca>, 12.11.2010 15:57:36:
>Good point.  Only for the visual effect, not for use in \ref.
>
>Michael
>
>On Fri, 12 Nov 2010, Lars Madsen wrote:
>
>> Michael Barr wrote:
>>>  Is there an easy way to add a period after section, subsection numbers,
>>>  etc. so that \section{Introduction.} gives:
>>>
>>>  1. Introduction.
>>>
>>>  Michael Barr
>>>  _______________________________________________
>>>  TeX FAQ: http://www.tex.ac.uk/faq
>>>  Mailing list archives: http://tug.org/pipermail/texhax/
>>>  More links: http://tug.org/begin.html
>>>
>>>  Automated subscription management: http://tug.org/mailman/listinfo/texhax
>>>  Human mailing list managers: postmaster at tug.org
>>
>> depends on which document class you are using and if it is only for visual 
>> effect or if a reference to this section should also give 1.
>>
>>
>_______________________________________________
>TeX FAQ: http://www.tex.ac.uk/faq
>Mailing list archives: http://tug.org/pipermail/texhax/
>More links: http://tug.org/begin.html
>
>Automated subscription management: http://tug.org/mailman/listinfo/texhax
>Human mailing list managers: postmaster at tug.org


More information about the texhax mailing list