1 /\\part/ {gsub("part","section");gsub(".addcontentsline{.*}","");}
2 /\\chapter/ {gsub("chapter","subsection");gsub(".addcontentsline{.*}","");}
3 $1 == "\\input" {fn=$2; while (getline <fn) {
4 sub("^\\\\stars","\n\n\\subsubsection*{* * *}\n\n");
6 $0=gensub("\\\\'{(.)}","\\1́","g",$0);
7 gsub("\\\\sloppy *","");
16 sub("^\\\\stars","\n\n\\subsubsection*{* * *}\n\n");