adjust counter file for build directories
This commit is contained in:
parent
6d7e96f43b
commit
79d7e17b5f
1 changed files with 4 additions and 1 deletions
|
@ -63,8 +63,11 @@ class Notes:
|
|||
if not setcounters:
|
||||
return ''
|
||||
if lec - 1 not in lecture_list and self.full_file:
|
||||
cnt_file = self.full_file.with_suffix(DEFAULT_LATEX_COUNTER_AUX_FILE_EXTENSION)
|
||||
if not cnt_file.exists():
|
||||
cnt_file = self.full_file.parent / 'build' / cnt_file.name
|
||||
return dict2setcounters(parse_counters(
|
||||
self.full_file.with_suffix(DEFAULT_LATEX_COUNTER_AUX_FILE_EXTENSION),
|
||||
cnt_file,
|
||||
{'lecture': lec}
|
||||
))
|
||||
return ''
|
||||
|
|
Loading…
Reference in a new issue