katrinleinweber / PhD-thesis

Experimental tech-demo for PhD thesis in Scientific Markdown; official:
http://kops.uni-konstanz.de/handle/123456789/34342
MIT License
45 stars 5 forks source link
biochemistry biofilm biology citer diatom eds electron-microscopy latex latex-document latexmk make makefile markdown markdown-template microscopy pandoc phd-thesis zotero

Characterisation of biotic interactions between a Dyadobacter strain and the diatom Achnanthidium minutissimum (Katrin Leinweber, PhD thesis, 2012-2015)

This repository stores both the content of my thesis (sources, data, figures and supplemental files), and the software toolchain used to compile it into the final printed and electronic, official version. This repository is an experimental tech-demo & backup.

Toolchain: mixed Markdown & LaTeX

Text

  1. Write in AcademicMarkdown in Sublime with Citer, as explained by Christopher Grainger.
  2. Separate .md file per chapter; number in filename determines order.
  3. Figures as mixed MD & LaTeX: ![**Caption.** Some more legend.\label{label}](images/image.pdf)
  4. Conversion to LaTeX, then PDF with pandoc via a makefile adapted from Jens Erat's "Scientific Markdown".

References

  1. Manage in Zotero collection "thesis".
    • keep selected, so that new items are automatically collected there
  2. Zotero autoexporting addon set to:
    • Autoexport mode
    • timer triggered every few hours (trying to avoid temptation of make-ing PDF every few paragraphs)
    • BibTeX fileformat & thesis.bib into some backup directory
    • only custom collection/saved searches activated & thesis ticket
    • postprocess deactivated
    • simpler alternative, but with notable freezing of Zotero for few seconds & no ability to export different collections to different files: Autoexport mode, Trigger by events, C:\path\to\thesis\references.bib & [...] whole library
  3. Cite by letting Citer expand known BibTeX key from thesis.bib & references.bib followed by auto-pasting it into text with PhraseExpress rule for [@{#insertclipboard}] (Win) and [@%clipboard] in TextExpander (Mac).
  4. Let makefile copy thesis.bib from backup to working directory.
  5. Let makefile replace PDF's link color with black for printing.

Git

  1. GitHub apps for Win & Mac, or Tower.
  2. Track whole working dir, except TeX, R, Windows temp files & final PDFs.
  3. Create doctor branch from default master & delete default ;->
  4. Try working on logical chunks, eg.
    • sentence about goal of study in introduction plus figure & paragraph about that goal in results plus raw data & R script of figure in supplemental section plus discussion with literature reference about that result
    • proof-reading of a chapter => highlight advantages of Markdown+Git workflow to supervisor at this point ;-)
    • adjusting all diagram styles (ggplot2 | theme())
    • rearranging chapters, sections or files
  5. Summarise logically connected edits in single commit to branch doctor.
  6. Experiment (technically and content-wise) by branching:
    • merge successes back into doctor
    • simply leave unsatisfactory experiments be => "stale" branch accessible later
    • remember to always switch the GitHub app to the right branch before 4. Try working on logical chunks

Helper tools

Known issues & miscellaneous advice