jm.evers

Toutes mes réponses sur les forums

20 sujets de 121 à 140 (sur un total de 147)
  • Auteur
    Messages
  • en réponse à : latex et embed #1865
    jm.evers
    Participant
    Up
    0
    Down
    ::

    A small note on mathjax (again…)
    I’ve installed mathjax on Leiden wims-mirror and on intranet school servers.
    All browsers -except firefox- will now use MathJax for typesetting.
    This line of javascript will exclude firefox:

    <script type="text/javascript">
    if (navigator.userAgent.indexOf("Firefox") == -1){
    var script = document.createElement("script");
    script.type = "text/javascript";
    script.src  = "mathjax/MathJax.js?config=MML_HTMLorMML-full.js";
    document.body.appendChild(script);
    }
    </script>

    So now -in theory- all browsers could have nice looking mathtypesetting
    (the price to pay is ofcourse a faily slow rendering of math)

    en réponse à : latex et embed #1864
    jm.evers
    Participant
    Up
    0
    Down
    ::

    Well here are some local data from a highschool in the Netherlands:
    Approx 50% of our pupils use Chrome at home as default browser (on windows)
    The rest is mainly Firefox (>=19) and MSIE (mostly version 9 and 10)

    Because of MathML in WIMS our school switched from default browser Chrome to Firefox.Our ‘systems administration’ preferred Chrome because it’s light weight and very fast on older pc-systems.

    In using MathJax our pupils (and sysadmin) can use their favorite browser and use mathml…and canvas…and svg…and html-inputfields in MathML 🙂
    joke

    en réponse à : latex et embed #1859
    jm.evers
    Participant
    Up
    0
    Down
    ::

    As for canvas and mathml&input
    see:
    http://wims.math.leidenuniv.nl/canvas/drag_clickfill_mathml.html
    joke

    en réponse à : latex et embed #1858
    jm.evers
    Participant
    Up
    0
    Down
    ::

    Mathjax seems to allow inputfields in mathml as well.
    Using a slightly different pseudo latex syntax,
    \FormInput[class][value]{name}
    see:https://github.com/leathrum/mathjax-ext-contrib/tree/master/forminput
    this include is needed for support:http://cs.jsu.edu/mathjax-ext/contrib/forminput/forminput.js

    Maybe we should adapt wims_mathml to allow same syntax?
    Since google’s browser chromium is -at this point- not supporting native MathML…but advising javascript Mathjax as ‘add on’ for math displa (grrrr)
    joke

    en réponse à : latex et embed #1854
    jm.evers
    Participant
    Up
    0
    Down
    ::

    Hi,
    Latex will not -never- support this, however in some cases MathML
    (using firefox) can use inputfields anywhere ! in a latex constuct…
    An inputfield in MathML using pseudo latex:
    \input{size}{id}{style}{value}{readonly}
    The value can be read by using something like:
    var reply=document.getElementById(‘mathml’+id);
    But make sure users use only Mathml & Firefox !!!
    kind regards,
    joke

    en réponse à : Arrondi d'un réel #1765
    jm.evers
    Participant
    Up
    0
    Down
    ::

    and there is even a ‘verbatim’ prefix output…
    \text{F=wims(exec scienceprint 1234.56789999,3,5)}
    F=1.23 kilo

    en réponse à : Arrondi d'un réel #1764
    jm.evers
    Participant
    Up
    0
    Down
    ::

    There are several options,
    I choose ‘scienceprint’
    \text{A=wims(exec scienceprint 1234.56789999,3,0)}
    \text{B=wims(exec scienceprint 1234.56789999,3,1)}
    \text{C=wims(exec scienceprint 1234.56789999,3,2)}
    \text{D=wims(exec scienceprint 1234.56789999,3,3)}
    \text{E=wims(exec scienceprint 1234.56789999,3,4)}
    A=1.23*10^3
    B=1.23×10<sup>3</sup>
    C=1.23 \times 10^{3}
    D=1.23 k
    E=<math xmlns= »http://www.w3.org/1998/Math/MathML » display= »inline »><mstyle id= »wims_mathml » mathsize= »110% »><mn>1.23</mn><mo>×</mo><msup><mn>10</mn><mn>3</mn></msup></mstyle></math>

    kind regards,
    joke

    ######from scienceprinc.c #########
    WIMS usage:
    sci_num = !exec scienceprint number,significance,type
    number: a number
    significance : desired precision
    type (optional args): calc = 0 / html = 1 / latex = 2 / prefix = 3 / mathml = 4

    default : calc notation : 120000,3 -> 1.20*10^5
    type = 0 : calc notation : 120000,3,0 -> 1.20*10^5
    type = 1 : html notation : 120000,3,1 -> 1.20×10<sup>5</sup>
    type = 2 : latex notation : 120000,3,2 -> 1.20 \times 10^{5}
    type = 3 : prefix-notation : 120000,3,3 -> 120.0 k
    type = 3 : if -24 > prefix > 24 -> type = 1 (html)
    type = 4 : mathml notation

    multiple conversion: use space between arguments
    scienceprint 120000,4 122900,5 120036,6,3 –> 120.0*10^3,122.90*10^3,120.036 k

    24 yotta Y
    21 zetta Z
    18 exa E
    15 peta P
    12 tera T
    9 giga G
    6 mega M
    3 kilo k

    2 hecto h
    1 deca da
    -1 deci d
    -2 centi c

    -3 milli m
    -6 micro µ
    -9 nano n
    -12 pico p
    -15 femto f
    -18 atto a
    -21 zepto z
    -24 yocto y

    en réponse à : MathMl et commandes maths wims #1695
    jm.evers
    Participant
    Up
    0
    Down
    ::

    you are right: I didn’t notice the « mistake » because I’ve not installed from scratch.
    I’ll just remove the « _ » gifs.

    joke

    en réponse à : MathMl et commandes maths wims #1693
    jm.evers
    Participant
    Up
    0
    Down
    ::

    Hi,
    I wonder why we don’t supply the ready-made images…
    We do that for all other images used within wims.
    Seems to me there is no copyright infringement , so what’s the problem
    Apart from that in future ‘school wims-servers’ could do without TexLive
    (using exclusively mathml)

    Joke

    en réponse à : langages programmation reconnus #1547
    jm.evers
    Participant
    Up
    0
    Down
    ::

    Well, if you are not afraid…and your pupils are no real hackers…and you use an intranet server with no connections outside your local network…and have all compilers installed in a chroot…and you slightly modify wims.cgi…you can -of course- use wims to teach some basic programming !
    Just don’t make this server accessible from the internet 🙂
    Joke

    en réponse à : langages programmation reconnus #1540
    jm.evers
    Participant
    Up
    0
    Down
    ::

    Hi,
    For this to work securely -on a public wims server- you must install the ‘sysmask protection’ system of X.Gang
    Otherwise your server would be extremely vulnerable and open for easy hacking.
    However: this system & Linux kernel patch will not work on recent linux distributions (kernel patch dated 2005?)
    In any case read :http://wims.unice.fr/sysmask/doc/

    kind regards,
    Joke

    en réponse à : comportement étrange avec css #1530
    jm.evers
    Participant
    Up
    0
    Down
    ::

    So it is dependant on the browser, the system or the version. Not on the way to use the table (as css or normally). It is exactly what I wanted to emphasize !

    Absolutely not !!!
    Using the MathML + input field » together in

    • one table-cell
    • one paragraph
    • one div

    is your problem.
    (assuming you don’t want to work with ‘absolute width/height’)
    The only sensible way to force « Mathml + inputfield » in an (optical) horizontal alignment is to use two table-cells in a single row.
    <tr><td>MATHML</td><td>INPUTFIELD</td></tr>
    Just try it
    kind regards,
    J.M. Evers
    about css ,inputfields and tables

    en réponse à : comportement étrange avec css #1526
    jm.evers
    Participant
    Up
    0
    Down
    ::

    The « trick » is to force the Mathml into a table cell apart from the input field and NOT to put mathml+input in the same cell (…)
    The same is true for other XML includes (like SVG…) in (X)HTML

    en réponse à : comportement étrange avec css #1524
    jm.evers
    Participant
    Up
    0
    Down
    ::

    Forgotten to include a


    « proof »
    image of the oef-code
    joke

    en réponse à : comportement étrange avec css #1523
    jm.evers
    Participant
    Up
    0
    Down
    ::

    This works just fine on my system using « Mozilla Firefox 20.0 » and « Opera 12.12 Build 1707 » and « Mozilla SeaMonkey 2.6.1″

    \statement{
    <table style= »background-color:black; color:white;
    padding:2px 2px 2px 2px » >
    <tr>
    <th>
    \(\frac{1}{2} \cdot x )
    </th>
    <th>
    =
    \embed{r1}
    </th>
    </tr>
    </table>
    }
    \answer{}{1}{type=numeric}

    en réponse à : comportement étrange avec css #1518
    jm.evers
    Participant
    Up
    0
    Down
    ::

    Hi,
    The solution is simple and straight forward : just use a normal table !! although some « experts » regard the use of a « table » a sign of incompetence (…) and insist of using highly complex and extremely large CSS-style sheets to do very very simple things

    kind regards,
    Joke

    en réponse à : carte montrant les installations de wims #1457
    jm.evers
    Participant
    Up
    0
    Down
    ::

    Forget my previous post…I’ve clearly misunderstood the question 🙂

    joke

    en réponse à : carte montrant les installations de wims #1446
    jm.evers
    Participant
    Up
    0
    Down
    ::

    Hi,
    The wims servers I use :

    • 2 intranet servers on school
      Operating system: OpenSuSE (32bit) LINUX 11.2 using chroot
    • 2 internet servers

      • Leiden mirror http://wims.math.leidenuniv.nl
        Operating system: Gentoo Linux (64 bit)using chroot
      • Personal emergency wims server
        Operating system: FreeBSD 8.2 (64 bit) using chroot
    • Personal computer wims server:
      (used for wims testing and devel. on intranet)

      • Laptop 1 FreeBSD 9.1 (64 bit) using chroot
      • Laptop 2 FreeBSD 9.1 (32 bit) using chroot
      • Netbook 1 OpenSuSE 12.2 (32 bit) using chroot
      • Netbook 2 OpenBSD 5.2 (32 bit) using chroot
    en réponse à : MathML en fait un peu trop ! #1199
    jm.evers
    Participant
    Up
    0
    Down
    ::

    This is not a mistake of MathML.

    It is a « feature » of the  insmath subprograms in wims.cgi



     

    (e.g. math_with_gifs shows the same behaviour)

    To avoid this « logic step » of removing « 1* » you can introduce latex

    like

    ( 1 ast 3 )

     

    kind regards,

    Joke



     

    en réponse à : WIMS panick! #1163
    jm.evers
    Participant
    Up
    0
    Down
    ::

    In case of a « panick » just make sure the permissions are set correctly

    something like (as root) a

     chown -R wims:wims /home/wims

    And recompile as user « wims »

    (root becomes wims : sudo su wims)

    The scripts in /home/wims/bin :

    setwrapexec

    wrapuid

    setchroot

    will take care of setting the permissions right after compiling

     

    kind regards,

    joke

20 sujets de 121 à 140 (sur un total de 147)