You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Library descriptive macros not immediately preceded by \pnum.
162
162
forfin$texlibdesc;do
163
-
sed -n '/^\\pnum/{h;:x;n;/^\\index/b x;/^\\\(constraints\|mandates\|expects\|effects\|sync\|ensures\|returns\|throws\|complexity\|remarks\|errors\)/{x;/\n/{x;=;p};d};/^\\pnum/D;H;b x}'$f|
163
+
sed -n '/^\\pnum/{h;:x;n;/^\\index/b x;/^\\\(constraints\|mandates\|expects\|effects\|sync\|ensures\|returns\|throws\|complexity\|remarks\|errors\)/{x;/\n/{x;=;p;};d;};/^\\pnum/D;H;b x;}'$f|
164
164
# prefix output with filename and line
165
165
sed '/^[0-9]\+$/{N;s/\n/:/}'| sed "s/.*/$f:&/"
166
166
done|
167
167
fail '\\pnum missing'|| failed=1
168
168
169
169
# Cross-references pointing to their own section.
170
170
forfin$texfiles;do
171
-
sed -n '/^\\rSec/{s/^.rSec.\[/S /;s/\].*$//;=;p};/\\iref{/{s/^.*\\.\?ref{\([-a-z.0-9]\+\)}.*/R \1/g;=;p}'$f|
172
-
sed '/^[0-9]\+$/{N;s/\n/: /}'| sed "s/.*/$f:&/"|
171
+
sed -n '/^\\rSec/{s/^.rSec.\[/S /;s/\].*$//;=;p;};/\\iref{/{s/^.*\\.\?ref{\([-a-z.0-9]\+\)}.*/R \1/g;=;p;}'$f|
0 commit comments