Added some more options to the export GUI and the ability to skip scene and section titles

This commit is contained in:
Veronica K. B. Olsen
2019-10-28 20:36:38 +01:00
parent 0bb5a37414
commit f1e8f2e321
8 changed files with 106 additions and 55 deletions
+1
View File
@@ -37,6 +37,7 @@ class LaTeXFile(TextFile):
self.outFile = open(filePath,mode="wt+",encoding="utf8")
self.outFile.write("\\documentclass[12pt]{report}\n")
self.outFile.write("\\usepackage[utf8]{inputenc}\n")
self.outFile.write("\\usepackage[T1]{fontenc}\n")
self.outFile.write("\n")
self.outFile.write("\\begin{document}\n")
except Exception as e:
+7 -7
View File
@@ -39,7 +39,7 @@ class TextFile():
self.makeAlert = self.theParent.makeAlert
self.setComments(False)
self.setMeta(False)
self.setKeywords(False)
self.setWordWrap(80)
return
@@ -60,8 +60,8 @@ class TextFile():
self.theConv.setComments(doComments)
return
def setMeta(self, doMeta):
self.theConv.setCommands(doMeta)
def setKeywords(self, doKeywords):
self.theConv.setKeywords(doKeywords)
return
def setWordWrap(self, wordWrap):
@@ -83,12 +83,12 @@ class TextFile():
self.theConv.setUnNumberedFormat(fmtUnNum)
return
def setSceneFormat(self, fmtScene):
self.theConv.setSceneFormat(fmtScene)
def setSceneFormat(self, fmtScene, hideScene):
self.theConv.setSceneFormat(fmtScene, hideScene)
return
def setSectionFormat(self, fmtSection):
self.theConv.setSectionFormat(fmtSection)
def setSectionFormat(self, fmtSection, hideSection):
self.theConv.setSectionFormat(fmtSection, hideSection)
return
##