Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
PARTIES
publications
Minimal Scheduling
Commits
1d87b090
Commit
1d87b090
authored
Jul 21, 2020
by
Jaime Arias
Browse files
add script to generate figures
parent
5d226d8c
Changes
1
Hide whitespace changes
Inline
Side-by-side
results/generate_figures.sh
0 → 100755
View file @
1d87b090
#!/usr/bin/env bash
function
tex-pdf
{
pdflatex
-halt-on-error
-interaction
=
nonstopmode
$1
>
$1
.txt
grep
'^!.*'
--color
=
always
$1
.txt
rm
$1
.txt
}
TEX_FILE
=
`
find
.
-type
f
\(
-iname
"*.tex"
!
-iname
"base.tex"
\)
`
;
for
path
in
$TEX_FILE
;
do
folder
=
`
dirname
$path
`
;
filename
=
`
basename
$path
.tex
`
;
echo
'Processing '
$path
;
(
cd
$folder
;
tex-pdf
"
$filename
.tex"
&&
pdftoppm
-png
"
$filename
.pdf"
"
$filename
"
&&
if
[[
$(
ls
$filename
*
.png |
wc
-l
)
-eq
1
]]
;
then
mv
"
$filename
-1.png"
"
$filename
.png"
;
fi
)
;
done
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment