ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Khaled Hosny <khaledhosny@eglug.org>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Thoughts on ConTeXt: ditched
Date: Mon, 28 Dec 2009 17:12:24 +0200	[thread overview]
Message-ID: <20091228151224.GA3717@khaled-laptop> (raw)
In-Reply-To: <4B38B634.5000501@gmail.com>


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

On Mon, Dec 28, 2009 at 02:44:20PM +0100, Manuel P. wrote:
> >>\def\quotebox#1#2
> >>    {\blank
> >>    \midaligned{\startbackground
> >>    \quotation{\em #1} \crlf --#2
> >>    \stopbackground}
> >>    \blank}
> >>----
> >>
> >>- the above \quotebox command, in some cases, sends pdftex and luatex (MKII and MKIV) to the moon with an infinite loop (100% CPU).
> >I guess this is a result of your own definition of the \quotebox macro which expects a space
> >at the end of the command, you should write (untested) instead:
> >
> >\define[2]\quotebox
> >   {\blank
> >    \startalignment[middle]
> >    \startbackground
> >    \quotation{\em#1}\crlf--#2
> >    \stopbackground
> >    \stopalignment
> >    \blank}
> >
> 
> A infinite loop with 100% cpu for some spaces? Well, I wasn't
> expecting this.

Well, that is how TeX works, not a ConTeXt issue here; your \quotebox
definition tells TeX to expect a space at the end of the macro, and it
was looking for it.

Regards,
 Khaled


-- 
 Khaled Hosny
 Arabic localiser and member of Arabeyes.org team
 Free font developer

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

[-- Attachment #2: Type: text/plain, Size: 486 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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2009-12-28 15:12 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-27 15:54 Manuel P.
2009-12-27 18:41 ` Wolfgang Schuster
2009-12-28 13:44   ` Manuel P.
2009-12-28 15:12     ` Khaled Hosny [this message]
2009-12-28 17:59     ` Hans Hagen
2009-12-29 12:48       ` Manuel P.
2009-12-29  2:48     ` berend
2009-12-29 12:57       ` Manuel P.
2010-01-03 18:45         ` Piotr Kopszak
2010-01-04 21:46           ` Manuel P.
2009-12-27 19:16 ` Peter Münster
2009-12-27 21:11   ` Hans Hagen
2009-12-28 13:48   ` Manuel P.
2009-12-28 17:19     ` Peter Münster
2009-12-28 11:30 ` Gour
2009-12-28 12:36 ` R. Bastian

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=20091228151224.GA3717@khaled-laptop \
    --to=khaledhosny@eglug.org \
    --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).