Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

13 lines (11 sloc) 0.359 kb
#!/bin/bash
## showpdf | make a pdf presentation (show); stdin->tmp, or file->file
rm /tmp/showpdf.*
cat "${1:--}" | Markdown.pl | mdbeamer.pl > /tmp/showpdf.tex
cd /tmp
pdflatex /tmp/showpdf.tex || return
pdflatex /tmp/showpdf.tex || return
cd -
local out=/tmp/showpdf
[[ -n "$1" ]] && out="${1%.*}" && cp /tmp/showpdf.pdf "$out.pdf"
okular "$out.pdf"
Jump to Line
Something went wrong with that request. Please try again.