Re: [NTG-context] paragraph question (the return :O)

2009-03-13 Thread Alan Stone
Why this error (source: see attachment) ? chapter: 1 Chapter 1 ! Extra \fi. argument \fi One line. \doCountLines ...arlines \space L)\fi \endgroup #1 \par l.35 Thanks, Alan On Tue, Mar 10, 2009 at 6:32 PM, Wolfgang

Re: [NTG-context] paragraph question (the return :O)

2009-03-13 Thread Wolfgang Schuster
Am 13.03.2009 um 15:22 schrieb Alan Stone: Why this error (source: see attachment) ? \ifnum\parnumber=1 \expandafter\expandafter\expandafter\doCountLines \fi Wolfgang ___ If your question is of interest to

Re: [NTG-context] paragraph question (the return :O)

2009-03-11 Thread Alan Stone
Thanks Wolfgang. Digging into some TeX books to understand how and why these fixes work... Alan On Tue, Mar 10, 2009 at 6:32 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 10.03.2009 um 18:14 schrieb Alan Stone: I still say it's not a very good idea to do this In

Re: [NTG-context] paragraph question (the return :O)

2009-03-10 Thread Wolfgang Schuster
Am 10.03.2009 um 16:06 schrieb Alan Stone: Hi, Re: files in attachment Why is step 3 typeset in chapter 2's first paragraph instead of chapter 1's first paragraph and how to correct ? I still say it's not a very good idea to do this but here is a fixed version of your macros. You should

Re: [NTG-context] paragraph question (the return :O)

2009-03-10 Thread Alan Stone
On Tue, Mar 10, 2009 at 4:35 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: I still say it's not a very good idea to do this In order to make an informed decision, what are you refering to Wolfgang ? but here is a fixed version of your macros. You should always take care to

Re: [NTG-context] paragraph question (the return :O)

2009-03-10 Thread Wolfgang Schuster
Am 10.03.2009 um 17:35 schrieb Alan Stone: On Tue, Mar 10, 2009 at 4:35 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: I still say it's not a very good idea to do this In order to make an informed decision, what are you refering to Wolfgang ? Your \EveryPar hackery. I

Re: [NTG-context] paragraph question (the return :O)

2009-03-10 Thread Alan Stone
On Tue, Mar 10, 2009 at 5:46 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 10.03.2009 um 17:35 schrieb Alan Stone: On Tue, Mar 10, 2009 at 4:35 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: I still say it's not a very good idea to do this In order to

Re: [NTG-context] paragraph question

2009-03-06 Thread Alan Stone
Another idea... How do you make this line counter work ? \newcount\parnumber \newcount\linenumber \def\myCounters{% \EveryPar{% \advance\parnumber by 1 (P\the\parnumber) \EveryLine{% % (L\the\prevgraf)}} \advance\linenumber by 1 (L\the\linenumber)}

Re: [NTG-context] paragraph question

