Skip to content

Commit

Permalink
Merge branch 'master' of github.com:Tetragramm/flying-circus-catalog-…
Browse files Browse the repository at this point in the history
…maker
  • Loading branch information
Tetragramm committed Feb 7, 2023
2 parents ca90e7d + d59e7c3 commit 1e51f54
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 1e51f54

Please sign in to comment.