Commit 97d6b4d4 authored by Momme Butenschoen's avatar Momme Butenschoen

Add PyProTex header to PyProTex file.

parent dc5cfe0d
......@@ -26,6 +26,14 @@
#
# $Id: PyProTex,v14.10 $
#
#BOI
#
# !TITLE: PyProTex
# !AUTHOR: Momme Butensch\xf6n
# !AFFILIATION: Plymouth Marine Laboratory
# !DATE: 27 October 2014
#
#EOI
#BOP
#
# !ROUTINE: PyProTex - Translates DAO Prologues to LaTeX
......@@ -94,7 +102,7 @@
# DAO Office Note 97-11
#
# !AUTHOR:
# ! Momme Butensch\xf6n
# Momme Butensch\xf6n
#
# !REVISION HISTORY:
#
......@@ -389,7 +397,7 @@ class PyProTex:
# -------------------------------------------
if len(Fld)>1 and Fld[1] == '!TITLE:':
if self.intro:
title = "{}".format(" ".join(*Fld[2]))
self.title = "{}".format(" ".join(*Fld[2]))
self.tpage = 1
return
......@@ -397,7 +405,7 @@ class PyProTex:
# -------------------------------------------
if len(Fld)>1 and Fld[1] == '!AUTHOR:':
if self.intro:
author = Fld[2]
self.author = "{}".format(" ".join(*Fld[2:]))
self.tpage = 1
return
......@@ -405,7 +413,7 @@ class PyProTex:
# -------------------------------------------
if len(Fld)>1 and Fld[1] == '!AFFILIATION:':
if self.intro:
affiliation = "{}".format(" ".join(*Fld[2]))
self.affiliation = "{}".format(" ".join(*Fld[2:]))
self.tpage = 1
return
......@@ -413,7 +421,7 @@ class PyProTex:
# -------------------------------------------
if len(Fld)>1 and Fld[1] == '!DATE:':
if self.intro:
self.date="{}".format(" ".join(*Fld[2]))
self.date="{}".format(" ".join(Fld[2]))
self.tpage = 1
return
......@@ -999,7 +1007,7 @@ class PyProTex:
if self.begdoc == 0:
if self.tpage:
self.Str+="\n\\title{@title}\n"
self.Str+="\\author{\\sc {}}\\\\ {\\em {}}}\n".format(self.author,self.affiliation)
self.Str+="\\author{{\sc {}}}\\\\ {{\\em {}}}\n".format(self.author,self.affiliation)
self.Str+="\\date{{{}}}\n".format(self.date)
self.Str+="\\begin{document}\n"
if self.tpage:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment