From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31098 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: William Lupton Newsgroups: gmane.text.pandoc Subject: Re: filename variable Date: Mon, 25 Jul 2022 17:43:32 +0100 Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000ff6c3105e4a3e220" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38376"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCS4HJ6WSAHBBP4Q7OLAMGQES2IRQVY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Jul 25 18:43:47 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oi1-f190.google.com ([209.85.167.190]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oG1BL-0009jY-7I for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 25 Jul 2022 18:43:47 +0200 Original-Received: by mail-oi1-f190.google.com with SMTP id m2-20020aca1e02000000b0033a087dd9c1sf4852582oic.8 for ; Mon, 25 Jul 2022 09:43:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1658767426; cv=pass; d=google.com; s=arc-20160816; b=rPSxwbE+GB1mlyzdWazsvsuce7/LVL7PE04lxv5PZVq0eu+CG1cJrEaIPVt4E36SJR Pqj2VOrRgIqpge/UQ/Aa5Mi1+NlL7nwEqj0ExmeV11hI29Z7zB+BjRnpT/YFZBAoUgIV MpxzgBtGYSPaQokBwK5hhx7u3WJ2Nf0uOYcaW8XhnyiN85MFg8T+nm8ZAR/0ISklSj4x OiI3lDRIMR3EyxfDM9bt3JgwqLBgzAnBDA+n+xCyYel2JweipVHSQl/HQ9u5zRy6zrop IgZe5rz4lvfAvAxNb+TZXn1gGfS3z2vnTwBRIwcFbZFXAqMhpeMSRTg7OudyZkUbXzme B0Xg== 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:to:subject:message-id:date :from:in-reply-to:references:mime-version:sender:dkim-signature; bh=80ddp7c3Ko5KRzyL7WvAQEmzXGgI4VzbhgnrgHD2h0k=; b=engU2IaUVUIdPf6goCyRlq1Ji4jVepKftdAL8HDzUCuP0hRh9GiaJ/Wi4WZtSidlXW mVrQOjM3NHgEnrYdjH+/sKEXqcJyompMifxe9JfEY0PouUy8gN7B5ZJx4JTWXfhEOGxH W5BoDhpm9sTrUayxBXCfFJkD6c4EDAQbUE0aSzA5tewfX9PjBm17OSxTQpjDrjJ+9DPR C6GN/A7o1QyO+RSSEuNmLz5G3vMj6h0By6oEru3R7xTVNJlU3G+RIJVc3/I5pdzOgrl/ 3eaePcQZa59q5p7mxZNb/dHOYRpeYDOFpg9Qw2JPdO5MAxC3JqjUcNFjha/v1rapSAjX Npbw== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@broadband-forum-org.20210112.gappssmtp.com header.s=20210112 header.b=5AlPQrhu; spf=pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2607:f8b0:4864:20::b30 as permitted sender) smtp.mailfrom=wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:mime-version:references:in-reply-to:from:date:message-id :subject: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=80ddp7c3Ko5KRzyL7WvAQEmzXGgI4VzbhgnrgHD2h0k=; b=LDuq1iAkvOg3D6i79E9cEHC3b+rKtk8JmCahg6DxC6P8tHP1uJ+jZUWBlzSmq0knWq T5LpMff1trREKwMu3KBCCJ0ZDbRAq9syXaW0swJErGdojrE+xHT2NHr22q/gjn5uzgfS lyv4y/mrLI84DOKxiM3b8F55EsXkMrpG8VmvJa7xMRvtP20YRtN2SQbVN+PB4dGt4M/F OFKx/iElBPsNVX7l/r6+Vizl+OGqWcTCW6plPlvN059mK6RO8a7toaDK+hy5GgOwYCQR /F/q5JTNesnWtF+oS8zIrtzpvp6mwfN4+++E6a2E/CtBqknriEU9Inmn6jHHZ7Z0aMS/ SvUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:mime-version:references:in-reply-to:from :date:message-id:subject: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=80ddp7c3Ko5KRzyL7WvAQEmzXGgI4VzbhgnrgHD2h0k=; b=HWF3+iIoVOvuc2/rcx4uc3P5Tv4bIRRSG1rgQl1QSKOkN9Ns9scFPlxK3FQl2N8ReU XU9H5Z7WJ0k2x0lyaWIpWwYkIFiBBEnS3i7UW/QKWN1d+LKA7ZmG3Tyv3CKkUO33pk18 rRrr2hiBfoc4cV7dL/8XxyS5Mx3Z3/28/nUEFt8y7/Ef6ZaVumVtaVMkIjtHA+Z3mSyB bkKjxqhjRLA8Cm6rbJKp2JzDuT2U1fbLWzc37LDiB6uoZGiULWCPT0OwYAjNH1eK6NtY G8yxK1V+1IlUgE5p4qda69Z88kCKpFjhQMzoTEHlRLAtx778Ywr4NRzADY1UddMUWaO7 TlwA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AJIora8NkwJhpr3OvincWudNOXlntX40JTHYtOy4Vm51r5rhP++3D6LG WYt3lNJno2G5rkR5FmiQwG0= X-Google-Smtp-Source: AGRyM1s+WYrGbuYyT9F+J9YyPjFyaBTHFoVIGq3nLMvLzUM6b2ggqNQBjtplh87r7NAtKsH6EGGqng== X-Received: by 2002:a05:6870:eca4:b0:10d:c119:2769 with SMTP id eo36-20020a056870eca400b0010dc1192769mr7525083oab.96.1658767426039; Mon, 25 Jul 2022 09:43:46 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aca:544:0:b0:33a:3acb:efc6 with SMTP id 65-20020aca0544000000b0033a3acbefc6ls1810026oif.4.-pod-prod-gmail; Mon, 25 Jul 2022 09:43:43 -0700 (PDT) X-Received: by 2002:a05:6808:f16:b0:33a:f14c:3368 with SMTP id m22-20020a0568080f1600b0033af14c3368mr931760oiw.64.1658767423387; Mon, 25 Jul 2022 09:43:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658767423; cv=none; d=google.com; s=arc-20160816; b=VbKH8h6tWjO105Kt+UAg+2wB77n1oSG2YcRSJt0p435iKUpvJ5UWPzXNs4kpmz7tBt zKOvuUkZpj5zFJV2x5zdu4ya8pFJKr1gSYiyx4veRrGUpHcfLc0FPFLLo/uFh6W2X4NS fH38WZH8IKh70f7nmwfDpL9UBa6H5VFYyUOdcXAZexPSdVK9EY0ivevPQY4UFtvT2hcO G/CdXTG3i/cLdlkpY9M0Upf9KQX7PR77MThGm0m/J53NxeHCIcCk3KVr9llrx61A4mEj VFF/e5PcjXA2CVZeSyA2EXZ68O+eK4Rwr66FA7qjl6mHvSsNrn8q7or+ksmtrU3gO22r 79ZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=SF6IuYIQmHcwlHN5srRY/t7VOwHfpScu5Qqbb/+qjks=; b=MXSGndguDSevsG/uJuXUdF7M3QWJO9cg+ga5X7hnIjZDrHYHi65NM1w8lv4NJfMH5r /vvkqJShMf4YmWCWKpjA50inp7Lf6fHBX/Rh9O7vITUZfQeF/p8z0yCQigKnrAAp0zwr GCv5ZPtMUhULmS0oo6/4C7rtPrue0qW+RzZwyZ1kIdboKMJnFsCqs33Ettjtpt3VNpOU 193Orv0kEfODYolAgC1Isczy+c6gFoc86sCvg80WNwIbpLuIJuC3xrnBiJSdd3iyokPj iHhS0Jp4iHPJ19ls3Q3BdRYN3kp5NGz78Ub6WbqL9biEg0S3SYn2t3kf4mQn7FhZ26DD fCoA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@broadband-forum-org.20210112.gappssmtp.com header.s=20210112 header.b=5AlPQrhu; spf=pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2607:f8b0:4864:20::b30 as permitted sender) smtp.mailfrom=wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org Original-Received: from mail-yb1-xb30.google.com (mail-yb1-xb30.google.com. [2607:f8b0:4864:20::b30]) by gmr-mx.google.com with ESMTPS id fo13-20020a0568709a0d00b00108c292109esi1179179oab.2.2022.07.25.09.43.43 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 25 Jul 2022 09:43:43 -0700 (PDT) Received-SPF: pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2607:f8b0:4864:20::b30 as permitted sender) client-ip=2607:f8b0:4864:20::b30; Original-Received: by mail-yb1-xb30.google.com with SMTP id z132so2256237yba.3 for ; Mon, 25 Jul 2022 09:43:43 -0700 (PDT) X-Received: by 2002:a25:aa2c:0:b0:670:8346:ed3d with SMTP id s41-20020a25aa2c000000b006708346ed3dmr9101892ybi.627.1658767422739; Mon, 25 Jul 2022 09:43:42 -0700 (PDT) In-Reply-To: X-Original-Sender: wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@broadband-forum-org.20210112.gappssmtp.com header.s=20210112 header.b=5AlPQrhu; spf=pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2607:f8b0:4864:20::b30 as permitted sender) smtp.mailfrom=wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@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:31098 Archived-At: --000000000000ff6c3105e4a3e220 Content-Type: text/plain; charset="UTF-8" Sorry, I missed that! For some reason I only searched for output-file. On Mon, 25 Jul 2022 at 16:57, John MacFarlane wrote: > The outputfile variable is set automatically and you can use it in your > template. > > However, you can't substitute the extension in the template itself; for > that you need a filter. > > > > On Jul 25, 2022, at 1:10 AM, 'juh' via pandoc-discuss < > pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> wrote: > > > > Hi all, > > > > this is a very silly question but I don't find the answer in the > > documentation. > > > > Is there a filename variable that can be accessed in the templates? > > > > I have two output files: html and pdf. > > > > Can I do something like this in the output html? > > > > Download as PDF > > > > I know that I can set a metadata variable in the yaml part of the input > > file, but I would like to avoid manual setting. > > > > juh > > > > -- > > Autoren-Homepage: ......... http://literatur.hasecke.com > > Satiren & Essays: ......... http://www.sudelbuch.de > > Privater Blog: ............ http://www.hasecke.eu > > Netzliteratur-Projekt: .... http://www.generationenprojekt.de > > > > > > -- > > 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/Yt5QDs//8XSpI776%40odysseus > . > > -- > 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/BC4CAE33-E18F-405C-A6E5-C13D04542B3C%40gmail.com > . > -- 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/CAEe_xxg6FL3rtguoR0bpvW%2BtpxoCm7JufFqJtdEoUYHqiEDhHw%40mail.gmail.com. --000000000000ff6c3105e4a3e220 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Sorry, I missed that! For some reason I only searched for = output-file.

