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

Add PyProTex header to PyProTex file.

parent dc5cfe0d
...@@ -26,6 +26,14 @@ ...@@ -26,6 +26,14 @@
# #
# $Id: PyProTex,v14.10 $ # $Id: PyProTex,v14.10 $
# #
#BOI
#
# !TITLE: PyProTex
# !AUTHOR: Momme Butensch\xf6n
# !AFFILIATION: Plymouth Marine Laboratory
# !DATE: 27 October 2014
#
#EOI
#BOP #BOP
# #
# !ROUTINE: PyProTex - Translates DAO Prologues to LaTeX # !ROUTINE: PyProTex - Translates DAO Prologues to LaTeX
...@@ -94,7 +102,7 @@ ...@@ -94,7 +102,7 @@
# DAO Office Note 97-11 # DAO Office Note 97-11
# #
# !AUTHOR: # !AUTHOR:
# ! Momme Butensch\xf6n # Momme Butensch\xf6n
# #
# !REVISION HISTORY: # !REVISION HISTORY:
# #
...@@ -389,7 +397,7 @@ class PyProTex: ...@@ -389,7 +397,7 @@ class PyProTex:
# ------------------------------------------- # -------------------------------------------
if len(Fld)>1 and Fld[1] == '!TITLE:': if len(Fld)>1 and Fld[1] == '!TITLE:':
if self.intro: if self.intro:
title = "{}".format(" ".join(*Fld[2])) self.title = "{}".format(" ".join(*Fld[2]))
self.tpage = 1 self.tpage = 1
return return
...@@ -397,7 +405,7 @@ class PyProTex: ...@@ -397,7 +405,7 @@ class PyProTex:
# ------------------------------------------- # -------------------------------------------
if len(Fld)>1 and Fld[1] == '!AUTHOR:': if len(Fld)>1 and Fld[1] == '!AUTHOR:':
if self.intro: if self.intro:
author = Fld[2] self.author = "{}".format(" ".join(*Fld[2:]))
self.tpage = 1 self.tpage = 1
return return
...@@ -405,7 +413,7 @@ class PyProTex: ...@@ -405,7 +413,7 @@ class PyProTex:
# ------------------------------------------- # -------------------------------------------
if len(Fld)>1 and Fld[1] == '!AFFILIATION:': if len(Fld)>1 and Fld[1] == '!AFFILIATION:':
if self.intro: if self.intro:
affiliation = "{}".format(" ".join(*Fld[2])) self.affiliation = "{}".format(" ".join(*Fld[2:]))
self.tpage = 1 self.tpage = 1
return return
...@@ -413,7 +421,7 @@ class PyProTex: ...@@ -413,7 +421,7 @@ class PyProTex:
# ------------------------------------------- # -------------------------------------------
if len(Fld)>1 and Fld[1] == '!DATE:': if len(Fld)>1 and Fld[1] == '!DATE:':
if self.intro: if self.intro:
self.date="{}".format(" ".join(*Fld[2])) self.date="{}".format(" ".join(Fld[2]))
self.tpage = 1 self.tpage = 1
return return
...@@ -999,7 +1007,7 @@ class PyProTex: ...@@ -999,7 +1007,7 @@ class PyProTex:
if self.begdoc == 0: if self.begdoc == 0:
if self.tpage: if self.tpage:
self.Str+="\n\\title{@title}\n" 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+="\\date{{{}}}\n".format(self.date)
self.Str+="\\begin{document}\n" self.Str+="\\begin{document}\n"
if self.tpage: 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