Skip to content

Commit

Permalink
Merge pull request #1 from Tetragramm/NewModelTemplate
Browse files Browse the repository at this point in the history
New model template
  • Loading branch information
Tetragramm authored Feb 7, 2023
2 parents 740ea99 + 73b8ca9 commit d59e7c3
Show file tree
Hide file tree
Showing 13 changed files with 711 additions and 810 deletions.
24 changes: 10 additions & 14 deletions Compile.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
import sys
import re
import os
if os.path.isfile('./AuthorInfo.text'):
with open('./AuthorInfo.text', 'r', encoding='utf-8') as AI:
Title = AI.readline()
Title = Title.strip()
if os.path.isfile(Title+'.tex'):
os.system(
f'lualatex -synctex=1 -interaction=nonstopmode -file-line-error -pdf "{Title}.tex"')
os.system(
f'lualatex -synctex=1 -interaction=nonstopmode -file-line-error -pdf "{Title}.tex"')
os.system(
f'lualatex -synctex=1 -interaction=nonstopmode -file-line-error -pdf "{Title}.tex"')
else:
print('No LaTeX file matching saved Title found.')

Title = 'Main'
if os.path.isfile(Title+'.tex'):
os.system(
f'lualatex -synctex=1 -interaction=nonstopmode -file-line-error -pdf "{Title}.tex"')
os.system(
f'lualatex -synctex=1 -interaction=nonstopmode -file-line-error -pdf "{Title}.tex"')
os.system(
f'lualatex -synctex=1 -interaction=nonstopmode -file-line-error -pdf "{Title}.tex"')
else:
print('No saved AuthorInfo.text found. Cannot compile.')
print('No LaTeX file matching Title found.')
231 changes: 0 additions & 231 deletions Create.py

This file was deleted.

Loading

0 comments on commit d59e7c3

Please sign in to comment.