Rev 11717 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 11717 | Rev 16695 | ||
---|---|---|---|
Line 10... | Line 10... | ||
10 | <html> |
10 | <html> |
11 | <head> |
11 | <head> |
12 | <meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\"> |
12 | <meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\"> |
13 | <title>Latex supported in wims_mathml</title> |
13 | <title>Latex supported in wims_mathml</title> |
14 | </head> |
14 | </head> |
15 | <style type=\"text/css\"> |
- | |
16 | |
15 | <style> |
17 | padding:1px; |
- | |
18 | border-width:1px; |
- | |
19 | |
16 | li{display:inline-block;} |
20 | text-align:center; |
- | |
21 | background-color:#c6d4ff; |
- | |
22 | font-size:0.4em; |
- | |
23 | } |
- | |
24 | div { display: none;} |
17 | div { display: none;} |
25 | a:active + div { display: block;background-color:yellow;} |
18 | a:active + div { display: block;background-color:yellow;} |
26 | </style> |
19 | </style> |
27 | <body> |
20 | <body> |
28 | <table summary=\"latex commands\" class=\"tabel\"><caption style=\"font-size:0.5em;\">($datum) wims_mathml (click to see the command)</caption><tr>" > $htmlfile |
- | |
29 | Tr=4; |
- | |
30 |
|
21 | <ul>" > $htmlfile |
31 | cat wims_mathml.l | grep "^\"" | awk -F\" '{if($2 != "<" && length($2)>5) print $2}' | tr '&{([]})#\' ' ' | sort -duif> $listfile |
22 | cat wims_mathml.l | grep "^\"" | awk -F\" '{if($2 != "<" && length($2)>5) print $2}' | tr '&{([]})#\' ' ' | sort -duif> $listfile |
32 | while read line ; do |
23 | while read line ; do |
33 | 24 | ||
34 | chk=`echo $line | wc -c | tr -d '[:blank:]'` |
25 | chk=`echo $line | wc -c | tr -d '[:blank:]'` |
35 | if [ $chk -gt 1 ] ; then |
26 | if [ $chk -gt 1 ] ; then |
36 | math=`./wims_mathml --tex-size " |
27 | math=`./wims_mathml --tex-size "150%" --tex-string "\\\\$line"` |
37 | chk=`echo $math | grep "&" | wc -l | tr -d '[:blank:]'` |
28 | chk=`echo $math | grep "&" | wc -l | tr -d '[:blank:]'` |
38 | if [ "$math" = "\$ERROR" ] || [ "$math" = "ERROR" ] || [ "$chk" = "0" ] ; then |
29 | if [ "$math" = "\$ERROR" ] || [ "$math" = "ERROR" ] || [ "$chk" = "0" ] ; then |
39 | echo "< |
30 | echo "<li><a>\\\\$line</a><div>see latex syntax</div></li>" >> $htmlfile |
40 | else |
31 | else |
41 | echo "< |
32 | echo "<li><a>$math</a><div>\\$line</div></li>" >> $htmlfile |
42 | fi |
33 | fi |
43 | fi |
- | |
44 | p=$(($p+1)) |
- | |
45 | if [ $p -gt $Tr ] ; then |
- | |
46 | echo "</tr><tr>">> $htmlfile |
- | |
47 | p=0 |
- | |
48 | fi |
34 | fi |
49 | done < "$listfile" |
35 | done < "$listfile" |
50 | if [ $p -gt $Tr ] ; then |
- | |
51 | echo "</tr><tr>">> $htmlfile |
- | |
52 | fi |
36 | |
53 | - | ||
54 | rm $listfile |
37 | rm $listfile |
55 | echo " </ |
38 | echo " </li> |
56 | </ |
39 | </ul> |
57 | <script |
40 | <script> |
58 | |
41 | |
59 | </script> |
42 | </script> |
60 | </body> |
43 | </body> |
61 | </html> |
44 | </html> |
62 | ">> $htmlfile |
45 | ">> $htmlfile |
63 | else |
46 | else |
64 | place=`pwd` |
47 | place=`pwd` |
65 | echo " |
48 | echo " |
66 | no file called \"wims_mathml.l\" in this script directory $place ! " |
49 | no file called \"wims_mathml.l\" in this script directory $place ! " |
67 | read whatever |
50 | read whatever |
68 | fi |
51 | fi |
69 | 52 | ||
70 | exit |
53 | exit |
71 | - |