Note, that this recipe is not updated long time and could be outdated!
Got it.

texvc: matemātikas formulu ģenerators

Must prepare before:  LaTeX

MediaWiki izmanto "texvc" kā matemātikas formulu ģeneratoru. To var darbināt, lai veidotu PNG (vai MathML) izteiksmes no AMSLaTeX izejas stringiem. Sk. LatexPluginAPI sekojošā krātuvē — https://java-eim.googlecode.com/svn/trunk/java-eim-demo-xwiki-plugin.

Lejupielāde: http://sourceforge.net/project/showfiles.php?group_id=34373

  1. Uzinstalē priekšnosacījumus - OCaml/Latex/Dvipng:

    apt-get install ocaml-interp
    apt-get install ocaml-nox
    ## apt-get install texlive-latex-base
    ## apt-get install tetex-extra
    # (uncomment /etc/apt/sources.list 'universe'-related repos)
    apt-get install dvipng
    ## apt-get install tetex-base
    apt-get install imagemagick
    apt-get install gs-gpl
  2. Atarhivē texvc pakotni:

    cd /home/student/downloads
    gunzip texvc-linux-x86-20050202.tar.gz
    tar xvf texvc-linux-x86-20050202.tar
    mv texvc-linux-x86-20050202 /usr/local/bin/
    ln -s /usr/local/bin/texvc-linux-x86-20050202/texvc /usr/bin/texvc
    which texvc
  3. Izveido PNG formulu atrašanās mapi:

    mkdir /var/www/math
    chmod -R 777 /var/www/math
  4. Testē "texvc" aplikāciju ar, piemēram, šādu komandrindu:

    texvc /tmp /var/www/math "y=x+2" UTF-8
  5. Pārliecinās, ka izveidojas, piemēram šāda komandas atbilde:

    This is dvips(k) 5.95a Copyright 2005 Radical Eye Software (www.radicaleye.com)
    ' TeX output 2007.11.16:2301' ->
    <tex.pro><texps.pro>. <cmr12.pfb><cmmi12.pfb>[[1]]
    Cdaa63ef966cc412541190bc8794731de//y// = //x// + 2<mi>y</mi><mo>=</mo><mi>x</mi><mo>+</mo><mn>2</mn>root@www:/home/student/texvc#
  6. Vienlaikus mapē /var/www/math izveidojas fails daa63ef966cc412541190bc8794731de.png, kas izskatās sekojoši daa63ef966cc412541190bc8794731de.png.

Saites


  
Tags Linux Teksts Rediģēšana Rediģēšana Rīki
Created by Valdis Vītoliņš on 2008-08-09 14:28
Last modified by Valdis Vītoliņš on 2021-04-13 14:30
 
Xwiki Powered
Creative Commons Attribution 3.0 Unported License