Skip to content

Instantly share code, notes, and snippets.

@oncomouse
oncomouse / pandoc.rb
Last active August 29, 2015 14:10
Ruby script to process LaTeX files for conversion to .docx using Pandoc as a transport.
# Usage:
# => ruby pandoc.rb -i <file_name>(.tex) (options for pandoc)
# => minimum options for pandoc: --bibliography=<bibliography_file.bib> --csl=<mla or chicago>.csl
# Installed by running 'gem install bibtex' (may need to append sudo)
require 'bibtex'
default_bibliography = "./transhumanism.bib" # change this to whatever
if ARGV.find_index("-i")
@oncomouse
oncomouse / gist:6238377
Created August 15, 2013 05:00
Portion of a Middleman config.rb file relevant to getting middleman-blog working.
set :markdown_engine, :kramdown
set :markdown, :fenced_code_blocks => true,
:autolink => true,
:smartypants => true,
:footnotes => true,
:superscript => true
helpers do
def javascript_path(file_path)
asset_path(:js, file_path)