Skip to content
Snippets Groups Projects
Commit 91671b77 authored by BARTHES Nicolas's avatar BARTHES Nicolas
Browse files

modified path for report.pdf

parent 4e8ff26b
No related branches found
No related tags found
No related merge requests found
\begin{thebibliography}{}
\end{thebibliography}
This is BibTeX, Version 0.99d
Capacity: max_strings=200000, hash_size=200000, hash_prime=170003
The top-level auxiliary file: report.aux
Reallocating 'name_of_file' (item size: 1) to 8 items.
The style file: apalike.bst
Reallocating 'name_of_file' (item size: 1) to 9 items.
I found no \citation commands---while reading file report.aux
Database file #1: refs.bib
You've used 0 entries,
1935 wiz_defined-function locations,
471 strings with 3672 characters,
and the built_in function-call counts, 17 in all, are:
= -- 0
> -- 0
< -- 0
+ -- 0
- -- 0
* -- 0
:= -- 7
add.period$ -- 0
call.type$ -- 0
change.case$ -- 0
chr.to.int$ -- 0
cite$ -- 0
duplicate$ -- 0
empty$ -- 1
format.name$ -- 0
if$ -- 1
int.to.chr$ -- 1
int.to.str$ -- 0
missing$ -- 0
newline$ -- 3
num.names$ -- 0
pop$ -- 0
preamble$ -- 1
purify$ -- 0
quote$ -- 0
skip$ -- 1
stack$ -- 0
substring$ -- 0
swap$ -- 0
text.length$ -- 0
text.prefix$ -- 0
top$ -- 0
type$ -- 0
warning$ -- 0
while$ -- 0
width$ -- 0
write$ -- 2
(There was 1 error message)
...@@ -426,23 +426,24 @@ def compile_latex(): ...@@ -426,23 +426,24 @@ def compile_latex():
# path to pdflatex # path to pdflatex
# pdflatex_path = Path("C:/Users/maimouni/AppData/Local/Programs/MiKTeX/miktex/bin/x64/") # pdflatex_path = Path("C:/Users/maimouni/AppData/Local/Programs/MiKTeX/miktex/bin/x64/")
from config.config import pdflatex_path from config.config import pdflatex_path
import os
filename_path = Path("Report/") filename_path = Path("Report/")
filename = 'report.tex' filename = 'report.tex'
# run pdflatex with bibtex compilation (2nd run) # run pdflatex with bibtex compilation (2nd run)
for i in range(4): for i in range(4):
print(i)
if i == 1: if i == 1:
proc = subprocess.Popen([pdflatex_path / 'bibtex.exe', filename[:-4]], cwd = filename_path) proc = subprocess.Popen([pdflatex_path / 'bibtex.exe', filename[:-4]], cwd = filename_path)
proc.communicate() proc.communicate()
else: else:
proc = subprocess.Popen([pdflatex_path / 'pdflatex.exe', filename], cwd = filename_path) proc = subprocess.Popen([pdflatex_path / 'pdflatex.exe', filename], cwd = filename_path)
proc.communicate() proc.communicate()
os.rename(filename_path / 'report.pdf', filename_path / 'figures' / 'report.pdf')
# remove pdflatex compilation files # remove pdflatex compilation files
extensions = ['.log', '.aux', '.bbl', '.blg', '.out'] extensions = ['.log', '.aux', '.bbl', '.blg', '.out', '.tex']
#for ext in extensions: for ext in extensions:
#os.unlink(str(filename_path / filename[:-4]) + ext) os.unlink(str(filename_path / filename[:-4]) + ext)
# open the report # open the report
proc = subprocess.Popen([str(filename[:-4]) + '.pdf'], cwd = filename_path, shell=True) proc = subprocess.Popen([str(filename[:-4]) + '.pdf'], cwd = filename_path / 'figures', shell=True)
proc.communicate() proc.communicate()
import os import os
import zipfile import zipfile
......
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