public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Create multiple outputs from single defaults file
@ 2021-10-06 11:13 Pranesh Prakash
       [not found] ` <ba39e16b-6b2d-4bba-8e15-9cbdc7f23b95n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Pranesh Prakash @ 2021-10-06 11:13 UTC (permalink / raw)
  To: pandoc-discuss


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

Dear all,
Since pandoc can now reference multiple defaults files within a single 
defaults file, I thought it would be possible to run a single command to 
generate multiple outputs.

```
$ cat defaults.yaml
---
# General options
defaults: 
-  defaults/cis_ihrl_69a.defaults.yaml
-  defaults/cis_ihrl_69a.html.defaults.yaml
-  defaults/cis_ihrl_69a.pdf.defaults.yaml
...
```

The files `cis_ihrl_69a.html.defaults.yaml` and 
`cis_ihrl_69a.pdf.defaults.yaml` have different `to:` lines.  I'd expect 
both an HTML output as well as a PDF output when I do:

```
$ pandoc -d defaults
```

However, that doesn't work as I expected.  Only the last writer (PDF, in 
this case), gets executed.

I'm not sure if my expectations are wrong, or if I'm doing something wrong.

I read through the manual, but this doesn't really seem to help answer my 
question:

> Specify a set of default option settings. *FILE* is a YAML file whose 
fields correspond to command-line option settings. All options for document 
conversion, including input and output files, can be set using a defaults 
file. The file will be searched for first in the working directory, and 
then in the defaults subdirectory of the user data directory (see --data-dir 
<https://pandoc.org/MANUAL.html#option--data-dir>). The .yaml extension may 
be omitted. See the section Default files 
<https://pandoc.org/MANUAL.html#default-files> for more information on the 
file format. Settings from the defaults file may be overridden or extended 
by subsequent options on the command line.

-- 
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/ba39e16b-6b2d-4bba-8e15-9cbdc7f23b95n%40googlegroups.com.

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

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

end of thread, other threads:[~2021-10-07 15:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-06 11:13 Create multiple outputs from single defaults file Pranesh Prakash
     [not found] ` <ba39e16b-6b2d-4bba-8e15-9cbdc7f23b95n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2021-10-07  8:07   ` BPJ
     [not found]     ` <CADAJKhBMDq22wSp0Z==AgxRf7e-b4M+xZpddv7UjA8_Z2kW2zw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2021-10-07 11:37       ` Pranesh Prakash
     [not found]         ` <7a342f8f-63d7-45d0-9a5d-8e820cae1826n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2021-10-07 12:28           ` Joost Kremers
2021-10-07 15:12           ` BPJ

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