[XeTeX] aligning section- and subsection etc. titles

Jens Bakker jbakker at uni-bonn.de
Mon Aug 9 11:04:56 CEST 2010


Dear Ulrike Fischer,

Your solution works fine, thank you very much for your immediate reply.

With best regards and best wishes,
Jens Bakker




Am 09.08.2010 um 10:22 schrieb Ulrike Fischer:

> Am Mon, 9 Aug 2010 09:50:41 +0200 schrieb Jens Bakker:
> 
>> Dear Ladies and Gentlemen,
>> 
>> I would like to ask if there is a possibility to achieve the alignment of the titles of the sections, subjections, and so forth, after the numbers, so that the following picture is achieved if they appear one immediately before the other:
>> 
>> 1		Introduction
>> 1.1		Preliminaries
>> 1.1.1	The Project
>> 
>> 
> 
>> I did not find any solution to that problem, and it seems, that it
>> is not possible to put the sectionnumbers into the
>> \makebox[1cm]{} order, as for example is possible with \fbox as
>> is explained in Mittelbach - Goossens: Latex-Begleiter (2.2.1,
>> p.29).
> 
> \makebox is not robust you must protect it:
> 
> \documentclass{article}
> \makeatletter
> \renewcommand\@seccntformat[1]{\protect\makebox[1cm][l]{\csname
> the#1\endcsname}\hspace{0.5ex}}
> \makeatother
> 
> \begin{document}
> \section{A}
> \subsection{B}
> \subsubsection{C}
> \end{document}
> 
> 
> -- 
> Ulrike Fischer 
> 
> 
> 
> --------------------------------------------------
> Subscriptions, Archive, and List information, etc.:
>  http://tug.org/mailman/listinfo/xetex




More information about the XeTeX mailing list