* Fwd: CSL: conditional text not printed [not found] ` <201a35f6-a91a-3bb7-a01d-07ca8cd9f6c5-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> @ 2021-09-01 12:09 ` hakan [not found] ` <CAL9QFNmVq0NzALJEQe1GCC+uFBBT-=f_orrFTiFUBok-BS=6yw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 10+ messages in thread From: hakan @ 2021-09-01 12:09 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw [-- Attachment #1: Type: text/plain, Size: 1174 bytes --] Hi, I have the following macro in my CSL style file: <macro name="disambiguate"> <choose> <if disambiguate="true"> <text variable="title-short"/> </if> </choose> </macro> 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. 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 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, send an email 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/CAL9QFNmVq0NzALJEQe1GCC%2BuFBBT-%3Df_orrFTiFUBok-BS%3D6yw%40mail.gmail.com. [-- Attachment #2: Type: text/html, Size: 1780 bytes --] ^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <CAL9QFNmVq0NzALJEQe1GCC+uFBBT-=f_orrFTiFUBok-BS=6yw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: Fwd: CSL: conditional text not printed [not found] ` <CAL9QFNmVq0NzALJEQe1GCC+uFBBT-=f_orrFTiFUBok-BS=6yw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2021-09-01 12:27 ` Bastien DUMONT 2021-09-01 13:28 ` Hakan Dağdelen 0 siblings, 1 reply; 10+ messages in thread From: Bastien DUMONT @ 2021-09-01 12:27 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw 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: https://github.com/jgm/citeproc/blob/1ce8c26a5918c641b6a70d4b4151c7a51ab9a1ed/test/csl/disambiguate_ByCiteDisambiguateCondition.txt Le Wednesday 01 September 2021 à 03:09:14PM, hakan a écrit : > Hi, > > I have the following macro in my CSL style file: > > <macro name="disambiguate"> > <choose> > <if disambiguate="true"> > <text variable="title-short"/> > </if> > </choose> > </macro> > > 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. > > 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 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, send an email > to [1]pandoc-discuss+unsubscribe-/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. > > References: > > [1] mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > [2] https://groups.google.com/d/msgid/pandoc-discuss/CAL9QFNmVq0NzALJEQe1GCC%2BuFBBT-%3Df_orrFTiFUBok-BS%3D6yw%40mail.gmail.com?utm_medium=email&utm_source=footer -- 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 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/YS9xs015F8jCrkyG%40localhost. ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Fwd: CSL: conditional text not printed 2021-09-01 12:27 ` Bastien DUMONT @ 2021-09-01 13:28 ` Hakan Dağdelen [not found] ` <635d04e9-a938-4e2d-8ac0-81988c8402acn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 0 siblings, 1 reply; 10+ messages in thread From: Hakan Dağdelen @ 2021-09-01 13:28 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 2819 bytes --] Thanks a lot for the promt relpy. I call it under citation and bibliography layout. Here is my CSL file: 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 > a small example where it should be triggered? Normally it should work: see > the related test in citeproc's test suite: > https://github.com/jgm/citeproc/blob/1ce8c26a5918c641b6a70d4b4151c7a51ab9a1ed/test/csl/disambiguate_ByCiteDisambiguateCondition.txt > > Le Wednesday 01 September 2021 à 03:09:14PM, hakan a écrit : > > Hi, > > > > I have the following macro in my CSL style file: > > > > <macro name="disambiguate"> > > <choose> > > <if disambiguate="true"> > > <text variable="title-short"/> > > </if> > > </choose> > > </macro> > > > > 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. > > > > 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 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, send > 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. > > > > References: > > > > [1] mailto:pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > > [2] > https://groups.google.com/d/msgid/pandoc-discuss/CAL9QFNmVq0NzALJEQe1GCC%2BuFBBT-%3Df_orrFTiFUBok-BS%3D6yw%40mail.gmail.com?utm_medium=email&utm_source=footer > -- 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 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. [-- Attachment #1.2: Type: text/html, Size: 5269 bytes --] ^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <635d04e9-a938-4e2d-8ac0-81988c8402acn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>]
* Re: Fwd: CSL: conditional text not printed [not found] ` <635d04e9-a938-4e2d-8ac0-81988c8402acn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> @ 2021-09-01 14:02 ` Bastien DUMONT 2021-09-01 14:07 ` AW: " denis.maier-NSENcxR/0n0 0 siblings, 1 reply; 10+ messages in thread From: Bastien DUMONT @ 2021-09-01 14:02 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw 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 à 06:28:57AM, Hakan Dağdelen a écrit : > Thanks a lot for the promt relpy. > > I call it under citation and bibliography layout. Here is my CSL file: 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 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 > > Le Wednesday 01 September 2021 à 03:09:14PM, hakan a écrit : > > Hi, > > > > I have the following macro in my CSL style file: > > > > <macro name="disambiguate"> > > <choose> > > <if disambiguate="true"> > > <text variable="title-short"/> > > </if> > > </choose> > > </macro> > > > > 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. > > > > 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 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, send an > email > > to [1]pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit [2][2]https://groups.google.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.gmail.com? > utm_medium=email&utm_source=footer > > -- > 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/msgid/ > pandoc-discuss/635d04e9-a938-4e2d-8ac0-81988c8402acn%40googlegroups.com. > > References: > > [1] https://github.com/jgm/citeproc/blob/1ce8c26a5918c641b6a70d4b4151c7a51ab9a1ed/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/CAL9QFNmVq0NzALJEQe1GCC%2BuFBBT-%3Df_orrFTiFUBok-BS%3D6yw%40mail.gmail.com?utm_medium=email&utm_source=footer > [5] mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > [6] https://groups.google.com/d/msgid/pandoc-discuss/635d04e9-a938-4e2d-8ac0-81988c8402acn%40googlegroups.com?utm_medium=email&utm_source=footer -- 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 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. ^ permalink raw reply [flat|nested] 10+ messages in thread
* AW: Fwd: CSL: conditional text not printed 2021-09-01 14:02 ` Bastien DUMONT @ 2021-09-01 14:07 ` denis.maier-NSENcxR/0n0 [not found] ` <9f7cdd53071b42cda9f394039bd293ae-NSENcxR/0n0@public.gmane.org> 0 siblings, 1 reply; 10+ messages in thread From: denis.maier-NSENcxR/0n0 @ 2021-09-01 14:07 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw Just a side-issue: Checking your style with https://validator.citationstyles.org/ gives me three errors though on "title-bib/cit". Probably not related, but anyway. FWIW, I've tried to cross-check with Zotero, but Zotero refuses to install your style at all... > -----Ursprüngliche Nachricht----- > Von: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > Im Auftrag von Bastien DUMONT > Gesendet: Mittwoch, 1. September 2021 16:02 > An: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > Betreff: Re: Fwd: CSL: conditional text not printed > > 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 à 06:28:57AM, Hakan Dağdelen a écrit : > > Thanks a lot for the promt relpy. > > > > I call it under citation and bibliography layout. Here is my CSL file: > > 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 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 > > > > Le Wednesday 01 September 2021 à 03:09:14PM, hakan a écrit : > > > Hi, > > > > > > I have the following macro in my CSL style file: > > > > > > <macro name="disambiguate"> > > > <choose> > > > <if disambiguate="true"> > > > <text variable="title-short"/> > > > </if> > > > </choose> > > > </macro> > > > > > > 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. > > > > > > 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 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, send an > > email > > > to [1]pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > > To view this discussion on the web visit [2][2]https://groups.google.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.gmail.com? > > utm_medium=email&utm_source=footer > > > > -- > > 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/msgid/ > > pandoc-discuss/635d04e9-a938-4e2d-8ac0- > 81988c8402acn%40googlegroups.com. > > > > References: > > > > [1] > > > https://github.com/jgm/citeproc/blob/1ce8c26a5918c641b6a70d4b4151c7a51 > > ab9a1ed/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/CAL9QFNmVq0NzALJEQe1G > > CC%2BuFBBT-%3Df_orrFTiFUBok- > BS%3D6yw%40mail.gmail.com?utm_medium=email > > &utm_source=footer [5] > > mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > > [6] > > https://groups.google.com/d/msgid/pandoc-discuss/635d04e9-a938-4e2d-8a > > c0- > 81988c8402acn%40googlegroups.com?utm_medium=email&utm_source=foote > r > > -- > 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 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. -- 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 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/9f7cdd53071b42cda9f394039bd293ae%40unibe.ch. ^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <9f7cdd53071b42cda9f394039bd293ae-NSENcxR/0n0@public.gmane.org>]
* Re: Fwd: CSL: conditional text not printed [not found] ` <9f7cdd53071b42cda9f394039bd293ae-NSENcxR/0n0@public.gmane.org> @ 2021-09-01 14:13 ` Bastien DUMONT 2021-09-01 14:51 ` Hakan Dağdelen 0 siblings, 1 reply; 10+ messages in thread From: Bastien DUMONT @ 2021-09-01 14:13 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw For me too, although the style appears to be valid once you replace the slash by an underscore and can be used in the CSL style editor (https://editor.citationstyles.org/codeEditor/). Le Wednesday 01 September 2021 à 02:07:29PM, denis.maier-NSENcxR/0n0@public.gmane.org a écrit : > Just a side-issue: Checking your style with https://validator.citationstyles.org/ gives me three errors though on "title-bib/cit". Probably not related, but anyway. > > FWIW, I've tried to cross-check with Zotero, but Zotero refuses to install your style at all... > > > -----Ursprüngliche Nachricht----- > > Von: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > > Im Auftrag von Bastien DUMONT > > Gesendet: Mittwoch, 1. September 2021 16:02 > > An: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > > Betreff: Re: Fwd: CSL: conditional text not printed > > > > 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 à 06:28:57AM, Hakan Dağdelen a écrit : > > > Thanks a lot for the promt relpy. > > > > > > I call it under citation and bibliography layout. Here is my CSL file: > > > 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 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 > > > > > > Le Wednesday 01 September 2021 à 03:09:14PM, hakan a écrit : > > > > Hi, > > > > > > > > I have the following macro in my CSL style file: > > > > > > > > <macro name="disambiguate"> > > > > <choose> > > > > <if disambiguate="true"> > > > > <text variable="title-short"/> > > > > </if> > > > > </choose> > > > > </macro> > > > > > > > > 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. > > > > > > > > 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 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, send an > > > email > > > > to [1]pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > > > To view this discussion on the web visit [2][2]https://groups.google.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.gmail.com? > > > utm_medium=email&utm_source=footer > > > > > > -- > > > 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/msgid/ > > > pandoc-discuss/635d04e9-a938-4e2d-8ac0- > > 81988c8402acn%40googlegroups.com. > > > > > > References: > > > > > > [1] > > > > > https://github.com/jgm/citeproc/blob/1ce8c26a5918c641b6a70d4b4151c7a51 > > > ab9a1ed/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/CAL9QFNmVq0NzALJEQe1G > > > CC%2BuFBBT-%3Df_orrFTiFUBok- > > BS%3D6yw%40mail.gmail.com?utm_medium=email > > > &utm_source=footer [5] > > > mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > > > [6] > > > https://groups.google.com/d/msgid/pandoc-discuss/635d04e9-a938-4e2d-8a > > > c0- > > 81988c8402acn%40googlegroups.com?utm_medium=email&utm_source=foote > > r > > > > -- > > 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 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. > > -- > 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 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/9f7cdd53071b42cda9f394039bd293ae%40unibe.ch. -- 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 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%2BKpefndII5vVJ5%40localhost. ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Fwd: CSL: conditional text not printed 2021-09-01 14:13 ` Bastien DUMONT @ 2021-09-01 14:51 ` Hakan Dağdelen [not found] ` <539c92e0-57ac-4190-9077-3597c64e0a35n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 0 siblings, 1 reply; 10+ messages in thread From: Hakan Dağdelen @ 2021-09-01 14:51 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 7294 bytes --] The style file does not carry an id. I believe that is the reason why Zotero does not want to load it. You can type there anything and Zotero loads. But also, the content of the file can be copied to Zotero's style editor. There, it works. Zotero produces the expected output. I am using Zotero 5.0.96.2 and Pandoc 2.14.1. On Wednesday, September 1, 2021 at 5:15:03 PM UTC+3 Bastien Dumont wrote: > For me too, although the style appears to be valid once you replace the > slash by an underscore and can be used in the CSL style editor ( > https://editor.citationstyles.org/codeEditor/). > > Le Wednesday 01 September 2021 à 02:07:29PM, denis...-NSENcxR/0n0@public.gmane.org a écrit : > > Just a side-issue: Checking your style with > https://validator.citationstyles.org/ gives me three errors though on > "title-bib/cit". Probably not related, but anyway. > > > > FWIW, I've tried to cross-check with Zotero, but Zotero refuses to > install your style at all... > > > > > -----Ursprüngliche Nachricht----- > > > Von: pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > > > Im Auftrag von Bastien DUMONT > > > Gesendet: Mittwoch, 1. September 2021 16:02 > > > An: pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > > > Betreff: Re: Fwd: CSL: conditional text not printed > > > > > > 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 à 06:28:57AM, Hakan Dağdelen a écrit : > > > > Thanks a lot for the promt relpy. > > > > > > > > I call it under citation and bibliography layout. Here is my CSL > file: > > > > 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 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 > > > > > > > > Le Wednesday 01 September 2021 à 03:09:14PM, hakan a écrit : > > > > > Hi, > > > > > > > > > > I have the following macro in my CSL style file: > > > > > > > > > > <macro name="disambiguate"> > > > > > <choose> > > > > > <if disambiguate="true"> > > > > > <text variable="title-short"/> > > > > > </if> > > > > > </choose> > > > > > </macro> > > > > > > > > > > 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. > > > > > > > > > > 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 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, > send an > > > > email > > > > > to [1]pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > > > > To view this discussion on the web visit [2][2] > https://groups.google.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.gmail.com? > > > > utm_medium=email&utm_source=footer > > > > > > > > -- > > > > 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-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > > > To view this discussion on the web visit > > > > [6]https://groups.google.com/d/msgid/ > > > > pandoc-discuss/635d04e9-a938-4e2d-8ac0- > > > 81988c8402acn%40googlegroups.com. > > > > > > > > References: > > > > > > > > [1] > > > > > > > https://github.com/jgm/citeproc/blob/1ce8c26a5918c641b6a70d4b4151c7a51 > > > > ab9a1ed/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/CAL9QFNmVq0NzALJEQe1G > > > > CC%2BuFBBT-%3Df_orrFTiFUBok- > > > BS%3D6yw%40mail.gmail.com?utm_medium=email > > > > &utm_source=footer [5] > > > > mailto:pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > > > > [6] > > > > > https://groups.google.com/d/msgid/pandoc-discuss/635d04e9-a938-4e2d-8a > > > > c0- > > > 81988c8402acn%40googlegroups.com?utm_medium=email&utm_source=foote > > > r > > > > > > -- > > > 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 pandoc-discus...-/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. > > > > -- > > 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 pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit > https://groups.google.com/d/msgid/pandoc-discuss/9f7cdd53071b42cda9f394039bd293ae%40unibe.ch > . > -- 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 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/539c92e0-57ac-4190-9077-3597c64e0a35n%40googlegroups.com. [-- Attachment #1.2: Type: text/html, Size: 15644 bytes --] ^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <539c92e0-57ac-4190-9077-3597c64e0a35n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>]
* AW: Fwd: CSL: conditional text not printed [not found] ` <539c92e0-57ac-4190-9077-3597c64e0a35n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> @ 2021-09-01 14:54 ` denis.maier-NSENcxR/0n0 [not found] ` <a82ee548f5b6496f93635bf721db11a9-NSENcxR/0n0@public.gmane.org> 0 siblings, 1 reply; 10+ messages in thread From: denis.maier-NSENcxR/0n0 @ 2021-09-01 14:54 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw [-- Attachment #1: Type: text/plain, Size: 8186 bytes --] Von: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> Im Auftrag von Hakan Dagdelen Gesendet: Mittwoch, 1. September 2021 16:51 An: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> Betreff: Re: Fwd: CSL: conditional text not printed The style file does not carry an id. I believe that is the reason why Zotero does not want to load it. You can type there anything and Zotero loads. But also, the content of the file can be copied to Zotero's style editor. There, it works. Zotero produces the expected output. Thanks for checking. Then it looks like a bug in pandoc’s citeproc, or at least a discrepancy between citeproc-js and pandoc’s citeproc. I am using Zotero 5.0.96.2 and Pandoc 2.14.1. On Wednesday, September 1, 2021 at 5:15:03 PM UTC+3 Bastien Dumont wrote: For me too, although the style appears to be valid once you replace the slash by an underscore and can be used in the CSL style editor (https://editor.citationstyles.org/codeEditor/). Le Wednesday 01 September 2021 à 02:07:29PM, denis...-NSENcxR/0n0@public.gmane.org a écrit : > Just a side-issue: Checking your style with https://validator.citationstyles.org/ gives me three errors though on "title-bib/cit". Probably not related, but anyway. > > FWIW, I've tried to cross-check with Zotero, but Zotero refuses to install your style at all... > > > -----Ursprüngliche Nachricht----- > > Von: pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > > Im Auftrag von Bastien DUMONT > > Gesendet: Mittwoch, 1. September 2021 16:02 > > An: pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > > Betreff: Re: Fwd: CSL: conditional text not printed > > > > 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 à 06:28:57AM, Hakan Dağdelen a écrit : > > > Thanks a lot for the promt relpy. > > > > > > I call it under citation and bibliography layout. Here is my CSL file: > > > https:// pastebin.com/MdzdZLXs<http://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 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 > > > > > > Le Wednesday 01 September 2021 à 03:09:14PM, hakan a écrit : > > > > Hi, > > > > > > > > I have the following macro in my CSL style file: > > > > > > > > <macro name="disambiguate"> > > > > <choose> > > > > <if disambiguate="true"> > > > > <text variable="title-short"/> > > > > </if> > > > > </choose> > > > > </macro> > > > > > > > > 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. > > > > > > > > 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 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, send an > > > email > > > > to [1]pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > > > To view this discussion on the web visit [2][2]https://groups.google.com/ > > > d/msgid/ > > > > pandoc-discuss/ > > > > CAL9QFNmVq0NzALJEQe1GCC%2BuFBBT-%3Df_orrFTiFUBok- > > BS%3D6yw%[3] > > > 40mail.gmail.com<http://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.gmail.com<http://40mail.gmail.com>? > > > utm_medium=email&utm_source=footer > > > > > > -- > > > 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-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > > To view this discussion on the web visit > > > [6]https://groups.google.com/d/msgid/ > > > pandoc-discuss/635d04e9-a938-4e2d-8ac0- > > 81988c8402acn%40googlegroups.com<http://40googlegroups.com>. > > > > > > References: > > > > > > [1] > > > > > https://github.com/jgm/citeproc/blob/1ce8c26a5918c641b6a70d4b4151c7a51 > > > ab9a1ed/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/CAL9QFNmVq0NzALJEQe1G > > > CC%2BuFBBT-%3Df_orrFTiFUBok- > > BS%3D6yw%40mail.gmail.com?utm_medium=email<http://40mail.gmail.com?utm_medium=email> > > > &utm_source=footer [5] > > > mailto:pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > > > [6] > > > https://groups.google.com/d/msgid/pandoc-discuss/635d04e9-a938-4e2d-8a > > > c0- > > 81988c8402acn%40googlegroups.com?utm_medium=email&utm_source=foote<http://40googlegroups.com?utm_medium=email&utm_source=foote> > > r > > > > -- > > 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 pandoc-discus...-/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. > > -- > 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 pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/9f7cdd53071b42cda9f394039bd293ae%40unibe.ch. -- 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 pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>. To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/539c92e0-57ac-4190-9077-3597c64e0a35n%40googlegroups.com<https://groups.google.com/d/msgid/pandoc-discuss/539c92e0-57ac-4190-9077-3597c64e0a35n%40googlegroups.com?utm_medium=email&utm_source=footer>. -- 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 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/a82ee548f5b6496f93635bf721db11a9%40unibe.ch. [-- Attachment #2: Type: text/html, Size: 14766 bytes --] ^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <a82ee548f5b6496f93635bf721db11a9-NSENcxR/0n0@public.gmane.org>]
* Re: Fwd: CSL: conditional text not printed [not found] ` <a82ee548f5b6496f93635bf721db11a9-NSENcxR/0n0@public.gmane.org> @ 2021-09-01 15:27 ` Hakan Dağdelen [not found] ` <794a24b8-0ac1-40fc-b934-41e0e34f39a4n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 0 siblings, 1 reply; 10+ messages in thread From: Hakan Dağdelen @ 2021-09-01 15:27 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 8953 bytes --] Ok, thanks for the information. By the way, there is one more issue with the style file: If I don't add match attribute at line 55, Pandoc does not print title for the entries on that line. However, Zotero's style editor does not need match attribute there. This is maybe another discrepancy between processors. On Wednesday, September 1, 2021 at 5:54:50 PM UTC+3 denis...-NSENcxR/0n0@public.gmane.org wrote: > *Von:* pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> *Im > Auftrag von *Hakan Dagdelen > *Gesendet:* Mittwoch, 1. September 2021 16:51 > *An:* pandoc-discuss <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > *Betreff:* Re: Fwd: CSL: conditional text not printed > > > > The style file does not carry an id. I believe that is the reason why > Zotero does not want to load it. You can type there anything and Zotero > loads. But also, the content of the file can be copied to Zotero's style > editor. There, it works. Zotero produces the expected output. > > Thanks for checking. Then it looks like a bug in pandoc’s citeproc, or at > least a discrepancy between citeproc-js and pandoc’s citeproc. > > > > I am using Zotero 5.0.96.2 and Pandoc 2.14.1. > > > > On Wednesday, September 1, 2021 at 5:15:03 PM UTC+3 Bastien Dumont wrote: > > For me too, although the style appears to be valid once you replace the > slash by an underscore and can be used in the CSL style editor ( > https://editor.citationstyles.org/codeEditor/). > > Le Wednesday 01 September 2021 à 02:07:29PM, denis...-NSENcxR/0n0@public.gmane.org a écrit : > > Just a side-issue: Checking your style with > https://validator.citationstyles.org/ gives me three errors though on > "title-bib/cit". Probably not related, but anyway. > > > > FWIW, I've tried to cross-check with Zotero, but Zotero refuses to > install your style at all... > > > > > -----Ursprüngliche Nachricht----- > > > Von: pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > > > Im Auftrag von Bastien DUMONT > > > Gesendet: Mittwoch, 1. September 2021 16:02 > > > An: pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > > > Betreff: Re: Fwd: CSL: conditional text not printed > > > > > > 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 à 06:28:57AM, Hakan Dağdelen a écrit : > > > > Thanks a lot for the promt relpy. > > > > > > > > I call it under citation and bibliography layout. Here is my CSL > file: > > > > 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 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 > > > > > > > > Le Wednesday 01 September 2021 à 03:09:14PM, hakan a écrit : > > > > > Hi, > > > > > > > > > > I have the following macro in my CSL style file: > > > > > > > > > > <macro name="disambiguate"> > > > > > <choose> > > > > > <if disambiguate="true"> > > > > > <text variable="title-short"/> > > > > > </if> > > > > > </choose> > > > > > </macro> > > > > > > > > > > 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. > > > > > > > > > > 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 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, > send an > > > > email > > > > > to [1]pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > > > > To view this discussion on the web visit [2][2] > https://groups.google.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.gmail.com? > > > > utm_medium=email&utm_source=footer > > > > > > > > -- > > > > 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-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > > > To view this discussion on the web visit > > > > [6]https://groups.google.com/d/msgid/ > > > > pandoc-discuss/635d04e9-a938-4e2d-8ac0- > > > 81988c8402acn%40googlegroups.com. > > > > > > > > References: > > > > > > > > [1] > > > > > > > https://github.com/jgm/citeproc/blob/1ce8c26a5918c641b6a70d4b4151c7a51 > > > > ab9a1ed/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/CAL9QFNmVq0NzALJEQe1G > > > > CC%2BuFBBT-%3Df_orrFTiFUBok- > > > BS%3D6yw%40mail.gmail.com?utm_medium=email > > > > &utm_source=footer [5] > > > > mailto:pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > > > > [6] > > > > > https://groups.google.com/d/msgid/pandoc-discuss/635d04e9-a938-4e2d-8a > > > > c0- > > > 81988c8402acn%40googlegroups.com?utm_medium=email&utm_source=foote > > > r > > > > > > -- > > > 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 pandoc-discus...-/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. > > > > -- > > 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 pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit > https://groups.google.com/d/msgid/pandoc-discuss/9f7cdd53071b42cda9f394039bd293ae%40unibe.ch. > > > -- > 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 pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit > https://groups.google.com/d/msgid/pandoc-discuss/539c92e0-57ac-4190-9077-3597c64e0a35n%40googlegroups.com > <https://groups.google.com/d/msgid/pandoc-discuss/539c92e0-57ac-4190-9077-3597c64e0a35n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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 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/794a24b8-0ac1-40fc-b934-41e0e34f39a4n%40googlegroups.com. [-- Attachment #1.2: Type: text/html, Size: 19521 bytes --] ^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <794a24b8-0ac1-40fc-b934-41e0e34f39a4n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>]
* Re: Fwd: CSL: conditional text not printed [not found] ` <794a24b8-0ac1-40fc-b934-41e0e34f39a4n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> @ 2021-09-01 15:48 ` Bastien DUMONT 0 siblings, 0 replies; 10+ messages in thread From: Bastien DUMONT @ 2021-09-01 15:48 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw The CSL Specification states that the default attribute for @match is "all", but Zotero sets it to "any". So Pandoc is right, and to ensure compatibility with all processors, @match should always be explicitely set in the stylesheet. Le Wednesday 01 September 2021 à 08:27:20AM, Hakan Dağdelen a écrit : > Ok, thanks for the information. > > By the way, there is one more issue with the style file: If I don't add match > attribute at line 55, Pandoc does not print title for the entries on that line. > However, Zotero's style editor does not need match attribute there. This is > maybe another discrepancy between processors. > > On Wednesday, September 1, 2021 at 5:54:50 PM UTC+3 denis...-NSENcxR/0n0@public.gmane.org wrote: > > > Von: pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> Im Auftrag > von Hakan Dagdelen > Gesendet: Mittwoch, 1. September 2021 16:51 > An: pandoc-discuss <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > Betreff: Re: Fwd: CSL: conditional text not printed > > > > The style file does not carry an id. I believe that is the reason why > Zotero does not want to load it. You can type there anything and Zotero > loads. But also, the content of the file can be copied to Zotero's style > editor. There, it works. Zotero produces the expected output. > > Thanks for checking. Then it looks like a bug in pandoc’s citeproc, or at > least a discrepancy between citeproc-js and pandoc’s citeproc. > > > > I am using Zotero 5.0.96.2 and Pandoc 2.14.1. > > > > On Wednesday, September 1, 2021 at 5:15:03 PM UTC+3 Bastien Dumont wrote: > > For me too, although the style appears to be valid once you replace the > slash by an underscore and can be used in the CSL style editor ([1] > https://editor.citationstyles.org/codeEditor/). > > Le Wednesday 01 September 2021 à 02:07:29PM, denis...@unibe.ch a écrit > : > > Just a side-issue: Checking your style with [2] https:// > validator.citationstyles.org/ gives me three errors though on > "title-bib/cit". Probably not related, but anyway. > > > > FWIW, I've tried to cross-check with Zotero, but Zotero refuses to > install your style at all... > > > > > -----Ursprüngliche Nachricht----- > > > Von: pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > > > Im Auftrag von Bastien DUMONT > > > Gesendet: Mittwoch, 1. September 2021 16:02 > > > An: pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > > > Betreff: Re: Fwd: CSL: conditional text not printed > > > > > > 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 à 06:28:57AM, Hakan Dağdelen a écrit > : > > > > Thanks a lot for the promt relpy. > > > > > > > > I call it under citation and bibliography layout. Here is my CSL > file: > > > > https:// [3]pastebin.com/MdzdZLXs > > > > > > > > Here is a bib file in json: [4] https://pastebin.com/GgWeVU1x > > > > > > > > And here is a bib file in tex: [5] 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 a > > > > small example where it should be triggered? Normally it should > work: see > > > > the related test in citeproc's test suite: [1][6]https:// > github.com/jgm/ > > > > citeproc/blob/1ce8c26a5918c641b6a70d4b4151c7a51ab9a1ed/test/csl/ > > > > disambiguate_ByCiteDisambiguateCondition.txt > > > > > > > > Le Wednesday 01 September 2021 à 03:09:14PM, hakan a écrit : > > > > > Hi, > > > > > > > > > > I have the following macro in my CSL style file: > > > > > > > > > > <macro name="disambiguate"> > > > > > <choose> > > > > > <if disambiguate="true"> > > > > > <text variable="title-short"/> > > > > > </if> > > > > > </choose> > > > > > </macro> > > > > > > > > > > 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. > > > > > > > > > > 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 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, send an > > > > email > > > > > to [1]pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > > > > To view this discussion on the web visit [2][2][7]https:// > groups.google.com/ > > > > d/msgid/ > > > > > pandoc-discuss/ > > > > > CAL9QFNmVq0NzALJEQe1GCC%2BuFBBT-%3Df_orrFTiFUBok- > > > BS%3D6yw%[3] > > > > [8]40mail.gmail.com. > > > > > > > > > > References: > > > > > > > > > > [1] mailto:pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > > > > > [2] [4][9]https://groups.google.com/d/msgid/pandoc-discuss/ > > > > CAL9QFNmVq0NzALJEQe1GCC%2BuFBBT-%3Df_orrFTiFUBok- > > > BS%3D6yw%[10]40mail.gmail.com? > > > > utm_medium=email&utm_source=footer > > > > > > > > -- > > > > 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-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > > > To view this discussion on the web visit > > > > [6][11]https://groups.google.com/d/msgid/ > > > > pandoc-discuss/635d04e9-a938-4e2d-8ac0- > > > 81988c8402acn%[12]40googlegroups.com. > > > > > > > > References: > > > > > > > > [1] > > > > > > > [13] https://github.com/jgm/citeproc/blob/ > 1ce8c26a5918c641b6a70d4b4151c7a51 > > > > ab9a1ed/test/csl/disambiguate_ByCiteDisambiguateCondition.txt > > > > [2] [14]https://groups.google.com/d/msgid/ > > > > [3] [15]http://40mail.gmail.com/ > > > > [4] > > > > [16]https://groups.google.com/d/msgid/pandoc- > > > discuss/CAL9QFNmVq0NzALJEQe1G > > > > CC%2BuFBBT-%3Df_orrFTiFUBok- > > > BS%3D6yw%[17]40mail.gmail.com?utm_medium=email > > > > &utm_source=footer [5] > > > > mailto:pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > > > > [6] > > > > [18] https://groups.google.com/d/msgid/pandoc-discuss/ > 635d04e9-a938-4e2d-8a > > > > c0- > > > 81988c8402acn%[19]40googlegroups.com?utm_medium=email&utm_source= > foote > > > r > > > > > > -- > > > 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 pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > > To view this discussion on the web visit > > > [20]https://groups.google.com/d/msgid/pandoc- > > > discuss/YS%2BH5RUDtzym/o/t%40localhost. > > > > -- > > 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 pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit [21] https:// > groups.google.com/d/msgid/pandoc-discuss/ > 9f7cdd53071b42cda9f394039bd293ae%40unibe.ch. > > -- > 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 pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit [22] https://groups.google.com/d/ > msgid/pandoc-discuss/ > 539c92e0-57ac-4190-9077-3597c64e0a35n%40googlegroups.com. > > -- > 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 [23]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit [24]https://groups.google.com/d/msgid/ > pandoc-discuss/794a24b8-0ac1-40fc-b934-41e0e34f39a4n%40googlegroups.com. > > References: > > [1] https://editor.citationstyles.org/codeEditor/ > [2] https://validator.citationstyles.org/ > [3] http://pastebin.com/MdzdZLXs > [4] https://pastebin.com/GgWeVU1x > [5] https://pastebin.com/YUb73afz > [6] https://github.com/jgm/ > [7] https://groups.google.com/ > [8] http://40mail.gmail.com/ > [9] https://groups.google.com/d/msgid/pandoc-discuss/ > [10] http://40mail.gmail.com/ > [11] https://groups.google.com/d/msgid/ > [12] http://40googlegroups.com/ > [13] https://github.com/jgm/citeproc/blob/1ce8c26a5918c641b6a70d4b4151c7a51 > [14] https://groups.google.com/d/msgid/ > [15] http://40mail.gmail.com/ > [16] https://groups.google.com/d/msgid/pandoc- > [17] http://40mail.gmail.com/?utm_medium=email > [18] https://groups.google.com/d/msgid/pandoc-discuss/635d04e9-a938-4e2d-8a > [19] http://40googlegroups.com/?utm_medium=email&utm_source=foote > [20] https://groups.google.com/d/msgid/pandoc- > [21] https://groups.google.com/d/msgid/pandoc-discuss/9f7cdd53071b42cda9f394039bd293ae%40unibe.ch > [22] https://groups.google.com/d/msgid/pandoc-discuss/539c92e0-57ac-4190-9077-3597c64e0a35n%40googlegroups.com?utm_medium=email&utm_source=footer > [23] mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > [24] https://groups.google.com/d/msgid/pandoc-discuss/794a24b8-0ac1-40fc-b934-41e0e34f39a4n%40googlegroups.com?utm_medium=email&utm_source=footer -- 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 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%2Bg2haFbJdSXeJ0%40localhost. ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2021-09-01 15:48 UTC | newest] Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <AQHXnypIInrPD2svS0+pCdrSBD43YKuO+ZyAgAARKoCAAAlLgIAAIlkw///g7oCAAApsgIAAIkTQ> [not found] ` <201a35f6-a91a-3bb7-a01d-07ca8cd9f6c5@gmail.com> [not found] ` <201a35f6-a91a-3bb7-a01d-07ca8cd9f6c5-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 2021-09-01 12:09 ` Fwd: CSL: conditional text not printed hakan [not found] ` <CAL9QFNmVq0NzALJEQe1GCC+uFBBT-=f_orrFTiFUBok-BS=6yw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2021-09-01 12:27 ` Bastien DUMONT 2021-09-01 13:28 ` Hakan Dağdelen [not found] ` <635d04e9-a938-4e2d-8ac0-81988c8402acn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2021-09-01 14:02 ` Bastien DUMONT 2021-09-01 14:07 ` AW: " denis.maier-NSENcxR/0n0 [not found] ` <9f7cdd53071b42cda9f394039bd293ae-NSENcxR/0n0@public.gmane.org> 2021-09-01 14:13 ` Bastien DUMONT 2021-09-01 14:51 ` Hakan Dağdelen [not found] ` <539c92e0-57ac-4190-9077-3597c64e0a35n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2021-09-01 14:54 ` AW: " denis.maier-NSENcxR/0n0 [not found] ` <a82ee548f5b6496f93635bf721db11a9-NSENcxR/0n0@public.gmane.org> 2021-09-01 15:27 ` Hakan Dağdelen [not found] ` <794a24b8-0ac1-40fc-b934-41e0e34f39a4n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2021-09-01 15:48 ` Bastien DUMONT
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).