ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Alan Stone <software.list.1es9s@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: paragraph question (the return :O)
Date: Fri, 13 Mar 2009 15:22:42 +0100	[thread overview]
Message-ID: <326847810903130722q176c746ct8978a33a7e5dda11@mail.gmail.com> (raw)
In-Reply-To: <01AA6547-6B4B-479D-A841-8289BA40AB28@gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 1250 bytes --]

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 Schuster <
schuster.wolfgang@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 order to make an informed decision, what are you refering to Wolfgang
>>>> ?
>>>>
>>>
>>> Your \EveryPar hackery.
>>>
>>
>> What is it about it that it's a bad idea ?
>>
>
> Who knows, it could work or fail in a few cases.
>
>  I apologize for my ignorance, I'm still confused with this one (see
>>> attachments)...
>>>
>>> Why?
>>>
>>
>> (step 3: ...) is typeset one first paragraph too far.
>>
>
> \def\doCountLines#1\par{%
>       \begingroup
>       \setbox\scratchbox\vbox{#1\par}%
>       \getnoflines{\htdp\scratchbox}%
>       \global\parlines=\noflines\relax
> %       (step 2: P\space\the\parnumber, \the\parlines\space L)
>       \ifnum \parlines = 1
>               (step 3: P\space \the\parnumber, \the\parlines\space L)%
>       \fi
>       \endgroup#1\par}
>
>
> Wolfgang
>

[-- Attachment #1.2: Type: text/html, Size: 2445 bytes --]

[-- Attachment #2: countlines3.tex --]
[-- Type: application/x-tex, Size: 1792 bytes --]

[-- Attachment #3: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  parent reply	other threads:[~2009-03-13 14:22 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-10 15:06 Alan Stone
2009-03-10 15:35 ` Wolfgang Schuster
2009-03-10 16:35   ` Alan Stone
2009-03-10 16:46     ` Wolfgang Schuster
2009-03-10 17:14       ` Alan Stone
2009-03-10 17:32         ` Wolfgang Schuster
2009-03-11  8:06           ` Alan Stone
2009-03-13 14:22           ` Alan Stone [this message]
2009-03-13 14:33             ` Wolfgang Schuster

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=326847810903130722q176c746ct8978a33a7e5dda11@mail.gmail.com \
    --to=software.list.1es9s@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).