cat zmother.tex | grep -B 100000 "begin.document" > z.tex
cat zmother.tex -n | grep -A 100000000 "begin.document" | sed '1d' \
| LANG=C sed 's/^ *\([0-9]*[ \t]*\)\([\x80-\xff]\)/\\marginpar{\\boxed{\1}}\2/g' | sed 's/^ *[0-9]*[ \t]*\\/\\/g' \
| sed 's/^ *[0-9]*[ \t]*//g' > 1
cat 1 >> z.tex
网友评论