ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: Enumerating paragraphs
@ 2000-09-20  2:31 Guy Worthington
  2000-09-20  2:53 ` [Q] \inleft [was Re: Enumerating paragraphs] Hans Fredrik Nordhaug
  0 siblings, 1 reply; 4+ messages in thread
From: Guy Worthington @ 2000-09-20  2:31 UTC (permalink / raw)


Thanks Ed L Cashin for your solution.  I had read section 12
in the beginner's manual but it takes an especially devious mind to
invent a wrapper macro around the paragraph formatting macro.  Your
reference to the Count was much more obvious (I guess I watch too much
Sesame St.).

Thanks Hans Hagen for your reply.  I'm continually amazed at what
you've packed into ConTeXt, the \inleft command is exactly what I
want.


^ permalink raw reply	[flat|nested] 4+ messages in thread
* [Q] \inleft [was Re: Enumerating paragraphs]
@ 2000-09-20 12:51 Guy Worthington
  0 siblings, 0 replies; 4+ messages in thread
From: Guy Worthington @ 2000-09-20 12:51 UTC (permalink / raw)


Sorry for the superficial reply I'm not a ConTeXt evangelist.

My original plain TeX macro (which I'd cite if it wasn't archived in
the bin) didn't align the margin number with the paragraph.
The \inleft command does.  

I'm happy with the following layout:

% Enumerate paragraphs
\newcounter\ParNum
\def\GuyPar{\doglobal\increment\ParNum\inleft{\ParNum}}

\setupbodyfont[ber,10pt]
\setupwhitespace[big]

\starttext

\section[sec-language]{How this Book Teaches You The Language}

\GuyPar Java is an object oriented programming language.  When you use
an object oriented programming language, your program consists of
class definitions.

\stoptext


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2000-09-20 12:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-09-20  2:31 Enumerating paragraphs Guy Worthington
2000-09-20  2:53 ` [Q] \inleft [was Re: Enumerating paragraphs] Hans Fredrik Nordhaug
2000-09-20  8:16   ` Hans Hagen
2000-09-20 12:51 Guy Worthington

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).