From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/107629 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Hans van der Meer Newsgroups: gmane.comp.tex.context Subject: Re: problem since previous versions Date: Sun, 7 Jun 2020 12:37:16 +0200 Message-ID: References: <9B0E8636-E100-4834-B59C-1E2C98D7822A@ziggo.nl> <946cf629-5310-f385-ffe1-6494d2a45b86@gmail.com> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.14\)) Content-Type: multipart/mixed; boundary="===============1129276742505279344==" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="86399"; mail-complaints-to="usenet@ciao.gmane.io" To: NTG ConTeXt Original-X-From: ntg-context-bounces@ntg.nl Sun Jun 07 12:37:52 2020 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jhsgY-000MNg-ND for gctc-ntg-context-518@m.gmane-mx.org; Sun, 07 Jun 2020 12:37:50 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id B4F901849A2; Sun, 7 Jun 2020 12:37:20 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cCAnmjdr03PU; Sun, 7 Jun 2020 12:37:19 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id C570C1849A4; Sun, 7 Jun 2020 12:37:19 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id A0A5318499F for ; Sun, 7 Jun 2020 12:37:18 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1HHSq1QXzTZg for ; Sun, 7 Jun 2020 12:37:17 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=212.54.42.167; helo=smtpq4.tb.mail.iss.as9143.net; envelope-from=havdmeer@ziggo.nl; receiver= Original-Received: from smtpq4.tb.mail.iss.as9143.net (smtpq4.tb.mail.iss.as9143.net [212.54.42.167]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 69AB6184990 for ; Sun, 7 Jun 2020 12:37:17 +0200 (CEST) Original-Received: from [212.54.42.110] (helo=smtp7.tb.mail.iss.as9143.net) by smtpq4.tb.mail.iss.as9143.net with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jhsg1-0004pn-9I for ntg-context@ntg.nl; Sun, 07 Jun 2020 12:37:17 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=ziggo.nl; s=202002corplgsmtpnl; h=To:Date:Subject:From; bh=EbXiETfWyOLFyUkMRnpT4jPvIv1XrLp6c6rykBHyH8M=; b=TLZ72j4FFwHi550vb62wQ8h8nY dw5AUP7PQ2IL86p/49SD4M89nkkDZAi5OmkUbGARFX11FpTgKo96V/yAPAC+2r6iDp9d5UK/fxzQr xSg4JZFQO2Rl10IMnJscO33CYMl2KAxpEvQWvdIv584SXYSZL9OhQPtQBF18YzHF3l0L8ESIPLJOH 3nLP20fzEZQqGkji/253ym5Td9Y0nxyWba9+c4FOqclVxGm6ew6l8GBet6Zqcl4nzQVRP/bm8FFUp MeATsqesJDVvVWDoOlXHui4s0cWiJ624Hs186jfe1neIo+7/0OSDUrVkutzPJMflgJz+XkLCN7Fsu g/3fpbkw==; Original-Received: from 84-106-134-200.cable.dynamic.v4.ziggo.nl ([84.106.134.200] helo=[192.168.178.15]) by smtp7.tb.mail.iss.as9143.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jhsg1-0007fS-4a for ntg-context@ntg.nl; Sun, 07 Jun 2020 12:37:17 +0200 In-Reply-To: <946cf629-5310-f385-ffe1-6494d2a45b86@gmail.com> X-Mailer: Apple Mail (2.3445.104.14) X-SourceIP: 84.106.134.200 X-Authenticated-Sender: havdmeer@ziggo.nl (via SMTP) X-Ziggo-spambar: / X-Ziggo-spamscore: 0.0 X-Ziggo-spamreport: CMAE Analysis: v=2.3 cv=Ne99K1L4 c=1 sm=1 tr=0 a=wCstmS+ZHA3zSJXjQC+ubA==:17 a=9+rZDBEiDlHhcck0kWbJtElFXBc=:19 a=nTHF0DUjJn0A:10 a=pGLkceISAAAA:8 a=MiNTnEJAAAAA:8 a=YEMqx4UAAAAA:8 a=ACQCx6kCAAAA:8 a=xtERp6CFAAAA:8 a=a3nu-2BBAAAA:8 a=5qRoLGMW06lYp_UDsVwA:9 a=CjuIK1q_8ugA:10 a=aO-8NeVW1rnIec5cCXUA:9 a=XDMGA9cTnKzxBOQ8:21 a=_W_S_7VecoQA:10 a=LmrbSfiT3hecnSZifb5M:22 a=V0662LiR8DSfwiDagK97:22 a=Sab0UneHBzlWrQDlOuxD:22 a=ekCXXmE-vB8RPiJ3MEZb:22 X-Ziggo-Spam-Status: No X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:107629 Archived-At: --===============1129276742505279344== Content-Type: multipart/alternative; boundary="Apple-Mail=_F23E8B74-8875-4F8E-8E3D-A8B1FB255112" --Apple-Mail=_F23E8B74-8875-4F8E-8E3D-A8B1FB255112 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Wolfgang, I did define the various variants in order to parametrize vtop, vbox and = vcenter through parameters top, bottom, center. =20 Happily there proved to be a remedy: place everything inside an \hbox = and the error goes away. Without problematic whitespace or other nasty = side effects, it seems. But, although the panic is over now :-), I am = still curious to know why it worked before and raises an error now. as for the definition of \placexlocation, it comes from: \def\setupplacex{\getparameters[placex]} \setupplacex[% default parameters ... location=3Dcenter,% ... ]% and I checked that it had the value: center. But if you are interested, I can send you the module code. dr. Hans van der Meer > On 7 Jun 2020, at 12:20, Wolfgang Schuster = wrote: >=20 > Hans van der Meer schrieb am 07.06.2020 um 12:07: >> A problem has arisen up since previous versions, where code without a = problem now raises an error. >> This is the afflicted code: >> % Assign values to \locationbox. >> \doif{top}{\placexlocation}% >> {\def\startlocationbox{\vtop\bgroup\vss}}% >> \doif{center}{\placexlocation}% >> {\def\startlocationbox{\vcenter\bgroup}}% >> \doif{bottom}{\placexlocation}% >> {\def\startlocationbox{\vbox\bgroup}}% >> And it is used here: >> \setbox\placexbox=3D\startlocationbox >> \ignorespaces >> Previously this worked without a hitch, now the error is: >> tex error > tex error on line 9 in file ./familie-events.tex: ! = A was supposed to be here >> >> \vcenter >> \startlocationbox ->\vcenter >> \bgroup >> \dostartcontentplacexinline ...ables \par \setbox \placexbox = =3D\startlocationbox >> = \ignorespaces >> \syst_helpers_single_empty_one_nop >> \xmlflush >> \21>:xmlplc:placexcontent ...le=3D\xmlatt = {#1}{alttitle}]}\startcontent \xmlflush >> = {#1}\stopcontent >> l.9 } >> I can try to make a minimal example, but not without the afflicted = module of some 800 lines. So perhaps the problem will be located by the = experts at first sight. It is of course the \vcenter playing havoc, = because replacing it by \vtop or \vbox makes the error disappear. >> Thanks for looking into it, because my work more or less depends on = this code working in good order. >=20 > How so you define \placexlocation? >=20 > Wolfgang > = __________________________________________________________________________= _________ > If your question is of interest to others as well, please add an entry = to the Wiki! >=20 > maillist : ntg-context@ntg.nl / = http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > = __________________________________________________________________________= _________ --Apple-Mail=_F23E8B74-8875-4F8E-8E3D-A8B1FB255112 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii
Wolfgang,

I did = define the various variants in order to parametrize vtop, vbox and = vcenter through parameters top, bottom, center.
 
Happily there proved to be a remedy: place everything inside = an \hbox and the error goes away. Without problematic whitespace or = other nasty side effects, it seems.  But, although the panic is = over now :-), I am still curious to know why it worked before and raises = an error now.

