diff --git a/xml2xslt.xsl b/xml2xslt.xsl
index be4131d..fd7668b 100644
--- a/xml2xslt.xsl
+++ b/xml2xslt.xsl
@@ -47,8 +47,15 @@
no
+
.
+
+ .
+
+
+ paper_init
+
@@ -367,6 +374,11 @@
\PassOptionsToClass{\LaTeXOptions}{\DocumentClass}
\documentclass{\DocumentClass}
+% Set up paper variables, if applicable.
+\makeatletter
+\@ifpackageloaded{lecturecommon}{\input{/}}
+\makeatother
+
% Avoid option clash if document class already loaded it.
\makeatletter
\@ifpackageloaded{geometry}{}{\usepackage[margin=1in]{geometry}}