Toutes mes réponses sur les forums
-
AuteurMessages
-
jm.evers
Participantjm.evers
Participant::Hi,
This is clearly a bug in canvasdraw arrow(s)
I will have to look into this…and see if there are any other mis behaviours with dashing,,,
(other primitives like lines,hlines,segments etc do not show this error)size 400,400 xrange -10,10 yrange -10,10 linewidth 2 dashtype 4,2 dsegment 0,0,5,5,red dsegment 0,0,-5,5,blue dsegment 0,0,5,-5,green dsegment 0,0,-5,-5,orange dashtype 2,6 dhline 0,-5,red dhline 0,-4,blue dhline 0,-3,green dhline 0,-2,orange dvline -5,0,red dvline -4,0,blue dvline -3,0,green dvline -2,0,orange
joke
-
Cette réponse a été modifiée le il y a 4 années et 4 mois par
jm.evers.
jm.evers
Participantjm.evers
Participant::Hi again,
Probably the easiest way for you would be to recompile wims.cgi, using in ~/src/exec.c :scripts/js/mathjax/MathJax.js?config=Accessible-full.js
or try any other configuration (see ~/public_html/scripts/js/mathjax/config) not interfering with normal text…
Make sure you enforce using MathJaX on all client browsers…Hope this gets you going
Joke
jm.evers
Participant::Hi,
When you are sure MathJaX is loaded on all clients, you can always call it to interpret your TeX.
On my systems -using KaTeX for all browsers- just a bit of code works fine:
<span name="zoom_1" id="no_id" style="display:inline-block;" class="wims_katex">\frac{\pi}{4}</span>
If the whole sheet descripton (or any other div/span element) is in a « wims_katex » class, every TeX string would be displayed nicely
kind regards,
Jokejm.evers
Participant::Hi Paul,
If you want to use dynapi drag&drop, I’m not sure this will ever work, since the ‘image’ is generated using javascript.
If you want not to use dynapi:
inside a canvas window (the image) it is -for now- not possible to ‘group’ multiple objects for simultaneous mouse manipulation/movement…only if you use a slider for such combined objects.
eg the group of objects, creating a domino, end with ‘killslider’But to be honest, there may be userfriendly ways to create an image shuffling exercise !
If you need some help with canvasdraw, just send me an email.
kind regards,
Jokeps
use command ‘latex x,y,LaTeX’ for creating TeX inside canvasdraw-
Cette réponse a été modifiée le il y a 4 années et 5 mois par
jm.evers.
jm.evers
Participant::Hello Erik,
You are correct: the command userdraw arc,color could/should be improved!
The ‘static’ way of using first 3 points (the second point is set to be the center point…) and then afterwards draw the arc is not very practical…and probably the way the ‘direction’ argument to the html5 canvas command arc(xc,yc,radius,start,end,direction) is determined, is not correct.
As this is all amateur driven opensource stuff, you could just upload any improvements to SVN.
(as long as the fly-like command syntax is unchanged)kind regards,
Jokejm.evers
Participantjm.evers
Participant::Just a thought:
may be you could use a crontab for ‘wims’?If you want a single class/institute to be closed down completely (which is preferable for younger students/pupils), just rename/move it…and remove it from the ‘index’. Opening the class/institute is simply the reverse.
joke
jm.evers
Participant::In my experience -High School usage- it is very prudent to disable access at night.
Some pupils tend to get very insecure regarding taking digital exams…and will therefore exercise very deep into the night…or start very early…typical right before the actual exam.Since most of our pupils have (mobile) devices in their bedroom/study, parents do not have a clue about this behaviour.
In conversations over the years (as of 2004) with parents there is a 100% support for closing down the server !We actually close down the apache server from 24:00 — 6:00
(before the pandemic this was always 23:00 — 7:00)Joke
-
Cette réponse a été modifiée le il y a 4 années et 9 mois par
jm.evers.
jm.evers
Participantjm.evers
Participantjm.evers
Participant::In canvasdraw the command input (from docs)
@ input x,y,size,editable,value @ to set inputfield "readonly", use editable = 0 @ if no preset 'value' is needed...use a 'space' as last item argument
The last argument ‘value’ can not be an empty string…
So if you have source code access to your wims server, you can quick fix this by editing scripts/oef/special/drawinput.phtml
and add:blah blah !if $(reply$n_) = $empty !set reply$n_=? !endif !set codeinput=!append line input $[$x_],$[$y_],$(inputsize_tmp[2]),1,$(reply$n_) $ $ to $code !endif The \overline is probably eaten by some oef-script You could try a direct call to canvasdraw...
\text{test=wims(exec canvasdraw
size 200,200
xrange 0,4
yrange 0,4
linewidth 5
input 1,1,1,1,?
latex 2,2,\Huge{\overline{B}})}
\statement{
\test
}I will see if this can be changed within canvasdraw (e.g. accepting an empty string...) kind regards Joke
jm.evers
Participant::I’m not familiar with the ‘special; oef methods…but there are no input fields
in your oef script…however in the ‘correct’ answer they are displayed
So you have to ask Bernadette Perrin…
Inputfields are working fine in canvasdrawsize 400,400 xrange -10,10 yrange -10,10 linewidth 6 point 1,2,red input 1,2,5,1, ? point -5,5,red input -5,5,5,1, ? point 6,-5,red input 6,-5,5,1, ? point -5,-8,red input -5,-8,5,1, ?
jm.evers
Participant::on https://wims.auto.u-psud.fr/
-
Cette réponse a été modifiée le il y a 4 années et 11 mois par
jm.evers.
jm.evers
Participant::The overline seems to work just fine…
search for ‘direct’ or ‘direct exec’ in wims
copy & paste this in the textarea
execute by ‘canvasdraw’size 400,400 xrange -10,10 yrange -10,10 fontfamily 148px Arial strokecolor green drag xy centered latex 0,0,\overline{B}
joke
-
Cette réponse a été modifiée le il y a 4 années et 11 mois par
jm.evers.
jm.evers
Participant::Hi,
I don’t know what the problem is, but pay attention:the command mathml is changed…It is now simplymathml x,y,mathmlcode
And there is a probably simpler way of presenting TeX formatted typesetting using
the new commandlatex x,y,TeXcode
(please check if you are using a current version of canvasdraw)
Bernadette Perrin has created a great/large help page within createxo.
The rest of the exercise escapes my knowledge of the french language.
Please post a simpler example of your issue with canvasdraw -preferably in direct exec !
jokejm.evers
Participant::Don’t worry there was no ‘hack’ : the adress has changed « owner » and the link has changed it’s content…
Besides: the informations on this page are no longer valid.
Opera -as do all other browsers- will work with javascript/math-typesetting.joke
-
Cette réponse a été modifiée le il y a 5 années et 5 mois par
jm.evers.
-
Cette réponse a été modifiée le il y a 4 années et 4 mois par
-
AuteurMessages