public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* adding a table of contents to a pdf document
@ 2020-08-04 21:53 Don Raikes
  0 siblings, 0 replies; only message in thread
From: Don Raikes @ 2020-08-04 21:53 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw


[-- Attachment #1.1: Type: text/plain, Size: 2271 bytes --]

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.

[-- Attachment #1.2.1: Type: text/html, Size: 13963 bytes --]

[-- Attachment #1.2.2: image001.png --]
[-- Type: image/png, Size: 3502 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-08-04 21:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-04 21:53 adding a table of contents to a pdf document Don Raikes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).