46 lines
1.1 KiB
Python
46 lines
1.1 KiB
Python
|
|
custom ="Custom"
|
|
topleft = "Top Left"
|
|
topcenter = "Top Center"
|
|
topright = "Top Right"
|
|
top = [topleft, topcenter, topright]
|
|
botleft = "Bottom Left"
|
|
botcenter = "Bottom Center"
|
|
botright = "Bottom Right"
|
|
bot = [botleft, botcenter, botright]
|
|
positionlist = [topleft, topcenter, topright, botleft, botcenter, botright, custom]
|
|
|
|
tex_size={}
|
|
size_8 = "-2"
|
|
tex_size[size_8] = "\\footnotesize"
|
|
size_9 = "-1"
|
|
tex_size[size_9] = "\\small"
|
|
size_norm = "Normal"
|
|
tex_size[size_norm] = "\\normalsize"
|
|
size_1 = "+1"
|
|
tex_size[size_1] = "\\large"
|
|
size_2 = "+2"
|
|
tex_size[size_2] = "\\Large"
|
|
size_3 = "+3"
|
|
tex_size[size_3] = "\\LARGE"
|
|
size_4 = "+4"
|
|
tex_size[size_4] = "\\huge"
|
|
sizelist = [size_8, size_9, size_norm, size_1, size_2, size_3, size_4]
|
|
|
|
tex_entete = """\\documentclass[12pt]{report}
|
|
|
|
\\usepackage[utf8]{inputenc}
|
|
\\usepackage[T1]{fontenc}
|
|
\\usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm,includeheadfoot]{geometry}
|
|
\\usepackage{lastpage}
|
|
\\usepackage[absolute]{textpos}
|
|
|
|
\\usepackage{fancyhdr}
|
|
\\pagestyle{fancy}
|
|
|
|
\\setlength{\\TPHorizModule}{1cm}
|
|
\\setlength{\\TPVertModule}{1cm}
|
|
\\begin{document}
|
|
"""
|
|
tex_end = "\n\\end{document}"
|