4 echo "Error: provide the GROMACS html directory as first argument."
16 HTMLMDPOPT
=$HTMLOL/mdp_opt.html
17 TEXMDPOPT
=$TEXDIR/mdp_opt.tex
19 echo "Will convert $HTMLMDPOPT (html format)"
20 echo "to $TEXMDPOPT (latex format)"
24 -e 's/<[aA] [^>]*>//g' \
26 -e 's/<[iI][mM][gG] [^>]*>//g' \
29 -e 's/&[nN][bB][sS][pP];/~/g' \
30 -e 's/<[hH][rR]>//g' \
36 if ( ($1 == "<P>") || ($1 == "<p>") || ($1 == "<BR>") || ($1 == "<br>") )
44 -e 's/>=/$\\geq$/g;s/≥/$\\geq$/g' \
46 -e 's/<=/$\\leq$/g;s/≤/$\\leq$/g' \
51 -e 's/<sup>\([^<]*\)<\/sup>/$^{\1}$/g' \
52 -e 's/<sub>\([^<]*\)<\/sub>/$_{\1}$/g' \
53 -e 's/<[tT][tT]>\([^<]*\)<\/[tT][tT]>/{\\tt \1}/g' \
54 -e 's/<[pP][rR][eE]>\([^<]*\)<\/[pP][rR][eE]>/\\\\{\\tt\1}\\\\/g' \
55 -e 's/<\!--Idx-->\([^>]*\)<\!--EIdx-->/\\normindex{\1}/g' \
56 -e 's/<\!--QuietIdx-->\([^>]*\)<\!--EQuietIdx-->/\\index{\1}/g' \
57 -e 's/<[hH]1>\([^<]*\)<\/[hH]1>/\\section{\1}/g' \
58 -e 's/<[hH]3>\([^<]*\)<\/[hH]3>/\\subsection{\1}/g' \
63 -e 's/<[uU][lL]>/\\begin{itemize}/g' \
64 -e 's/<\/[uU][lL]>/\\end{itemize}/g' \
65 -e 's/<[lL][iI]>/\\item /g' \
66 -e 's/<[dD][lL] [cC][oO][^>]*>/\\vspace{-2ex}\\begin{description}[font=\\ttfamily]/g' \
67 -e 's/<[dD][lL][^>]*>/\\begin{description}[font=\\ttfamily]/g' \
68 -e 's/<\/[dD][lL]>/\\end{description}/g' \
69 -e 's/<[dD][tT]><[bB]>\(.*\)<\/[bB]>\(.*\)<\/[dD][tT]>/\\item[\1] \2\\hfill\\\\/g' \
70 -e 's/<[dD][tT]>\([^<]*\)<\/[dD][tT]>/\\item[\1]\\hfill\\\\/g' \
71 -e 's/<[bB]>\([^<]*\)<\/[bB]>/{\\tt \1}/g' \
72 -e 's/<[iI]>\([^<]*\)<\/[iI]>/{\\em \1}/g' \
73 -e 's/<[dD][dD]>//g' \
74 -e 's/<\/[dD][dD]>//g' \
75 -e 's/<\/[dD][tT]>//g' \
76 -e 's/ \(\[[^]]*\]\)\]/ {\1}\]/g' \
79 -e 's/e\.g\./{\\eg}/g' \
80 -e 's/i\.e\./{\\ie}/g' \
84 awk 'BEGIN { printf("\\label{sec:mdpopt}\n"); }\
86 if ( index($0,"subsection") ) {\
87 if ( index($0,"General") ) {\
89 } else if ( index($0,"Index") )\
97 rm temp1 temp2 temp3 temp4