-
Notifications
You must be signed in to change notification settings - Fork 0
/
worddoc_to_pdf.ps1
19 lines (17 loc) · 929 Bytes
/
worddoc_to_pdf.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# create .docx -> .tex
. .\worddoc_to_tex.ps1
##############################
## build final pdf-document from .tex
Write-Host "Creating pdf"
# bibtex.exe texbuildfiles/"BPM_sim_Draft" -include-directory=texbuildfiles
bibtex.exe texbuildfiles/$paper_name -include-directory=texbuildfiles
Write-Host "Bibliography created"
# pdflatex.exe -synctex=1 -interaction=nonstopmode --aux-directory=texbuildfiles $output_filename_tex
# pdflatex.exe -synctex=1 -interaction=nonstopmode --aux-directory=texbuildfiles $output_filename_tex
pdflatex.exe -synctex=1 -interaction=nonstopmode --aux-directory=texbuildfiles --output-directory=texbuildfiles $output_filename_tex
$output_fold_temp = $Folder_path + 'texbuildfiles\' + $output_filename_pdf #
Write-Host "pdf created"
Write-Host "Moving $output_fold_temp"
Write-Host "to $Folder_path"
Move-Item -Path $output_fold_temp -Destination $Folder_path -Force
Invoke-Item $output_filename_pdf