[Tugindia] Numbers inside margins
E. Krishnan
ekmath at asianetindia.com
Sat Jul 23 05:13:11 CEST 2005
On Sat, 23 Jul 2005, Sridhar M.A. wrote:
> I want to format a document with numbered headings in the following format:
>
> 1. Intro
>
> The para(s) of text goes here.
>
>
> 100. Results
>
> Blah...blah
>
> The numbers are to be justified within a specified box, so that the
> text is always aligned with the text in the para below.
This is a trick from the documentation of the "sectsty" package.
Just include the following in your preamble:
\makeatletter
\def\@seccntformat#1{%
\protect\makebox[0pt][r]{%
\csname the#1\endcsname\quad}}
\makeatother
--
Krishnan
More information about the tugindia
mailing list