From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30505 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: Sat, 30 Apr 2022 09:29:55 +0200 Message-ID: References: <55088d13-2a2f-4cd7-b865-2d5e32c44911n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000c4a60a05ddda20f0" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17608"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCWMVYEK54FRB76KWOJQMGQE2YFZ5QA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sat Apr 30 09:30:10 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-wr1-f61.google.com ([209.85.221.61]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nkhYQ-0004Rn-MM for gtp-pandoc-discuss@m.gmane-mx.org; Sat, 30 Apr 2022 09:30:10 +0200 Original-Received: by mail-wr1-f61.google.com with SMTP id k20-20020adfc714000000b001e305cd1597sf3859061wrg.19 for ; Sat, 30 Apr 2022 00:30:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1651303810; cv=pass; d=google.com; s=arc-20160816; b=xHNthubb0KFFqq3io0o00Wh08O7pzUGc6hpZ+YHg/tUHzLBE3Q2NaGBuhyedy+dJhO 4/4HV4J9aTKj5ZulpR3qaTIPrQJnBuOnWuxu5wH6UhCsl4w9guFOLMB+ZWH8PBepFZQX 65tndYvtdofUAzEFjc2LvIKjz19vCv2sVVyBA4L/yC2hBZ8Rd/SfBBPp5eWj+XdAGmWx DC/JY1DFdW4Qc09Ux7Zo2STRoqonur5fKt5DsBf3LyNrRgU0sSPdnBujqWBBL1OnZJ3o wHIWOkYmb1l+ylJlM7noeF4CvxI6IDLwsXDqXWNjFMo93Ah1CcL8zFaDA3pc6OtwY2Qj UaeA== 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=0JN5dvN2FH0m0eNw0rb4m04E+IMUJ7GxJjil2fQ8rCs=; b=DOmf1qtxtyRtGgqpUhAIu8jkz13Q+4G/vqwoupVYG1WjOiBDyPkCa/fjGExY4xlSbJ H9IsOSbUkTdUfirontmx86b5l3d7YCeN5fBkHUeP6+RxcrR9EjYVeRAHD7vrL4AaQW66 Xj0vb4Eng0AdRXq9vQR27msyqSOJ4kRiD3oQmfY4EPJjXIcaUVaC4921XU9YXfvpyZdH yrv7kfer53zNHOF/SnD83t4caJbvIoR8hqcCWrb9qHCzv6F/nvWGjatoWnmWyYj6eMec 4onE1rcyS/k1WvmCOrhrVbNzWy0d+VVGGY87T8jCXyKTgIA/sWZ+2/oE4wjkZCfLbCvI B3dg== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=boKH5h1N; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::636 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=0JN5dvN2FH0m0eNw0rb4m04E+IMUJ7GxJjil2fQ8rCs=; b=PGkkS3t0ZhtUiDdt6Xvueb0qyk12VsytQhbm32DnqyCKuf3AmaakzwlLIA5RrLFJcz HmV0h52vMyq4/aG2yKLth7TLXNdIM+LQGX41xuQc48Q3YLQQAC2l3WT9JQyGEg/yDLZw pu98M37LdzXfrGslFQ+tYePhHKOxmKfO3QnFahfFPn3OnRlF06WULjoMSF9GJtZ7WvzW b6Nq9M3SBNltMMNEYufn5IjqXIjYrx/gkvqlp5Pn+vEO+p6qh2RPwMSe4YOTwDRVqShA GyjJfT4dSat8p6Lov2H2zVPJcxiJqRS6TV061nLdi7NaMra6oW4t4Pu8159nRnyV/y8P 7+7A== 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=0JN5dvN2FH0m0eNw0rb4m04E+IMUJ7GxJjil2fQ8rCs=; b=ghwJlpRFdj3zsdB2DNUGKIbB0aSe+ziL5RWVEEC86t0fjMQUChQVafSOizDf68hezf LcUHqIgyEkL4InmBDV7xaUzLHTa2icprvfZmtYTEYBqH8Upqpp8CvaLE/gNVjaVmszch pjWPoWSTPHKVdFeMPJH0R1w8ylfdtTg03WWkeRMYmTbmS5af4sthELS4o5Evh0j5R1xW 8jifYSEUFwikKQAB1jycLIU3+y2ggczwc8DNK1C2yDHSfal9OU1OzcrqO8SPS4WWavuE PvzgzYSHwmyRFzAeYWMrzSKW1W2stx/vWeQlKPaBS5UzXwwSNqfhC1b27EcksOFtTrCj lU7Q== 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=0JN5dvN2FH0m0eNw0rb4m04E+IMUJ7GxJjil2fQ8rCs=; b=6hOqRY2sfzYdbZC6zyqLcllyiQqv00nJYj3elyyUgxtCTN9Sv+1vurN3fLXW53J+Vi 9Yr7/MkGW5FDjKgKrF04cdayJ4QeoyB5l4a+4YKBpqIMVm8269gJDCrNuS02WtZ1BRnA K/uKw3TVnjDZK+g6BWdZoOXbsP89gbU5i1keDFzJERonL3PBR9Smhk9w+FXHMmsCE5Lb tMS+wyM6vsI93QRq+WEzwpT9Oy2YNOXsCY7O6DibsdZJvUE8lKZ2n70nPZmAp+e/h02W 198mS45Z0AhiU2h2wnxsXZp+ccRS5ta3aMmuXfBa45D3C9w8Mo5Q+ma/P8NlgqXYIpOb PyRw== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM531DiqGjWdMmgbfziCnggIWcvxkJf+nhWp4fvSoq8EPfZSnK9MuZ qhGh+CBxsoDCtnwD1suwCZg= X-Google-Smtp-Source: ABdhPJyT6SjtuHslyb1H2aY8tPMnS0pRXEmYb0syNAnAoaqFBadjHP8QnkL8csVxih5bHFgAgvws2Q== X-Received: by 2002:a05:600c:3b96:b0:393:ea3a:51c with SMTP id n22-20020a05600c3b9600b00393ea3a051cmr2452166wms.77.1651303810177; Sat, 30 Apr 2022 00:30:10 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a5d:6d84:0:b0:20a:eafa:40fb with SMTP id l4-20020a5d6d84000000b0020aeafa40fbls7222172wrs.3.gmail; Sat, 30 Apr 2022 00:30:06 -0700 (PDT) X-Received: by 2002:a05:6000:1145:b0:20a:d93d:ee24 with SMTP id d5-20020a056000114500b0020ad93dee24mr2098701wrx.543.1651303806354; Sat, 30 Apr 2022 00:30:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651303806; cv=none; d=google.com; s=arc-20160816; b=oi/vVzwNJE4lr3izo3fWEy9DRxPrsRUOfLvfEiIw83eEmfg5+NZskX7tsQps4dxYjy JboyeBGYL5ZfJWYKmEuJbPtOTLxA2IlBB0VzoUgliwmbO+gZcvpfFPkDyqH+uUeqQVDj ZLQojg0Y0HqWoFDQDBajRQWd3n9UJ/rkyc/16bj74hqfcZzj6zivD74/qnZpubXAuNjB sgd+r3Ar6daVp7aTHlp/CP1UVn8p8Jd8huSl7Q153AF66umBhnAa1TSfENmgooiUaJhk eA/NPHp0gQ5XxG4BwxMxt1FF+ixmXc+n2e4dt/vVjNcUY2EEIgiliDUp413udkJMIRy+ alyg== 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=RuqjWCD83wk2KMxAlApfKx+4OJnaS4nL8Zsz/TU+zfw=; b=ohqWjeV0RL6i2nw85BlbRx5AyhKAUgDKpTcmai2SwJkjVuMPnDlTd8BYY2yURnKVWM dSTR2XGsBgsS0QTWQ7VR8PJEYaHlsyZY7eXnLJr16ASXnr8HMmrlwTBUktjpQ6feilQc JlHaKiAyuJTzTpIIQzh0bSMjRxRe4+NyUDg3Fqsm+2I8bU7JPbYdwCWCKM9iexUvRcpF r/fmZSI2wG23XBf/uywNm6P30/EpmqVaxcGFAUzLh6ErMshPG4WNTO93KCb3x8SkHsO6 R37avEjzxbaii/u1X1frHwU27QbFHWWxJb8MG043B2aNW01r28xx4hk1n1TYDsBJYDeB 334g== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=boKH5h1N; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::636 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-ej1-x636.google.com (mail-ej1-x636.google.com. [2a00:1450:4864:20::636]) by gmr-mx.google.com with ESMTPS id c13-20020adfe70d000000b0020ae37338dcsi573872wrm.8.2022.04.30.00.30.06 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 30 Apr 2022 00:30:06 -0700 (PDT) Received-SPF: pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::636 as permitted sender) client-ip=2a00:1450:4864:20::636; Original-Received: by mail-ej1-x636.google.com with SMTP id k23so19193298ejd.3 for ; Sat, 30 Apr 2022 00:30:06 -0700 (PDT) X-Received: by 2002:a17:907:62a6:b0:6ef:8118:d3e2 with SMTP id nd38-20020a17090762a600b006ef8118d3e2mr2787879ejc.605.1651303805919; Sat, 30 Apr 2022 00:30:05 -0700 (PDT) In-Reply-To: <55088d13-2a2f-4cd7-b865-2d5e32c44911n-/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=boKH5h1N; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::636 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:30505 Archived-At: --000000000000c4a60a05ddda20f0 Content-Type: text/plain; charset="UTF-8" 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-discuss+unsubscribe-/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/CADAJKhAj0-S3QgMSLOddvp2%3DQvKXgqbSvkb%3DU1T_k-NCS4CFzg%40mail.gmail.com. --000000000000c4a60a05ddda20f0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
The "problem" is that the title from the metada= ta is inserted as a level 1 heading. I believe this is done by the template= .


You can make a copy of the default te= mplate, remove that part and use that as your custom template.
<= br>
Den tor= s 28 apr. 2022 04:50Antonio Piccolboni <piccolbo-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> skrev:
Hi,
if I start a markdown file with a level 2 heading (## Introduc= tion), then, only in the epub output, there is a level 1 heading with the s= ame title as the book. html and pdf start with the level 2 heading, no prob= lem. How can I prevent the creation of this spurious heading? Thanks
<= div>

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-discuss+unsubscribe-/JYPxA39Uh4Ykp1iOSErHA@public.gmane.org= m.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/55088d13-2= a2f-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://gro= ups.google.com/d/msgid/pandoc-discuss/CADAJKhAj0-S3QgMSLOddvp2%3DQvKXgqbSvk= b%3DU1T_k-NCS4CFzg%40mail.gmail.com.
--000000000000c4a60a05ddda20f0--