From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32171 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "'William Lupton' via pandoc-discuss" Newsgroups: gmane.text.pandoc Subject: Re: chunkedhtml - metadata variable for template reset after first chunk Date: Mon, 13 Feb 2023 11:53:24 +0000 Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000383ba205f4937fde" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15778"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCS4HJ6WSAHBBQOJVCPQMGQEDHPUZTY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Feb 13 12:53:41 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ej1-f63.google.com ([209.85.218.63]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pRXOu-0003yG-SR for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 13 Feb 2023 12:53:40 +0100 Original-Received: by mail-ej1-f63.google.com with SMTP id ga33-20020a1709070c2100b008b11f37b9c6sf580976ejc.14 for ; Mon, 13 Feb 2023 03:53:40 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1676289220; cv=pass; d=google.com; s=arc-20160816; b=qf/CbV/jU4TmgXsr+7xhLWNXGeCOZEahoN7khUtKCYnhpdoAUS4SmoBHmpMTvomuOU Za8kfl0iLHshnoBuLNtlFcUjGPS/FpZoYXd6HyjtzN3wgd2oL4I9L+OjsuuvEOxVYkwz csZkPrGQlh6xC9A34j5s8w97MGrMWjx+Jgt202ASEGqFiF3dFI6sVaDknXgIXCbjgvbs t7koUBYZhWlno9lWDIHuuUc7WEEEnO9b0+e/NJHCb9Wf7ycKO/9NbrKAWpJOhMbxUYSV ZBpRRDs/PCFxi/nfdcjreO7YvCCJi6WcGP+Z9MNVfXRSNleYVOaNwMNigCLqJTpGBwwj xN/A== 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:dkim-signature; bh=tRH0uZbNUoz530iB3+72N0GzSaN0rm46oHpRYznIUeI=; b=Gh7aMUZBPEuiNVEERzSv3fSDq2lgWd8W19xR7AtMXxkznqABxtMaKZFVKnRc+MffjP GcG1Py4OM5QG50Ql4WEHFF6/ioJybgPPowIIBB9JTGKEIh6pqVjroWCmcZOLLL+P9M7G uV+EGqvO9MT7hLLNFxOGnq08oM4jgaw95L3N4+tOgjg53RZg0imjKCZQwWkkkg4hjSFn MKqqip9cV33t9u61gWIs00XK76VuuuKT4FecSKFDPd+1D3m3t/UAiwWGzf43dHAEUA3t aLUtAKYrd9/uQ6BX1Vp03gKxthJvCIjOBosx0zmBa6aSSDhvyuomXmDu/6ayQQiifBTm beeA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@broadband-forum.org header.s=google header.b=M+lQfQSm; spf=pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2a00:1450:4864:20::535 as permitted sender) smtp.mailfrom=wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadband-forum.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:to:subject :message-id:date:from:in-reply-to:references:mime-version:from:to:cc :subject:date:message-id:reply-to; bh=tRH0uZbNUoz530iB3+72N0GzSaN0rm46oHpRYznIUeI=; b=P29MDo8ZpwSkyiPYpwJ8Xm3CAby6LVJDmu1v6DqmyGaDnQqnE6/S2oCLKu67Kb+MPl o9wSsv7SdY3GMeOG8hZvJgxgQ95PQhwQiOPJdfV2xxRtjavqRVzNmv2zkU3Z4L09S1aT 0enNyx58GaIDZ8Cm3yvdPLA6CKWVIlhLbd8Qtyn044F4n2YrvpqFfjVlRVZmPO3VCqcD +FQ1mqifGbVCV4pyFwyFgxTLsB44gFf9KVEscAMtUMrKNF7hHa4sDx19OxY8jGsloIxQ XOhQRmCWNJoUsUZ4w/KNsuMzGL3gGSJPW6lazXemb/bZg5N03XtpxQlprJNKhzVpMlbb O98A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:to:subject :message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=tRH0uZbNUoz530iB3+72N0GzSaN0rm46oHpRYznIUeI=; b=OcLwjdkZKN1+sLZocuX/u13ePe+rwnEvgqmoPiXxpTH61WA5qtPkVHpcr21oeG5F42 PebJuFl+5swc4iUYYSptZqVgB08q8gcxZ5vbsXV5nc82K34uGSJjabifsW7RwXKQ0euC XTCbOE4i8a3CXHVPtgZ6GQ1D5Nx6u76OJE/ZplGLtz+c++FXjARf/HyFe8ryGJ22QAqD 3Fqb/OyLKBXKJLyJJay4lu+aKbrXPh0fPamvt+DUgfQU0PlPScVp+0slLcz54Uno0ZeP OFQAThhxnbvpWiKgLeQBc1aMZtp/D9ggov/5JNyifp8G/9Um2YOIbLLdVC4f1ck X-Gm-Message-State: AO0yUKWXHckLE+thoXMv6/Tqq2Nmwgz1K86a+PWU2jnlemn32pDLNswl HG1J0xjWE9UrNeQPewTkJKc= X-Google-Smtp-Source: AK7set9XA6S/h+DJnmn+HtGb8aGsJei2Z0D+mT8roP9sQpQF8DR6ZMNoG1nsKHzhgU7rXflzFplguw== X-Received: by 2002:a17:907:8a19:b0:88d:ba79:4317 with SMTP id sc25-20020a1709078a1900b0088dba794317mr5441260ejc.7.1676289220219; Mon, 13 Feb 2023 03:53:40 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a17:906:4692:b0:878:6d43:4381 with SMTP id a18-20020a170906469200b008786d434381ls7684836ejr.5.-pod-prod-gmail; Mon, 13 Feb 2023 03:53:36 -0800 (PST) X-Received: by 2002:a17:906:94e:b0:88b:5798:2613 with SMTP id j14-20020a170906094e00b0088b57982613mr22048698ejd.20.1676289215958; Mon, 13 Feb 2023 03:53:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676289215; cv=none; d=google.com; s=arc-20160816; b=HKjSFcZ+hYQJBmj7aI2ZTIapQDIjC1HkE1dSaAOqmCDHp25gqSJ+wRanjDOKNyJmE1 eCaXJm2FBsfx4EQda0tBVH2h431UxNxj4DJOS4K28AraywQfqdXDQVAOwtyaJnARrSZj 3b4yXkQKlaubS3fUaXbeR2Jxv34tR16wL0euNpX5WrWRg0ZIBOwjUBRCelARUJ+Qv8ZT FvfxW1wvjljgXGeAfk+dfhaTl0kufoWPk0K2E+y2vTPgl9l6Us5ZCgWm4tPLwlk3bqHT 3v5+6tj4au5OCEmIoyujKsDNKT6PV8FcqJKBRPdz/qXvKYTBHp573eXqu+nbe1MBqQHL qMdA== 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=oLpZDRRpSZEwZDb3WGTpH0gkxpNRK06S4td3kMjzskY=; b=I7sygA4FZtV6U37KOqw4L1mfZPZrb+DU3nPi+nkP9tkgbhC4ELwnp0EoZeNa0qsxIo 1q61wV095BNBUuEFuoaTcBQ8nR03iEh0gn3AbpV4tj1D3Q2oaDaV+TclBa4LEI5m8ZRx vfb+xIIMBLuBAhOVDwwIoqYHLyEi4AaoJGGHhAQdT0iZwqu/SG0jHDIzFg+pi9OcS9Cj OKNs+v8cPVvG/O49H1SbKJKTPECCCqG06QLqLQMnomS5S+5aMopYGILwbV3AjmWg/Wks gDKF8M6g8xUQENiRhyb2P0g4+H+6tBYeBfI+UJjiHd2HPp8NAow6U+xg8m2vDL/uQc9q rvBA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@broadband-forum.org header.s=google header.b=M+lQfQSm; spf=pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2a00:1450:4864:20::535 as permitted sender) smtp.mailfrom=wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadband-forum.org Original-Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com. [2a00:1450:4864:20::535]) by gmr-mx.google.com with ESMTPS id t21-20020a1709064f1500b0088d43b316aasi482834eju.0.2023.02.13.03.53.35 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 13 Feb 2023 03:53:35 -0800 (PST) Received-SPF: pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2a00:1450:4864:20::535 as permitted sender) client-ip=2a00:1450:4864:20::535; Original-Received: by mail-ed1-x535.google.com with SMTP id dz21so451950edb.13 for ; Mon, 13 Feb 2023 03:53:35 -0800 (PST) X-Received: by 2002:a50:8a98:0:b0:4ac:c826:349b with SMTP id j24-20020a508a98000000b004acc826349bmr1036458edj.2.1676289215309; Mon, 13 Feb 2023 03:53:35 -0800 (PST) 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 header.s=google header.b=M+lQfQSm; spf=pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2a00:1450:4864:20::535 as permitted sender) smtp.mailfrom=wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadband-forum.org X-Original-From: William Lupton 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:32171 Archived-At: --000000000000383ba205f4937fde Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I haven't used chunked html, but did notice this in the manual. Not sure whether this affects you here... *The navigation links can be customized by adjusting the template. By default, a table of contents is included only on the top page. To include it on every page, set the toc variable manually.* https://pandoc.org/MANUAL.html#chunked-html On Mon, 13 Feb 2023 at 11:32, Martin Post wrote: > I=E2=80=99m running Pandoc from a shell script, with multiple passes. The= HTML > template I am using here is fairly complex and should be used both for ht= ml > and chunkedhtml output. > > In the template, I have placed a navigation in a conditional (simplified > here): > > $-- $if(document-type-chunked)$ > > $-- $endif$ > > In the shell script, I set this meta variable (document-type-chunked): > > pandoc --standalone $(basename $file) --to=3Dchunkedhtml --metadata > document-type-chunked=3Dtrue --output=3D${outputname%.*} > > The metadata variable is still true for the first page of the chunked > output (index.html), but not for the remaining chunks, so they get no > navigation. > > Am I making a mistake? > > I realize I could also put conditionals around each single navigation ite= m > ($if(next.url)$), but it would be easier to build complex templates if I > could pass a variable to the template. > > Could this be resolved differently? > > Thank you. > > -- > 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/b8b475d4-9741-41b0-add8-= 8b057e6e867fn%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/CAEe_xxhfNevy%3Dfxs1yvLN3zxVm%3DZ8exGVyXL3s3yNMYm3cCT_A%40ma= il.gmail.com. --000000000000383ba205f4937fde Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I haven't used chunked html, but did notice this in th= e manual. Not sure whether this affects you here...

