public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* LaTeX Writer: How to properly pass options to geometry package via --metadata-file
@ 2020-08-08 19:44 Tomáš Kruliš
       [not found] ` <73344cc2-9463-4a09-b0d0-c74b84933c6do-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Tomáš Kruliš @ 2020-08-08 19:44 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 1260 bytes --]

I would like to ask how to properly pass options and theyre values to LaTeX 
`geometry` package via command-line option `--metadata-file`?

Consider following example:

`MetadataSettings.yaml`:

```
---
documentclass: scrbook

geometry:
- left: 2.5cm
- right: 2cm
- bottom: 3cm
- headheight: 15.3pt
---
```

with `test.txt` containing text "test" or whatever and with default latex 
template and command:

```
pandoc --metadata-file=MetadataSettings.yaml -f markdown -s -t latex -o 
test.tex test.txt
```

produces `test.tex` file, in which key-value options written in metadata 
file are simply flattened to "true", which wont compile to pdf.

If possible, I would very much prefer setting `geometry` package options 
(and other packages similarly) via metadata-settings file, which makes them 
nicely organized. So, how can that be done properly?

-- 
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/73344cc2-9463-4a09-b0d0-c74b84933c6do%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 1887 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-08-10  8:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-08 19:44 LaTeX Writer: How to properly pass options to geometry package via --metadata-file Tomáš Kruliš
     [not found] ` <73344cc2-9463-4a09-b0d0-c74b84933c6do-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2020-08-09  8:31   ` BPJ
     [not found]     ` <CADAJKhC9Ove2V4-Ki+xozk_S6tS+CPw3X6eS_go7Tq3Q0q4KBA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2020-08-10  8:18       ` Tomáš Kruliš

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