Markdown is the most common format for writing on GitHub, and is what I use for all of my own documentation. It also exports to HTML and other convenient formats for reading on mobile devices. However, sometimes you want to export it as a PDF so that you can author scientific papers and export the formats that pre-print servers want.
- 
            
      
        
      
    Star
      
          
          (421)
      
  
You must be signed in to star a gist  - 
              
      
        
      
    Fork
      
          
          (52)
      
  
You must be signed in to fork a gist  
- 
      
 - 
        
Save max-mapper/97190db73ac19fc6c1d9beee1a6e4fc8 to your computer and use it in GitHub Desktop.  
very useful, thanks.
One issue is that the bibtex reference in paper.md does not work.
To get the reference list, please replace the brackets in
(@pizza2000identification)
with square brackets:
[@pizza2000identification].
Thanks for the writeup. Note also that the YAML header also supports an abstract:
title: My Title
abstract: Abstract text goes here.
    To add multiple authors:
author: 
  - "Author 1"
  - "Author 2"
    I would like to know how to convert the citation to the one with a number. eg. Pizza [1] is an understudied yet widely utilized implement for...
On reference:
[1] Pizza, Mariagrazia, Vincenzo Scarlato, Vega Masig- nani, Marzia Monica Giuliani, Beatrice Arico, Maur- izio Comanducci, Gary T Jennings, et al. 2000. “Iden- tification of Vaccine Candidates Against Serogroup B Meningococcus by Whole-Genome Sequencing.” Sci- ence 287 (5459). American Association for the Ad- vancement of Science: 1816–20.
It seems that the pandoc-citeproc has been deprecated. You may want to replace the --filter pandoc-citeproc option with --citeproc
I would like to know how to convert the citation to the one with a number. eg. Pizza [1] is an understudied yet widely utilized implement for... On reference: [1] Pizza, Mariagrazia, Vincenzo Scarlato, Vega Masig- nani, Marzia Monica Giuliani, Beatrice Arico, Maur- izio Comanducci, Gary T Jennings, et al. 2000. “Iden- tification of Vaccine Candidates Against Serogroup B Meningococcus by Whole-Genome Sequencing.” Sci- ence 287 (5459). American Association for the Ad- vancement of Science: 1816–20.
In case somebody found this page in search for an answer for this:
with the --csl={PATH_TO_CSL_FILE} flag. See here. You can download csl files from the Zotero style repository.
If in Debian or any Debian-based linux distro, like Ubuntu, do:
sudo apt-get install pandoc pandoc-citeproc texlive-latex-extra

See also Kieran Healy's https://kieranhealy.org/blog/archives/2014/01/23/plain-text/