[texhax] Paragraph numbering

gabriele balducci balducci at dschgrazlin1.univ.trieste.it
Thu Mar 25 09:34:36 CET 2004


Hi Ian,

here is a tiny hack which I'm using since quite a bit.

Just save it in gbpara.sty and use it as:

...
\usepackage{gbpara}
...

\begin{document}

...
%% Here starts a par which we want to be numbered
\gbpara{}I'm a numbered paragraph! ...
...

---SNIP---
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{gbpara}
\typeout{Package: `gbpara', experimental}

\newcounter{gbparacounter}
\newlength{\gbparaindent}
\setlength{\gbparaindent}{0.5em}% you can tune this
\newcommand{\gbpara}{%
\par{}\noindent\refstepcounter{gbparacounter}\textbf{\thegbparacounter}.\kern\gbparaindent%
}
---SNIP---

HTH

Ciao
===========================================================================
Gabriele Balducci                  tel    I-040-5583957
Dipartimento di Scienze Chimiche   fax    I-040-5583903
Via L. Giorgieri 1                 e-mail balducci at univ.trieste.it
I-34127 TRIESTE
===========================================================================


More information about the texhax mailing list