public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: Dimitri KOPRIWA <d.kopriwa-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: Trying to get "institute" working with "header-includes" but no luck
Date: Sun, 13 Oct 2019 19:24:09 +0200	[thread overview]
Message-ID: <CA+QA1PZMwVD+Otq3BQVP1e3FphiB89joqr61Au=JzFjqiCT-9g@mail.gmail.com> (raw)
In-Reply-To: <aacabb91-8c20-46e0-82b5-76200faa7e6a-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>

[-- Attachment #1: Type: text/plain, Size: 4062 bytes --]

I am not an expert in latex to know but I have been through this issue many
times while trying to includes headers given by tex people with the
instruction "it work", and I have faced situation where i had to remove
things, or prevent them from being added twice depending of the templates
you use. A nice command to know what is happening is pandoc -D latex to
display default template.

I believe the document class you are using is not compatible with those
headers, or the header as been injected twice, something like this. Try to
remove from the document until you only have that breaking line, then
compare with the template and your working sample (I hope someone gave you
one.) Good luck

Le dim. 13 oct. 2019 à 19:18, Matias <matias.guijarro-GANU6spQydw@public.gmane.org> a écrit :

> Thanks Dimitri. But my header-includes only has what I posted, it does not
> seem I can remove something.
>
> Why is "institute" ignored ?
>
> All scientific papers need author's affiliation.
>
> I am trying to have the institute properly written after authors list.
>
>
> On Sunday, October 13, 2019 at 3:31:16 PM UTC+2, Dimitri KOPRIWA wrote:
>>
>> You should try to remove the content of within include headers, and find
>> the line that cause the issue. Then fix it.
>>
>> Le dim. 13 oct. 2019 à 14:54, Matias <matias....-GANU6spQydw@public.gmane.org> a écrit :
>>
>>> 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-...-/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
>>> <https://groups.google.com/d/msgid/pandoc-discuss/9a692e0f-1ea1-4f12-9688-5d917ffe59ff%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
> 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/aacabb91-8c20-46e0-82b5-76200faa7e6a%40googlegroups.com
> <https://groups.google.com/d/msgid/pandoc-discuss/aacabb91-8c20-46e0-82b5-76200faa7e6a%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CA%2BQA1PZMwVD%2BOtq3BQVP1e3FphiB89joqr61Au%3DJzFjqiCT-9g%40mail.gmail.com.

[-- Attachment #2: Type: text/html, Size: 5446 bytes --]

  parent reply	other threads:[~2019-10-13 17:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-13 12:54 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 [this message]
2019-10-13 17:43           ` John MacFarlane

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='CA+QA1PZMwVD+Otq3BQVP1e3FphiB89joqr61Au=JzFjqiCT-9g@mail.gmail.com' \
    --to=d.kopriwa-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).