Convert chemdb from CherryPy to a Django app (easier database management).
[chemdb.git] / chemdb / templates / chemdb / doc / base.tex
similarity index 67%
rename from template/doc/door_template.tex
rename to chemdb/templates/chemdb/doc/base.tex
index 45e4a25847af35e6637238fb96ee58df3a7c6b7c..614f9bbc27ce7b979100b8744f4f6b866e6ef2ba 100644 (file)
 % You should have received a copy of the GNU General Public License
 % along with ChemDB.  If not, see <http://www.gnu.org/licenses/>.
 
-% Paper for posting on the lab door
-% as per 
-%   http://www.drexelsafetyandhealth.com/lab-chem.htm#chpe7
-% and 
-%   href="http://www.drexelsafetyandhealth.com/lab-chem.htm#chpe10
+\documentclass[letterpaper]{article}
 
-% setup the margins
+{% block comment %}{% endblock %}
+
+% setup the margins,
 \topmargin -0.5in
 \headheight 0.0in
 \headsep 0.0in
-\textheight 10in
+\textheight 9.5in % leave a bit of extra room for page numbers
 \oddsidemargin -0.5in
 \textwidth 7.5in
 
-\usepackage{nfpa_704}   % \firediamond
-
 % define a vertical strut for table spacing
 \newcommand{\Tstrut}{\rule{0pt}{2.6ex}}
 \newcommand{\headfont}{\Large}
 \newcommand{\contfont}{\large}
 \newcommand{\vspacer}{\vskip 12pt}
 
-%-----------------------end preamble-------------------------
-
-\begin{document}
-\thispagestyle{empty} % suppress page numbering
-\sffamily % switch to sans-serif
-
-\begin{center}
-
-\input{door_data}
-
-\vfill
+\usepackage{nfpa_704}   % \firediamond
 
-{\headfont Contact}
-\vskip 10pt
-\contfont
-\input{contact}
-\vspacer
+{% block preamble %}{% endblock %}
 
-Generated \today\ by ChemDB.
+\begin{document}
 
-\end{center}
+{% block document %}{% endblock %}
 
 \end{document}