#!/bin/sh # Compile master_dist.pdf with correct settings sed -i 's/%\\color/\\color/g' preamble_article.tex cp master_article.tex master_dist.tex xelatex master_dist.tex sed -i 's/\\color/%\\color/g' preamble_article.tex