mirror of
https://github.com/MartinThoma/LaTeX-examples.git
synced 2025-04-26 06:48:04 +02:00
Kompilieren
This commit is contained in:
parent
f84385063b
commit
2f22e6f2fc
3 changed files with 1 additions and 1 deletions
Binary file not shown.
|
@ -7,7 +7,7 @@ def get_definitions(filename):
|
||||||
with open(filename) as f:
|
with open(filename) as f:
|
||||||
content = f.read()
|
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)
|
index_pattern = re.compile(r"\\xindex{(?:.*?@)?(.*?)(?:\|.*?)?}", re.UNICODE)
|
||||||
todo_pattern = re.compile(r"\\todo{.*?}", re.UNICODE)
|
todo_pattern = re.compile(r"\\todo{.*?}", re.UNICODE)
|
||||||
definitions = re.findall(pattern, content)
|
definitions = re.findall(pattern, content)
|
||||||
|
|
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue