Skip to content

Templates + advice for using Markdown in scientific writing.

License

Notifications You must be signed in to change notification settings

liamtimms/scientific-markdown

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Scientific Markdown

Scripts and templates for writing a scientific paper in markdown formatting. Make sure you view the actual templates in "Raw" markdown, github does not handle the yaml header appropriately. You can either hit the "raw" button here or clone the repo and go through it with your prefered text editor.

git clone https://github.com/liamtimms/bashscripts.git

I also recommend installing pandoc and you'll need a distribution of LaTeX if you want to compile .tex or .pdf files from this. On Linux I use texlive (on Windows I use MiKTeX but I haven't tested pandoc on Windows with it).

To get started look at general template.

Why?

Current solutions

  • LaTeX

    • Pros:
      • easily the best existing language for dealing with complex formatting and type setting
      • many journals provide templates for use with LaTeX
      • FOSS compilers and plain text source files
    • Cons:
      • often uncomfortable for collaborators outside of physics, math, and comp sci
      • difficult to parse as plain text while writing (verbose syntax)
      • not all journals accept LaTeX source files
  • Microsoft Word

    • Pros:
      • very simple to get started in
      • everyone knows how to use it
      • journals always accept it (in my experience)
    • Cons:
      • type-setting nightmare once you have a complex document
      • unpredictable formatting
      • proprietary (can lose access to your own work)
      • difficult/impossible to work with actual source files (docx is actually a zip archive of some really complex XML files)

Markdown + Pandoc

Compiles to both MS Word (.docx) and LaTeX (.tex or .pdf with LaTeX as an intermediate step) from a single source file. You can choose the pros or cons of either based on your current need without having to deal with complex processing in either. Additionall for markdown itself:

  • Markdown

    • Pros:
      • very simple to get started in
      • many people already know how to use it (used for formatting on websites - github, reddit, etc.)
      • easy to write and parse (simple syntax)
      • automatic formatting available (prettier)
      • FOSS compilers and plain text source files
      • many editors offer good support
      • bibtex based citations which translate to both Word and LaTeX
    • Cons:
      • cannot be submitted for journals or assigments directly
      • may require you to backport collaborator's changes from docx which wastes time

Goals for this repo:

  1. keep templates as simple as possible
  2. cover all common issues which are not clear in existing templates
  3. explain the syntax using the syntax
  4. maintain maximum compatibility for both Word and LaTeX where possible
  5. never require more than one compilation command
  6. never require/push the use of an external website

Templates

General Template

Goes over the basics for a general purpose document.

PDF output:

pandoc ${inputfile} --filter pandoc-crossref -C -N --highlight-style zenburn -o outputfile.pdf

MS Word output:

pandoc ${inputfile} --filter pandoc-crossref -C --csl ieee.csl -o outputfile.docx

Thesis

Should be looked at in addition to the general_template.md. Requires additional install of pandoc/lua-filters.

PDF output:

pandoc --filter pandoc-crossref --lua-filter=/${some_path}/lua-filters/short-captions/short-captions.lua -C -N --highlight-style zenburn -o outputfile.pdf ${inputfile}

note: You can see my script for this to automatically recompile documents on changes here: https://github.com/liamtimms/bashscripts/blob/master/pdfpreview

See also:

About

Templates + advice for using Markdown in scientific writing.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published