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