public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* csquotes configuration options / loading of header-includes
@ 2023-06-21  7:09 denis.maier-NSENcxR/0n0
  0 siblings, 0 replies; only message in thread
From: denis.maier-NSENcxR/0n0 @ 2023-06-21  7:09 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
  Cc: Pierre-Louis.Blanchard-U0LLASLCtz9qrsqc6uq6we1GAupnlqi7

[-- Attachment #1: Type: text/plain, Size: 1919 bytes --]

Hi,

I've tried to modify the behaviour of csquotes. In particular, I wanted to use guillemets when writing in German. I've realized a couple of things:

- There is currently no easy way to modify the package behaviour. No csquotes-options metadata variable or something similar. Any reason not to add this ?
- With csquotes you can set package options also via  `\ExecuteQuoteOptions{}`, so I tried `\ExecuteQuoteOptions{german=guillemets}`. However, pdflatex now complained about `\ExecuteQuoteOptions{}` being undefined. Apparently, `header-includes` stuff is added to the preamble before the csquotes package is loaded. Is there any reason for this? Wouldn't it make more sense to defer the loading of header-includes material until later in the template?
- Using `header-includes: \usepackage[german=guillemets]{csquotes}` doesn't work either, because that way pandoc will not realize that the csquotes packages is actually used.
- This here will work though:


```
header-includes: \usepackage[german=guillemets]{csquotes}
csquotes: true
```
This will cause pandoc to use \enquote, and loading csquotes twice doesn't seem to do any harm. Yet, I'd argue that this is poor style.

So, to sum up, anything speaking against adding a new option csquotes-options *and* moving \usepackage{csquotes} up in the template / header-includes down? (As per common knowledge, hyperref should probably come last, but I don't see why natbib or biblatex should be loaded after header-includes.)

Best,
Denis

-- 
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/813195abd91948e5a13c44c3babe5891%40unibe.ch.

[-- Attachment #2: Type: text/html, Size: 7406 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-06-21  7:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-21  7:09 csquotes configuration options / loading of header-includes denis.maier-NSENcxR/0n0

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).