summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/metapost/mpman-ru/idx3.awk
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/metapost/mpman-ru/idx3.awk')
-rw-r--r--Master/texmf-dist/doc/metapost/mpman-ru/idx3.awk16
1 files changed, 16 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/metapost/mpman-ru/idx3.awk b/Master/texmf-dist/doc/metapost/mpman-ru/idx3.awk
new file mode 100644
index 00000000000..5a911c2087f
--- /dev/null
+++ b/Master/texmf-dist/doc/metapost/mpman-ru/idx3.awk
@@ -0,0 +1,16 @@
+BEGIN {
+ print "\\begin{theindex}"
+ l=65
+}
+{
+ if (0+substr($0,1,3)>=l && pl!=l && index($0,"\\subitem")==0) {
+ print "\\indexspace"
+ l=0+substr($0,1,3)
+ pl=l++
+ if (l==91) l=161
+ }
+ print substr($0,index($0,"@@@")+4)
+}
+END {
+ print "\\end{theindex}"
+}