From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30510 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: BPJ Newsgroups: gmane.text.pandoc Subject: Re: Additional level 1 heading, only in epub Date: Tue, 3 May 2022 16:31:00 +0200 Message-ID: References: <55088d13-2a2f-4cd7-b865-2d5e32c44911n@googlegroups.com> <4c62d794-40d8-44c2-b444-42c701654c50n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000002a640305de1c5c23" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4487"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCWMVYEK54FRBL7ZYSJQMGQEKKG2GJY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue May 03 16:31:15 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-wm1-f64.google.com ([209.85.128.64]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nltYY-000107-Ur for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 03 May 2022 16:31:15 +0200 Original-Received: by mail-wm1-f64.google.com with SMTP id o24-20020a05600c379800b003943412e81dsf834650wmr.6 for ; Tue, 03 May 2022 07:31:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1651588274; cv=pass; d=google.com; s=arc-20160816; b=TXCDK7KmqEy7dm+jFf+1aDDoYpCUV6udD/3vIBrBkeKYeRr1JhOU6Ba6SkXu9kAsAE BU8bDTB0E5o1lRJPzBT3ZcwR45nI7CVQKVZcGLTBnkRvVBIswyAc3SE6zeNPRLVmzTxz uI9uWKP1jSiYarRAm+GdE3IZhNw+OPN5wMZ/jFCQkKvdwD1PhqW6lOivkFDlKVIpydd/ fesP7Yfb9/xvIiZCOcPj3MFo7zekCxy8zMrwJYKYGnO0umylO56jZ98AUz2oYZ6fO/+V 8w6hPre+LZTTkLCCEm3EG7uodPp0bHX0RsN0w1AlET7S6P6J/0KZckGM3DthEhaJjksk HF7Q== 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 :dkim-signature; bh=4i3RjREpFSKaagB9as/mKTv8DpkGWPhB6ERBWv6Co3w=; b=rAuoGKjKHlx5XZtKBD6BP3Bwg8YhazD39J3nywzGBJtQoq38WUhr5rrg+5p0pXIHWH 7MOFMGl/GOC8/3n4sGDNvEfdmD+fJRzX0R8/BpagyHHdIcMm5sC3Da34VnicH2IZkbJA rdQMfC7XV/2aoBS0KHQ6fvK9NSCii88cCPWjofuCumpCvdZff2p+DG2GfQCZAtHdrPbG Kc+Fe4OKNqdC1cZScQXoGdZdchzElnmKWur7FvobzYuYXEkZ2F8/R+p5wpIaUptyPt28 RNmzEpW6c32b364iuN942vzNqbtzzepwF00pXfaP9iikQp9D4/cuLcQD7GO+C1Ly5uTi t6Ew== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=cY1915y7; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::532 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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=4i3RjREpFSKaagB9as/mKTv8DpkGWPhB6ERBWv6Co3w=; b=WsL56gDgJX0N9yrsLXP3oBsZNYDMPXWOa1bbvIIlvhMnzJwJZcXeGZ1n6iD1B1GogO C9rruyTL4vvJYjD7DmFKlAd0wwPyiiqDFqYjV923xucJJyzMuRY8M/Zqdg4dKU9X5kBb xrsNPqiPaH0eLUDtdTjNVoQI7RxoO1e7TQUjRN9SLmt47g5eBOHuWjCssYr+Q0j6HapR TeEFEpms+APsRtCh+3ofPbzyvXDk7/eLyzMlIWBXr+DfXIdJHo1v9vJXfo+/UJ2Q1Fy8 yfra80EYYUaWDEb6zUkObs2gXqis3iZBkAD07y1+XdKG/K8BsPhidNoKRaGWtHfRWHzs KPmg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=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=4i3RjREpFSKaagB9as/mKTv8DpkGWPhB6ERBWv6Co3w=; b=koZ9S7KrRLN16vZGo+UgpZjOVdjeY3PMWs/mAcDMPaSmV7g6CcJyv/3JLjSYRyr9dY iRBgG+vaw2ycI3Doc1JptBHGq+yXf6njArKQnzZp4T+0rk0fOBtN4KRdIAZHtkhnBftl wiAO49mZ3lYqggFClOq1MlWjgGRZrMeHMpwa0/l65XL69IPNuVTgoiIZnmbz/ELBiNH+ mMw8ASFnhJ99VN5lO524pxJ+qml6TocRxCGQjgjIEtpDrnoVM3EZnMwpJSzM4l7qUCuB NKgoq100ySkPpmNeLsjFKz/al/I1gL/TiWJzwHaYCRkt8ZB5J14Qav/jM//CESfePiKK U1RQ== 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=4i3RjREpFSKaagB9as/mKTv8DpkGWPhB6ERBWv6Co3w=; b=c1MzICNNUiHUSvglBF5Bt+oOdKw+rD9fPBh36yZJ558Y+UTAt3+hn8Z0qQHMLGSt1r t152d2j2+xteAb4sIKlc1Vg/IZ2iRWuP2gnpL33ameoKiqDnNAKKFrvhVXIjnyyuvVVM u2bGbdzpw15Jk1kBtBpr4Grl/FZxPR0AgUN/lzWWgtRTNPJUbgbGiamFeGqRbBDq810r CD6SMtXi0WGC4DC7JDEk7N4lOY5/NtGb8ZV+wXZvIlFTzszxN/Ls/IkDw6d2cBFFV0t9 l+JSWY1uRLL3be3mXr/MTJwL0/LNi1PogCvQ6fzCFsNnDEVpOMOBZtbpmSUKNcRMa8Yg LPOw== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM531aEbbN2cISk1o+UOUqT+TnpTZeKIXuQTX7BpmWUJkITInFvjbt BIAblo/ZFz38OGsAsZpx3SM= X-Google-Smtp-Source: ABdhPJyOA/30tmPSECsctRaI+xBex1MVNPQuZoze6N/k4TMZcHRnoLeAycRTDlU/6mcklKBAMEn8CQ== X-Received: by 2002:a05:600c:12c9:b0:394:54ab:52c5 with SMTP id v9-20020a05600c12c900b0039454ab52c5mr815785wmd.141.1651588274536; Tue, 03 May 2022 07:31:14 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:600c:ad8:b0:394:2fc9:9c19 with SMTP id c24-20020a05600c0ad800b003942fc99c19ls1304433wmr.3.canary-gmail; Tue, 03 May 2022 07:31:10 -0700 (PDT) X-Received: by 2002:a05:600c:224a:b0:394:8ec:3d37 with SMTP id a10-20020a05600c224a00b0039408ec3d37mr3586694wmm.19.1651588270791; Tue, 03 May 2022 07:31:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651588270; cv=none; d=google.com; s=arc-20160816; b=qmrJBho0Bga94TpvaoAAgO/5qWXP4+h5npmE5WMtag2VFU1U3RfHTCKpkXCp8udPVr VpMNhQ6oJx5RZjL0rv/A5DfqFLJoOKVHDtD50bpV/IsP47/OBXI7ouwTExjgCLu387up LE4/2CByrmZOOJQ0qJCm9990/oqrr4CgFVJEk0akw5oe0ke20u4j9mCVT24gZLxAfWP/ YRoCqiqM9jffPmf4jwD/imGBj+KuQz+/6U4KuMT6rvjFbe0RNGZnAh8q9h9Ny0Bgu1IZ WX0VVsJgClC7y/CyaGyozsWUCdnaMI3e+skwv7bOj8FzS1RIf8cYWQsDr6i00wCRI5H/ 1lRg== 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=XhRlTBO9bqOziuY3JRCyAYExgByi79k1U/NLCWsrTpA=; b=PtLFyu4GRW+AOEIO1gync9TmZkfTn2GJ7TnzxN1d8cVAl4sC9GUUAEjYwMCz9l6569 sa2nYJmyfs1UTA2Ok8k8ZjqYvP/rJoEKsrH6kCNqqi41G4eyKjl+SN683agCNg66bn6d eibM5m+oXDM4NoyfBsQJ5CTF48ZiMwfIE8SvRUkp6deX/JWvMRkxzKbRuLG6An8laOg9 MpC9sZYmx176Lp54bQhN4Fo01BVBPAMPDYg2Y9B+JVkTMY1YOhiHkyNLYhDkUKasqhXH Lipx1QmBnGxHFFSG08MycH9pM5wDRgcRJXsjN0IPxOxBPvJ5/KGHXI8ll/tHGnak3SZF yfdw== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=cY1915y7; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::532 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com. [2a00:1450:4864:20::532]) by gmr-mx.google.com with ESMTPS id p22-20020a05600c359600b003942a493261si151914wmq.1.2022.05.03.07.31.10 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 03 May 2022 07:31:10 -0700 (PDT) Received-SPF: pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::532 as permitted sender) client-ip=2a00:1450:4864:20::532; Original-Received: by mail-ed1-x532.google.com with SMTP id d6so20059964ede.8 for ; Tue, 03 May 2022 07:31:10 -0700 (PDT) X-Received: by 2002:aa7:cd87:0:b0:427:f800:220d with SMTP id x7-20020aa7cd87000000b00427f800220dmr291721edv.112.1651588270284; Tue, 03 May 2022 07:31:10 -0700 (PDT) In-Reply-To: <4c62d794-40d8-44c2-b444-42c701654c50n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=cY1915y7; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::532 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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:30510 Archived-At: --0000000000002a640305de1c5c23 Content-Type: text/plain; charset="UTF-8" Searching for `$title$` elsewhere in the template and adjusting as needed should do the trick. Den tis 3 maj 2022 01:09Antonio Piccolboni skrev: > Thanks, I gave it a try, removing the nested for and if starting at the > line you highlighted, but it doesn't elicit the desired result. Opening up > the epub, the aforementioned template lines affect something in the > title_page.xhtml file, but the additional h1 level title remains in the > ch001.xhtml file. There is no other explicit h1 heading in the template. > > On Saturday, April 30, 2022 at 12:30:10 AM UTC-7 BP wrote: > >> The "problem" is that the title from the metadata is inserted as a level >> 1 heading. I believe this is done by the template. >> >> >> https://github.com/jgm/pandoc/blob/c1105e6b06d7436f43236191e32156a863de0e13/data/templates/default.epub3#L24 >> >> You can make a copy of the default template, remove that part and use >> that as your custom template. >> >> Den tors 28 apr. 2022 04:50Antonio Piccolboni skrev: >> >>> Hi, >>> if I start a markdown file with a level 2 heading (## Introduction), >>> then, only in the epub output, there is a level 1 heading with the same >>> title as the book. html and pdf start with the level 2 heading, no problem. >>> How can I prevent the creation of this spurious heading? Thanks >>> >>> >>> Antonio >>> >>> cmd: *pandoc* -s minimal.md -o minimal.pdf (or epub, or html) >>> >>> minimal example: >>> >>> --- >>> title: "Minimal" >>> --- >>> >>> >>> ## Introduction >>> >>> >>> bla bla bla >>> >>> # Chapter Uno >>> >>> Bla bla bla >>> >>> >>> -- >>> 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-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/pandoc-discuss/55088d13-2a2f-4cd7-b865-2d5e32c44911n%40googlegroups.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/4c62d794-40d8-44c2-b444-42c701654c50n%40googlegroups.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/CADAJKhDUjs13moUqepKrysjLk66gOTH9yrj3-c-necyy-1z5Ug%40mail.gmail.com. --0000000000002a640305de1c5c23 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Searching for `$title$` elsewhere in the template and adj= usting as needed should do the trick.

<= div dir=3D"ltr" class=3D"gmail_attr">Den tis 3 maj 2022 01:09Antonio Piccol= boni <piccolbo-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> s= krev:
Thanks, I gave it a try, remo= ving the nested for and if starting at the line you highlighted, but it doe= sn't elicit the desired result. Opening up the epub, the aforementioned= template lines affect something in the title_page.xhtml file, but the addi= tional h1 level title remains in the ch001.xhtml file. There is no other ex= plicit h1 heading in the template.

On Saturday, April 30, 2022 at 12:3= 0:10 AM UTC-7 BP wrote:
The "problem" is that the title from the meta= data is inserted as a level 1 heading. I believe this is done by the templa= te.


You can make a copy of the default template, remove that part and= use that as your custom template.

De= n tors 28 apr. 2022 04:50Antonio Piccolboni <picc...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> skrev:
Hi,
if I start a markdown file with = a level 2 heading (## Introduction), then, only in the epub output, there i= s a level 1 heading with the same title as the book. html and pdf start wit= h the level 2 heading, no problem. How can I prevent the creation of this s= purious heading? Thanks


Antonio

cmd:=C2=A0pandoc -s=C2=A0 minimal.md -o=C2=A0 = minimal.pdf (or epub, or html)

minimal example:

---
title:= "Minimal"
---


## Introduction


bla bla b= la

# Chapter Uno

Bla bla bla

--
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-discus...@googlegr= oups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-= discuss/55088d13-2a2f-4cd7-b865-2d5e32c44911n%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 pandoc-discuss+unsubscribe-/JYPxA39Uh4Ykp1iOSErHA@public.gmane.org= m.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/4c62d794-4= 0d8-44c2-b444-42c701654c50n%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://groups.= google.com/d/msgid/pandoc-discuss/CADAJKhDUjs13moUqepKrysjLk66gOTH9yrj3-c-n= ecyy-1z5Ug%40mail.gmail.com.
--0000000000002a640305de1c5c23--