diff --git a/example/latex/index.log b/example/latex/index.log index a35abea4de70233cf55026b89d5e69b26cda2175..c46fef83eb9ad8250beaf237e925c3fb5b026a18 100644 --- a/example/latex/index.log +++ b/example/latex/index.log @@ -1,4 +1,4 @@ -This is pdfTeX, Version 3.141592653-2.6-1.40.23 (MiKTeX 21.8) (preloaded format=pdflatex 2021.9.3) 4 SEP 2021 21:25 +This is pdfTeX, Version 3.141592653-2.6-1.40.23 (MiKTeX 21.8) (preloaded format=pdflatex 2021.9.3) 5 SEP 2021 00:02 entering extended mode **./index.tex (index.tex @@ -967,14 +967,14 @@ File: umsb.fd 2013/01/14 v3.01 AMS symbols B <br.pdf, id=15, 279.0425pt x 200.75pt> File: br.pdf Graphic file (type pdf) <use br.pdf> -Package pdftex.def Info: br.pdf used on input line 53. +Package pdftex.def Info: br.pdf used on input line 52. (pdftex.def) Requested size: 312.00119pt x 224.4678pt. (index.bbl) [1{C:/Users/tuhe/AppData/Local/MiKTeX/pdftex/config/pdftex.map}pdf TeX warning (ext4): destination with the same identifier (name{figure.1}) has b een already used, duplicate ignored <argument> ...shipout:D \box_use:N \l_shipout_box \__shipout_drop_firstpage_... -l.60 \end{document} +l.59 \end{document} <./br.pdf>] (index.aux) @@ -984,7 +984,7 @@ Package rerunfilecheck Info: File `index.out' has not changed. Here is how much of TeX's memory you used: 26046 strings out of 478927 486761 string characters out of 2862359 - 824814 words of memory out of 3000000 + 824811 words of memory out of 3000000 43413 multiletter control sequences out of 15000+600000 410343 words of font info for 54 fonts, out of 8000000 for 9000 1141 hyphenation exceptions out of 8191 @@ -992,7 +992,7 @@ Here is how much of TeX's memory you used: <C:/Program Files/MiKTeX/fonts/type1/public/amsfonts/cm/cmbx12.pfb><C:/Progra m Files/MiKTeX/fonts/type1/public/amsfonts/cm/cmr12.pfb><C:/Program Files/MiKTe X/fonts/type1/public/amsfonts/cm/cmti12.pfb> -Output written on index.pdf (1 page, 71031 bytes). +Output written on index.pdf (1 page, 71029 bytes). PDF statistics: 86 PDF objects out of 1000 (max. 8388607) 9 named destinations out of 1000 (max. 500000) diff --git a/example/latex/index.pdf b/example/latex/index.pdf index 00ab4412307a86e459bf1528751a46cda41d313f..ffc7106460a618b1d9d802936c7f2f22a7352bff 100644 Binary files a/example/latex/index.pdf and b/example/latex/index.pdf differ diff --git a/example/latex/index.synctex.gz b/example/latex/index.synctex.gz index 7b8a1d1e7388c8f21f2f042b94ca1b1b5db253f7..77c8ae615125cdff47fa2bd6cbd0b8751aa855b7 100644 Binary files a/example/latex/index.synctex.gz and b/example/latex/index.synctex.gz differ diff --git a/example/latex/index.tex b/example/latex/index.tex index 4a08b20fbaeeb3bce1e1abdae3353d1aa32e7238..62a5f479f8ec9b70d7ed91eedc263b550638799d 100644 --- a/example/latex/index.tex +++ b/example/latex/index.tex @@ -43,10 +43,10 @@ \begin{document} -\section{First section}\label{sec1}. +\section{First section}\label{sec1} Math is hard \cite{bertsekasII,rosolia2018data,herlau} as can also be seen from \cref{eq1} and from \cref{fig1}. \begin{equation} -2+2 = 4 \label{eq1} + 2+2 = 4 \label{eq1} \end{equation} \begin{figure}\centering \includegraphics[width=.8\linewidth]{br}\caption{A figure}\label{fig1} diff --git a/setup.py b/setup.py index 9dc3229562b243285a10780579f46387cd7ab24c..1b4a66c77fd7292e57110929d94090ad19529377 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ with open("README.md", "r", encoding="utf-8") as fh: setuptools.setup( name="codesnipper", - version="0.0.1", + version="0.0.2", author="Tue Herlau", author_email="tuhe@dtu.dk", description="A lightweight framework for censoring student solutions files and extracting code + output", @@ -33,5 +33,5 @@ setuptools.setup( package_dir={"": "src"}, packages=setuptools.find_packages(where="src"), python_requires=">=3.8", - install_requires=pkg_resources.parse_requirements('requirements.txt'), + install_requires=['pexpect', 'wexpect', 'pybtex'], ) diff --git a/src/snipper/citations.py b/src/snipper/citations.py index 798900f8eac5eb3f8575a187465e44a762ce5c31..786c02b65d00d7291a1831f5063e9bdc179170e8 100644 --- a/src/snipper/citations.py +++ b/src/snipper/citations.py @@ -1,6 +1,6 @@ import os import io -from coursebox.core.info_paths import get_paths +# from coursebox.core.info_paths import get_paths from pybtex import plugin from pybtex.database.input import bibtex @@ -204,7 +204,8 @@ def get_references(bibfile, gi): def parse_aux(auxfile, bibtex=None): - paths = get_paths() + # paths = get_paths() + paths = {} auxfile = os.path.join(paths['02450public'], auxfile) if not os.path.exists(auxfile): print(auxfile)