2
0
Fork 0
mirror of https://github.com/MartinThoma/LaTeX-examples.git synced 2025-04-26 06:48:04 +02:00

Kompilieren

This commit is contained in:
Martin Thoma 2014-02-11 07:11:31 +01:00
parent f84385063b
commit 2f22e6f2fc
3 changed files with 1 additions and 1 deletions

View file

@ -7,7 +7,7 @@ def get_definitions(filename):
with open(filename) as f:
content = f.read()
pattern = re.compile(r"\\begin{definition}(.*?)\\end{definition}", re.DOTALL | re.UNICODE)
pattern = re.compile(r"^\\begin{definition}(.*?)\\end{definition}", re.DOTALL | re.UNICODE)
index_pattern = re.compile(r"\\xindex{(?:.*?@)?(.*?)(?:\|.*?)?}", re.UNICODE)
todo_pattern = re.compile(r"\\todo{.*?}", re.UNICODE)
definitions = re.findall(pattern, content)