Hello, I have a series of markdown files each one of which includes "## document title" as the first line in the file. I am using the following Makefile block to combine them into a pdf file. .PHONY: typeset FILES=`cat index.txt` typeset: pandoc \ --self-contained \ --standalone \ --table-of-contents \ --toc-depth 2 \ --lua-filter=filters/diagram-generator.lua \ --metadata=plantumlPath:/home/vagrant/datamodel/plantuml.jar \ --template=template.tex \ --from markdown \ --to latex \ --out ~/data/datamodel.pdf \ --pdf-engine xelatex \ $(FILES) The pdf file has a heading for the Table of Contents and lists my "# document title" as 0.1 document title 1 it does not list any of the level 2 headings in the table of contents. In fact the markdown headings for each file are not indicated as headings in the pdf file at all. Any suggestions would be greatly appreciated. Ideally what I would like for the table of contents is: 1.0 Front Matter 1.1 Overview 1.2 Requirements 2.0 DataModel 2.1 High-level ERD 2.2 Entity definitions 2.2.1 entity1 2.2.2 entity2 2.2.3 entity3 -- Regards, Donald Accessibility like security should be built-in from the beginning not just bolted on at the end. http://www.oracle.com/ Donald Raikes, Accessibility Specialist Mobile: HYPERLINK "tel:+15202717608"+15202717608, VOIP: HYPERLINK "tel:+15205744033"+15205744033 https://oracle.zoom.us/my/don.raikes?pwd=RzZrYjFtZzJJZ3JvSmYvd1pzWi9oZz09 Oracle Accessibility Program Office , Tucson, Arizona -- 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/4a183ecb-39a2-4ee1-b5c0-4fba38dd0c51%40default.