From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/29002 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: errors trying to add new variables to template Date: Wed, 11 Aug 2021 11:46:07 -0700 Message-ID: References: <7b1f7006-853f-4cfe-8ecd-d8bf7de153f9n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24044"; mail-complaints-to="usenet@ciao.gmane.io" To: Hugh Esco , pandoc-discuss Original-X-From: pandoc-discuss+bncBCJZJHG45QDBB7FV2CEAMGQEOU4HHHQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Aug 11 20:46:25 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pl1-f192.google.com ([209.85.214.192]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mDtFA-0005yp-7n for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 11 Aug 2021 20:46:24 +0200 Original-Received: by mail-pl1-f192.google.com with SMTP id p5-20020a170902a405b029012cbb4fcc03sf1954473plq.19 for ; Wed, 11 Aug 2021 11:46:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1628707582; cv=pass; d=google.com; s=arc-20160816; b=XVKuqLdN1FvsHxDpmxrSVAq8CzOQuhh6jafkNxFGU1SCLEd45U7937DNIVjITD+gn9 Ikd7/biXKSYcmNMgpzPZFkJjHE4rp1gne2OxRLg6UpjesHPpUQge92PyEwaywXQjJDa9 T76ILv71Ee2CbDKnXPUO8naIBXsYqdUPt6Gsw1Dg3QBH+4ZGQwa1Uy6jXdh/oDMLlVxh wtOfOLLG4J0fe4ZTnQTbFLBhaFZXHphtZJj5JwvVWPtKzHwC/9rEJTEXWxRMOHP0jTOO nrQD7UOTjxoAarpieURSuzuk9JFc5JcJ96yTIaKoEsazjj2z0bgwH7gUqQMT/5GNHLwd UZdg== 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:mime-version:message-id :date:references:in-reply-to:subject:to:from:sender:dkim-signature; bh=R0Wdw1mL9CpNRZHvFPdH8pXm2HhiKdTtECkGG5CwS5s=; b=wGXF0JDEg3D0RYlZtUQxwek7aazs1AL02h5aEhYolzGtzKbogos2BtqS7MwoDbDaJq aStSS9jf/amSMMoTJ3nF/PHnVwaRJRzNxm4fcCLF/lnhpnWGETvtqCmguV9Xzn+yf7l3 046xpQ1xv+gInmUTr3BjlLWO8xOM9LjPeT+SBaSQSD0/1pIdQwnNxIEYPsiHKFW8vSc3 vhCTruec3kMW1fdjx8JPW2hSpKw4pNWktPbL4EjpbZhx/Bm0FqlvjfD+yNLgmN7zUORa zfP0CYSV1afxjmAP/hbOVMG0CTdPijpvMKyt1VHC35Bo03rjURvkWhFjjEfZuWML7se5 mcdg== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=efrXmQ2o; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::102c 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: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=R0Wdw1mL9CpNRZHvFPdH8pXm2HhiKdTtECkGG5CwS5s=; b=E89SHp+ZAwsUUqEKluo2CBDsVwlPJ7a/V3t0uAC5ZFAyZHN3j6OOP/XB1z36SFqXOK fDc59N62pcX+/23cq55nJR9W8sJhFlG2+sTHm+r2RzCW/+6Dke8F7CWF3NNPXb2QwGaE bZj1yiclyfXDpjuthtsdD1uHbnJYIi4hjNpqG1zow7CNTl23cnyA6gbNrkO7xIeoLStu YZHHrqjJ45gK1n4aKZ6aV8TZmCgxAleOHVcDmM/yJ4eA9MuOueLdg56klwWIGk1qUm1c Hc1qiDcXUoY5jiBnrOahTqZAbdwBp2uBtVCotEUsD64qRMU+sxQqOODdXtWNhOxG67GA JNoA== 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: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=R0Wdw1mL9CpNRZHvFPdH8pXm2HhiKdTtECkGG5CwS5s=; b=i9UVvRbvGq8wuu/Eutz/ChQBRADfrgrX0w41P6rzer/ipP4f1e8A7/tEmNvS16X1UK 82NLTh4vz7Zxv8JO5mqNKtVk6Mje8pZhuw02d0iYekNqUxOeEe5xWYaf5UBGW11dfwwf B//rdEfviAqVW+VFwFOIN9AxxspJiNFzxr3rB9aFVh/GDxUltJiPcpXW+d7YqK1Y5ifM Zw8tfu1TZhHu1cx0jcorhncXgAyW/cun5d0TG7pZbfgjv1MxVv4dZ8P3yfnu/8ZsV4mW rzBA33howR2fm1fGO2B9BbjznejlQZk5vDiwYJjOQC4Vwdvm44PBuRfj0tzMRRKotciW vSlg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM531kI/CEuC/VsfH8hv/jnYcRTlq3ebbDiwWcAkGtmabbD8IP3sfL BKeO4yyOodSj/XB69yIHr3E= X-Google-Smtp-Source: ABdhPJz6jeWWM1DS+BFcw06r1d9xKpv8ntJT1OdFWjhHPJBus4HJ2EFLAPEmK5cNTsyYcv4KfIP1lA== X-Received: by 2002:a62:cf01:0:b029:3cd:ee82:2ee with SMTP id b1-20020a62cf010000b02903cdee8202eemr145491pfg.78.1628707582374; Wed, 11 Aug 2021 11:46:22 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a17:90a:19d2:: with SMTP id 18ls1731865pjj.0.gmail; Wed, 11 Aug 2021 11:46:20 -0700 (PDT) X-Received: by 2002:a17:902:9682:b029:12d:2ed2:5954 with SMTP id n2-20020a1709029682b029012d2ed25954mr252173plp.69.1628707580365; Wed, 11 Aug 2021 11:46:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628707580; cv=none; d=google.com; s=arc-20160816; b=ygpvC9yv9ZoxpS5EFa1hp/TMFMMNq+4CDCabjgsp2//XSCP/6B8xFqJJCCbNdM5Hu6 lrNWd7aAzivQSmFUB+p8YGLZg+UBK0vsjvx8GX9FQW8NFRnQuuxojDoFfjj22rjRH5WG pJEHOyOzjuxNJ8q5z6+2A+AW1MMv01zWydSADmJ/8NpoQGZcM5go1Z+fd0Qz1MjVISJN tRqH5BPP86zjQ81mEb5fKA/yFTndTbVyhdYqVl7NPYxnMiy2gs5cvkb/eshKhrY34d+m dz0pdiEQPiI2Z2MoM+Q4yebA2Np9mVdRB/kupNDJVtikqEoxuVbaK3iybPrLHB1NYl2/ erGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:date:references:in-reply-to:subject:to:from :dkim-signature; bh=p549f/AD4mNMmJ5K6MUZmmLu/L41Rz+yI38skyGQhCA=; b=0oq1tXrHNywWEXdF4nxAzPJAjL6Vy1e98M8tVfswipIocTkLPUn7ts19RRakkMfiP2 F1/eOeTu5XHnjpVaUzUCtFL3AzpuJt5DIHmtdFsFXqz9BiiXXFDJktiqBqqo344WEq+w /TBnUHTEZqIUXIY5wk2G4SmFzKU2cA7oop/RXVA9mmX8wRssFKXEWBc3bIOc7OEl5n47 Yss3Dwt3U0oXJRukWhJtZXaUi+Kjl80zRAcEbE6HUKQEhT3oA3wGKqgzrv03YRBuGG/x EtDPmJD+2MD7QHAvv8gMy0J+FA4lzr4mh4/QA6KYGiSgx8/RBQbGNCIHbCIrWJmwcw8+ X6FA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=efrXmQ2o; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::102c as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pj1-x102c.google.com (mail-pj1-x102c.google.com. [2607:f8b0:4864:20::102c]) by gmr-mx.google.com with ESMTPS id c23si14982pls.5.2021.08.11.11.46.20 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 11 Aug 2021 11:46:20 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::102c as permitted sender) client-ip=2607:f8b0:4864:20::102c; Original-Received: by mail-pj1-x102c.google.com with SMTP id nt11so4996168pjb.2 for ; Wed, 11 Aug 2021 11:46:20 -0700 (PDT) X-Received: by 2002:a17:902:bd98:b029:12c:9106:b54f with SMTP id q24-20020a170902bd98b029012c9106b54fmr290176pls.40.1628707579737; Wed, 11 Aug 2021 11:46:19 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id b8sm271369pff.45.2021.08.11.11.46.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Aug 2021 11:46:18 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id B63ACA2BC; Wed, 11 Aug 2021 14:46:07 -0400 (EDT) In-Reply-To: <7b1f7006-853f-4cfe-8ecd-d8bf7de153f9n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 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=efrXmQ2o; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::102c 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.io gmane.text.pandoc:29002 Archived-At: So you have a variable in your template url_for_article and you're setting url_for_article: something in your YAML metadata? That should work. Hugh Esco writes: > 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.