set.sh 351 B

1234567891011
  1. #!/bin/bash
  2. # Compile document with correct settings
  3. sed -i 's/%\\color/\\color/g' preamble_article.tex
  4. cp master_article.tex dist.tex
  5. xelatex dist.tex
  6. sed -i 's/\\color/%\\color/g' preamble_article.tex
  7. # Convert pdf to image
  8. convert -verbose -density 150 dist.pdf -strip -quality 100 -sharpen 0x1.0 -append dist.png
  9. convert dist.png -trim dist.png