You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

10 lines
264 B

mkdir -p basic
touch basic/begin.tex
echo "\begin{document}"$'\n' >> basic/begin.tex
for i in *.odt; do
filename="basic/${i%.*}"
echo "$i"
pandoc -f odt -t latex $i --wrap=none -o $filename.tex
done
touch basic/end.tex
echo $'\n'"\end{document}" >> tex/end.tex