public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* errors trying to add new variables to template
@ 2021-08-11 18:14 Hugh Esco
       [not found] ` <7b1f7006-853f-4cfe-8ecd-d8bf7de153f9n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 7+ messages in thread
From: Hugh Esco @ 2021-08-11 18:14 UTC (permalink / raw)
  To: pandoc-discuss


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

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

end of thread, other threads:[~2021-08-12  6:42 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-11 18:14 errors trying to add new variables to template Hugh Esco
     [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

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