Loading test/test-files.py +2 −2 Changes for test/test-files.py: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -35,7 +35,7 @@ def comment_line(filename, pattern, action): if action: line = f"% {line}" else: line = re.sub("^[%\s]+", "", line) line = re.sub(r"^[%\s]+", "", line) f2.write(line) print(line) else: Loading Loading @@ -118,7 +118,7 @@ if __name__ == "__main__": if not args.undo: comment_line(filename, "{natbib}", True) comment_line(filename, "bibliographystyle{sustechthesis-numeric}", True) comment_line(filename, "gb7714-2015,.*{biblatex}", False) comment_line(filename, r"style=gb7714-2015,gbalign=left\]{biblatex}", False) comment_line(filename, "addbibresource{ref/refs.bib}", False) elif args.recipe in REPORT_TYPES: # 4: progress, 5: proposal, 6: practice Loading test/test.sh +2 −0 Changes for test/test.sh: 2 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -18,6 +18,8 @@ cp "$RT_DIR/sustechthesis-example.pdf" "$RT_DIR/public-test/sustechthesis-exampl python3 "$RT_DIR/test/test-files.py" --recipe 2 --undo # 生成biber预览 # BibTeX 生成的 .bbl 会导致 biblatex 报错 rm -f "$RT_DIR/sustechthesis-example.bbl" python3 "$RT_DIR/test/test-files.py" --recipe 3 make cp "$RT_DIR/sustechthesis-example.pdf" "$RT_DIR/public-test/sustechthesis-example-biber.pdf" Loading Loading
test/test-files.py +2 −2 Changes for test/test-files.py: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -35,7 +35,7 @@ def comment_line(filename, pattern, action): if action: line = f"% {line}" else: line = re.sub("^[%\s]+", "", line) line = re.sub(r"^[%\s]+", "", line) f2.write(line) print(line) else: Loading Loading @@ -118,7 +118,7 @@ if __name__ == "__main__": if not args.undo: comment_line(filename, "{natbib}", True) comment_line(filename, "bibliographystyle{sustechthesis-numeric}", True) comment_line(filename, "gb7714-2015,.*{biblatex}", False) comment_line(filename, r"style=gb7714-2015,gbalign=left\]{biblatex}", False) comment_line(filename, "addbibresource{ref/refs.bib}", False) elif args.recipe in REPORT_TYPES: # 4: progress, 5: proposal, 6: practice Loading
test/test.sh +2 −0 Changes for test/test.sh: 2 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -18,6 +18,8 @@ cp "$RT_DIR/sustechthesis-example.pdf" "$RT_DIR/public-test/sustechthesis-exampl python3 "$RT_DIR/test/test-files.py" --recipe 2 --undo # 生成biber预览 # BibTeX 生成的 .bbl 会导致 biblatex 报错 rm -f "$RT_DIR/sustechthesis-example.bbl" python3 "$RT_DIR/test/test-files.py" --recipe 3 make cp "$RT_DIR/sustechthesis-example.pdf" "$RT_DIR/public-test/sustechthesis-example-biber.pdf" Loading