I'm creating a library on github, so I'm using a Markdown file for that, with the following structure:
# My main title
## My first section
...
## My second section
...
But unfortunately, when I use pandoc to convert this document into latex:
pandoc README.md --number-sections -f markdown -t latex -s -o doc.tex
the document does not have any title, and the numbering starts from the main title:
1. My main title
1.1. My first section
...
1.2. My second section
...
While I'd like something like
My main title <=== document title
1. My first section
...
2. My second section
...
I could of course use sed to change all ## to #, and replace the main title with % Document My main title
but it looks quite dirty to me. What is the good way to proceed?
Thanks!
--shift-heading-level-by=-1
results in the document title being dropped. – Deduction