7 PCRE_ERROR
='(^[^:]*:\d+: )|(^l\.\d+ )|(^! LaTeX Error: )'
8 PCRE_WARNING
='(LaTeX Warning(:|))|(Package [^\s]+ Warning(:|))'
9 PCRE_OUTPUT
='^Output written on .*\.pdf \(.*\)\.$'
12 ($
* -file-line-error 2>&1) | perl
-pe "s/${PCRE_ERROR}/\033[${COLOR_ERROR}m\$&\033[0m/gs;s/${PCRE_WARNING}/\033[${COLOR_WARNING}m\$&\033[0m/gs;s/${PCRE_OUTPUT}/\033[${COLOR_OUTPUT}m\$&\033[0m/gs"