From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/100058 Path: news.gmane.org!.POSTED!not-for-mail From: Tim Steenvoorden Newsgroups: gmane.comp.tex.context Subject: Unexpected emergency stop Date: Fri, 09 Feb 2018 18:03:46 +0000 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8752703613738671223==" X-Trace: blaine.gmane.org 1518199405 17396 195.159.176.226 (9 Feb 2018 18:03:25 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 9 Feb 2018 18:03:25 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Feb 09 19:03:21 2018 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekD0n-0002wr-Ka for gctc-ntg-context-518@m.gmane.org; Fri, 09 Feb 2018 19:03:01 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id DF70E422CDF; Fri, 9 Feb 2018 19:04:39 +0100 (CET) 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 LZphhdmu7PBv; Fri, 9 Feb 2018 19:04:24 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 3A354421530; Fri, 9 Feb 2018 19:04:24 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 4FED9421530 for ; Fri, 9 Feb 2018 19:04:23 +0100 (CET) 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 V3bwKlRGQNBA for ; Fri, 9 Feb 2018 19:04:08 +0100 (CET) Original-Received: from mail-wm0-f45.google.com (mail-wm0-f45.google.com [74.125.82.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 0E65E420264 for ; Fri, 9 Feb 2018 19:03:58 +0100 (CET) Original-Received: by mail-wm0-f45.google.com with SMTP id v123so17862584wmd.5 for ; Fri, 09 Feb 2018 10:03:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=EqdXTWIAC/1YzTM8VmNTkZjVAk9D7IUwFpdhO5/BW2Q=; b=M2+2hK4XVVHvdSjJcoym0b6fDd94o3EHmtUWpo62FJjZQWwK0M0yC5z1V20bgiqPzv VSGWNbi4Ers0iYMvXkm2Qsjy9F+/YgVZcV2LTJgVBGwXWTETfv9VVuGOIsTlraJ/RRYN XLUs8KQmVNynkC6Y7rnv2dUDSDy0QMFig6v+DZoLoCxT6RLYF38iIoe2C1+Dcy4DSzXJ feB9TWoNna6Bp3lQ/UukZGkOe2//V17AJ4CXfjM4/H86/LsHK/Ot01AD6YDuXsJBvTDN RnR2JsZalr2o/IVMDp+3tuQo0ID8nL8YCZ//U38c9G2YdYBRjgiRnNH+lQ7/Xi1UtnJz rSIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=EqdXTWIAC/1YzTM8VmNTkZjVAk9D7IUwFpdhO5/BW2Q=; b=DSRRrHptD0GlVmQpq+dJ/eeWOdzeteoaNP+0GvBnpEFyfdXNkFY9r28QGEZiWA5uqE F4IlpqUV0Oa65aOc5F3Ofh18CnUrQtoT87wTiH298AcpwxEYHgZTmxjfos+L07L5j9Rc I43PMbGwEVk7sUR05R/3Eh4qQhVdZw2iwfeLc6FijtO5noCb6o81qy0KQSSF+pn+bpAo IFS1P7yGByn/raZL/lUOJnxge6xrKz9v3UAIAPaL57thCBFLn4vtqF7ugD/ajPFg5zUX XzXXsZgstbWrMUHQ8r7Hdn/xrxFgZamCFWR2Abb5hyY2aRCFBpb1LYAq4m41VFTPAB/m ChNw== X-Gm-Message-State: APf1xPCbrKpdMH2XeUCYLbfBS9MGnriTI1ls21d3UMqiHHpVGzi8iOuK 2RlfxpROnbZbo0klASc3Jjpu7FpfGtUMCn5f2c4= X-Google-Smtp-Source: AH8x224MVgwrtNUq/Q1G/3d/l684gfzDdwN6ZwOX6hRKojrhcNSvh6tAy6CTroc3TzOADGj4wfEo51wTEbR/M23fbvc= X-Received: by 10.28.142.10 with SMTP id q10mr2873525wmd.3.1518199437441; Fri, 09 Feb 2018 10:03:57 -0800 (PST) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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.org gmane.comp.tex.context:100058 Archived-At: --===============8752703613738671223== Content-Type: multipart/alternative; boundary="001a114436e22abff30564cb5a13" --001a114436e22abff30564cb5a13 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Dear all, After some time I=E2=80=99m back to ConTeXt and I dug up some old macros. I= used to define a \see macro to automatically insert labels like =E2=80=9Cchapter=E2= =80=9D, "figure" etc. in front of a reference based on the structure of the label. Below you'll find its definition. It worked in MKIV about two years ago, nevertheless, now ConTeXt hangs when placing punctuation after the command. I.e. TeX hangs with an emergency stop (=E2=80=9C*" on the terminal) after all files have been processed (aft= er cont-yes.mkiv is closed). What am I doing wrong that such a thing happens? I=E2=80=99m on macOS 10.13.3 with minimals beta 2018.02.09 00:04. Cheers, Tim =E2=80=93=E2=80=93=E2=80=93=E2=80=93=E2=80=93=E2=80=93 \starttext \definemacro\see[#1:#2] {\dosee{#1}{#2}} \starttexdefinition dosee #1#2 \doifdefinedelse{in#1} {\getvalue{in#1}[#1:#2]} {\writestatus{references}{reference format in#1 not defined} \in[#1:#2]} \stoptexdefinition % #3 is optional and gobbled by \in \definereferenceformat[inchp] [text=3D\word{\labeltext{chapter}}] \setuplabeltext[en] [chapter=3DChapter~] \chapter[chp:first]{First} Works: \see[chp:first] Hangs: \see[chp:first], \stoptext =E2=80=93=E2=80=93=E2=80=93=E2=80=93=E2=80=93=E2=80=93 --=20 ---- T.J. Steenvoorden, MSc PhD Candidate | Radboud University Nijmegen Faculty of Science | Department of Software Science Mercator 1 Building | Room 01.08 Toernooiveld 212 | 6525 EC | Nijmegen | The Netherlands +31 24 365 22 91 | t.steenvoorden@cs.ru.nl --001a114436e22abff30564cb5a13 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Dear all,

After some time I= =E2=80=99m back to ConTeXt and I dug up some old macros. I used to define a= \see macro to automatically insert labels like =E2=80=9Cchapter=E2=80=9D, = "figure" etc. in front of a reference based on the structure of t= he label. Below you'll find its definition.

It= worked in MKIV about two years ago, nevertheless, now ConTeXt hangs when p= lacing punctuation after the command. I.e. TeX hangs with an emergency stop= (=E2=80=9C*" on the terminal) after all files have been processed (af= ter cont-yes.mkiv is closed).

What am I doing wron= g that such a thing happens?

I=E2=80=99m on macOS 10.13.3 with minimals beta=C2=A02018.02.09 00:04.

Cheers,
Tim
=


=E2=80=93=E2=80=93=E2=80=93=E2=80=93=E2= =80=93=E2=80=93=C2=A0

\starttext
\definemacro\see[#1:#2]
=C2=A0 {\dosee{#1}{#2}}
=

\starttexdefinition dosee #1#2
=C2=A0 \doifde= finedelse{in#1}
=C2=A0 =C2=A0 {\getvalue{in#1}[#1:#2]}
= =C2=A0 =C2=A0 {\writestatus{references}{reference format in#1 not defined}<= /div>
=C2=A0 =C2=A0 =C2=A0\in[#1:#2]}
\stoptexdefinition % #3= is optional and gobbled by \in

\definereferencefo= rmat[inchp]
=C2=A0 [text=3D\word{\labeltext{chapter}}]
=
\setuplabeltext[en]
=C2=A0 [chapter=3DChapter~]

\chapter[chp:first]{First}

= Works:
\see[chp:first]

Hangs:
= \see[chp:first],

\stoptext

=E2=80=93=E2=80=93=E2=80=93=E2=80=93=E2=80=93=E2=80=93=C2=A0
-= -
----
T.J. Steenvoor= den, MSc

PhD Candidate | Radboud Universit= y Nijmegen
Faculty of Science | Department of Software Scienc= e
Mercator 1 Building | Room 01.08
Toernooiveld= 212 | 6525 EC | Nijmegen | The Netherlands
+31 24 365 22 91 = | t.steenvoorden@cs.ru.nl
--001a114436e22abff30564cb5a13-- --===============8752703613738671223== 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 X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============8752703613738671223==--