ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* paragraph enumeration
@ 2005-04-23  8:13 piskala upendran
  2005-04-26 10:42 ` Taco Hoekwater
  0 siblings, 1 reply; 3+ messages in thread
From: piskala upendran @ 2005-04-23  8:13 UTC (permalink / raw)


The paragraph enumeration is useful for only for
particular section and restart the number. can this be
modified to use for the whole book consisting of
different chapters and sections? It should not number
the chapter and sections as paragraph 

thanks

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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

* Re: paragraph enumeration
  2005-04-23  8:13 paragraph enumeration piskala upendran
@ 2005-04-26 10:42 ` Taco Hoekwater
  2005-04-27 21:19   ` Adam Lindsay
  0 siblings, 1 reply; 3+ messages in thread
From: Taco Hoekwater @ 2005-04-26 10:42 UTC (permalink / raw)


piskala upendran wrote:
> The paragraph enumeration is useful for only for

You mean that hack with \startParagraphs I posted a week
or so ago on this list?

When you change the definition of \Paragraphnumber to

   \def\Paragraphnumber%
     {\doglobal\increment\Paracount
      \Paracount.~}

Then you can do:

   \startParagraphs
   ....
   \stopParagraphs
   \section{...}
   \startParagraphs
   ....
   \stopParagraphs

Hope this helps, Taco

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

* Re: paragraph enumeration
  2005-04-26 10:42 ` Taco Hoekwater
@ 2005-04-27 21:19   ` Adam Lindsay
  0 siblings, 0 replies; 3+ messages in thread
From: Adam Lindsay @ 2005-04-27 21:19 UTC (permalink / raw)


Taco Hoekwater said this at Tue, 26 Apr 2005 12:42:05 +0200:

>piskala upendran wrote:
>> The paragraph enumeration is useful for only for
>
>You mean that hack with \startParagraphs I posted a week
>or so ago on this list?

I'm seeing this thread, and think about \setupparagraphnumbering. It
doesn't have the configuration options that allow the numbers to be set
in the text, but it strikes me as a good departure. You don't have to
turn it off for headings, either:

\starttext
\showframe
\setupcolors[state=start]
\setupparagraphnumbering[state=start,style=italic,distance=0pt]
%\startlinenumbering
\section{bloo}
\input knuth 
\section{blah}
\input knuth \par 
\setupparagraphnumbering[state=stop]
\input tufte \par
\setupparagraphnumbering[state=start,color=red]
\dorecurse{4}{\input tufte \par}
\stoptext

 
-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Adam T. Lindsay, Computing Dept.     atl@comp.lancs.ac.uk
 Lancaster University, InfoLab21        +44(0)1524/510.514
 Lancaster, LA1 4WA, UK             Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

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

end of thread, other threads:[~2005-04-27 21:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-23  8:13 paragraph enumeration piskala upendran
2005-04-26 10:42 ` Taco Hoekwater
2005-04-27 21:19   ` Adam Lindsay

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).