Skip to content

Instantly share code, notes, and snippets.

@dmerand
dmerand / doku2tex.sh
Created April 18, 2012 15:30
BASH/AWK/SED script to convert Dokuwiki to Latex format. Flawed in many ways, but functional
#! /bin/sh
#doku-tex - take a dokuwiki/notational velocty syntax file, and convert it to latex
#author: donald l. merand
echo "\documentclass{article}"
echo "\pagestyle{empty}"
echo "\setlength{\parindent}{0pt}"
echo "\setlength{\parskip}{1ex plus 0.5ex minus 0.2ex}"
echo "\usepackage{ulem}"
echo "\usepackage[pdftex]{hyperref}"
echo "\hypersetup{colorlinks=true}"