2009-03-06 Thread Hans Hagen
Alan Stone wrote: Another idea... How do you make this line counter work ? \newcount\parnumber \newcount\linenumber \def\myCounters{% \EveryPar{% \advance\parnumber by 1 (P\the\parnumber) \EveryLine{% % (L\the\prevgraf)}} \advance\linenumber by 1

Re: [NTG-context] paragraph question

2009-03-06 Thread Alan Stone
On Fri, Mar 6, 2009 at 3:05 PM, Hans Hagen pra...@wxs.nl wrote: [...] \startlinenumbering \input tufte \stoplinenumbering Ok, my question was a bit ambiguous... I was not looking to number lines, but to count lines using EveryLine within EveryPar, aka the paragraph counter \parnumber in the

Re: [NTG-context] paragraph question

2009-03-05 Thread Hans Hagen
Marcin Borkowski wrote: Dnia Wed, Mar 04, 2009 at 05:02:40PM +0100, Alan Stone napisa#322;(a): How do you access the first paragraph of each chapter ? ... to calculate its number of lines ? If not possible with ConTeXt commands, is this possible with LuaTeX commands? Maybe redefine \par to

Re: [NTG-context] paragraph question

2009-03-05 Thread Alan Stone
How do you invoke a command at the end of a paragraph ? Alan ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl /

Re: [NTG-context] paragraph question

2009-03-05 Thread Hans Hagen
Alan Stone wrote: How do you invoke a command at the end of a paragraph ? there is no hook for that (apart from adding a \endofpar command or whatever to every paragraph - Hans Hagen |

Re: [NTG-context] paragraph question

2009-03-05 Thread Alan Stone
How do you invoke a command at the end of a paragraph ? there is no hook for that (apart from adding a \endofpar command or whatever to every paragraph From TeX for the Impatient... --- \prevgraf [ number parameter ] In horizontal mode, this

Re: [NTG-context] paragraph question

2009-03-05 Thread Marcin Borkowski
Dnia Thu, Mar 05, 2009 at 02:44:53PM +0100, Wolfgang Schuster napisa#322;(a): Am 05.03.2009 um 14:25 schrieb Alan Stone: After giving it some further thought and with reference to specifies the number of lines in the paragraph so far, I don't need to know the paragraph's number of lines

Re: [NTG-context] paragraph question

2009-03-05 Thread Alan Stone
Thanks Wolfgang, however I'm looking for a solution without adding additional commands to the text source. Requires to switch to the LuaTeX list ? Alan On Thu, Mar 5, 2009 at 2:44 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 05.03.2009 um 14:25 schrieb Alan Stone: After

Re: [NTG-context] paragraph question

2009-03-05 Thread Wolfgang Schuster
Am 05.03.2009 um 14:25 schrieb Alan Stone: After giving it some further thought and with reference to specifies the number of lines in the paragraph so far, I don't need to know the paragraph's number of lines but whether its number of lines = 1 or not. You can test whether the last

Re: [NTG-context] paragraph question

2009-03-05 Thread Hans Hagen
Alan Stone wrote: Thanks Wolfgang, however I'm looking for a solution without adding additional commands to the text source. Requires to switch to the LuaTeX list ? that does not help you as taco and i are on both lists i can imagine that mkiv at some point privides something but it needs

Re: [NTG-context] paragraph question

2009-03-05 Thread Alan Stone
On Thu, Mar 5, 2009 at 5:09 PM, Hans Hagen pra...@wxs.nl wrote: Alan Stone wrote: Thanks Wolfgang, however I'm looking for a solution without adding additional commands to the text source. Requires to switch to the LuaTeX list ? that does not help you as taco and i are on both lists i

Re: [NTG-context] paragraph question

2009-03-05 Thread Hans Hagen
Alan Stone wrote: On Thu, Mar 5, 2009 at 5:09 PM, Hans Hagen pra...@wxs.nl wrote: Alan Stone wrote: Thanks Wolfgang, however I'm looking for a solution without adding additional commands to the text source. Requires to switch to the LuaTeX list ? that does not help you as taco and i are on

Re: [NTG-context] paragraph question

2009-03-04 Thread Alan Stone
How do you access the first paragraph of each chapter ? ... to calculate its number of lines ? If not possible with ConTeXt commands, is this possible with LuaTeX commands? Alan On Tue, Mar 3, 2009 at 12:49 PM, Alan Stone software.list.1e...@gmail.com wrote: Hi, How do you access the

Re: [NTG-context] paragraph question

2009-03-04 Thread Hans Hagen
Alan Stone wrote: How do you access the first paragraph of each chapter ? to calculate its number of lines ? If not possible with ConTeXt commands, is this possible with LuaTeX commands? \the\prevgraf but surely doable in luatex Hans

Re: [NTG-context] paragraph question

2009-03-04 Thread Hans Hagen
Alan Stone wrote: How do you access the first paragraph of each chapter ? to calculate its number of lines ? If not possible with ConTeXt commands, is this possible with LuaTeX commands? there is support for positional info ... depending on the problem that might help (set two

Re: [NTG-context] paragraph question

2009-03-04 Thread Alan Stone
On Wed, Mar 4, 2009 at 5:33 PM, Hans Hagen pra...@wxs.nl wrote: Alan Stone wrote: How do you access the first paragraph of each chapter ? to calculate its number of lines ? If not possible with ConTeXt commands, is this possible with LuaTeX commands? there is support for positional

Re: [NTG-context] paragraph question

2009-03-04 Thread Marcin Borkowski
Dnia Wed, Mar 04, 2009 at 05:02:40PM +0100, Alan Stone napisa#322;(a): How do you access the first paragraph of each chapter ? ... to calculate its number of lines ? If not possible with ConTeXt commands, is this possible with LuaTeX commands? Maybe redefine \par to do something like

Re: [NTG-context] paragraph question

2009-03-04 Thread Wolfgang Schuster
Am 04.03.2009 um 23:38 schrieb Marcin Borkowski: Dnia Wed, Mar 04, 2009 at 05:02:40PM +0100, Alan Stone napisa#322; (a): How do you access the first paragraph of each chapter ? ... to calculate its number of lines ? If not possible with ConTeXt commands, is this possible with LuaTeX