* 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
[parent not found: <73344cc2-9463-4a09-b0d0-c74b84933c6do-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>]
* Re: LaTeX Writer: How to properly pass options to geometry package via --metadata-file [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> 0 siblings, 1 reply; 3+ messages in thread From: BPJ @ 2020-08-09 8:31 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1: Type: text/plain, Size: 2387 bytes --] The list items have to be strings in LaTeX option format, not a list of YAML mappings: ``````yaml geometry: - 'left=2.5cm' - 'right=2cm' - 'bottom=3cm' - 'headheight=15.3pt' `````` Remember to use two single quotes to include a single quote in a YAML single quoted string: `'it''s OK'`. -- Better --help|less than helpless Den lör 8 aug. 2020 21:45Tomáš Kruliš <krulis.tomas.tk@gmail.com> skrev: > 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 > <https://groups.google.com/d/msgid/pandoc-discuss/73344cc2-9463-4a09-b0d0-c74b84933c6do%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/CADAJKhC9Ove2V4-Ki%2Bxozk_S6tS%2BCPw3X6eS_go7Tq3Q0q4KBA%40mail.gmail.com. [-- Attachment #2: Type: text/html, Size: 3877 bytes --] ^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <CADAJKhC9Ove2V4-Ki+xozk_S6tS+CPw3X6eS_go7Tq3Q0q4KBA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: LaTeX Writer: How to properly pass options to geometry package via --metadata-file [not found] ` <CADAJKhC9Ove2V4-Ki+xozk_S6tS+CPw3X6eS_go7Tq3Q0q4KBA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2020-08-10 8:18 ` Tomáš Kruliš 0 siblings, 0 replies; 3+ messages in thread From: Tomáš Kruliš @ 2020-08-10 8:18 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 3085 bytes --] Thank you very much for clarification, this works perfectly. Out of options that I have tryed this did not occured to me. I have looked around the documentation and did not find any example mentioning this situation. Is this generally known (and I am just too numbed by local summer heat) or would it be worth to mention in some simple example? (Maybe even in the one presented here)? If you think it could be helpfull, I can contribute in that way (well, thats the least I can do). Thank you for any opinions on this, regards Tomas Dne neděle 9. srpna 2020 10:31:37 UTC+2 BPJ napsal(a): > > The list items have to be strings in LaTeX option format, not a list of > YAML mappings: > > ``````yaml > geometry: > > - 'left=2.5cm' > > - 'right=2cm' > > - 'bottom=3cm' > > - 'headheight=15.3pt' > `````` > > Remember to use two single quotes to include a single quote in a YAML > single quoted string: `'it''s OK'`. > > > -- > Better --help|less than helpless > > Den lör 8 aug. 2020 21:45Tomáš Kruliš <krulis...@gmail.com <javascript:>> > skrev: > >> 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-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/pandoc-discuss/73344cc2-9463-4a09-b0d0-c74b84933c6do%40googlegroups.com >> <https://groups.google.com/d/msgid/pandoc-discuss/73344cc2-9463-4a09-b0d0-c74b84933c6do%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/5bba0e5e-2013-4780-97a3-f5376722de07o%40googlegroups.com. [-- Attachment #1.2: Type: text/html, Size: 5211 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).