From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/29149 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Hakan_Da=C4=9Fdelen?= Newsgroups: gmane.text.pandoc Subject: Re: Fwd: CSL: conditional text not printed Date: Wed, 1 Sep 2021 06:28:57 -0700 (PDT) Message-ID: <635d04e9-a938-4e2d-8ac0-81988c8402acn@googlegroups.com> References: <201a35f6-a91a-3bb7-a01d-07ca8cd9f6c5@gmail.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_3756_1198239172.1630502937112" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6855"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCD5TBFIQUARBGUAX2EQMGQE7ERAYHA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Sep 01 15:29:01 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oi1-f183.google.com ([209.85.167.183]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mLQIW-0001YK-OU for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 01 Sep 2021 15:29:00 +0200 Original-Received: by mail-oi1-f183.google.com with SMTP id s9-20020a056808208900b002694a72eed5sf1309458oiw.20 for ; Wed, 01 Sep 2021 06:29:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:date:from:to:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=2gPJNhRA6VdGFGU9wT2R/2V28AB1pzftrY6vCyl0g+s=; b=Nk0XPw87ivZ1MY5YUosN3PojrFXe/PZPjfvJCvTZO/oGQ3VCRO32IL3OsA743oYVbZ lTr8xHy0PV6u+2DdvdcA7jMVm4eqT1xdEbtWN1BLtRcSG26lm+75Bmb9W3kcyxItDS8M u/Sa8NNY7vcAhyIiWW2H416NYD3g4uSRNWAnVYkd9hYQHFgFR5ARpNZjQX/P36sG4JnL dudjUSnUcGaXdE2/bCaxVDpNf2duELD9711DYbN5q37rP1K2DAQZ6ozLVmuZjlS9DnDe G0iIBOYH3mgvfW7H/CIV4XjOx9U3+egMAJcNw6qZHXqM6QhzieyYSzsb0CRqOXkiw3wy 7nUg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=2gPJNhRA6VdGFGU9wT2R/2V28AB1pzftrY6vCyl0g+s=; b=LpCpMV4FnOJvHbagMLN0SoSdwptEzQCgdhZFuR9GQ5+59b/ulPHRjK6XGcFLwD6tw+ pIedwZJRD3HkbiLXocRgPtXBbcQGeBeZl0ZxD2UMHUQu55pzcxyoBM/oaTa10iwDfu/t IYpKD8ulmpDAK/4f55ycXTlFj6Zni1qU6K6GPDbSh3CxbEFyqT1Cg02qRlikG0w8gI+G m/1+B6Wtf35JoabNlxBwtySjB2axH0QXdhd5DH3qZ/+i7OhRZwGisxqISG9jkqcBYvJr C79yCQ/cvwzjrXeMwcwljNL7f6K9wdOko73gofjD2aJRsYfbzbLIqaCo5EfrkYtzA8uN xd/g== 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:message-id:in-reply-to :references:subject:mime-version:x-original-sender:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=2gPJNhRA6VdGFGU9wT2R/2V28AB1pzftrY6vCyl0g+s=; b=CPvGtpI4d5rv4yNe9PPdr7QAsvE3UQvulxkP71nuIFMwxYBcuGFpuAfzKLQSiQbHRi FsP/j8c7ZxNm2+Wml+T2Bgw4jo2MIX0ocUKydtjFiAmVkHyP64N5Rruxsu0Uu/C0eVnA 3B8d8b7SjOkZhCEH73IiMiT3xbtcNjuhlpLiNJh7yHCxuqXE/dnCy2R8NoB2Nrn7oFGR 1LjoDhaT4Z3Qu4vBmq88lf9QVGy7j0jy03eFyjeToXrbUPFgGtwAcp2aq2LwP9vM1KRm RBr2EgXHz1qjd3mBygkm7VVTQle9apT07DnpaGMdSWZWH+AA0eXzB/724BwVnlclNZD1 sytA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM5334Q9udBegLbMTRDs0ZUAwSAYQFXOaYEm/xyY7+4lc12h+zM0mq P3gz2KLoA+mvkpLjVLwuPGc= X-Google-Smtp-Source: ABdhPJzINU+4w8Jxvp9e3ZVxiu3AQhuI91mi79PZ4KWGs5UJBdcF7EqVgcpb01RZrgeaQ0qFcb8Y8g== X-Received: by 2002:a9d:6046:: with SMTP id v6mr27706246otj.234.1630502939629; Wed, 01 Sep 2021 06:28:59 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aca:1208:: with SMTP id 8ls617377ois.10.gmail; Wed, 01 Sep 2021 06:28:58 -0700 (PDT) X-Received: by 2002:a05:6808:90a:: with SMTP id w10mr7433573oih.164.1630502937946; Wed, 01 Sep 2021 06:28:57 -0700 (PDT) In-Reply-To: X-Original-Sender: hkndgd-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org 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:29149 Archived-At: ------=_Part_3756_1198239172.1630502937112 Content-Type: multipart/alternative; boundary="----=_Part_3757_8839823.1630502937112" ------=_Part_3757_8839823.1630502937112 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks a lot for the promt relpy. I call it under citation and bibliography layout. Here is my CSL file:=20 https://pastebin.com/MdzdZLXs Here is a bib file in json: https://pastebin.com/GgWeVU1x And here is a bib file in tex: https://pastebin.com/YUb73afz On Wednesday, September 1, 2021 at 3:28:38 PM UTC+3 Bastien Dumont wrote: > How do you call this macro? Could you provide a CSL file including it and= =20 > a small example where it should be triggered? Normally it should work: se= e=20 > the related test in citeproc's test suite:=20 > https://github.com/jgm/citeproc/blob/1ce8c26a5918c641b6a70d4b4151c7a51ab9= a1ed/test/csl/disambiguate_ByCiteDisambiguateCondition.txt > > Le Wednesday 01 September 2021 =C3=A0 03:09:14PM, hakan a =C3=A9crit : > > Hi, > >=20 > > I have the following macro in my CSL style file: > >=20 > > > > > > > > > > > > > > > >=20 > > I use this macro in subsequent citations and bibliography. It helps me > > to disambiguate works of authors cited with multiple works in citations > > and to add a short title information at the end of the relevant > > bibliography entries. > >=20 > > When I convert org or tex documents with Pandoc, this macro is ignored > > and nothing gets printed at the relevant positions. I tried both > > CSL-json and biblatex files as bibliography files. Shorttitle fields ar= e > > filled in. > >=20 > > How can I have this CSL macro work with Pandoc? > >=20 > > Thanks a lot in advance. > >=20 > > Hakan > >=20 > >=20 > > -- > > You received this message because you are subscribed to the Google Grou= ps > > "pandoc-discuss" group. > > To unsubscribe from this group and stop receiving emails from it, send= =20 > an email > > to [1]pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit [2] > https://groups.google.com/d/msgid/ > > pandoc-discuss/ > > CAL9QFNmVq0NzALJEQe1GCC%2BuFBBT-%3Df_orrFTiFUBok-BS%3D6yw% > 40mail.gmail.com. > >=20 > > References: > >=20 > > [1] mailto:pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > > [2]=20 > https://groups.google.com/d/msgid/pandoc-discuss/CAL9QFNmVq0NzALJEQe1GCC%= 2BuFBBT-%3Df_orrFTiFUBok-BS%3D6yw%40mail.gmail.com?utm_medium=3Demail&utm_s= ource=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/635d04e9-a938-4e2d-8ac0-81988c8402acn%40googlegroups.com. ------=_Part_3757_8839823.1630502937112 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks a lot for the promt relpy.

I call it u= nder citation and bibliography layout. Here is my CSL file: https://pastebi= n.com/MdzdZLXs

Here is a bib file in json: https:/= /pastebin.com/GgWeVU1x

And here is a bib file = in tex: https://pastebin.com/YUb73afz



On = Wednesday, September 1, 2021 at 3:28:38 PM UTC+3 Bastien Dumont wrote:
=
How do you call t= his macro? Could you provide a CSL file including it and a small example wh= ere it should be triggered? Normally it should work: see the related test i= n citeproc's test suite: https://github.com/jgm/cit= eproc/blob/1ce8c26a5918c641b6a70d4b4151c7a51ab9a1ed/test/csl/disambiguate_B= yCiteDisambiguateCondition.txt

Le Wednesday 01 September 2021 =C3=A0 03:09:14PM, hakan a =C3=A9crit :
> Hi,
>=20
> I have the following macro in my CSL style file:
>=20
> =C2=A0=C2=A0 <macro name=3D"disambiguate">
> =C2=A0=C2=A0=C2=A0=C2=A0 <choose>
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <if disambiguate=3D"t= rue">
> =C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 <text variable=3D&q= uot;title-short"/>
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 </if>
> =C2=A0=C2=A0=C2=A0=C2=A0 </choose>
> =C2=A0=C2=A0 </macro>
>=20
> I use this macro in subsequent citations and bibliography. It help= s me
> to disambiguate works of authors cited with multiple works in cita= tions
> and to add a short title information at the end of the relevant
> bibliography entries.
>=20
> When I convert org or tex documents with Pandoc, this macro is ign= ored
> and nothing gets printed at the relevant positions. I tried both
> CSL-json and biblatex files as bibliography files. Shorttitle fiel= ds are
> filled in.
>=20
> How can I have this CSL macro work with Pandoc?
>=20
> Thanks a lot in advance.
>=20
> Hakan
>=20
>=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 [1]pandoc-discus...@= googlegroups.com.
> To view this discussion on the web visit [2]https://groups.google.com/d/msgid/
> pandoc-discuss/
> CAL9QFNmVq0NzALJEQe1GCC%2BuFBBT-%3Df_orrFTiFUBok-BS%3D6yw%40mail.gmail.com.
>=20
> References:
>=20
> [1] mailto:pandoc-discu= s...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> [2] https://groups.google.com/d/msgid/pandoc-= discuss/CAL9QFNmVq0NzALJEQe1GCC%2BuFBBT-%3Df_orrFTiFUBok-BS%3D6yw%40mail.gm= ail.com?utm_medium=3Demail&utm_source=3Dfooter

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d= /msgid/pandoc-discuss/635d04e9-a938-4e2d-8ac0-81988c8402acn%40googlegroups.= com.
------=_Part_3757_8839823.1630502937112-- ------=_Part_3756_1198239172.1630502937112--