aboutsummaryrefslogtreecommitdiff
path: root/markdown2latex
blob: a93aca7cd0d4b5f9e47c7617c607dc95930aabbc (plain)
1
2
3
4
5
6
7
#!/bin/sh -e
# converts markdown to latex
[ -n "$(which pandoc)" ] || {
    echo >&2 "You need 'pandoc' to use this program!"
    exit 1
}
iconv -t utf-8 $* | pandoc -w latex -s | iconv -f utf-8