* csquotes metadata field and LaTeX package
@ 2020-12-07 23:05 César AM
[not found] ` <7100c3b8-3869-40ce-a228-d6beaf69b48an-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: César AM @ 2020-12-07 23:05 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 1458 bytes --]
Hi,
I have a markdown document with some generic quotes (" ") that I want to
transform to language-specific quotes (in the case of Spanish, « ») in a
PDF output using pdfLaTeX. According to the Pandoc User's Guide [1],
> ... `csquotes` will be used for typography if the `csquotes` variable or
metadata field is set to a true value.
When I set `csquotes: true` in the metadata block of the document, the
string `"some text"` is correctly transformed to `\enquote{some text}` in
the TeX file, but the package csquotes is not loaded. Therefore, I also
need to write `\usepackage{csquotes}` under the header-includes block to
obtain the desired result or, alternatively, add the following to the
default.latex template:
$if(csquotes)$
\usepackage{csquotes}
$endif$
I would have thought that setting `csquotes: true` alone would take care of
loading the package too. Is this the intended behaviour?
[1] https://pandoc.org/MANUAL.html#creating-a-pdf <[1]
https://pandoc.org/MANUAL.html#creating-a-pdf>
--
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/7100c3b8-3869-40ce-a228-d6beaf69b48an%40googlegroups.com.
[-- Attachment #1.2: Type: text/html, Size: 1918 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: csquotes metadata field and LaTeX package
[not found] ` <7100c3b8-3869-40ce-a228-d6beaf69b48an-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2020-12-08 2:56 ` John MacFarlane
[not found] ` <m25z5dj99e.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: John MacFarlane @ 2020-12-08 2:56 UTC (permalink / raw)
To: César AM, pandoc-discuss
> $if(csquotes)$
> \usepackage{csquotes}
> $endif$
I think it would make sense to add this. Funny that it isn't
there, but I guess we imagined that people would be using
a custom template.
César AM <cesar.alemar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
> Hi,
>
> I have a markdown document with some generic quotes (" ") that I want to
> transform to language-specific quotes (in the case of Spanish, « ») in a
> PDF output using pdfLaTeX. According to the Pandoc User's Guide [1],
>
>> ... `csquotes` will be used for typography if the `csquotes` variable or
> metadata field is set to a true value.
>
> When I set `csquotes: true` in the metadata block of the document, the
> string `"some text"` is correctly transformed to `\enquote{some text}` in
> the TeX file, but the package csquotes is not loaded. Therefore, I also
> need to write `\usepackage{csquotes}` under the header-includes block to
> obtain the desired result or, alternatively, add the following to the
> default.latex template:
>
>
> I would have thought that setting `csquotes: true` alone would take care of
> loading the package too. Is this the intended behaviour?
>
> [1] https://pandoc.org/MANUAL.html#creating-a-pdf <[1]
> https://pandoc.org/MANUAL.html#creating-a-pdf>
>
> --
> 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/7100c3b8-3869-40ce-a228-d6beaf69b48an%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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/m25z5dj99e.fsf%40MacBook-Pro.hsd1.ca.comcast.net.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: csquotes metadata field and LaTeX package
[not found] ` <m25z5dj99e.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org>
@ 2020-12-08 2:57 ` John MacFarlane
[not found] ` <m21rg1j96w.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: John MacFarlane @ 2020-12-08 2:57 UTC (permalink / raw)
To: César AM, pandoc-discuss
I've just pushed a commit that adds this.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: csquotes metadata field and LaTeX package
[not found] ` <m21rg1j96w.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org>
@ 2020-12-08 10:40 ` César AM
0 siblings, 0 replies; 4+ messages in thread
From: César AM @ 2020-12-08 10:40 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 611 bytes --]
Thank you for adding this to the template so quickly.
El martes, 8 de diciembre de 2020 a las 3:58:16 UTC+1, John MacFarlane
escribió:
> I've just pushed a commit that adds this.
>
>
--
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/1e1c6d79-4f35-47f1-b411-3fc6b07da02cn%40googlegroups.com.
[-- Attachment #1.2: Type: text/html, Size: 1109 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-12-08 10:40 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-07 23:05 csquotes metadata field and LaTeX package César AM
[not found] ` <7100c3b8-3869-40ce-a228-d6beaf69b48an-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2020-12-08 2:56 ` John MacFarlane
[not found] ` <m25z5dj99e.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org>
2020-12-08 2:57 ` John MacFarlane
[not found] ` <m21rg1j96w.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org>
2020-12-08 10:40 ` César AM
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).