I am writing my thesis in Markdown, I take advantage of Zotero to store and process citations, and I use Obsidian as the main editor (exploiting the great obsidian-citation-plugin to ease the citing process).
Finally, a simple and wonderful Pandoc command compiles the whole thesis.
Pandoc
In order to correctly format all the styling, it is necessary to convert the Markdown source file to HTML first, and then convert the HTML to PDF
pandoc -s Thesis.md --wrap=none --resource-path="$PWD" --metadata-file=Thesis.yml -C -o Thesis.html &&\
pandoc -s Thesis.html --wrap=none --resource-path="$PWD" --metadata-file=Thesis.yml -C -o Thesis.tex &&\
pdflatex Thesis.tex
-s
parses the output in one standalone file--citeproc
(abbreviated,-C
) activates citations, references and bibliography processing--resource-path
specifies the path(s) where to look for resources. I cannot understand what it defaults to, so explicitly specify it as PWD- add
--toc
in the case a Table of Contents is intended to be added and atoc
boolean (toc: true
) is not present in YAML metadata for the document - add
--bibliography
to specify where the bibliography is located, but only ifbibliography
field is not present in
Parameters
Inside the front matter, different parameters could be customized, following Pandoc manual’s suggestions.
Open questions
- How to customize the front page so that it matches Ca Foscari University’s guidelines? Asking fauno for help, he told me that it is too hard to actually customize the front page with LaTeX, so it is better to create the frontispiece with LibreOffice, and embed it using this code he wrote a while ago, we adapted it and made this
solved by converting to HTML first<u>
and<q>
HTML tags are stripped and not parsed…- Automatically title the references section
- How to properly create a dedications section
- Add colors
- Impaginazione in LaTeX?
- Producing a PDF/A in LaTeX (basically, just adding
\DocumentMetadata{pdfstandard=A-2b}
before\documentclass
)
Resources
- Setup for writing in Markdown, citing with Zotero, and publishing with Pandoc
- I wrote my thesis in Markdown, here’s how it went
- phd_thesis_markdown, a template
- pandoc-thesis, a template
- Delightful Open Science — tools, a repository
- Manubot
- The tools and services I used to write, edit and self-publish my book, by Sylvain Kerkour
- I take advantage of in order to add citations to what I am writing in Obsidian
- Zotero best practices on Obsidian’s forum