On Mon, 25 Jul 2022 at 16:57, John MacFarlane <fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
The outputfile variable = is set automatically and you can use it in your template.

However, you can't substitute the extension in the template itself; for= that you need a filter.


> On Jul 25, 2022, at 1:10 AM, 'juh' via pandoc-discuss <pandoc-dis= cuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> wrote:
>
> Hi all,
>
> this is a very silly question but I don't find the answer in the > documentation.
>
> Is there a filename variable that can be accessed in the templates? >
> I have two output files: html and pdf.
>
> Can I do something like this in the output html?
>
> <a href=3D"$filename$.pdf">Download as PDF</a> >
> I know that I can set a metadata variable in the yaml part of the inpu= t
> file, but I would like to avoid manual setting.
>
> juh
>
> --
> Autoren-Homepage: ......... http://literatur.hasecke.com
> Satiren & Essays: ......... http://www.sudelbuch.de
> Privater Blog: ............ http://www.hasecke.eu
> Netzliteratur-Projekt: .... http://www.generationenprojekt.de<= /a>
>
>
> --
> You received this message because you are subscribed to the Google Gro= ups "pandoc-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send= an email to
pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/Yt5Q= Ds//8XSpI776%40odysseus.

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pan= doc-discuss/BC4CAE33-E18F-405C-A6E5-C13D04542B3C%40gmail.com.

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://group= s.google.com/d/msgid/pandoc-discuss/CAEe_xxg6FL3rtguoR0bpvW%2BtpxoCm7JufFqJ= tdEoUYHqiEDhHw%40mail.gmail.com.
--000000000000ff6c3105e4a3e220--