Rev 14658 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
15177 | obado | 1 | ## 2014-01-04 [GK] |
2 | changed the syntax for the parameter ret_str in wims_mathml.y |
||
3 | to allow a valid compilation with bison-3.0; the compilation with |
||
4 | previous versions of bison remains still valid. See the bug report |
||
5 | at [bugs.debian.org](http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=733369) |
||
6 | |||
5520 | bpr | 7 | done : |
15177 | obado | 8 | |
8913 | bpr | 9 | - array row separators "\\" \cr "\tabularnewline" (...) |
5520 | bpr | 10 | - special space "\ " allowed |
11 | - Accent replacing by htmlcodes (list is not yet complete...) |
||
12 | - Added "\right." if unbalanced \left( ... |
||
13 | (preventing errors in mathml) |
||
14 | - added arg --max-mml-size to wims_mathml: |
||
15 | wims_mathml will now know directly what our max_allowable_buffer_size is |
||
16 | if the produced XML string is larger it will just send "ERROR" |
||
17 | mathml() will return 0 ; and wims will do "insmath with gifs" |
||
18 | note: this is just for a single call to wims_mathml |
||
19 | note: is your latex is too large, just split it into two or more smaller calls to wims_mathml |
||
20 | \( latex1 ) \( latex2 ) \( latex3 ) ... \( latex_n ) |
||
21 | |||
22 | - added C-lib headers in wims_mathml.cc to compile on linux (must look into this) |
||
23 | |||
24 | - fixed "empty row" ERROR in "single collumn array" |
||
25 | \begin{array}{c} A \\ \\ \\ B \end{array} |
||
26 | |||
27 | - added \bigint \biggint \bigggint without increasing fontsize (that results in loss of horizontal symmetry) |
||
28 | Drawback (not solved yet...) is that "\left[ \biggint_{0}^{\pi} \right." the "[" will not take the stretched size of "\biggint" |
||
29 | Incase increase in fontsize, the "[" will stretch...have to see how this works... |
||
8913 | bpr | 30 | |
15177 | obado | 31 | - transform `{\\rm }` in `\textrm{ }` in texmath.c (bpr) |
8913 | bpr | 32 | |
5520 | bpr | 33 | - if cal letters do not exist, take the roman one. |
34 | |||
35 | - restored converting ">" into "\gt" in wims_mathml.c |
||
36 | restored converting "<" into "\lt" in wims_mathml.c |
||
37 | - solve f'(x) messing up javacript for clickfill ( ' -> \' ) |
||
38 | |||
15177 | obado | 39 | - `\input{size}{id}{style}{readonly}` |
40 | size: 0,999 spaces allowed |
||
41 | id:0,999 spaces allowed -> mathml0 .. mathml999 (prefix mathml is hardcoded : reply1 = document.getElementById("mathml"+p); |
||
42 | style: no "" allowed ; spaces allowed |
||
43 | readonly : 0,1 spaces allowed(0 = write ; 1=readonly) |
||
44 | example : \input{ 5 }{0 }{ color: red;fontcolor:blue;border 1px}{ 1} |
||
5520 | bpr | 45 | - \input added support for hexcolor background-color:#00ff00; |
8913 | bpr | 46 | - corrected some flaws with stretchy parenthesis; |
5520 | bpr | 47 | corrected missing \right. procedure in wims_mathml.cc |
15177 | obado | 48 | * \lpar \rpar usable in createxo for \left( without \right) |
49 | * \lbracket \rbracket usable in createxo for \left[ without \right] |
||
50 | * \langle \rangle usable in createxo for \left< without \right> |
||
5520 | bpr | 51 | |
52 | - improved size & appearance of integral sign \int (larger) |
||
53 | other sizes are bigint biggint bigggint |
||
54 | Now parenthesis around integral sign are stretchy |
||
8913 | bpr | 55 | (),[],{},<> |
5520 | bpr | 56 | \lpar\rpar , \lbracket\rbracket, \lbrace\rbrace ,\langle\rangle |
57 | - added array with vertical separators (will need testing) |
||
58 | - add dfrac ; set dfrac to be 120% of \frac{}{} ...tune in to your favorite value ! |
||
15177 | obado | 59 | both frac/dfrac are in displaystyle. |
5520 | bpr | 60 | - wims_mathml.l : add \Bf as "dialect" for \bf \boldfont |
61 | - add \not =, \not=, \not\in, \not \in |
||
8913 | bpr | 62 | - changed lpar/rpar lbracket/rbracket lbrace/rbrace to OTHERDELIM |
5520 | bpr | 63 | - added support for unbalanced \lbracket (etc) |
64 | - removed unused code (...) |
||
65 | - removed faulty " |
||
66 | - added \diagup \diagdown |
||
67 | - added \ointclockwise \varointclockwise \sqint \fint" |
||
68 | more will come |
||
69 | - added extra (non LaTeX) option to \begin{array}{} command. |
||
70 | now a single "-" will produce on all rows a "\hline" |
||
71 | now "-.-.-" will produce a hline under row1,row3,row5 |
||
72 | (the MathML code attribute is: rowlines="solid none solid none solid") |
||
8913 | bpr | 73 | The options do not adversely interfere with normal latex (for gif) |
5520 | bpr | 74 | example: |
75 | |||
15177 | obado | 76 | \begin{array}{c|c:|c-.-.-.} 1 & 2 & 3 \\ 1 & 2 & 3 \\ 1 & 2 & 3 \\ 1 & 2 & 3 \\ 1 & 2 & 3 \\ 1 & 2 & 3 \end{array} |
77 | |||
5520 | bpr | 78 | - added lots of (probably useless) unicode symbols matching (ams)latex commands. |
79 | added file UNICODE-2-LATEX.txt to be used as "database" for future reference. |
||
80 | Note: not all commands are integrated in wims_mathml.l (just a random selection...) |
||
81 | Note: the 'return' is just globally set ; it may need some fine tuning. |
||
82 | Note: there is a limit to the amount of rules that can be used in wims_mathml.y |
||
83 | these are defined in "flexdef.h": we should not pass this "JAMSTATE -32766" limit |
||
84 | |||
85 | - add option in wims_mathml to set the fontsize in mathml from wims (via mathml.c) |
||
86 | |||
87 | - add small script to extract latex commands from "wims_mathml" (just for info) |
||
88 | |||
89 | - add option to use zoom on MathML : to test copy mathml.c.ZOOM to mathml.c |
||
90 | adm/light is adapted to adjusting size and zoom_option |
||
8913 | bpr | 91 | |
92 | - add \size[120]{\frac{1}{\sqrt{\pi}}} to set size sub string in mathml |
||
5520 | bpr | 93 | \size[0 - 999]{any tex string you like} |
94 | for now no spaces are allowed in size argument: like in \size[ 123 ]{} |
||
95 | We must discuss if we can adapt to known LaTex syntax? |
||
96 | |||
97 | - add alternatives just to avoid mathml-errors (...): |
||
8913 | bpr | 98 | \begin{align*} \begin{dcases} \begin{alignat} \begin{equation} \begin{eqnarray} |
5520 | bpr | 99 | \emph{} \vphantom |
100 | - add { n \choose k } as alternative for \binom{n}{k} |
||
101 | - add \sfrac{1}{3} : 1/3 |
||
102 | - add \lmoustache \rmoustache \lgroup \rgroup \Arrowvert \bracevert |
||
8913 | bpr | 103 | - add support for {\rm sin} syntax : \sin \rm{sin} {\rm sin} are equal Roman font |
5520 | bpr | 104 | In MathML Romanfont RM is <MI mathvariant="norma"></MI> tag |
105 | (all other comon functions like cos,tan,log,etc are <MI></MI>) |
||
106 | Note: every "word" will be in <MI>word</MI> tags |
||
8913 | bpr | 107 | - added 'value' param to \input |
5520 | bpr | 108 | - \input{size}{id}{style}{value}{readonly} |
8913 | bpr | 109 | |
5537 | schaersvoo | 110 | - finished error handling |
111 | wims_mathml.y : All errors will flag ERROR to stdout/stderror. |
||
5556 | schaersvoo | 112 | Wims will switch to insmath_with gifs... |
5579 | schaersvoo | 113 | - zooming "font + 100" % (was "font + 150" %) |
8913 | bpr | 114 | - "reinvented" {\rm text} |
5579 | schaersvoo | 115 | - removed declaration from <math></math> tag (it is already present in page) |
116 | - added config.c / mathml.c variable "disable_zoom" (used -for example- in dynapi3.phtml) |
||
5592 | schaersvoo | 117 | - restored declaration <math xmlns="http://www.w3.org/1998/Math/MathML"></math> tag |
118 | we have to look into this closer ! |
||
5595 | schaersvoo | 119 | - small change in ERROR (no printing to stderror) |
8913 | bpr | 120 | - mathml.c : clean exit after ERROR (...) |
5598 | schaersvoo | 121 | - wims_mathml.l : removed unused code of mine 4*x -> 4x .This is done by wims.cgi |
122 | will soon try to clean more : remove all non-wims code (remove all unused itex2mml specific code) |
||
5613 | schaersvoo | 123 | - corrected stupid typo error { n \choose k } : free $3 was not possible (should be $4 !) |
5632 | schaersvoo | 124 | - corrected wrong n-th root display \root{3} \of{ 2^{456} } |
125 | the "\of" is now ignored : 2^{456} will now be under root-flag |
||
126 | other way of writing: \root{3}{2^{456}} |
||
5667 | schaersvoo | 127 | - added |
15177 | obado | 128 | * "\\longmapsto" {yylval = wims_mathml_copy_string("⟼"); return MOL;} |
129 | * "\\Longmapsfrom" {yylval = wims_mathml_copy_string("⟽"); return MOL;} |
||
130 | * "\\Longmapsto" {yylval = wims_mathml_copy_string("⟾"); return MOL;} |
||
8913 | bpr | 131 | - 20/9/2012 added |
15177 | obado | 132 | * "\\large" { yylval=wims_mathml_copy_string("150%");wims_mathml_env_start = 1; return TMP_FONTSIZE;} |
133 | * "\\Large" { yylval=wims_mathml_copy_string("180%");wims_mathml_env_start = 1; return TMP_FONTSIZE;} |
||
134 | * "\\huge" { yylval=wims_mathml_copy_string("220%");wims_mathml_env_start = 1; return TMP_FONTSIZE;} |
||
135 | * "\\Huge" { yylval=wims_mathml_copy_string("260%");wims_mathml_env_start = 1; return TMP_FONTSIZE;} |
||
5680 | schaersvoo | 136 | |
15177 | obado | 137 | ## 26/9/2012 |
138 | added forgotten `^+-=` to recognisable "text value" in inputfield in `\input{size}{id}{style}{value}{readonly}` |
||
139 | a {value} like `{10^3 - 10^2 = 9*10^2}` will be processed normally. |
||
5916 | schaersvoo | 140 | |
15177 | obado | 141 | ## 5/11/2012 added "\cline{}" as empty command. |
142 | `\cline{2-5}` will now be ignored and not interpreted as "text" |
||
143 | the horizontal line in matrix can be imitated by \begin{array}{c.c.c.c-c.} |
||
144 | meaning a horizontal line under the 4-th row |
||
145 | This non-latex syntax "{c.c.c.c-c.}" will be ignored in math-with-gifs |
||
146 | |||
147 | ## 7/11/2012 |
||
148 | replace non-unique id="wims_mathml" by a unique id="wims_mathml..." |
||
149 | |||
150 | ## 18/11/2012 |
||
151 | corrected some syntax issues only noticed by older compiler |
||
152 | corrected compiler warnings for "time_t" etc |
||
153 | |||
154 | ## 15/12/2012 |
||
155 | corrected stretchy parenthesis display flaw in \left( { 1 \over 2 } \right) |
||
156 | |||
157 | ## 24/10/2013 |
||
158 | added forgotten char "/" to \input recognizable characters for "value" like '1/233' |
||
159 | |||
7122 | schaersvoo | 160 | \input{size}{id}{style}{value}{readonly} |
161 | \input{10}{0}{background-color:lightblue;color:red;font-size:1.2em}{ 1/234 }{1} |
||
15177 | obado | 162 | only interesting if a `pre_filled_in input_field` is needed... |
163 | still problems with chars '>' '<' because they are converted into \lt \gt in wims_mathml.cc |
||
164 | |||
165 | ## 22/11/2013 |
||
166 | added quick fix |
||
167 | \underrightarrow{123456789} |
||
168 | \overrightarrow{12345678} |
||
169 | |||
170 | ## 24/11/2013 |
||
7223 | bpr | 171 | added \underleftarrow \overleftarrow \underleftrightarrow \overleftrightarrow |
15177 | obado | 172 | |
173 | ## 25/11/2013 |
||
174 | in extra arrows: forgotten to add `wims_mathml_free_string($2);` |
||
175 | TODO: check if these can be harmonized eg made more generic |
||
176 | |||
177 | ## 25/11/2013 |
||
178 | Harmonized UNDERARROW OVERARROW ; to add more just |
||
179 | |||
180 | "\\my_new_under_Arrow" {yylval = wims_mathml_copy_string("&some_unicode_arrow;"); return UNDERARROW;} |
||
181 | "\\my_new_over_Arrow" {yylval = wims_mathml_copy_string("&some_unicode_arrow;"); return OVERARROW; } |
||
7225 | schaersvoo | 182 | added as proof of concept: |
183 | \overrightharpoonup |
||
184 | \overrightharpoondown |
||
185 | \underrightharpoonup |
||
186 | \underrightharpoondown |
||
8913 | bpr | 187 | |
15177 | obado | 188 | ## 23/12/2013 |
189 | - added new environment '\begin{html} any_valid_html_text \end{html}' |
||
190 | - corrected (W3C) mathml string output for '\input{size}{id}{style}{value}{readonly}' |
||
191 | - added str_replace() to replace '\lt' and '\gt' from SVG-text or HTML-text into '<' and '>' |
||
192 | - corrected SVG environment (trouble with \lt \gt) |
||
8913 | bpr | 193 | |
15177 | obado | 194 | We now use the 'W3C correct' annotations for embedding HTML / SVG in XML: |
195 | |||
7332 | schaersvoo | 196 | <semantics><annotation-xml encoding="application/xhtml+xml"> any_valid_html_text </annotation-xml></semantics> |
15177 | obado | 197 | <semantics><annotation-xml encoding="SVG1.1"> any_valid_svg_text </annotation-xml></semantics> |
8913 | bpr | 198 | |
15177 | obado | 199 | Example: |
200 | my homebrew 'input_pseudo_latex' |
||
201 | |||
7332 | schaersvoo | 202 | \frac{ \input{2}{0}{color:red}{?}{0} }{ 1234 } |
15177 | obado | 203 | is equivalent to: |
204 | |||
7332 | schaersvoo | 205 | \frac{ \begin{html}<input size='2' id='mathml0' style='color:red' value='?' />\end{html} }{ 1234 } |
8913 | bpr | 206 | |
15177 | obado | 207 | In the html/svg environment, any thing goes, like the square root of an image... |
208 | |||
7332 | schaersvoo | 209 | \sqrt{ \begin{html} <img src="my_image.gif" alt="noalt" /> \end{html} } |
210 | |||
15177 | obado | 211 | These are all -of course- incompatible with Latex! |
8913 | bpr | 212 | |
15177 | obado | 213 | ## 25/12/2013 |
214 | - add 'xmlns="http://www.w3.org/1999/xhtml"' to <input /> |
||
215 | - remove the `<mn></mn>` around `<input /> `: no longer needed |
||
216 | `\input{5}{0}{color:red}{?}{0}` |
||
7338 | schaersvoo | 217 | gets translated into: |
8913 | bpr | 218 | |
15177 | obado | 219 | <semantics> |
220 | <annotation-xml encoding="application/xhtml+xml"> |
||
221 | <input type="text" xmlns="http://www.w3.org/1999/xhtml" size="5" id="mathml0" value="?" style="color:red" /> |
||
222 | </annotation-xml> |
||
223 | </semantics> |
||
8913 | bpr | 224 | |
15177 | obado | 225 | If MathJax fixes it's bug concering the 'encoding', the input-field will work natively in Chrome+MathJax extension... |
226 | |||
227 | ## 26/12/2013 |
||
228 | Fixing MathJax inputfield bug by using a 'textarea' instead of a 'input' |
||
229 | |||
230 | - Corrected 'rowlines' in 'array' environment (using 'none' instead of '') |
||
7339 | schaersvoo | 231 | MathJax actually shows rowlines when rowlines="" ... |
8913 | bpr | 232 | |
15177 | obado | 233 | - Using a 'pre-styled textarea' as inputfield look-alike : fixing the compatibility / bug issue with MathJaX in Chrome |
234 | `\input{4}{0}{color:red}{1234}{1}` |
||
235 | gets translated into: |
||
8913 | bpr | 236 | |
15177 | obado | 237 | <semantics> |
238 | <annotation-xml encoding="application/xhtml+xml"> |
||
239 | <textarea xmlns="http://www.w3.org/1999/xhtml" cols="4" rows="1" id="mathml0" style="vertical-align:middle;overflow:hidden;resize:none;color:red" readonly="readonly"> |
||
240 | 1234 |
||
241 | </textarea> |
||
242 | </annotation-xml> |
||
243 | </semantics> |
||
244 | |||
7339 | schaersvoo | 245 | NOTE: revert to inputfields when MathJax is upgraded regarding usage of (X)HTML in MathML. |
8913 | bpr | 246 | |
15177 | obado | 247 | ## 28/12/2013 |
248 | Corrected non-stretchy perentheses |
||
249 | wims_mathml.y: setting all LEFT/RIGHT delimiters to |
||
250 | <mo stretchy="true"> |
||
251 | |||
252 | ## 18/1/2014 |
||
253 | added \limit : does nothing |
||
254 | |||
255 | example: `\int \limit_{123}^{123}` is equal to `\int_{123}^{123}` |
||
256 | |||
257 | note: in latex \limit will center the text above and/or under the symbol (\int,\wedge etc) |
||
258 | |||
259 | If a identical behaviour (centered) is needed, use: |
||
7394 | schaersvoo | 260 | \underset{123}{ \overset{123} \int } |
8913 | bpr | 261 | |
15177 | obado | 262 | ## 9/3/2014 |
263 | added \char44 == , (bug 8461) |
||
264 | |||
265 | ## 4/3/2015 |
||
266 | added `{"\ {0,5}[a-zA-Z0-9#\ :\-\_\+\=\(\)\[\]\@\~\!\#\$\%\^\&\*\/\,;.*\^\?]{0,250}\ {0,5}"}` |
||
8655 | schaersvoo | 267 | to recognizable chars in input |
15177 | obado | 268 | |
269 | ## 5/3/2015 |
||
270 | Simplified input "regex" to `"\\input{"\ {0,5}[0-9]{1,3}\ {0,5}"}{"*.*"}{"*.*"}{"*.*"}{"\ {0,3}[0-1]\ {0,3}"}"` |
||
271 | |||
272 | ## 5/3/2015 last commit no good |
||
273 | multiple inputs in a single latex command are not recognized (??) |
||
274 | revert to 4/3 |
||
275 | |||
276 | ## 09-06-2015: add textcolor |
||
9568 | schaersvoo | 277 | - size font-size:1.0em; in inputfield |
278 | |||
15177 | obado | 279 | ## 26/09/2015 |
280 | now all mathcal fonts exist. |
||
9976 | schaersvoo | 281 | |
15177 | obado | 282 | ## 30/09/2015 |
283 | FOR TESTING: added a span element 'font-size=1em' around the math and set default tex-size=100% in mathml.c |
||
284 | |||
285 | ## 30/04/2016 |
||
286 | In MathJaX V2.6 the issue with the inputfield in mathml seems to be resolved. |
||
9976 | schaersvoo | 287 | Switching back from "textarea" to "inputfield" |
15177 | obado | 288 | |
9976 | schaersvoo | 289 | Note+todo: latest html5 options for "input" are not yet implemented. |
11071 | schaersvoo | 290 | |
15177 | obado | 291 | ## 27/10/2016 |
292 | revert to textarea, because of some bug in Safari. |
||
293 | Mathjax can not cure this browser error: |
||
294 | [MathJax issue 1644](https://github.com/mathjax/MathJax/issues/1644) |
||
11496 | bpr | 295 | |
15177 | obado | 296 | The textarea will ignore an "enter" (keycode 13) and will be in everyday usage similar to an input-field |
297 | revert to inputfield when Safari (and possibly other Webkit browsers) have better support |
||
298 | (but this will not happen in the near future, I'm afraid...) |
||
299 | At the same time "exec.c" is modified: it will activate Mathjax for all non-real-gecko-browsers. |
||
12073 | bpr | 300 | |
15177 | obado | 301 | ## 22/2/2017 |
302 | fix for the pari [version > 2.9.0] printtex output "\*" |
||
303 | |||
304 | pari: printtex(35*x^6 - 8*x + 3) --> 35\*x^6 - 8\*x + 3 |
||
305 | "\\*" {yylval=wims_mathml_copy_string(" "); return MI;} |
||
306 | |||
307 | ## 23/2/2017 |
||
308 | pari printtex " \*" --> ⁢ |
||
309 | |||
310 | ## 08/05/2017 |
||
311 | add ; in code as &#x |
||
312 | |||
313 | ## 15/05/2017 |
||
314 | added `_` as non-latex code for array environment. |
||
315 | |||
316 | latex usage: |
||
317 | |||
318 | \begin{array}{c|c:c|c -._.-.} |
||
319 | 1 & 2 & 3 & 4 \\ |
||
320 | 1 & 2 & 3 & 4 \\ |
||
321 | 1 & 2 & 3 & 4 \\ |
||
322 | 1 & 2 & 3 & 4 \\ |
||
323 | 1 & 2 & 3 & 4 \\ |
||
324 | 1 & 2 & 3 & 4 \\ |
||
325 | \end{array} |
||
326 | |||
11531 | schaersvoo | 327 | meaning: |
12073 | bpr | 328 | |
15177 | obado | 329 | solid vertical lines between columns 1,2 |
330 | dashed vertical line between 2,3 |
||
331 | solid vertical lines between columns 3,4 |
||
11531 | schaersvoo | 332 | |
15177 | obado | 333 | solid horizontal line between row 1,2 |
334 | no horizontal line between row 2,3 |
||
335 | dashed horizontal line between row 3,4 |
||
336 | no horizontal line between row 4,5 |
||
337 | solid horizontal line between row 5,6 |
||
338 | |||
339 | NOTE: the problem is the in mathml all attributes must be known before the actual table can be filled...so all layout information must be derived from the `{c|c:c|c -._.-.}` |
||
340 | |||
341 | <mtable rowspacing="0.5ex" columnalign="center center center center" columnlines="solid dashed solid" rowlines="solid none dashed none solid none"> |
||
342 | |||
11553 | schaersvoo | 343 | To solve this in itex2mml/wims_mathml one must store the mathml strings into ca 6 variables...and print these when the \end{array is found... |
344 | |||
15177 | obado | 345 | ## 17/05/2017 |
346 | a fix for \hline incompatibility between real latex and wims_mathml |
||
12073 | bpr | 347 | |
15177 | obado | 348 | `\hline` is now ignored (just an empty string...`\hline` never had a real meaning (ROWSEP) in wims_mathml) |
349 | an array now can use both `\hline` and the "non-latex" syntax for horizontal lines `(-._)` |
||
350 | the `\hline` will give the correct separation line in math-image-mode. |
||
351 | `\cr \tabularnewline` are unchanged...giving 'ROWSEP' |
||
352 | |||
11553 | schaersvoo | 353 | note: |
15177 | obado | 354 | |
355 | find ~/public_html/modules/[EHU]* -type f -name "*def" -exec grep -H "\\hline" "{}" ";" |
||
11553 | schaersvoo | 356 | will find only one hit: U1/algebra/docsyslin.fr/doc/1/exgauss.def |
11708 | schaersvoo | 357 | |
15177 | obado | 358 | ## 31/5/2017: bug in MathJax |
359 | rowlines="" will show rowlines. So we explicitly declare rowlines=" none ". |
||
12073 | bpr | 360 | |
15177 | obado | 361 | ## 27/6/2017 [jm.evers] |
11708 | schaersvoo | 362 | introduced some accents in "math mode" |
15177 | obado | 363 | LaTeX Description |
11708 | schaersvoo | 364 | |
15177 | obado | 365 | \`{o} grave accent |
366 | \'{o} acute accent |
||
367 | \^{o} circumflex |
||
368 | \"{o} umlaut, trema or dieresis |
||
369 | \H{o} long Hungarian umlaut (double acute) |
||
370 | \~{o} tilde |
||
371 | \c{c} cedilla |
||
372 | \k{a} ogonek |
||
373 | \l{} barred l (l with stroke) |
||
374 | \={o} macron accent (a bar over the letter) |
||
375 | \b{o} bar under the letter |
||
376 | \.{o} dot over the letter |
||
377 | \d{u} dot under the letter |
||
378 | \r{a} ring over the letter |
||
379 | \u{o} breve over the letter |
||
380 | \v{s} caron/há?ek ("v") over the letter |
||
381 | \t{oo} "tie" (inverted u) over the two letters |
||
382 | \o{} slashed o (o with stroke) |
||
11708 | schaersvoo | 383 | |
384 | there is no way to introduce tex-like accents in the text{} / textrm{} command family. |
||
385 | use something like this in "direct exec" |
||
386 | |||
15177 | obado | 387 | \Huge |
388 | \begin{array}{lll} |
||
389 | \"{O} & \'{O} & \`{O} \\ |
||
390 | \^{O} & \~{O} & \r{O} \\ |
||
391 | \c{O} & \.{O} & \={O} \\ |
||
392 | \k{O} & \b{O} & \d{O} \\ |
||
393 | \O{} & \o{} & \l{} & \\ |
||
394 | \H{O} & \t{uu} & \textrm{Hall}\"{o} \; \textrm{means Hallo in Danish ? } |
||
395 | \end{array} |
||
11708 | schaersvoo | 396 | |
15177 | obado | 397 | ## 29/6/2017 [jm.evers] |
11711 | schaersvoo | 398 | added: |
15177 | obado | 399 | |
400 | if ((yyleng > 1) && (yylval != wims_mathml_empty_string)) yylval[yyleng+1]='\0'; |
||
401 | and removed freeing of `$1` by introducing `*s1` and freeing this pointer after use (see wims_mathml.y) |
||
402 | |||
12073 | bpr | 403 | The problems are clear on Linux GCC : |
11715 | schaersvoo | 404 | (clang|bison|flex FreeBSD no (!?) problems...) |
15177 | obado | 405 | |
11711 | schaersvoo | 406 | MathML: wims_mathml(82765,0x7fff77497000) malloc: *** error for object 0x10e29cb89: pointer being freed was not allocated *** set a breakpoint in malloc_error_break to debug Image: |
11715 | schaersvoo | 407 | This solution works, but I do not understand why !! |
11711 | schaersvoo | 408 | |
11721 | schaersvoo | 409 | Found probable cause: the ~ was missing , and was causing the freeing due to another match of \~ (I guess...) |
410 | |||
11717 | schaersvoo | 411 | added user info for implemented arrows,symbols and stuff |
412 | added Celcius and a few other missing things... |
||
11727 | schaersvoo | 413 | |
15177 | obado | 414 | ## 1/7/2017 |
11727 | schaersvoo | 415 | forgotten \u{} |
12073 | bpr | 416 | |
15177 | obado | 417 | ## 11/10/2017 |
418 | all "e" will be typeset in mathvariant 'normal' as requested: |
||
419 | |||
420 | ## 12/10/2017 |
||
12073 | bpr | 421 | added lex macro EULER for 'e' (don't know of another trick to implement...) |
422 | |||
15177 | obado | 423 | ## 19/10/2017 |
12073 | bpr | 424 | delete the modification for EULER |
12086 | schaersvoo | 425 | |
15177 | obado | 426 | ## 30/10/2017 |
13310 | obado | 427 | Correcting odd behaviour in Gecko's mathml : not showing an overline in the fancy themes |
15177 | obado | 428 | (plain theme [default] is not affected) |
12086 | schaersvoo | 429 | changed the mo-tag "wims_mathml.y" line 1497 (added space) |
15177 | obado | 430 | |
431 | WIDEBAR closedTerm { |
||
432 | $$ = wims_mathml_copy3("<mover>", $2, "<mo>¯</mo></mover>"); |
||
433 | wims_mathml_free_string($2); |
||
434 | }; |
||
435 | |||
12086 | schaersvoo | 436 | into |
437 | |||
15177 | obado | 438 | <mo> ¯ </mo> |
439 | |||
440 | ## 11/11/2017 |
||
12108 | schaersvoo | 441 | added \it as alternative for \mathit or \emph --> ITALICS |
442 | |||
15177 | obado | 443 | ## 13/11/2017 - r12112 [obado] |
444 | replace the inline style (span element) "font-size:1em" on mathml by a css class, that can be eventually customised (use themes/_css/maths.css). |
||
13153 | schaersvoo | 445 | |
15177 | obado | 446 | ## 3/7/2018 [BPR] |
447 | added \Longleftarow |
||
13310 | obado | 448 | |
15177 | obado | 449 | ## 09/04/2018 |
13310 | obado | 450 | add changes included in itex2MML v1.4.10 : |
15177 | obado | 451 | [itexToMML revision 64](https://golem.ph.utexas.edu/~distler/code/itexToMML/revision/64) |
452 | |||
13310 | obado | 453 | Add some new large math operators (\bigsqcap and \biginterleave) |
454 | from the MathML3 Operator Dictionary. |
||
15177 | obado | 455 | |
456 | ## 19/4/2019 |
||
13858 | schaersvoo | 457 | added '\cancel' as alternative syntax for '\slash'... |
15177 | obado | 458 | see [wimsedu.info](https://wimsedu.info/?topic=utilisation-de-package-latex-specifique/#post-4941) |
14226 | schaersvoo | 459 | |
15177 | obado | 460 | ## 25/8/2019 |
14226 | schaersvoo | 461 | added (a few things to sync with KaTeX) |
462 | \brace,\brack |
||
15177 | obado | 463 | |
14226 | schaersvoo | 464 | some array shortcuts : \cases,\aligned,\Bmatrix,\Vmatrix,\vmatrix,\pmatrix |
14658 | bpr | 465 | |
15177 | obado | 466 | ## 15/02/2020 |
14658 | bpr | 467 | added \not\subset (without spaces) |
15177 | obado | 468 | |
469 | ## 22/06/2020 - r15175 [obado] |
||
470 | replace textarea "rows" attribute by a style="width:" so it will work with all font-families (not only monospaces). |
||
471 | + move inline style of .wims_mathml textarea to themes/_css/maths.css |