public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Trying to get "institute" working with "header-includes" but no luck
@ 2019-10-13 12:54 Matias
       [not found] ` <9a692e0f-1ea1-4f12-9688-5d917ffe59ff-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Matias @ 2019-10-13 12:54 UTC (permalink / raw)
  To: pandoc-discuss


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

Hi all,

I am writing a scientific paper with pandoc, with pdf output. I need to add 
the institute...

So, I added this to the yaml part of my .md source file:

```yaml
---
title: the title ok
author:
  - author1 ok
  - author2 ok
date: 2019-09-24
abstract: |
    the abstract ok
header-includes: |
    \providecommand{\institute}[1]{
    \postauthor{\end{tabular}\[0.5cm]\textit{#1}\end{center}}
    }
---
```

(I found this trick looking at some github issues, related to the same 
problem I have)

Unfortunately, with `header-includes` I have the following error:

    Error producing PDF.
    ! LaTeX Error: Missing \begin{document}.

If I remove the `header-includes` section it works fine - but I have no 
institute :(

What should I do ?

I am completely ignorant of Latex/Tex or whatever (sorry). This is why I am 
using Pandoc.

Any help would be appreciated.

-- 
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/9a692e0f-1ea1-4f12-9688-5d917ffe59ff%40googlegroups.com.

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

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

end of thread, other threads:[~2019-10-13 17:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-13 12:54 Trying to get "institute" working with "header-includes" but no luck Matias
     [not found] ` <9a692e0f-1ea1-4f12-9688-5d917ffe59ff-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2019-10-13 13:30   ` Dimitri KOPRIWA
     [not found]     ` <CA+QA1PaNBNhWhcA20u+rPjN7FawQzcsdBjeifwd2zbeaoTV+3g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2019-10-13 17:18       ` Matias
     [not found]         ` <aacabb91-8c20-46e0-82b5-76200faa7e6a-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2019-10-13 17:24           ` Dimitri KOPRIWA
2019-10-13 17:43           ` John MacFarlane

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