118 reputation
4
bio website redpanda.nl/index.php?p=qvt
location Netherlands
age
visits member for 2 years, 6 months
seen Feb 28 at 20:56

Sep
17
awarded  Popular Question
Oct
6
awarded  Supporter
Oct
2
awarded  Student
Oct
2
comment Ignore escape characters when printing string in shell script
Good point, and because of this construction it looks clearer, using the newlines and indentation.
Oct
2
awarded  Scholar
Oct
2
accepted Ignore escape characters when printing string in shell script
Oct
2
comment Ignore escape characters when printing string in shell script
Ah of course, the single (hard) quotes! Thank you. I didn't know about the cat -construction, why is it safer than the echo command?
Oct
2
comment Ignore escape characters when printing string in shell script
I realised I didn't translate the Dutch phrases. When calling the script you have to give two arguments: the LaTeX expression itself and the filename, without extension. For instance: sh .LaTeX2PNG.sh "B_n(f;x) = \sum_{r=0}^n f \left( \frac{r}{n} \right) {n \choose r} x^r (1-x)^{n-r}" Bernstein
Oct
2
asked Ignore escape characters when printing string in shell script