public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: Hugh Esco <hresco3-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: errors trying to add new variables to template
Date: Wed, 11 Aug 2021 11:14:45 -0700 (PDT)	[thread overview]
Message-ID: <7b1f7006-853f-4cfe-8ecd-d8bf7de153f9n@googlegroups.com> (raw)


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

My client wants me to create pdfs from articles extracted from the 
internet.  

I am able to successfully use yaml at the top of a markdown document 
extracted from the html to define the title, author and date.  But it fails 
to render the subtitle, or institute  in the pdf.  Also the abstract, if 
defined in the yaml, shows up in the two-column body of the result file, 
rather than in the one column header of the result file.  

Any attempts to add support to the template (copied to ~/.pandoc/templates/ 
and invoked from the command line as --template=copied-template-name.latex) 
are failing for yaml defined variables url and publication, including 
variations on those names, in case those happen to be reserved keywords.  

```
$ diff -u /usr/share/pandoc/data/templates/default.latex 
~/.pandoc/templates/default-2col-3.latex
--- /usr/share/pandoc/data/templates/default.latex    2018-01-26 
07:52:22.000000000 -0500
+++ /home/hesco/.pandoc/templates/default-2col-3.latex    2021-08-11 
14:03:34.846709357 -0400
@@ -220,6 +220,7 @@
 \institute{$for(institute)$$institute$$sep$ \and $endfor$}
 $endif$
 \date{$date$}
+$url_for_article$
 
 \begin{document}
 $if(title)$
```

-- 
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/7b1f7006-853f-4cfe-8ecd-d8bf7de153f9n%40googlegroups.com.

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

             reply	other threads:[~2021-08-11 18:14 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-11 18:14 Hugh Esco [this message]
     [not found] ` <7b1f7006-853f-4cfe-8ecd-d8bf7de153f9n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2021-08-11 18:15   ` Hugh Esco
2021-08-11 18:46   ` John MacFarlane
     [not found]     ` <m24kbvhlao.fsf-jF64zX8BO0+FqBokazbCQ6OPv3vYUT2dxr7GGTnW70NeoWH0uzbU5w@public.gmane.org>
2021-08-11 19:17       ` Bastien DUMONT
2021-08-11 22:48         ` Hugh Esco
     [not found]           ` <db7f9173-e6ba-413b-9a23-6b79cdb30c9an-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2021-08-12  1:23             ` John MacFarlane
2021-08-12  6:42             ` 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=7b1f7006-853f-4cfe-8ecd-d8bf7de153f9n@googlegroups.com \
    --to=hresco3-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).