From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/29152 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bastien DUMONT Newsgroups: gmane.text.pandoc Subject: Re: Fwd: CSL: conditional text not printed Date: Wed, 1 Sep 2021 14:02:13 +0000 Message-ID: References: <201a35f6-a91a-3bb7-a01d-07ca8cd9f6c5@gmail.com> <635d04e9-a938-4e2d-8ac0-81988c8402acn@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20509"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDCINCES2QJRBI4QX2EQMGQECTBS7UQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Sep 01 16:03:19 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-lj1-f190.google.com ([209.85.208.190]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mLQpj-0005Ah-1B for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 01 Sep 2021 16:03:19 +0200 Original-Received: by mail-lj1-f190.google.com with SMTP id v2-20020a2e2f02000000b001dc7ee2a7b8sf1154212ljv.20 for ; Wed, 01 Sep 2021 07:03:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1630504998; cv=pass; d=google.com; s=arc-20160816; b=wF/hgGpzjb6kvEc2HJqEHCXw/Iwxnv7n9Xw2VqHFMrBaEQlT0nsoZt20ZgrSNfKKzb 8evR0FIwa/IbR3IwG6bRGywK7KbNIN4DHOFthtqe4mXx96jCvDxrv47/FXU7Fe3kWClf XzUAoiBsxAUYtzOsFUP39SxF/hb0ckA+WbiZ01INYlmKQ5EjHOQNm70qKR9CslStnNKp e97Eiq+zQQrSRnR7O2h21dVE35wFYkgfcvFVzG2Kj9PKLejbn05wQqJo2+EUHvdP5Ih8 1nCu8DP1sm6Gu7Q3aVaY058U7wOpxlIcqqMDz21JlvDB9Q9g6PJD+/Om7i9jiiQqNxgj KdjA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:from:date:sender:dkim-signature; bh=KkEHtMGgFm2rxNPpXo52oV77vxBesmmeR1zRO2G1A2A=; b=Ec+dSLUjD04qZU3p3Jw7G15SeF1ZJ9zPfDKbE8LuYNTcg+ybPK7PaQS6a3Up3YRDGD iuhfXzjNvFLUoH88AbmfgmXDhDm+rvmJilJ7ODovSqaEeWC60hQZpN/u2/jXL3Mk4Vvx eix7ch1XlxyoJFWuMXiM1M0kwdI4G9Eph74RgxkiwGK4RwyiS41L16Bm7NwdSAlqYYro TO3nthmd7uKoI+BADWWxPb1QzmKa/OLAvh1exG2TiFEL/lYdTJYehp0D18vUxYoFSaeN UnCFEpoxaArDaFcgijepnsWaEedNH7L08qujD3YRCCqA0MCxGJDT1U9+RCPm1+EwWCmr /t+A== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=nETLUgI6; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.66 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:date:from:to:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=KkEHtMGgFm2rxNPpXo52oV77vxBesmmeR1zRO2G1A2A=; b=CiO2DoHlIyjHNAxW//7ECN5xGL6g2hRjQTX6Xi9DyO+UyY09vNuaOW8+hdyjommar/ rAULO92QM7KiHOSi6JOGnpvwHjCoxiwz0rhdBDNqiF6+06KZKJgXjSUROA6J3rEABTr+ aQlS11riwMqlxKGroq1X2l+3CDCu9dGwENJUKOSTztCtatFxHNNWWxex1Y6bz8i8dxoE AjDvijjmT2vANJiOvzmKVbl03zpu1uhgdzlXii7RPuA+lwGozBCQOaunGb0Y5zc0ZJ80 X0ZuqDYNK1V925RZWVTN2y/sA8X7dGv/6EyN8HhwLkN/C5UEYHD7NYOU0URWwZW2sPI0 A5Ig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=KkEHtMGgFm2rxNPpXo52oV77vxBesmmeR1zRO2G1A2A=; b=Etu9v+41/BTRU4kWcnGlQccV4ZgCX9i41le0JPXvCsN1UpyHxBz0t26pGvnbiWe72E yp+N0H1kthsMXN1XNT1Pquy+bNoSStsJ6EO9oPNpxElrmEvHNUqJ952zeiMUkBwe+l9U VsThRiD3VQhAgQC+iKrjFbNTCdUz8G7KVUmPuVeRMJFIcvacTs+w6n2mXhoBxjnRChIH IqY2FwhUoYPqmhVBtHcsKMPs9l6ZdIY1gkymh/ZF3npYQ4N5KHcJDK3ngZhRIlVo+diP 9THyRgCFGpaYD8owmkIygxWOcthU0g2RP0P04Q4AWSl6 Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM530m90UBsA2jR4SPMz/Yfs+UAfiXJ3kyYkMY4OYPqFntFfHbR/mt plfQ/2hj5r8shoEb9I72isY= X-Google-Smtp-Source: ABdhPJy9zrLegs/gznAIxYE6ReOWpq6Jt9yxrs5GaNzvwjq6tz7MIOKgDDgr1ihVLXh1xkC8PL+P6A== X-Received: by 2002:a2e:9049:: with SMTP id n9mr30139394ljg.425.1630504997998; Wed, 01 Sep 2021 07:03:17 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:651c:2119:: with SMTP id a25ls532206ljq.9.gmail; Wed, 01 Sep 2021 07:03:14 -0700 (PDT) X-Received: by 2002:a2e:9bc2:: with SMTP id w2mr30130984ljj.266.1630504994671; Wed, 01 Sep 2021 07:03:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630504994; cv=none; d=google.com; s=arc-20160816; b=uzewWgiwvZrVb9IAR1u7h6GZ6+HPuvprC5KScRl4z3U4EZ5PDDLKMhtw/pKHVH7Rbi 6vrG0IphzxgV1ZdgF+DympNvnq90XAi4s8gTzRh9+vQEjSF4amWTZ4bK3kbmr9vt+JAU 0RMc4ccQRN/YIARvlPhq+lvhcdoVE09amgEQlHXtl1FNBajO9A4P9QOqCeVzpiykdEwE iNo5kyx+p44ogmXpXbQPGbeB7OcQrZff3RFAv32Lo48O/Oqz1hWLzanWYgivFjJOmJsw gAcS0zXQ+6AbkfRB2m9yRO4//kRW68gfirGPoQiyJIWvOYhqJY7EQl6MaStBt3ZmDdlJ DAjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:to:from:date :dkim-signature; bh=bsAbrKgcghUvl8gDalgyZwQMSqD4aYVjLiXvfve/osc=; b=0Im7TXLXCq69Pzi6hpkN1nk5qMum83fq/0VPk7lP6FRa0BqOfSuSnwKyGr6kGfn2bv AF3RjDJfDRfkV7M1fHt5i8kl7sdqFB2PR4TM31ITcUFnUZEa9ix1kngGYtgYGKAoa7ul paLI8UovdTPP6jvTXfKTys16jTcZ26BWMcyrmqkgsKaQpHIsOSFYvGL3i0Q2LlPV42mi JLQzr3GkyVAbWHBj9NXVIeUjeOjVrCHWp6lirX6PLMPUjYyRj3TrZJb/g5Qa067e5OoX sATq94UtsQmh5YuHx7nfgfA2oKDndspc1BudtR07jYMzD/Twwi5d0TpTGD6/nw3g67hB ayNg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=nETLUgI6; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.66 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net Original-Received: from mout02.posteo.de (mout02.posteo.de. [185.67.36.66]) by gmr-mx.google.com with ESMTPS id h2si6503lft.5.2021.09.01.07.03.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Sep 2021 07:03:14 -0700 (PDT) Received-SPF: pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.66 as permitted sender) client-ip=185.67.36.66; Original-Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id D4E43240104 for ; Wed, 1 Sep 2021 16:03:13 +0200 (CEST) Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4H05PF49ynz9rxT for ; Wed, 1 Sep 2021 16:03:13 +0200 (CEST) Content-Disposition: inline In-Reply-To: <635d04e9-a938-4e2d-8ac0-81988c8402acn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=nETLUgI6; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.66 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:29152 Archived-At: Hm, sorry, I can't see what could be wrong here. The problem may come from = the fact that the disambiguation code is triggered in subsequent citations = (not in the bibliography, since the entries will be not be formatted in the= same way there). If it is true, you've found a bug, but I may have missed = something. Le Wednesday 01 September 2021 =C3=A0 06:28:57AM, Hakan Da=C4=9Fdelen a =C3= =A9crit : > Thanks a lot for the promt relpy. >=20 > I call it under citation and bibliography layout. Here is my CSL file: ht= tps:// > pastebin.com/MdzdZLXs >=20 > Here is a bib file in json: https://pastebin.com/GgWeVU1x >=20 > And here is a bib file in tex: https://pastebin.com/YUb73afz >=20 >=20 >=20 > On Wednesday, September 1, 2021 at 3:28:38 PM UTC+3 Bastien Dumont wrote: >=20 > How do you call this macro? Could you provide a CSL file including it= and a > small example where it should be triggered? Normally it should work: = see > the related test in citeproc's test suite: [1]https://github.com/jgm/ > citeproc/blob/1ce8c26a5918c641b6a70d4b4151c7a51ab9a1ed/test/csl/ > disambiguate_ByCiteDisambiguateCondition.txt >=20 > Le Wednesday 01 September 2021 =C3=A0 03:09:14PM, hakan a =C3=A9crit = : > > Hi, > > > > I have the following macro in my CSL style file: > > > > =C2=A0=C2=A0 > > =C2=A0=C2=A0=C2=A0=C2=A0 > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 > > =C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 > > =C2=A0=C2=A0=C2=A0=C2=A0 > > =C2=A0=C2=A0 > > > > I use this macro in subsequent citations and bibliography. It helps= me > > to disambiguate works of authors cited with multiple works in citat= ions > > and to add a short title information at the end of the relevant > > bibliography entries. > > > > When I convert org or tex documents with Pandoc, this macro is igno= red > > and nothing gets printed at the relevant positions. I tried both > > CSL-json and biblatex files as bibliography files. Shorttitle field= s are > > filled in. > > > > How can I have this CSL macro work with Pandoc? > > > > Thanks a lot in advance. > > > > Hakan > > > > > > -- > > You received this message because you are subscribed to the Google = Groups > > "pandoc-discuss" group. > > To unsubscribe from this group and stop receiving emails from it, s= end an > email > > to [1]pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit [2][2]https://groups.googl= e.com/ > d/msgid/ > > pandoc-discuss/ > > CAL9QFNmVq0NzALJEQe1GCC%2BuFBBT-%3Df_orrFTiFUBok-BS%3D6yw%[3] > 40mail.gmail.com. > > > > References: > > > > [1] mailto:pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > > [2] [4]https://groups.google.com/d/msgid/pandoc-discuss/ > CAL9QFNmVq0NzALJEQe1GCC%2BuFBBT-%3Df_orrFTiFUBok-BS%3D6yw%40mail.gmai= l.com? > utm_medium=3Demail&utm_source=3Dfooter >=20 > -- > You received this message because you are subscribed to the Google Groups > "pandoc-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an= email > to [5]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit [6]https://groups.google.com/d/m= sgid/ > pandoc-discuss/635d04e9-a938-4e2d-8ac0-81988c8402acn%40googlegroups.com. >=20 > References: >=20 > [1] https://github.com/jgm/citeproc/blob/1ce8c26a5918c641b6a70d4b4151c7a5= 1ab9a1ed/test/csl/disambiguate_ByCiteDisambiguateCondition.txt > [2] https://groups.google.com/d/msgid/ > [3] http://40mail.gmail.com/ > [4] https://groups.google.com/d/msgid/pandoc-discuss/CAL9QFNmVq0NzALJEQe1= GCC%2BuFBBT-%3Df_orrFTiFUBok-BS%3D6yw%40mail.gmail.com?utm_medium=3Demail&u= tm_source=3Dfooter > [5] mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > [6] https://groups.google.com/d/msgid/pandoc-discuss/635d04e9-a938-4e2d-8= ac0-81988c8402acn%40googlegroups.com?utm_medium=3Demail&utm_source=3Dfooter --=20 You received this message because you are subscribed to the Google Groups "= pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/YS%2BH5RUDtzym/o/t%40localhost.