Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ensure commandline works with repeated options #3

Closed
msprev opened this issue May 25, 2015 · 3 comments
Closed

ensure commandline works with repeated options #3

msprev opened this issue May 25, 2015 · 3 comments

Comments

@msprev
Copy link
Owner

msprev commented May 25, 2015

  • For pandoc key-values, the value should be a quoted inline code span, e.g. include-in-header: "path/to/my/header".

Not having tested I wonder if you have noted that some options
beside -F and -M are repeatable and therefore should take a list
(of 'codes') as value?

E.g. the default latex template says:

 $for(header-includes)$ 
 $header-includes$ 
 $endfor$ 

and it works with plain pandoc:

 $ echo '\foo' >foo.ltx 
 $ echo '\bar' >bar.ltx 
 $ pandoc -w latex -H foo.ltx -H bar.ltx 
 ^D 
 ... 
 \foo 
 \bar 

 \begin{document} 
 ... 

I use particularly -H like that so I reacted at the wording of the
readme.

/bpj

@msprev msprev closed this as completed in 7c14d45 May 29, 2015
@jgrizou
Copy link

jgrizou commented May 31, 2015

Hi,

I just tested panzer and it is very convenient.

I also use include-in-header but also include-before-body and the like. Yet, on my machine, repeated key-val works for include-in-header but not for include-before-body.. it seems very strange, is there a reason for that?

yaml:

style: Template
styledef:
  Template:
    all:
      commandline:
        standalone: true
        include-in-header:
          - "`header_addon.html`"
          - "`header_addon2.html`"
        include-before-body:
          - "`navbar.html`"
          - "`body.html`"

log:

         ----- pandoc read -----
         running
         ----- style definitions -----
         no global definitions loaded
         local:
           Template        
         ----- document style -----
         style:
           Template
         full hierarchy:
           Template
         writer:
           html
ERROR:   Cannot read entry "include-before-body" with type "MetaList" in "commandline"---ignoring
         ----- run list -----
           empty
         ----- pandoc write -----
         pandoc writing with options:
           --include-in-header=header_addon.html --include-in-header=header_addon2.html --standalone
         output written to "test_template_panzer.html"

msprev pushed a commit that referenced this issue May 31, 2015
@msprev
Copy link
Owner Author

msprev commented May 31, 2015

Now fixed. Let me know if it doesn't work. Thanks for catching this!

@jgrizou
Copy link

jgrizou commented May 31, 2015

Works perfectely!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants