Have you tried running pandoc-quotes.lua after citeproc?

use this in a defaults file:

``````yaml
filters:
  - citeproc
  - pandoc-quotes.lua
``````

Make sure to remove any `citeproc: true` field!

Den tors 30 juni 2022 14:42John Carter Wood <woodjo-ZOsAvrTRSvuEhhMi0yms2Q@public.gmane.org> skrev:
That's very helpful, thank you!

I had looked at the spec but overlooked the part on locales and quotes.

https://docs.citationstyles.org/en/stable/translating-locale-files.html#punctuation

I will give that a try (probably tomorrow) and report whether it works for me or other problems crop up.


suki...@gmail.com schrieb am Donnerstag, 30. Juni 2022 um 14:34:13 UTC+2:

Hi,

After looking at the spec (the only experience I have with CSL files), I think you would need to modify your CSL file, Add a locale element in the root style element, like this:


<style>

    <locale xml:lang="en">

        <terms>
            <term name = "open-quote">&laquo;</term>
            <term name = "close-quote">&raquo;</term>
        </terms>
    </locale>
</style>
(Or try left-inner-quote and right-inner quote instead, maybe)
Hth,
Sukil

El 30/06/2022 a las 14:04, John Carter Wood escribió:
In setting up a CSL file for a German-language publisher (but for English-language texts), I've run into the issue of needing to change the typographical quotation marks when converting from Markdown to docx or pdf. I am familiar with pandoc-quotes.lua but when using it, it changes the quote marks in the main text, but not in the citations (which come from a json file).

So, I have to use this group of quotation marks: »«›‹, which I have set in a YAML block (quot-marks: »«›‹). (The document language is set to en-GB.)

The result changes the main text quotation marks but not the citations (see screenshot).

Screenshot from 2022-06-30 13-55-41.png

Is there a way of getting the quotation marks I want in the citations as well?

(pandoc-version 2.18)
--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/da178cb2-48fa-4f53-8417-02dcae0129acn%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 pandoc-discuss+unsubscribe-/JYPxA39Uh4Ykp1iOSErHA@public.gmane.orgm.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/062deeeb-9dfb-4ca3-ae3a-10b360293315n%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 pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CADAJKhAaLedtM4gWri6L-OFxG0aPoLA24w71Wn8zw%2BM-QxQe4g%40mail.gmail.com.