public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: Pranesh Prakash <the.solipsist-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Create multiple outputs from single defaults file
Date: Wed, 6 Oct 2021 04:13:55 -0700 (PDT)	[thread overview]
Message-ID: <ba39e16b-6b2d-4bba-8e15-9cbdc7f23b95n@googlegroups.com> (raw)


[-- 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 --]

             reply	other threads:[~2021-10-06 11:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-06 11:13 Pranesh Prakash [this message]
     [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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ba39e16b-6b2d-4bba-8e15-9cbdc7f23b95n@googlegroups.com \
    --to=the.solipsist-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).