stud/IV/vars.awk
2021-04-13 04:26:19 +03:00

21 lines
238 B
Awk
Executable File

#!/usr/bin/awk -f
BEGIN {
FS="[() ]"
}
/small_angle constant real default radians/ {
if(d) {
exit 1
} else {
printf ("\\newcommand{\\smallAngle}{\\frac{\\pi}{%d}}\n",180/$8);
d=1
}
}
END{
if(!d){
exit 1
}
}