From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/107620 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Mike O'Connor Newsgroups: gmane.comp.tex.context Subject: Setup left, right, between entries in custom cite of multiple references Date: Sun, 7 Jun 2020 13:57:18 +0800 Message-ID: <0BF33B72-15B5-4DCA-8EE4-2AE3CED7215C@gmail.com> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Content-Type: multipart/mixed; boundary="Apple-Mail=_BEE85800-C757-46F8-B48B-7E487A7EE6CB" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="10911"; mail-complaints-to="usenet@ciao.gmane.io" To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sun Jun 07 07:58:10 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 1jhoJt-0002nq-00 for gctc-ntg-context-518@m.gmane-mx.org; Sun, 07 Jun 2020 07:58:09 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id E15D318498C; Sun, 7 Jun 2020 07:57:31 +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 2GLLXDH7Mc7P; Sun, 7 Jun 2020 07:57:30 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 495E0184983; Sun, 7 Jun 2020 07:57:30 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id A196118497D for ; Sun, 7 Jun 2020 07:57:28 +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 HNVLfDs_sVXy for ; Sun, 7 Jun 2020 07:57:27 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.210.169; helo=mail-pf1-f169.google.com; envelope-from=ipso.vocat@gmail.com; receiver= Original-Received: from mail-pf1-f169.google.com (mail-pf1-f169.google.com [209.85.210.169]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id A8E281846DC for ; Sun, 7 Jun 2020 07:57:27 +0200 (CEST) Original-Received: by mail-pf1-f169.google.com with SMTP id b5so7003168pfp.9 for ; Sat, 06 Jun 2020 22:57:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:mime-version:subject:message-id:date:to; bh=JY3HE08/HMuUDs0R4YrgW71yvgn706bQ3LCE2EbCQFI=; b=LzCxepQcI2RLYAZeqfZVic6wZbhe6uSlBQ9Hw/ahnosxxEkEotI4/bncvcyEnFULLv BxVi/TM6Ps0eWuWZ5XtP/R5BAEBrjJW/8r5yCl2fP+bROrf4lu53c1J2Hh32Mixbjw94 +eec3GvOTPHLM3OfhsFDUVcaHSkm2LkxGHf+0rrhyFFaB4hNEUhb0E9Kx9R69rVnWsyy j+lcQEqBr4tOBLAQhHkaoGAN6ma5LJF5KkHXJlzHn82UfLis8MEQ5P30Dd7Cwc3+p3qJ GjaYCcmEz38mHeTQeGYZOQaUy2FXi8/59gV2p+IbdBipK7sBzvi+RrKfLpnjJ5QzHHyE Ic+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:message-id:date:to; bh=JY3HE08/HMuUDs0R4YrgW71yvgn706bQ3LCE2EbCQFI=; b=o5wQKI5shdPRwVeODMz2fX27AMwT+f0Dey2ECAhl86RJ2Ntip8kzBU6uTbKS5X8sNy xTwoEaCgD9kisdO/9WZafbGdrIqXlz6HoMWYgqkJID4fSoA4snvHjWQa4mjumwecSMzl EQDkaf2DhUSS4/MF1Ftv8s6ssa2EEsc4FojEv/KsZEyB1LbeD5C7IplAurRalRg3npgD EX7HEE7LjoT0Qk66HUgxzrIWKMKKui84Zp0oLKc4Qv9bZ6VDstU2ae/wzOPv3AnAYzt3 9qOoJh82nGUrxYVYsGhMiQL8sl4ZQK7XAQxEPjwCMOdDETVEs8g9wLxhD0mpkzlcKtk4 LmiQ== X-Gm-Message-State: AOAM5310cmDGNghtygHQhTtyNlxJgAjGUKzxdrUGMjWYeqQWOR/NsNLP EXc6kvVrAswmV/bdO5rHSVXIwcuD X-Google-Smtp-Source: ABdhPJxPEm+NC19J9BgC5jzxSiU4SWsRBRZuLUArY8sslRek9nBOeTlnzgibmxEV9Pej+adk4SVyDA== X-Received: by 2002:a62:543:: with SMTP id 64mr16235781pff.271.1591509445171; Sat, 06 Jun 2020 22:57:25 -0700 (PDT) Original-Received: from [192.168.1.105] ([180.150.83.3]) by smtp.gmail.com with ESMTPSA id h15sm3021147pgl.12.2020.06.06.22.57.23 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 06 Jun 2020 22:57:24 -0700 (PDT) X-Mailer: Apple Mail (2.3608.80.23.2.2) 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:107620 Archived-At: --Apple-Mail=_BEE85800-C757-46F8-B48B-7E487A7EE6CB Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 I'm trying to customise \cite and unable to get inbetween=3D to appear = between entries in a multi-ref citation. My own customisations via a copy of publ-imp-apa.mkvi and .lua have this = problem, so in case it was due to my customisation I went back to solid = ground =E2=80=94 the Chemistry example, pp. 70-74 in the Publications = manual (http://pragma-ade.nl/general/manuals/mkiv-publications.pdf). The cite examples on p.74 work as shown, but when I add each of the = following: \cite [name][108-95-2,566-33-5]\par \cite [formula][108-95-2,566-33-5]\par \cite [chemical][108-95-2,566-33-5]\par \cite [molarvolume][108-95-2,566-33-5,24599-57-3]\par I simply get the citation details, no separator between, and no left or = right. Either of the following works for left=3D and right=3D. However = inbetween=3D does not activate, and similarly for separator:2, = separator:3, separator:4. \definebtx [chemistry:cite:formula] [left=3D{\color[blue]{(}}, % the colour to differentiate from \setupbtx = below right=3D{\color[red]{)}}, inbetween=3D{\btxcomma\btxspace}, % no effect ] \setupbtx [chemistry:cite:formula] [left=3D{(}, right=3D{)}, inbetween=3D{\btxcomma\btxspace}, ] Grateful for any guidance as to how I can remedy this issue. Regards, and thanks, Mike --Apple-Mail=_BEE85800-C757-46F8-B48B-7E487A7EE6CB Content-Disposition: attachment; filename=testChem-btx.tex Content-Type: application/octet-stream; x-unix-mode=0644; name="testChem-btx.tex" Content-Transfer-Encoding: 7bit \definebtxdataset [chemistry] \usebtxdataset [chemistry] [C6H6O.bib] \setupbtx [specification=chemistry, dataset=chemistry] \definebtxrendering [chemistry] [specification=chemistry, group=chemistry, dataset=chemistry] \startsetups btx:chemistry:list:chemical \startframed [frame=off,location=middle] \bTABLE [frame=off] \bTR \bTD [width=.2\textwidth,ny=2] \goto {\startchemical [scale=small] \chemical [\btxflush{chemical}] \stopchemical} [program(\btxflush{rendered})] \eTD \bTD [width=.2\textwidth] \chemical{\btxflush{formula}} \eTD \bTD [width=.4\textwidth] \btxflush{iupac} \eTD \eTR \bTR \bTD \btxflush{mw}~g/mole \eTD \bTD \btxflush{cas} \eTD \eTR \eTABLE \stopframed \stopsetups % the following setupbtx gets ignored \definebtx[chemistry:cite:formula] [ left={\color[blue]{(}}, right={\color[red]{)}}, inbetween={\btxcomma\btxspace}, % no effect ] %\setupbtx % [chemistry:cite:formula] % [ % left={(}, % right={)}, % separator:2={\btxcomma\btxspace}, % separator:3={\btxcomma\btxspace}, % separator:4={\btxcomma\btxspace}, % ] \startsetups btx:chemistry:cite:formula \chemical {\currentbtxfirst} \stopsetups \startsetups btx:chemistry:cite:chemical \startchemical [scale=600] \chemical [\currentbtxfirst] \stopchemical \stopsetups \starttext % works as per manual \placebtxrendering [method=dataset] % works as per manual \cite [name][108-95-2]|<|or|>| \cite [formula][108-95-2]|<|or|>| \cite [chemical][108-95-2]|<|or|>| \cite [molarvolume] [108-95-2] % works as per manual \cite [name][566-33-5]|<|or|>| \cite [formula][566-33-5]|<|or|>| \cite [chemical][566-33-5]|<|or|>| \cite [molarvolume] [566-33-5] % added multiple references ; no inbetween= appears \cite [name][108-95-2,566-33-5]\par \cite [formula][108-95-2,566-33-5]\par \cite [chemical][108-95-2,566-33-5]\par \cite [molarvolume][108-95-2,566-33-5]\par \stoptext --Apple-Mail=_BEE85800-C757-46F8-B48B-7E487A7EE6CB 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== --Apple-Mail=_BEE85800-C757-46F8-B48B-7E487A7EE6CB--