\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.