Įveskite

matematikos formulės

reikia galimybės į puslapius įterpti matematines formules latex arba mathml formatu

5 votes
Vote 0 votes Vote Vote
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service

    You'll receive a confirmation email with a link to create a password (optional).

    Signed in as (Sign out)
    You have left! (?) (thinking…)
    tahutahu shared this idea  ·   ·  Admin →
    completed  ·  BusyFlow tech supportAdminBusyFlow tech support (Admin, Ututi) responded  · 

    Ačiū Vytautai, tavo kodas jau veikia ir kiti gali juo pasinaudoti :)

    Redaguojant Ututi puslapius tereikia LATEX Math komandas įterptį tarp $$ $$ visą kitą darbą atliks Ututi :)

    3 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service

      You'll receive a confirmation email with a link to create a password (optional).

      Signed in as (Sign out)
      Submitting...
      • tahutahu commented  · 

        Taigi, mano "workaround this issue" tipo pasiūlymas įmest tuos du mygtukus į rich text editoriaus (ckeditor ten lyg ir) toolbar'ą.

        Beje, jei tas bookmarklet'o kodas čia išsikraipė, tai galite gerai veikiančius rasti mano blog post'e: http://vytautas.jakutis.lt/archives/295

      • tahutahu commented  · 

        šiuo metu yra vienas būdas, nelabai patogus, bet veikiantis: kadangi yra toks web servisas http://l.wordpress.com/latex.php?latex=x_1&bg=ffffff&fg=000000 tai galima įterpinėt kaip paveikslėlius. kad žymiai patogiau būtų, aš pasidariau tokius du bookmarkletus:
        "latex": javascript:(function(){var r = function(a, b, c) {return a.split(b).join(c);};var b = document.getElementsByClassName("ckeditor")[0];var a = document.getElementsByClassName("cke_source")[0]; var c = (" "+(a?a:b).value+" ").split("$$"); var d = c[0]; for(var i = 1; i < c.length; i+=2) {c[i] = "\\displaystyle " + c[i]; var e = encodeURIComponent(r(r(c[i], "&gt;", ">"), "&lt;", "<"));d+="<code><img alt=\"\" src=\"http://l.wordpress.com/latex.php?bg=ffffff&amp;fg=000000&amp;s=0&amp;latex="+e+"\"; /><script type=\"application/x-latex\">" + r(r(c[i], ">", "&gt;"), "<", "&lt;") + "</script></code>" + c[i+1];};if(b) {b.value=d;}if(a){a.value=d;}return;})();

        ir "unlatex": javascript:(function(){var s = document.getElementsByClassName("ckeditor");s=s[0];var r = function(a, b, c) {return a.split(b).join(c);};var a = document.getElementsByClassName("cke_source")[0]; var b = a.value.split("<script type=\"application/x-latex\">"); var c = ""; for(var i = 0; i < b.length - 1; i++){var o = b[i+1].indexOf("\\displaystyle ");var e = b[i + 1].substring(o === -1 ? 0 : "\\displaystyle ".length, b[i + 1].indexOf("</script>"));b[i+1]=b[i + 1].substr(b[i + 1].indexOf("</code>") + 7);c+=b[i].substr(0, b[i].lastIndexOf("<code>")) + "$$" + r(r(e, "&gt;", ">"), "&lt;", "<") + "$$";};c+=b[b.length - 1];a.value=c;s.value=c;return;})();

        Naudojimas: Rašydami puslapį formules apgaubiame $$, pvz.: "Jei $$\lim_{n \to \infty} f(n) = 0$$, tai $$f(n)$$ yra monotoniškai mažėjanti funkcija.". Tada, prieš išsaugodami, persijungiame į "šaltinis" vaizdą (jei anksčiau to nepadarėme) ir paspaudžiame "latex" bookmarklet'ą, kuris pavers formulę paveikslėlio html kodu. Vėliau, norėdami pataisyti formulę, vėl pereiname į "šaltinis" vaizdą ir paspaudžiame "unlatex" bookmarklet'ą, kuris paverčia latex paveikslėlius į tą pradinį tekstą su $$.

      Knowledge Base and Helpdesk