From 758ace4ffe7c18da3429420e96d99faa59536cd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler?= Date: Thu, 16 Sep 2021 22:55:37 +0200 Subject: [PATCH] change \lecture command and corresponding regex --- scripts/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/config.py b/scripts/config.py index 5768ac7..94e3ef3 100644 --- a/scripts/config.py +++ b/scripts/config.py @@ -19,6 +19,6 @@ DEFAULT_MASTER_FILE_NAME = 'master.tex' MAX_LEN = 40 LECTURE_START_MARKER = 'start lectures' LECTURE_END_MARKER = 'end lectures' -DEFAULT_NEW_LECTURE_HEADER = r'\lecture{{{number}}}{{{date}}}{{{title}}}' -DEFAULT_LECTURE_SEARCH_REGEX = r'lecture{(.*?)}{(.*?)}{(.*)}' +DEFAULT_NEW_LECTURE_HEADER = r'\lecture[]{{{date}}}{{{title}}}' +DEFAULT_LECTURE_SEARCH_REGEX = r'lecture.*({\d*})?{(.*?)}{(.*)}' DEFAULT_IMPORT_INDENTATION = 4