T= he navigation links can be customized by adjusting the template. By default= , a table of contents is included only on the top page. To include it on ev= ery page, set the toc variable manually.

<= a href=3D"https://pandoc.org/MANUAL.html#chunked-html">https://pandoc.org/M= ANUAL.html#chunked-html

<= div dir=3D"ltr" class=3D"gmail_attr">On Mon, 13 Feb 2023 at 11:32, Martin P= ost <martinpostberlin@gmai= l.com> wrote:
I=E2=80=99m running Pandoc from a shell script, with multiple passes. = The HTML template I am using here is fairly complex and should be used both= for html and chunkedhtml output.

In the template, I have placed a n= avigation in a conditional (simplified here):

$-- $if(document-type-= chunked)$
<nav class=3D"sitenav">
<a href=3D"= $next.url$">$next.title$</a>$ <a href=3D"$previous.ur= l$">$previous.title$</a>
</nav>
$-- $endif$
In the shell script, I set this meta variable (document-type-chunked):
pandoc --standalone $(basename $file) --to=3Dchunkedhtml --metadata do= cument-type-chunked=3Dtrue --output=3D${outputname%.*}

The metadata = variable is still true for the first page of the chunked output (index.html= ), but not for the remaining chunks, so they get no navigation.

Am I= making a mistake?

I realize I could also put conditionals around ea= ch single navigation item ($if(next.url)$), but it would be easier to build= complex templates if I could pass a variable to the template.

Could= this be resolved differently?

Thank you.

--
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/pandoc-discuss/b8b475d4-9741-41b0-add8-8b057e6= e867fn%40googlegroups.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://gro= ups.google.com/d/msgid/pandoc-discuss/CAEe_xxhfNevy%3Dfxs1yvLN3zxVm%3DZ8exG= VyXL3s3yNMYm3cCT_A%40mail.gmail.com.
--000000000000383ba205f4937fde--