as= for the definition of \placexlocation, it comes from:
\def\setupplacex{\getparameters[placex]}
\setupplacex[% default = parameters
...
= location=3Dcenter,%
...
]%
and = I checked that it had the value: center.

But if you are interested, I can send = you the module code.

dr. Hans van der Meer


On 7 Jun 2020, at 12:20, Wolfgang Schuster <wolfgang.schuster.lists@gmail.com> wrote:

Hans = van der Meer schrieb am 07.06.2020 um 12:07:
A problem has arisen up since previous = versions, where code without a problem now raises an error.
This is the afflicted code:
% Assign values to = \locationbox.
\doif{top}{\placexlocation}%
{\def\startlocationbox{\vtop\bgroup\vss}}%
\doif{center}{\placexlocation}%
{\def\startlocationbox{\vcenter\bgroup}}%
\doif{bottom}{\placexlocation}%
{\def\startlocationbox{\vbox\bgroup}}%
And it = is used here:
\setbox\placexbox=3D\startlocationbox
\ignorespaces
Previously this worked without a = hitch, now the error is:
tex error       = > tex error on line 9 in file ./familie-events.tex: ! A <box> = was supposed to be here
<to be read again>
\vcenter
\startlocationbox ->\vcenter
                =              \bgroup
\dostartcontentplacexinline ...ables \par \setbox \placexbox = =3D\startlocationbox
=             &n= bsp;           &nbs= p;            =             &n= bsp;           &nbs= p;            =       \ignorespaces
<to be read = again> \syst_helpers_single_empty_one_nop
  =                     =              \xmlflush
\21>:xmlplc:placexcontent ...le=3D\xmlatt = {#1}{alttitle}]}\startcontent \xmlflush
=             &n= bsp;           &nbs= p;            =             &n= bsp;           &nbs= p;            =       {#1}\stopcontent
l.9 }
I= can try to make a minimal example, but not without the afflicted module = of some 800 lines. So perhaps the problem will be located by the experts = at first sight. It is of course the \vcenter playing havoc, because = replacing it by \vtop or \vbox makes the error disappear.
Thanks for looking into it, because my work more or less = depends on this code working in good order.
How so you define \placexlocation?

Wolfgang
_______________________________________________________________= ____________________
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://context.aanhet.net
archive  : = https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
_______________________________________________________________= ____________________

= --Apple-Mail=_F23E8B74-8875-4F8E-8E3D-A8B1FB255112-- --===============1129276742505279344== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============1129276742505279344==--