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:
```
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 <craig.f...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/6eb43189-eb50-416c-8f30-d2baf1dee459n%40googlegroups.com.