McMaster Thesis Pandoc Template
Setup
McMaster Thesis Template
- Download the LaTeX thesis template from http://www.cas.mcmaster.ca/cas/0files/Thesis_Template.zip.
- Compile the default TeX file:
pdflatex Thesis_Main.tex
- Cleanup output:
rm Thesis_Main.{*aux,lof,log,lot,out,pdf,toc}
pandocpandoc
pandoc
Summary
[[pandoc]] converts text files into different formats. I'm hoping to use it to convert [[Markdown]] files to:
[[PDF]]
[[Word doc]]
[[HTML]]
Installation (WSL2)
Install [[Ubuntu]] packages.
sudo apt install texlive-full pandoc
Create a [[conda]] environment.
mamba create -n pandoc -y python=3.7 pandoc nodejs click
conda activate pandoc
Links
The [[Obsidian]] style of links uses [[wiki links]] which are problematic for ot... LaTeX Template
- Save the default TeX template.
pandoc -D latex > templates/default/default.tex
- Test the default template.
pandoc -s pandoc-example.md -o pandoc-example.pdf --template templates/default/default.tex
Convert
Try to render the title page.
rm test.{*aux,lof,log,lot,out,pdf,toc}
Variables
fontsize: 12pt
title: My Dissertation Title
pandoc -o dissertation.pdf --template mcmaster_thesis.tex \
00_Frontmatter.md 01_Chapter1.md 02_Chapter2.md 03_Chapter3.md 04_Chapter4.md