From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/91129 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Oddity with \definereferenceformat Date: Mon, 20 Apr 2015 10:03:59 +0200 Message-ID: <77F5F11F-7885-4564-B474-13C1745A21DD@gmail.com> References: <55346E1E.1000100@rik.users.panix.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\)) Content-Type: multipart/mixed; boundary="===============1048551759==" X-Trace: ger.gmane.org 1429517132 32264 80.91.229.3 (20 Apr 2015 08:05:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 20 Apr 2015 08:05:32 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Apr 20 10:05:20 2015 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Yk6hk-0002yn-1d for gctc-ntg-context-518@m.gmane.org; Mon, 20 Apr 2015 10:05:20 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4F7BF10219 for ; Mon, 20 Apr 2015 10:05:14 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 6ClbDPAoTU7P for ; Mon, 20 Apr 2015 10:05:08 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 8EEAD1022C for ; Mon, 20 Apr 2015 10:04:33 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1A4A8101EA for ; Mon, 20 Apr 2015 10:04:30 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Lz549hGgM_00 for ; Mon, 20 Apr 2015 10:04:29 +0200 (CEST) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id 5E5F2101E8 for ; Mon, 20 Apr 2015 10:04:29 +0200 (CEST) Original-Received: from mail-wi0-x233.google.com (mail-wi0-x233.google.com [IPv6:2a00:1450:400c:c05::233]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id t3K8429X019386 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Mon, 20 Apr 2015 10:04:04 +0200 Original-Received: by widdi4 with SMTP id di4so81449039wid.0 for ; Mon, 20 Apr 2015 01:04:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:message-id:mime-version:subject:date:references :to:in-reply-to; bh=LuoYH5lt3AwkNdSqEzOd5ZP5u3ga+dKBQDVw2khObNw=; b=ztGQNdo84ApO9Q7yjo/r+UTJK+xweff95m5VWOa+69ObPzz6GKh3iuBdj/chcGYQyc Cj4Ye9ozZBW+bAQgcDEMwhDwqyA7TkbXm9U4YwcQG9exugxE2q9ZQ/X4W76+/tH1Z6YP M8+8AsI7n6tApyZggMfZtri5Qc91VDwNwb5kTaDdolaTXPAneVYAx+19oqoVi3Vmvn+v Mc7JONPHHaV/vftK/PFpQi7hVUIJ9Qtw29XNsnVP0nF2VihUuTGcjBFDqJig1gcq7YHE NhMWFdiwPm335+YCkpqK6u7pOtccs/In9kRVg3KwypNPSBmct6Mwg9VUkIUHQ1fzQdAj vt+w== X-Received: by 10.194.120.132 with SMTP id lc4mr28939814wjb.92.1429517042346; Mon, 20 Apr 2015 01:04:02 -0700 (PDT) Original-Received: from keima.localdomain (x2f262b6.dyn.telefonica.de. [2.242.98.182]) by mx.google.com with ESMTPSA id k9sm13987545wia.6.2015.04.20.01.04.01 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 20 Apr 2015 01:04:01 -0700 (PDT) In-Reply-To: <55346E1E.1000100@rik.users.panix.com> X-Mailer: Apple Mail (2.2098) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:400c:c05::233; country=IE; latitude=53.3478; longitude=-6.2597; http://maps.google.com/maps?q=53.3478,-6.2597&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01Oi842xl - 5c848dcb6e28 - 20150420 (trained as not-spam) Received-SPF: pass (filter4-ams.mf.surf.net: domain of schuster.wolfgang@gmail.com designates 2a00:1450:400c:c05::233 as permitted sender) receiver=filter4-ams.mf.surf.net; client-ip=2a00:1450:400c:c05::233; envelope-from=; helo=mail-wi0-x233.google.com; identity=mailfrom X-Scanned-By: CanIt (www . roaringpenguin . com) 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:91129 Archived-At: --===============1048551759== Content-Type: multipart/alternative; boundary="Apple-Mail=_9BD6C04F-DFC5-433C-AB61-4544B4381F8B" --Apple-Mail=_9BD6C04F-DFC5-433C-AB61-4544B4381F8B Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > Am 20.04.2015 um 05:10 schrieb Rik Kabel = : >=20 > A reference to the text of a multi-line heading takes on the line = breaks of the heading when \definereferenceformat[about] is used. > \definereferenceformat[about][type=3Dtitle,left=3D,right=3D] > \starttext > \startsection[reference=3D{sec:one}, > title=3D{Three\\line\\title}] > \startparagraph > See \about[sec:one]. > \stopparagraph > \stopsection > \stoptext > Can this be repaired? Or, am I doing it wrong? To avoid the line breaks in the reference context has to redefined the = meaning of \crlf and \\ when the reference content is shown in the text which happens at the moment = only for the \about command. \setupreferencing[left=3D,right=3D] \starttext \startsection[reference=3D{sec:one}, title=3D{Three\\line\\title}] \startparagraph See \about[sec:one]. \stopparagraph \stopsection \stoptext Wolfgang --Apple-Mail=_9BD6C04F-DFC5-433C-AB61-4544B4381F8B Content-Transfer-Encoding: 7bit Content-Type: text/html; charset=us-ascii
Am 20.04.2015 um 05:10 schrieb Rik Kabel <context@rik.users.panix.com>:

A reference to the text of a multi-line heading takes on the line breaks of the heading when \definereferenceformat[about] is used.
\definereferenceformat[about][type=title,left=,right=]
\starttext
\startsection[reference={sec:one},
  title={Three\\line\\title}]
\startparagraph
See \about[sec:one].
\stopparagraph
\stopsection

\stoptext
Can this be repaired? Or, am I doing it wrong?

To avoid the line breaks in the reference context has to redefined the meaning of \crlf and \\ when
the reference content is shown in the text which happens at the moment only for the \about command.

\setupreferencing[left=,right=]

\starttext
\startsection[reference={sec:one},
  title={Three\\line\\title}]
\startparagraph
See \about[sec:one].
\stopparagraph
\stopsection
\stoptext

Wolfgang

--Apple-Mail=_9BD6C04F-DFC5-433C-AB61-4544B4381F8B-- --===============1048551759== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============1048551759==--