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.