Skip to content
Snippets Groups Projects
Unverified Commit 536b56cb authored by Moritz Aurel Pascal Schubotz's avatar Moritz Aurel Pascal Schubotz
Browse files

Test create issue on undefined reference

parent 3f11677c
No related branches found
No related tags found
No related merge requests found
...@@ -12,5 +12,6 @@ mincitenames=2, ...@@ -12,5 +12,6 @@ mincitenames=2,
This document is supposed to use \verb \nocite{*} \verb to cite all bibtex entries. This document is supposed to use \verb \nocite{*} \verb to cite all bibtex entries.
However, currently some bibtex entries simply do not work. Thus only selected bibtex entries are printed. However, currently some bibtex entries simply do not work. Thus only selected bibtex entries are printed.
\nocite{*} \nocite{*}
\cite{undefinedReference}
\printbibliography%[keyword=mathml] \printbibliography%[keyword=mathml]
\end{document} \end{document}
...@@ -5,3 +5,4 @@ cd src/tex ...@@ -5,3 +5,4 @@ cd src/tex
latexmk latexmk
cp allRefs.pdf ../../main.pdf cp allRefs.pdf ../../main.pdf
cd ../.. cd ../..
python3 support/issue.sh
...@@ -28,7 +28,7 @@ else: ...@@ -28,7 +28,7 @@ else:
if __name__ == '__main__': if __name__ == '__main__':
try: try:
logfilename = '../src/tex/allRefs.log' logfilename = 'src/tex/allRefs.log'
if len(sys.argv) == 3: if len(sys.argv) == 3:
extra_file_ext = sys.argv[2].split(" ") extra_file_ext = sys.argv[2].split(" ")
data = open(logfilename, 'rb').read() data = open(logfilename, 'rb').read()
...@@ -46,14 +46,14 @@ if __name__ == '__main__': ...@@ -46,14 +46,14 @@ if __name__ == '__main__':
for warn in warnings: for warn in warnings:
matchObj = re.match( r'(.*?).tex:(\d+): Package natbib Warning: Citation `(.*?)\' on page (\d+) undefined on input line (\d+).', warn, re.M|re.I) matchObj = re.match( r'(.*?).tex:(\d+): Package natbib Warning: Citation `(.*?)\' on page (\d+) undefined on input line (\d+).', warn, re.M|re.I)
if matchObj: if matchObj:
label = "\n- [ ] [" + matchObj.group(3) + "](https://github.com/usnistgov/DRMF/blob/drmf/" + matchObj.group(1) + ".tex#L" + matchObj.group(2) + ")" label = "\n- [ ] [" + matchObj.group(3) + "](https://github.com/ag-gipp/bib/blob/src/tex/" + matchObj.group(1) + ".tex#L" + matchObj.group(2) + ")"
if (lastfile != matchObj.group(1) ): if (lastfile != matchObj.group(1) ):
issue_content += "\n## " + matchObj.group(1) + " \n" issue_content += "\n## " + matchObj.group(1) + " \n"
lastfile = matchObj.group(1); lastfile = matchObj.group(1);
issue_content += label issue_content += label
unrefs[matchObj.group(3)] = label unrefs[matchObj.group(3)] = label
# od = collections.OrderedDict(sorted(unrefs.items())) # od = collections.OrderedDict(sorted(unrefs.items()))
if token: if (token and issue_content):
g = Github(token) g = Github(token)
repo = g.get_repo("ag-gipp/bib") repo = g.get_repo("ag-gipp/bib")
repo.create_issue("Issue title", issue_content) repo.create_issue("Issue title", issue_content)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment