Skip to content
Snippets Groups Projects
Commit 943b0192 authored by tuhe's avatar tuhe
Browse files

updates

parent a9d27a51
No related branches found
No related tags found
No related merge requests found
Pipeline #32448 failed
Metadata-Version: 2.1 Metadata-Version: 2.1
Name: beamer-slider Name: beamer-slider
Version: 0.1.26.6 Version: 0.1.26.8
Summary: Software to create inkscape overlays in Beamer Summary: Software to create inkscape overlays in Beamer
Home-page: https://lab.compute.dtu.dk/tuhe/slider Home-page: https://lab.compute.dtu.dk/tuhe/slider
Author: Tue Herlau Author: Tue Herlau
...@@ -13,6 +13,18 @@ Classifier: Operating System :: OS Independent ...@@ -13,6 +13,18 @@ Classifier: Operating System :: OS Independent
Requires-Python: >=3.8 Requires-Python: >=3.8
Description-Content-Type: text/markdown Description-Content-Type: text/markdown
License-File: LICENSE License-File: LICENSE
Requires-Dist: Jinja2
Requires-Dist: numpy
Requires-Dist: chardet
Requires-Dist: scipy
Requires-Dist: seaborn
Requires-Dist: lxml
Requires-Dist: matplotlib
Requires-Dist: pylatexenc
Requires-Dist: beautifulsoup4
Requires-Dist: PyPDF2
Requires-Dist: clize
Requires-Dist: click
# Slider # Slider
......
...@@ -56,7 +56,7 @@ def pdf2png(fin, fout=None, scale_to=None, page_to_convert=None, verbose=False): ...@@ -56,7 +56,7 @@ def pdf2png(fin, fout=None, scale_to=None, page_to_convert=None, verbose=False):
fout = fin[:-4] + ".png" fout = fin[:-4] + ".png"
fout = fout[:-4] fout = fout[:-4]
cmd = f"pdftocairo -png -singlefile {fin} {fout}" cmd = f"pdftocairo -png -singlefile '{fin}' '{fout}'"
if page_to_convert is not None: if page_to_convert is not None:
cmd += f" -f {page_to_convert} -l {page_to_convert}" cmd += f" -f {page_to_convert} -l {page_to_convert}"
......
...@@ -12,10 +12,19 @@ def latexmk(texfile, pdf_out=None,shell=True,cleanup=False, Linux=False): ...@@ -12,10 +12,19 @@ def latexmk(texfile, pdf_out=None,shell=True,cleanup=False, Linux=False):
os.chdir(dname) os.chdir(dname)
texfile = os.path.basename(texfile) texfile = os.path.basename(texfile)
CMD = "latexmk -f -g -pdf -shell-escape -interaction=nonstopmode " + texfile CMD = "latexmk -f -g -pdf -shell-escape -interaction=nonstopmode " + texfile
print("Running LaTeX command>> " + CMD) print("[slider] Running LaTeX command> " + CMD)
try:
s = subprocess.check_output(CMD, shell=True) s = subprocess.check_output(CMD, shell=True)
# s = subprocess.check_output(CMD, shell=True) # try to run it twice to compile bibtex except Exception as e:
print("[slider] " + "-"*50)
print("[slider] Latexmk encountered problem in:", CMD)
print("[slider] Log file is")
with open( f"{texfile[:-4]}.log", 'r') as f:
log = f.read()
print(log)
print("[slider] " + "-"*50)
print("[slider] END OF LOG")
raise e
if pdf_out: if pdf_out:
shutil.copyfile(texfile[:-4]+".pdf", pdf_out) shutil.copyfile(texfile[:-4]+".pdf", pdf_out)
......
__version__ = "0.1.26.6" __version__ = "0.1.26.8"
\ No newline at end of file \ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment