Coder Social home page Coder Social logo

pandoc-journal-templates's Introduction

#Pandoc templates for the major statistics journals

##About Write your statistics and biostatistics in markdown so that you can focus on the content, not the formatting. These templates use pandoc to convert the markdown into latex, and then the appropriate journal template is applied. Work on the content and these templates will get you 99% of the way to submission. Need to submit to a different journal later? No problem, just apply a different template. This is my effort to rid the statistics world of the need to wrestle with latex for a journal submission.

##Usage

Dependencies

Optional

For evaluating R code

Getting started

Clone or download this repository to your working computer. Then, locate the folder corresponding to the journal you wish to submit to. Use the following table to find your journal. Can't find your journal? Request it here.

Folder name Journal(s) Link to style guide
amstat JASA, TAS, JBES, JCGS, SBP, Technometrics amstat
biometrical-journal Biometrical Journal biometrical-journal
biometrics Biometrics biometrics
biometrika Biometrika biometrika
biostatistics Biostatistics biostatistics
ims AOAS, AOP, AAP, AOS, SSY ims
jss Journal of Statistical Software jss
stats-in-med Statistics in Medicine statmed

Using the template

Copy the entire contents of the appropriate folder to your paper's working directory. If you are working on a paper called mypaper and it is located in ~/Papers/October/ and you want to submit to Biostatistics, then copy the contents of the biostatistics folder to ~/Papers/October/. The folders contain everything necessary to compile a markdown document into the correct Latex format.

Each folder comes with an example Rmarkdown file called example.Rmd and its associated bib file example.bib. The important metadata must be supplied in the yaml front-matter of the markdown document. For example, the author, title, bibliography, and abstract are defined there:

---
title: Pandoc templates for common statistics journals
author:
- first: Michael 
  last: Sachs
  affilnum: a,b
  email: [email protected]
  ekey: e1
- first: Homer
  last: Simpson
  affilnum: b
  email: [email protected]
  ekey: e2
affiliation:
- name: National Cancer Institute
  key: a
- name: Moe's Tavern
  key: b
date: October 2014
year: 2014
abstract: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce non ex metus. Etiam tempor nisl at lorem facilisis, vel malesuada est mollis. Pellentesque nunc lacus, porttitor in mollis quis, pellentesque quis sem. Nunc consequat, elit vel tincidunt tincidunt, urna arcu efficitur turpis, ac mollis turpis velit vitae libero. Aenean mauris lacus, blandit a nulla a, scelerisque lobortis dolor. Etiam viverra, nibh vehicula vehicula congue, nisl dui mattis risus, quis convallis massa nisi quis elit. Maecenas gravida nunc nec dignissim consequat. Fusce scelerisque magna ut odio ullamcorper dapibus. Vivamus et dignissim nunc.'
keywords: In hac; habitasse; platea; dictumst
bibliography: example
...

Each journal has their own requirements for front-matter. For details, see the Wiki, or look at the example headers.

When you are ready to compile, it is simple from the command line:

make example.pdf

If you have an Rmd file, it will automatically be processed by knitr. If you have just an .md file, no problem, it will be processed directly. To save the intermediate tex file

make example.pdf example.tex

You may need to edit the tex by hand, but these templates will get you 99% of the way to submission.

##License These materials are public domain and made available with a Creative Commons CC0 1.0 Universal dedication. In short, I waive all rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute, and perform the work, even for commercial purposes, all without asking permission. I make no warranties about the work, and disclaim liability for all uses of the work, to the fullest extent permitted by applicable law.

pandoc-journal-templates's People

Contributors

sachsmc avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.