From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31742 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Craig Parker Newsgroups: gmane.text.pandoc Subject: Re: Large Document Date: Fri, 11 Nov 2022 07:52:20 -0800 (PST) Message-ID: <4e3502ac-01bd-424f-9597-0e790f81f537n@googlegroups.com> References: <6eb43189-eb50-416c-8f30-d2baf1dee459n@googlegroups.com> <2CBF2CCD-5F52-4719-B899-5BD72D120D04@gmail.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_3952_1664091064.1668181940798" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9753"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDPL77HMC4ILNX5ZTMDBUBHDCS7ZC-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Nov 11 16:52:26 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oi1-f184.google.com ([209.85.167.184]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1otWKP-0002Kl-Qo for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 11 Nov 2022 16:52:25 +0100 Original-Received: by mail-oi1-f184.google.com with SMTP id k14-20020a54440e000000b0035ad0da3791sf250413oiw.4 for ; Fri, 11 Nov 2022 07:52:25 -0800 (PST) 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-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :sender:from:to:cc:subject:date:message-id:reply-to; bh=qEdBDzo0/0k8t7X+wYqO0LNgFh7ZC0kLrW3lNAO0Wx0=; b=Ip5NwTDjU7f3LZlRWTABfaV1mUgepbeJibA40l9DcJoSSpy6k0eALXS6B2n1aFKpub WaygA0CxOk5DrFcfu6dvfS4pAfj0/3HorexlNtRFGjbYuMiP6IMUYbqWbLnv8cCtZvoS RI6TM6c4NTSUjREdBxrGclARXt6l79nbQwWQscesAsWVZ3Pd53yBWhlSW4J5sqLa3orG nDJhfFIGlwM5JL/nKiwQKRkZDeXh+V1ZW0pGt+THQiAa0id191/S2WLzwdNr73rdP8lx 9x2Kg3ZLr3UrwmMx62nUu57cfils+flYbyDIYzESIO/AHmiAqeFT+oan0js0q+/bSIwQ 8EBw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=qEdBDzo0/0k8t7X+wYqO0LNgFh7ZC0kLrW3lNAO0Wx0=; b=JDb6WNfINHty1jd3DsSrXIDBz3CMmFKItZCE1MfTAjEjd5IX+qxxcocDaA2TQ+bMdH EmBXjJIl6SF1RlWckjUJv4Vq+L8LqraCxVMYehPOFMUr/5SDsRtZhNMQjb+8WZrl4KGB BXLq09p2RYF2v5Lw+LHzfOePNfi8xi5/bJJGPNVLqzUTdLrrbykdVsccreDspuzVNcI4 3kvooRvIV7l+riujM7QoHXMrWLL4Eho8gYjQdSCnPW0Mbr4e/+fgF5u+k3MOLJ+kCUD1 o813p0NaLjuHwipbEAVhhvQqDNvLK7dFF3Mx8Mt+HYwAStlsih77F9N8uhTsj6Ie1ooz JhfA== 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-sender:mime-version:subject:references:in-reply-to :message-id:to:from:date:x-gm-message-state:sender:from:to:cc :subject:date:message-id:reply-to; bh=qEdBDzo0/0k8t7X+wYqO0LNgFh7ZC0kLrW3lNAO0Wx0=; b=DvC8bsa0Fy9MLZyVvePnEgNcwlrNeBgkIQYQrUnoqElfbtwTBccVNyM1A3KF4wv8gz Mk97ZiSTEwSEpKTxYZxzDHCfeZr2r0/HkORJnEMUIxsRZBS3be1/KiAxbo82+izCWSsC cPbXpldn3mf9JiU5UeOf+HHKuroeLTWtBUeGNwngYzfBADGTGQbzjoFUDBtet9+JnA+R 21jQ7nPWUxxNEAlO4q1AhJA/8lADGD0xeSfstBylMXtq1LN9XFypApmOd10RJ22gCvFD 85fLMLJmdzuDpe1tIXjzxvG45r3ALIjUZPM8HqL7nM0u9MYivHAuiY4jcD5Qrb7iYgTg xrfA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ANoB5pm0ANHRknh94V+7e7IkgMX1uzdQNwbI800uFQRdwByRmq8T/Fbe Kqr9VPgUQvUZFxUGHfh5gpQ= X-Google-Smtp-Source: AA0mqf7HPmZlRgkRTVOphk37EgaFKKVRYeK7c8d/OPvPc8gToQqp+VfXi3Y+pJq1eYH4LJJFdZzDfQ== X-Received: by 2002:a54:4788:0:b0:359:568c:176 with SMTP id o8-20020a544788000000b00359568c0176mr1059166oic.110.1668181944640; Fri, 11 Nov 2022 07:52:24 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a4a:af4c:0:b0:49e:a5a0:99d0 with SMTP id x12-20020a4aaf4c000000b0049ea5a099d0ls228729oon.9.-pod-prod-gmail; Fri, 11 Nov 2022 07:52:21 -0800 (PST) X-Received: by 2002:a4a:ab83:0:b0:49e:9f04:2010 with SMTP id m3-20020a4aab83000000b0049e9f042010mr1114749oon.48.1668181941664; Fri, 11 Nov 2022 07:52:21 -0800 (PST) In-Reply-To: <2CBF2CCD-5F52-4719-B899-5BD72D120D04-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> X-Original-Sender: craig.fossfolks-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:31742 Archived-At: ------=_Part_3952_1664091064.1668181940798 Content-Type: multipart/alternative; boundary="----=_Part_3953_166466060.1668181940798" ------=_Part_3953_166466060.1668181940798 Content-Type: text/plain; charset="UTF-8" The plot thickens... I want to be able to make just one md into a pdf, and but also merge a bunch (two different scripts), but I'm having a problem with the TOC. TOC.md looks like this: ``` --- title: Wicked Awesome Title Here subtitle: A catchy subtitle... author: Me email: date: --- ``` I can call it with pandoc --toc TOC.md file1.md -o file.html This is fine if I want one big merged file, but if I want to just make a single one, then I have to have another TOC file (TOC-file1.md, for example). Yesterday I discovered that if I knocked the subtitle line out and just put that in file1.md: ``` subtitle: A catchy subtitle... ``` I could call the same table of contents whether I was making one single section file, or one big merged one. Today I found out that it doesn't work when I'm doing multiple files. But wait... While I was typing this, it appears that as long as all of the individual files have a heading that is seven lines long and includes the subtitle, I can either make a single small file or a large merged one. Is the expected behavior? The header for doing this needs to be seven lines long to work right? On Thursday, October 6, 2022 at 2:00:52 PM UTC-4 fiddlosopher wrote: > You can just put all of the markdown files (in order) on the command line, > and pandoc will concatenate them before converting. > > pandoc --toc part1.md part2.md part3.md -t html --pdf-engine=weasyprint -o > wholething.pdf > > > On Oct 6, 2022, at 10:24 AM, Craig Parker wrote: > > > > I'm trying to document ALL of a piece of software's uses/features/etc. I > was wondering if there's a way to do each one individually, then merge them > in the end. I was hoping to just do one big doc, but really want section > title pages. I am running: > > > > pandoc -s --template="templates/default.html" -f markdown-smart --toc -c > ./style-landscape.css "$n.md" -o "./$n.html" > > python3 -m weasyprint "./$n.html" "./$n.pdf" > > > > on the individual markdown files, but then the page numbers don't match > up when I join them all together in the end. I'm not sure where to start > looking, so that H1 still behaves the way it does, but so that H2 also > creates kind of a title page, and the other headings get bumped down a peg > (so H3 acts like H2 does now, etc.) > > > > I'm also not exactly crystal clear about how much of this is pandoc and > how much is Weasyprint... > > > > -- > > 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/6eb43189-eb50-416c-8f30-d2baf1dee459n%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/4e3502ac-01bd-424f-9597-0e790f81f537n%40googlegroups.com. ------=_Part_3953_166466060.1668181940798 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable The plot thickens... I want to be able to make just one md into a pdf, and = but also merge a bunch (two different scripts), but I'm having a problem wi= th the TOC. TOC.md looks like this:
```
---
title= : Wicked Awesome Title Here
subtitle: A catchy subtitle= ...
author: Me
email:
date:
---
```
I can call it with pandoc --toc TOC.md file1.md = -o file.html

This is fine if I want one big merged file, but if I wa= nt to just make a single one, then I have to have another TOC file (TOC-fil= e1.md, for example).
Yesterday I discovered that if I knock= ed the subtitle line out and just put that in file1.md:

```
subtitle: A catchy subtitle...
```
<= div>
I could call the same table of contents whether I was ma= king one single section file, or one big merged one.
Today I found out t= hat it doesn't work when I'm doing multiple files.

But wait... While= I was typing this, it appears that as long as all of the individual files = have a heading that is seven lines long and includes the subtitle, I can ei= ther make a single small file or a large merged one. Is the expected behavi= or?  The header for doing this needs to be seven lines long to work ri= ght?

On Thursday, October 6, 2022 at 2:00:52 PM UTC-4 fiddlosopher wrote:
You can just p= ut all of the markdown files (in order) on the command line, and pandoc wil= l concatenate them before converting.

pandoc --toc part1.md part2.md part3.md -t html --pdf-engine=3Dweasypri= nt -o wholething.pdf

> On Oct 6, 2022, at 10:24 AM, Craig Parker <craig.f...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>=20
> I'm trying to document ALL of a piece of software's uses/f= eatures/etc. I was wondering if there's a way to do each one individual= ly, then merge them in the end. I was hoping to just do one big doc, but re= ally want section title pages. I am running:
>=20
> pandoc -s --template=3D"templates/default.html" -f markd= own-smart --toc -c ./style-landscape.css "$n.md" -o "./$n.ht= ml"
> python3 -m weasyprint "./$n.html" "./$n.pdf"
>=20
> on the individual markdown files, but then the page numbers don= 9;t match up when I join them all together in the end. I'm not sure whe= re to start looking, so that H1 still behaves the way it does, but so that = H2 also creates kind of a title page, and the other headings get bumped dow= n a peg (so H3 acts like H2 does now, etc.)
>=20
> I'm also not exactly crystal clear about how much of this is p= andoc and how much is Weasyprint...
>=20
> --=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 email to pandoc-discus..= .@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/6eb43189-e= b50-416c-8f30-d2baf1dee459n%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/4e3502ac-01bd-424f-9597-0e790f81f537n%40googlegroups.= com.
------=_Part_3953_166466060.1668181940798-- ------=_Part_3952_1664091064.1668181940798--