From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/29003 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bastien DUMONT Newsgroups: gmane.text.pandoc Subject: Re: errors trying to add new variables to template Date: Wed, 11 Aug 2021 19:17:39 +0000 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" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23308"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDCINCES2QJRBCWF2CEAMGQEEQ6THCQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Aug 11 21:18:37 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-wm1-f60.google.com ([209.85.128.60]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mDtkK-0005nr-UX for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 11 Aug 2021 21:18:36 +0200 Original-Received: by mail-wm1-f60.google.com with SMTP id b3-20020a1c80030000b02902e6a7296cb3sf1177133wmd.5 for ; Wed, 11 Aug 2021 12:18:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1628709516; cv=pass; d=google.com; s=arc-20160816; b=ICA04tb+LmdFGIjOlDRKYDm9DlkTz0UVXMdCIXhlhY2gerkKENh3aVOiXOfK2QsYQG KpfLoJ2zINJdHXunR4T3G8KdWncQENpbhP/7p1wzTB4AEybmIVOABzmjA7inWPRV6T++ /ISS2yEhkrgKn3bSBV77JrP3QdEIJrjenVUXSvVsWB+VK5s34P8C99tlq/2/EuWyureK 6jZTG0yCx98+bLXF4ffkdtXNQlGEAxv2GUtzidZmoVHEZYH9WHBjVztEaW3qkAh3Yf9Y zcxmaRwAUBa6ESNZOeKItjvuNm4e/Eno4+lntazmXd3d4rfGxUi+3s8/WDsmD7jpLizX lZ6A== 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:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:from:date:sender:dkim-signature; bh=HSarDVBeRDE6iNA0taaFOYxB/yXtWQN0DyU7WMFh2+c=; b=aZH0SMEUIlFUFqWpIsIRs+ELzySp1rLhQ0x6OtYkTgWF4I+DVyTM77bZmftA/5oGLP qEIstADkK+O4HQxfB72bee0+vQrOYeBgxhndX8UOwcm6qUfM7WRFPxToDyTFIG0Dufdj OoaQtu8kYVmNZ0+uQx1wjv2sgMqFS/+FAY55sCbTPdGDGR2M3qNYZD3h7wmu2k2UO0xE Wdy1KL5G3E6uk8F3JXvB7Az7lpbhuooPIX6U+eTa6VQQth1rtnT99E+7/SgvVZw+2gXi cvMzxUH6rfcjNwoYihY59LHG6SSRLbycy9R8g7y8rOwHlH1kIlGu/y98Uj+XERUOvAOj f9tA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b="NAEsW/jE"; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.66 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :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=HSarDVBeRDE6iNA0taaFOYxB/yXtWQN0DyU7WMFh2+c=; b=o+95T2cIlAshMpXungn6OV//EBeyVxb6igQY3iRRL3pZQfU3u+GaQhbL6whD7McSWx C4SK3SwORFDs0NxrDFXOQcPhfPyFYvGgJiRnIVFR1pWFY0qKC5A6HhMtjhBEDfo6U2dp tXseibGJrOX/LKpsh2eWfwxmluCxrgrSJ+jVz6TMkWCmx/ghPjo1+g6ZO8KQs+4ykhhv cWrLQa8xEa5W00AT1IHKrC0L3VKmV8OiZn0sUTAGsPqrrJR65qJFmmNbABpoK5Ysz46D JFWr+LFchgtdueYJ2DfBHifnv+VXCDauc6ltqct6NkJp9f7NHybVaaYfpX0LKz0S17Yr I5aA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to: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=HSarDVBeRDE6iNA0taaFOYxB/yXtWQN0DyU7WMFh2+c=; b=Be8uMq4qTKt8fabcfiBBCOiMTt7xrOwK1wGpT6x+DMeW3XRzdD7T1JYANruJucjiCP hP9kc+c3XM6sTbQNf4IKujIOkSpHJt8DtbG4fc8hLIoBvVe4O/sWYUe/+d01mfeaxi/i 7pFMRQfgycfGRH9ho4AaTP3bAQRHJa2QO6dnNPpSLbtn1XwavQIGOALhS12L/regtR1Q kf8vztwJlep7AoBK6VX36Zkf9AkkcNEV5WEAuqJfAzZ9yGF7T97JGz+vspnM5Dps2L8f tkCMb2sIRmgdnMgs++ooiLS57luHxrUIqBT8WK7iomN8 Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM530PO+469l8x9EbgShxQJgEG4DgI9sgxks7FfFvXSk7FptcmX3q4 39/1H795jh42cU7xgAPYlsw= X-Google-Smtp-Source: ABdhPJx5/OYp77jCY5Q7ZaeWK6eV4RjUVwoOUm0J3Fd5adRYgEcYkhXdMQlFP1k8gIFzuPtfP/Qy5w== X-Received: by 2002:a05:600c:b59:: with SMTP id k25mr11681549wmr.51.1628709516557; Wed, 11 Aug 2021 12:18:36 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:adf:a191:: with SMTP id u17ls876284wru.3.gmail; Wed, 11 Aug 2021 12:18:34 -0700 (PDT) X-Received: by 2002:adf:f741:: with SMTP id z1mr4189wrp.201.1628709514238; Wed, 11 Aug 2021 12:18:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628709514; cv=none; d=google.com; s=arc-20160816; b=q2ateofnlU6q4xmmp5qaGrpj1UuPpZ6Ogr+lTnKWk1VOEjg5LdqaGSxGphKli1vy0Z 9HCCrE214KJNNEuZCIS7JT6GV9IUNHwged7qJJ4nM80iN73bb27mGhC6ESWrj8BOr8t2 Nqg7sUBXFIaYsDMYzAN5XrSV6euUbNMGaOJyyBTJMYyHZxh2067iTo971Y6OuAepUfA4 JoyJ1TAoq3RcGTsPaHgo+zrW6U5HvABWs2ZEYL9LAW9BauBhH59t/uNp0OePP0xaUF7I N/3h0YAuWi7lXSP1lFuWQCfEhaLMd+tPrmgxI7fZ1DWKtA2PC4nEVYMbm9i2gRuVDuOH 770g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:to:from:date :dkim-signature; bh=i26dpMMtxeipQkreyELkYOm3svhoT9Dtd4elyc+Bh/E=; b=qe6eqkZjRZ5QoIlPno9IfEIkbI6ix9rjFa2wZTM6yopl8uKbdtTQYR2s7oXI6vCkh5 lYeMg3tLLbY6KkXuu3w7cm5unzzpD5Mcr64GVy5/k4phSjhammMEzNyI1/mKe9V6KLR9 iCAVL5Y5MkgaCl9bsSzWaiqSMOGy7ZPy80071yVd+BRGnfCV/RysaZ+0yqER7kGJ8/2o pRSrEnJanjovic8apfTucKkx7N5at9XspbJtX0Fr5WmLne5DDEPU0kuU47zS1oggBjwE uj4wHTSW59e0Zu8LYzCPuTsbdY5mZfdZ2M+uKw++8br+UWA5tOs4aiwaumku32Br8Tna HBmQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b="NAEsW/jE"; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.66 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net Original-Received: from mout02.posteo.de (mout02.posteo.de. [185.67.36.66]) by gmr-mx.google.com with ESMTPS id 2si10421wrb.3.2021.08.11.12.18.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Aug 2021 12:18:34 -0700 (PDT) Received-SPF: pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.66 as permitted sender) client-ip=185.67.36.66; Original-Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id C719D240104 for ; Wed, 11 Aug 2021 21:18:33 +0200 (CEST) Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4GlKNn3bGfz9rxM for ; Wed, 11 Aug 2021 21:18:33 +0200 (CEST) Content-Disposition: inline In-Reply-To: X-Original-Sender: bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b="NAEsW/jE"; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.66 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net 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:29003 Archived-At: You've placed $url_for_article$ before \begin{document}, which should trigg= er an error. Are you sure that Pandoc gives a PDF output using this templat= e? Le Wednesday 11 August 2021 =C3=A0 11:46:07AM, John MacFarlane a =C3=A9crit= : >=20 > So you have a variable in your template > url_for_article > and you're setting >=20 > url_for_article: something >=20 > in your YAML metadata? That should work. >=20 > Hugh Esco writes: >=20 > > My client wants me to create pdfs from articles extracted from the=20 > > internet. =20 > > > > I am able to successfully use yaml at the top of a markdown document=20 > > extracted from the html to define the title, author and date. But it f= ails=20 > > to render the subtitle, or institute in the pdf. Also the abstract, i= f=20 > > defined in the yaml, shows up in the two-column body of the result file= ,=20 > > rather than in the one column header of the result file. =20 > > > > Any attempts to add support to the template (copied to ~/.pandoc/templa= tes/=20 > > and invoked from the command line as --template=3Dcopied-template-name.= latex)=20 > > are failing for yaml defined variables url and publication, including= =20 > > variations on those names, in case those happen to be reserved keywords= . =20 > > > > ``` > > $ diff -u /usr/share/pandoc/data/templates/default.latex=20 > > ~/.pandoc/templates/default-2col-3.latex > > --- /usr/share/pandoc/data/templates/default.latex 2018-01-26=20 > > 07:52:22.000000000 -0500 > > +++ /home/hesco/.pandoc/templates/default-2col-3.latex 2021-08-11=20 > > 14:03:34.846709357 -0400 > > @@ -220,6 +220,7 @@ > > \institute{$for(institute)$$institute$$sep$ \and $endfor$} > > $endif$ > > \date{$date$} > > +$url_for_article$ > > =20 > > \begin{document} > > $if(title)$ > > ``` > > > > --=20 > > You received this message because you are subscribed to the Google Grou= ps "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/ms= gid/pandoc-discuss/7b1f7006-853f-4cfe-8ecd-d8bf7de153f9n%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/m24kbvhlao.fsf%40MacBook-Pro-2.hsd1.ca.comcast.net. --=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/YRQiU8M7bQpOkxKI%40localhost.