From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/23447 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: brainchild Newsgroups: gmane.text.pandoc Subject: Re: Number concatenated chapters (Was: concatenating md have a page-break between in resulting docx?) Date: Thu, 19 Sep 2019 15:00:09 -0700 (PDT) Message-ID: <33bca4bd-c1e7-4356-b79c-625ee4792773@googlegroups.com> References: <236f815f-2db1-4ee2-30d0-5794cd6301b3@reagle.org> <83bd8e54-4c7f-2fd7-966e-fe2fb55755bd@reagle.org> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_855_575151539.1568930409903" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="96203"; mail-complaints-to="usenet@blaine.gmane.org" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCK6XHV3WYGBB27UR7WAKGQETFJI45A-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Sep 20 00:00:17 2019 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-oi1-f190.google.com ([209.85.167.190]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1iB4TF-000OoM-M6 for gtp-pandoc-discuss@m.gmane.org; Fri, 20 Sep 2019 00:00:13 +0200 Original-Received: by mail-oi1-f190.google.com with SMTP id q21sf20470oic.22 for ; Thu, 19 Sep 2019 15:00:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; 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=2bEVvY5dkhvbxFxmOCKHKtNF/IgJ3PSmUu1H7qGosf4=; b=DmjKX2PlkczetGxN3g4ZnitIMBzDVq0vi5HLGMYrT6gKSxZ5N98VS8Aj0STSNRv32A a52ITBRI7Bq2ITNIEF7uNjX1mF1PR81MdvXeJecucagMYQSyzsZVhOc2ELnqXGlFdCoJ f5EAk+J/KjjZMlH0IoKeVESDT1tLXVWyjYdtqicOz9BBraFlP/mJd+ykJTP3BYxc4qw4 kZ5AP9mhERGQ5/OP3EAyKqPyWjvm2iWowsl+VKv6lDUWvmrm8508jKXni/QTalBOZLvH aZ40CnB7IUEMDWFpoLimWfCks9um0azuCsVijziUKQY2SyBRM2fmyPMl9pvv9qtW36n0 Qrmg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; 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=2bEVvY5dkhvbxFxmOCKHKtNF/IgJ3PSmUu1H7qGosf4=; b=UJ1eEbsQhiRg4O+mb9rAO8YFa3Oojo9K480+diO6OBmBPqbGbpEgFLi0JRUkDyHs4t 7hXF8vNk9PDc+zPpAW8+smfCMXiRxakkVJeDj0jU8x8iu3pda8KsMefQmIH/JSbkzT7b yKrcxVDZi5hgJJ3jVQ16qnfrF6UNe3rPAcIfoFi9B5UwuzMczuJHbGaPpyjSPOKj5JZH /c5zT1fWlleFktgnM7gFy2mgNqCV/IuWdtEA9aU84yM0mhjM9Sx+/HMq4FsPItwgBJCp BDjGmZo5FjYVjYzyJoWe5T9mUL5F7hnnGXUzIOA+P3oiEYu2hjqjNRlt2XqOyX6D9v6n bBJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; 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=2bEVvY5dkhvbxFxmOCKHKtNF/IgJ3PSmUu1H7qGosf4=; b=SZtMzYECAvWOnpSve6rYj4SF1UOyPh+a6xPSQGthwzDOicbe1TInyLQFMEn6TV1eX6 VMa304QhSxp6qJ3esVsFp1Ohv36UffO17/2Xkln7Ox6acUqim/El5Tmt5OTJu/+c3Zof JfkCvVkbLwI3AVjTipVBA4xFqSwlvEecOpTOW8rrGmW24UL+jq5y7Ub+Kz96i8hygD9L pOw7r0oJbbAolN/pjW1QwAa+sEhxD1VSb4jZHvnjFExK0Iuut0CX2zg4zpdMIm4lRvXZ T6LtJJLoRJSx+EKG2vqEKhqZFAZ24azyhJuBa8x7lDK8uvYCqjhk69OoKgB6zZeMQh4n B9MQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: APjAAAWvYm8XzEMTqB7mN1+YznuiInJB6RWDElTld1oA+rtMXs+wunbV J91sMf6X269keukjyWBnTGA= X-Google-Smtp-Source: APXvYqwRn5rZlYv4+mDsIQTmgqYeIIX8l7qwm6JGH+beIDZUAZCQMVf10AbQnRmV5xMLmLwP59MqDA== X-Received: by 2002:a9d:7c97:: with SMTP id q23mr8816163otn.296.1568930411855; Thu, 19 Sep 2019 15:00:11 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6830:1383:: with SMTP id d3ls1232948otq.0.gmail; Thu, 19 Sep 2019 15:00:11 -0700 (PDT) X-Received: by 2002:a05:6830:1217:: with SMTP id r23mr9065438otp.104.1568930410983; Thu, 19 Sep 2019 15:00:10 -0700 (PDT) In-Reply-To: <83bd8e54-4c7f-2fd7-966e-fe2fb55755bd-T1oY19WcHSwdnm+yROfE0A@public.gmane.org> X-Original-Sender: ericlevy-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.org gmane.text.pandoc:23447 Archived-At: ------=_Part_855_575151539.1568930409903 Content-Type: multipart/alternative; boundary="----=_Part_856_918288122.1568930409903" ------=_Part_856_918288122.1568930409903 Content-Type: text/plain; charset="UTF-8" I'm not sure whether my thought will be distracting or helpful. Based on your comments so far, it seems that your ultimate objective might be to publish a book from a source collection of one chapter per source document. Page breaks between chapters are a normal formatting feature of book-style output. If you could pre-filter the source such that the header levels are shifted right and the file information is then applied as the top-level header for each resulting sequence of sections, would you be moving closer toward a desired outcome? At this moment, I cannot propose a good way to achieve the above, but depending on your needs it may be worth considering, especially if someone else can suggest an existing feature that supports it. Ultimately, the specific problem you describe is more difficult than you would hope because formatting features such as page breaks are generally determined by the logical structure of the input document applied to the physical design of the output document. If you are able to utilize this design by slightly shifting your approach, you might have more fun and less pain. Of course it would be even simpler if the source already had the needed structure, but it seems you have external constraints or preferences that restrict this possibility. On Monday, September 16, 2019 at 4:15:49 PM UTC-4, Joseph wrote: > > > In addition to adding page breaks between the chapters, I'd like to have > the title (first level-1 heading, in this case) prefixed with an chapter > number taken from the file name. I want to do this dynamically, as I might > rename/resort/reorganize the files based on their names. > > > -- 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/33bca4bd-c1e7-4356-b79c-625ee4792773%40googlegroups.com. ------=_Part_856_918288122.1568930409903 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I'm not sure whether my thought will be dist= racting or helpful.

