chiark / gitweb /
keys.keeper-cards: Fallback plan in case `mdwfonts' doesn't exist.
authorMark Wooding <mdw@distorted.org.uk>
Tue, 10 Jan 2012 00:39:11 +0000 (00:39 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 13 Feb 2012 00:25:30 +0000 (00:25 +0000)
Just don't fiddle with the fonts in that case.

keys.keeper-cards

index 825f6f5..01c1444 100755 (executable)
@@ -101,7 +101,13 @@ cat >&3 <<'EOF'
 \documentclass[a4paper, landscape, 12pt]{article}
 \usepackage[utf8]{inputenc}
 \usepackage[T1]{fontenc}
+EOF
+if kpsewhich mdwfonts.sty >/dev/null; then
+  cat >&3 <<'EOF'
 \usepackage[palatino, helvetica, courier, maths = cmr]{mdwfonts}
+EOF
+fi
+cat >&3 <<'EOF'
 \usepackage{graphicx}
 
 %% Report errors with enough context that we can debug them.