From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/23576 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: Trying to get "institute" working with "header-includes" but no luck Date: Sun, 13 Oct 2019 10:43:14 -0700 Message-ID: References: <9a692e0f-1ea1-4f12-9688-5d917ffe59ff@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="89558"; mail-complaints-to="usenet@blaine.gmane.org" To: Matias , pandoc-discuss Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBP6ERXWQKGQENLVM2HY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun Oct 13 19:43:31 2019 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-oi1-f187.google.com ([209.85.167.187]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1iJhtx-000NAB-NA for gtp-pandoc-discuss@m.gmane.org; Sun, 13 Oct 2019 19:43:29 +0200 Original-Received: by mail-oi1-f187.google.com with SMTP id 74sf8545696oie.3 for ; Sun, 13 Oct 2019 10:43:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1570988608; cv=pass; d=google.com; s=arc-20160816; b=HeBnF7fycYGitvraJdFqX8IGwp8ZXJrO9IPczvv3EtqQc9LbBs8CxIldQS5ycZgLqn WpJcVl87lXD5IlE0zW/ZYCbZOVhOaiosqkUUWGaDYdM2kKl1qjDsFtKN6nHw6+WMx+Nq OHWv94D98MW3UkWb2oSXaqXvBRXmgp4hb4PbBeOOVzKtbrZCNF2Go5Yp6PCOvkEqHLbZ AlxE3VMsyh0QhbtdJThLk+TcsrQeX/utWlP8UXlgqFKDQnt/NG+7eS9ORYwPfxaM4qi0 pCPLTbRVWKSBfOS+yCKx94UtY+uDs9tnz4vu6WoajSjBQm3g9SOF+wPOOOQCMwd692vu nk+g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:content-transfer-encoding :mime-version:message-id:date:references:in-reply-to:subject:to:from :sender:dkim-signature; bh=tYTUp0spQcShPcSR83CdZiVYlup1uAN/NTsbdYubl3s=; b=cgJ9suxVCqeU6zdhQhbkxJGArecRluRT9twtwxbd2pq20VgQLaG4CIlJyWHGRo6qaK AX+DQyzJP6COtJKB2W5jXK4ssCZYneLmyJksExq4TZjdCnyzZeTdkq/lsZfG2cS78crV vL4jij20uVwWB0v3seXfYS9qt7lQQyAA3DjL0dbQ8j3SPyWHQmYiBHkIymO0hD1sFS1Z aD/EsXq18I1iv+ZzIfHswKKXMwYu0izwjhx7n7DQK4OqqfP/VcVEiemaGUkQn4LTlmTg OQQZ+ji4UgfCpOGqLX3UsIMAFIVEX2maioSBOE5+VlJ7DMtd7ap8YHU3Ukax/tffqheO i/nA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=czGAsOkX; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::42b as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=tYTUp0spQcShPcSR83CdZiVYlup1uAN/NTsbdYubl3s=; b=EcRnxH4zP2As7NetAMgS14QIXkrLuLawYy3xc+wzq12pKstM5EWroFwo04RcRAQEtY ERNDUXwBbCM0VgpmNteQ0jmZlbrNxCajdOw1HJ1W7AYf0XskBHoO3fgf/FslakXOBjYM BMil2cTS7T1s31nmwgi8oicH+iOmxF6GJz1pkLljSFoDMNcsH1T9O4ptx9ipB2uIoxqC M/uyE+uHp2QmaSelFsAJopng8fedKnucJ+ruZn4ZF+4M8P1oCueGUWWrrPmhSb4siQ/8 +8PR9glohO4Wbi+EnGpV5s+5YLKw8Dj72Z7ReiUotsogx+f/b2+Jg5wdOMnKiyFYH5mp pKCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:subject:in-reply-to:references :date:message-id:mime-version:content-transfer-encoding :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=tYTUp0spQcShPcSR83CdZiVYlup1uAN/NTsbdYubl3s=; b=uU7I/4exIRBfmeWiX53FgO0hF+7yv0Jibqb4C8pI/UNPT+wGqSLJSKmW/T/m1/culE 3fWpnsjuGOOz7qI84hF1/ysjVg6tJHubc2NDt+WqWcfcVm71OqmPgB8uaS0JYZUsj04A doqWBk75qo4950CfE+4BKurR+wK1ZzGnxjDUBAz1yjPFcvWXyAKiPm6xn4SFqGbFnsLx rfP2pfY+qg+tFpqTNNPORf7n3hT9J3LfdxWKGUKC1bjtzWKfOnBqrStzd1w2eTJQVPQ0 wszYfI/5ax8sMABIUBAiudtvWnzY2cn/OdNRa/IuNMjWED7e4RZM5usXuH87om0sjg/g Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: APjAAAUEK/1l+uAbOSGrUxJGnxhbIiP6nuH6SeAyXo8J8V3FTLXoVJbE chvSH9dvThZ+DJztI9c3uyQ= X-Google-Smtp-Source: APXvYqyA5wkpTDfXDjfIceZm2s7t5cpFDh9FWKzj6zdKcSC05O2ffkXvR0QnD4RKfdKDlO3OF3xvpA== X-Received: by 2002:a05:6808:281:: with SMTP id z1mr21748890oic.56.1570988608361; Sun, 13 Oct 2019 10:43:28 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aca:ad92:: with SMTP id w140ls2306729oie.2.gmail; Sun, 13 Oct 2019 10:43:27 -0700 (PDT) X-Received: by 2002:aca:100f:: with SMTP id 15mr21426808oiq.166.1570988607325; Sun, 13 Oct 2019 10:43:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570988607; cv=none; d=google.com; s=arc-20160816; b=HMhOtdbPzBUunP4nfXNS0sgYbOsJl5ISBto+CNNq61rICyxX+30sUhNjKhC2xA/O/l vYj6L3Vjn32cVWg38xnc40olyp/vUGEEVTjIbq3x+iYIAiEZTCtkY5EhUrDtTQWpMh+/ 567BsdidG2gwEu9m0IRM5obLD5xXJRDdLHJi12AOFhmz82aKr60HVFWo+R7QLTwbSrqm FBT0lNm9OQKwNXOUG5LVh3khaASfxb6lhkxlzojH9QwiNdhvT8nQ3E8R1VsR3aO8ByGM P+fOSZaPAPncBqCt4ybG1oGfWEXJl8eyzWg9DaPcpuyTK6eKeA1b7mGLmjIXjZOVSNkV RT+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:to:from:dkim-signature; bh=bSCjnjbJQlv886K2mm7+qjFzoLaOhZtH6y29vRpOy1Y=; b=V2xTyDxA3E+F3oS18rkKodCnaiOYQcPoYV0zUpYVJ1yF5U78BAbvwdWZtvX+szZ8d1 d6S+oFWj9RErEUOvM3k//pN7WHSSuK4xl3M+SexWsJ1U/Ixwg40T1aCjJ2Y9NlakWTPC LxXsH0+c+9sH5kQpxcXjjTa/zgYB3Y86BpMFVyJGwSK0i2O4sXPXir/xYHR2x4XFVlk/ XvDvnV8IA+iyWkBuBHbUlnzgsv3mcrVkHfaoh6WITm1RCi6yC7D7nW0EQOMP74GpZljR 5+gYlbiKF6dL1w3l6sbjlnj2KZxm4g8roSNYNagRyq+WrIeJsvRO8O/PpijWm8m6Ck2h MPIA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=czGAsOkX; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::42b as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com. [2607:f8b0:4864:20::42b]) by gmr-mx.google.com with ESMTPS id a22si342614otf.3.2019.10.13.10.43.27 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 13 Oct 2019 10:43:27 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::42b as permitted sender) client-ip=2607:f8b0:4864:20::42b; Original-Received: by mail-pf1-x42b.google.com with SMTP id q7so9030002pfh.8 for ; Sun, 13 Oct 2019 10:43:27 -0700 (PDT) X-Received: by 2002:a63:b5b:: with SMTP id a27mr11016302pgl.262.1570988606470; Sun, 13 Oct 2019 10:43:26 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id f74sm18626840pfa.34.2019.10.13.10.43.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Oct 2019 10:43:25 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id DD6BCA17F; Sun, 13 Oct 2019 13:43:14 -0400 (EDT) In-Reply-To: X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=czGAsOkX; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::42b as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:23576 Archived-At: A couple issues here: - 'institute' is in the default latex template, but only under $if(beamer)$... because the beamer documentclass defines it, but not the standard LaTeX documentclasses. - In your header-includes you're using commands defined by the titling package, which isn't loaded in the default template. Bottom line: standard latex article class doesn't provide special support for institute. One common approach is to use the 'date' field for the institute (just put 'date: My Uni' in your YAML metadata). If you don't want that, then you'll need to create an external package. Here's one approach using authblk: --- title: the title ok # don't put author, title, in metadata because they'll be # specified in raw latex below abstract: | the abstract ok header-includes: | ```{=3Dlatex} \usepackage{authblk} \title{This is some thing} \author[1]{Don Joe} \author[2]{Smith K.} \author[1]{Wanderer} \author[1]{Static} \affil[1]{TeX.SX} \affil[2]{Both on a bus} \setcounter{Maxaffil}{0} \renewcommand\Affilfont{\itshape\small} ``` --- ok Matias writes: > Thanks Dimitri. But my header-includes only has what I posted, it does no= t=20 > 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= =20 >> the line that cause the issue. Then fix it. >> >> Le dim. 13 oct. 2019 =C3=A0 14:54, Matias > a=20 >> =C3=A9crit : >> >>> Hi all, >>> >>> I am writing a scientific paper with pandoc, with pdf output. I need to= =20 >>> 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= =20 >>> 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= =20 >>> institute :( >>> >>> What should I do ? >>> >>> I am completely ignorant of Latex/Tex or whatever (sorry). This is why = I=20 >>> am using Pandoc. >>> >>> Any help would be appreciated. >>> >>> --=20 >>> You received this message because you are subscribed to the Google Grou= ps=20 >>> "pandoc-discuss" group. >>> To unsubscribe from this group and stop receiving emails from it, send = an=20 >>> email to pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org . >>> To view this discussion on the web visit=20 >>> https://groups.google.com/d/msgid/pandoc-discuss/9a692e0f-1ea1-4f12-968= 8-5d917ffe59ff%40googlegroups.com=20 >>> >>> . >>> >> > > --=20 > 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/msgi= d/pandoc-discuss/aacabb91-8c20-46e0-82b5-76200faa7e6a%40googlegroups.com. --=20 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 e= mail 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/m2y2xowngt.fsf%40johnmacfarlane.net.