Based on your comments s= o far, it seems that your ultimate objective might be to publish a book fro= m a source collection of one chapter per source document.=C2=A0=C2=A0
=

Page breaks between chapters are a normal formatting fe= ature of book-style output.=C2=A0 If you could pre-filter the source such t= hat the header levels are shifted right and the file information is then ap= plied as the top-level header for each resulting sequence of sections, woul= d you be moving closer toward a desired outcome?

A= t this moment, I cannot propose a good way to achieve the above, but depend= ing on your needs it may be worth considering, especially if someone else c= an suggest an existing feature that supports it.

U= ltimately, the specific problem you describe is more difficult than you wou= ld hope because formatting features such as page breaks are generally deter= mined by the logical structure of the input document applied to the physica= l design of the output document.

If you are able t= o utilize this design by slightly shifting your approach, you might have mo= re fun and less pain.

Of course it would be even s= impler if the source already had the needed structure, but it seems you hav= e external constraints or preferences that restrict this possibility.
=


On Monday, September 16, 2019 at 4:15:49= PM UTC-4, Joseph wrote:

In= addition to adding page breaks between the chapters, I'd like to have = the title (first level-1 heading, in this case) prefixed with an chapter nu= mber taken from the file name. I want to do this dynamically, as I might re= name/resort/reorganize the files based on their names.


--
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/33bca4bd-c1e7-4356-b79c-625ee4792773%40googlegroups.co= m.
------=_Part_856_918288122.1568930409903-- ------=_Part_855_575151539.1568930409903--