From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30509 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Antonio Piccolboni Newsgroups: gmane.text.pandoc Subject: Re: Additional level 1 heading, only in epub Date: Mon, 2 May 2022 16:08:44 -0700 (PDT) Message-ID: <4c62d794-40d8-44c2-b444-42c701654c50n@googlegroups.com> References: <55088d13-2a2f-4cd7-b865-2d5e32c44911n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_6450_457070827.1651532924224" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15817"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBC4KDA7JYIPRB7OIYGJQMGQE3KRZUBI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue May 03 01:08:48 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f56.google.com ([209.85.210.56]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nlf9s-0003x4-9c for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 03 May 2022 01:08:48 +0200 Original-Received: by mail-ot1-f56.google.com with SMTP id g44-20020a9d12af000000b00605f175c925sf4773622otg.13 for ; Mon, 02 May 2022 16:08:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:date:from:to:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=azPba/K1bomSThlw4IZt5o0Hriq7ywwvocgjx1D05tM=; b=IF3KW4k9jRCt72mYOUFhDy/aHvIQYOWMpvDuGG/tORLFR4wTYQlyAb0jE10HdCM3GY k9WXgdlDsfOdYqOKK9NEnHD76FW5659i32M2OfqnZzVeLvgWAibbY1F/JigRRVYz+PSB pgo1/fWpUmfMSxuUE6wdtK2NnDoN9oAUjftlfcPwHCMk4uFzfwIJCeaJed7PpwQU8Orq P52tiqrDO13oINcj0pxZKpxCMjYCWcM6kTBL1c516yJw0RGH0aWTi2kgccY/tj1vap+J WiD9OHs4mAIoEm1x/oswjFzp5P/7svgjaO9Ej35cABXmWKA08wmu13GqWLT+XBtx1FIE gsCA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=azPba/K1bomSThlw4IZt5o0Hriq7ywwvocgjx1D05tM=; b=n7FXensYai0l03NAr2QS+KZheSZc/uNIaeyquy66+Bo6zO6SlR3ei77ebZN9/pF93W rqbYiaXoRmiGrLdthbAaH0//AxI2F/Na8omuIstOYdP8xFpsMONMlyTJs1AudE+g09DJ Ssh+zBw9ML0xBcigiiBYxlevs5jPLtxJORCDib9fkBRqG6Mo+bvnYJ+2YIoLyKpdaQuq wrr8J1IYGZngBdD/0DOh+qso0GC83m9/VFCBECB00+LLv/93PATp3df1Vo/c6t+a4wJ/ 6StLk6fXm8GQe3V/UyEiu76Xk3PwxEA1GTeZOYQWzn4Y9SAHWlcRDM9FAm111Qx9DDXl ZCww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:date:from:to:message-id:in-reply-to :references:subject:mime-version:x-original-sender:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=azPba/K1bomSThlw4IZt5o0Hriq7ywwvocgjx1D05tM=; b=Kt7+ZKz7elwTtOwoS+zMiMF1kcEs3dFiWYoSebwkXNHllIA9I+BqYuYnbojNDfd0ou 2Cm0DYj15Pu7iq7ANSO31jifthXXXazS9Jqqem7fGn7HqBAQVDVmDjevvfhFyS5L2zYz L2wEqoJZK8A4nF/g8yqXv0x4lb1pHXWoDlXwyR7HHn3H1Brj8QW9hMDxATf4D+WukYka 6d7UIzcgho+1RU5PbSI0i1OL/LdZUxN2U0mgXEILID5ailCUTyIT0PbUGgkAvwhlU94j ws2MpyQ79eI9icN5uwBWMCF2+cdmzyJGotW2MQQsA5svbV8Df7LiBLLLzlGyEtrqyLgy QjDw== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM531d6TfF4ozVMVicpj2qqJEFMVkTVMPFgdqncvT1wHEaoXZ3i11c Uk9p1KWuxGox59IdLzU9g+I= X-Google-Smtp-Source: ABdhPJzMLN/SvkSj6iE3lmy+LsTgfYjGE7DUZXbLHbFO181zzLapWpD6xwqhrwiRQRigJUblTJeBbg== X-Received: by 2002:a05:6870:7093:b0:e6:210a:d98d with SMTP id v19-20020a056870709300b000e6210ad98dmr690288oae.68.1651532927286; Mon, 02 May 2022 16:08:47 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6808:199a:b0:325:b490:288 with SMTP id bj26-20020a056808199a00b00325b4900288ls5537997oib.0.gmail; Mon, 02 May 2022 16:08:44 -0700 (PDT) X-Received: by 2002:a54:4505:0:b0:325:e50c:a71 with SMTP id l5-20020a544505000000b00325e50c0a71mr680005oil.70.1651532924741; Mon, 02 May 2022 16:08:44 -0700 (PDT) In-Reply-To: X-Original-Sender: piccolbo-Re5JQEeQqe8AvxtiuMwx3w@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:30509 Archived-At: ------=_Part_6450_457070827.1651532924224 Content-Type: multipart/alternative; boundary="----=_Part_6451_377453160.1651532924224" ------=_Part_6451_377453160.1651532924224 Content-Type: text/plain; charset="UTF-8" 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. ------=_Part_6451_377453160.1651532924224 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks, I gave it a try, removing the nested for and if starting at the lin= e 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 f= ile. There is no other explicit h1 heading in the template.

<= div class=3D"gmail_quote">
On Saturda= y, April 30, 2022 at 12:30:10 AM UTC-7 BP wrote:
The "problem&quo= t; is that the title from the metadata is inserted as a level 1 heading. I = believe this is done by the template.


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

Den tors 28 ap= r. 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= ...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/5= 5088d13-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 pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@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.
------=_Part_6451_377453160.1651532924224-- ------=_Part_6450_457070827.1651532924224--