WikiTex

From Scantegrity Wiki

Jump to: navigation, search

This is a copy of the wikisophia wikitex howto page.

See also: sandbox, additional features, bugs, usability review, todo.

Contents

[edit] Invoking WikiTeX

Enriching your article with WikiTeX is as easy as wrapping your LaTeX in <class></class> tags; thus:

<music>
	\relative c' { 
		e16-.->a(b gis)a-.->c(d b)c-.->e(f dis)e-.->a(b a)
		gis(b e)e,(gis b)b,(e gis)gis,(b e)e,(gis? b e)
	}
</music>

becomes:

WikiTeX: lilypond reported a failure, namely:
lilypond: unrecognized option: `--no-pdf'

and <amsmath>\sideset{}{'}\sum_{n<k,\;\text{$n$ odd}} nE_n</amsmath>, for instance, math.

You can practice WikiTeX in the sandbox; and following an image's link will reveal its source.

[edit] Classes

The following classes have been implemented:

[edit] Amsmath

Plenary AMS-LaTeX, including commutative diagrams (doc | template).

math

[edit] Chem

XyMTeX is an intuitive chemistry package by Shinsaku Fujita (doc | template).

WikiTeX: latex reported a failure, namely:
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
 %&-line parsing enabled.
entering extended mode
(./9e71bae3f4f7748a80a6d1f4b26e921d
LaTeX2e <2005/12/01>
Babel  and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, arabic, farsi, croatian, ukrainian, russian, bulgarian, czech, slov
ak, danish, dutch, finnish, basque, french, german, ngerman, ibycus, greek, mon
ogreek, ancientgreek, hungarian, italian, latin, mongolian, norsk, icelandic, i
nterlingua, turkish, coptic, romanian, welsh, serbian, slovenian, estonian, esp
eranto, uppersorbian, indonesian, polish, portuguese, spanish, catalan, galicia
n, swedish, ukenglish, loaded.
(/usr/share/texmf-texlive/tex/latex/base/article.cls
Document Class: article 2005/09/16 v1.4f Standard LaTeX document class
(/usr/share/texmf-texlive/tex/latex/base/size10.clo))

! LaTeX Error: File `xymtex.sty' not found.

Type X to quit or  to proceed,
or enter new name. (Default extension: sty)

Enter file name: 
! Emergency stop.
 
         
l.3 \usepackage
               {chemist}^^M
No pages of output.
Transcript written on 9e71bae3f4f7748a80a6d1f4b26e921d.log.

[edit] Chess

Skak by Torben Hoffmann supports SAN and FEN notation (doc | doc | doc | template).

WikiTeX: latex reported a failure, namely:
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
 %&-line parsing enabled.
entering extended mode
(./5fdf18f3c639a81e95e698da94952518
LaTeX2e <2005/12/01>
Babel  and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, arabic, farsi, croatian, ukrainian, russian, bulgarian, czech, slov
ak, danish, dutch, finnish, basque, french, german, ngerman, ibycus, greek, mon
ogreek, ancientgreek, hungarian, italian, latin, mongolian, norsk, icelandic, i
nterlingua, turkish, coptic, romanian, welsh, serbian, slovenian, estonian, esp
eranto, uppersorbian, indonesian, polish, portuguese, spanish, catalan, galicia
n, swedish, ukenglish, loaded.
(/usr/share/texmf-texlive/tex/latex/base/article.cls
Document Class: article 2005/09/16 v1.4f Standard LaTeX document class
(/usr/share/texmf-texlive/tex/latex/base/size12.clo))
(/usr/share/texmf-texlive/tex/latex/skak/skak.sty
(/usr/share/texmf-texlive/tex/latex/skak/lambda.sty)
(/usr/share/texmf-texlive/tex/latex/base/ifthen.sty)
(/usr/share/texmf-texlive/tex/latex/tools/calc.sty))
(./5fdf18f3c639a81e95e698da94952518.aux)
! Undefined control sequence.
l.13 \whitename
               {Dubois}
! Undefined control sequence.
l.14 \blackname
               {Steinitz}
! Undefined control sequence.
l.15 \chessevent
                {London 1862}
! Undefined control sequence.
l.16 \ECO
         {C50}
! Undefined control sequence.
l.17 \chessopening
                  {Giucco Pianissimo}
! Undefined control sequence.
l.18 \makegametitle
                   
! Undefined control sequence.
l.21 \toD
         {hxg3!!} Nxd8 [Nxh8 Qe7! \threat Nf7 Bxf2+
! Undefined control sequence.
l.21 \toD{hxg3!!} Nxd8 [Nxh8 Qe7! \threat
                                          Nf7 Bxf2+
! Undefined control sequence.
l.22 Rxf2 gxf2+ Kxf2 Ng4+ Kg3 Qf6 Qf3 Qg7\BBetter
                                                 ] Bg4
(/usr/share/texmf-texlive/tex/latex/skaknew/uskak.fd)
! Undefined control sequence.
l.24 Bf3\#] Nf3+! gxf3 Bxf3 \toD
                                {Bxf3} \resigns|
! Undefined control sequence.
l.24 Bf3\#] Nf3+! gxf3 Bxf3 \toD{Bxf3} \resigns
                                               |
! Undefined control sequence.
l.26 \makediagrams
                  
[1] (./5fdf18f3c639a81e95e698da94952518.aux) )
(see the transcript file for additional information)
Output written on 5fdf18f3c639a81e95e698da94952518.dvi (1 page, 628 bytes).
Transcript written on 5fdf18f3c639a81e95e698da94952518.log.

[edit] Feyn

feynMF by Thorsten Ohl for Feynman diagrams (doc | template).

WikiTeX: latex reported a failure, namely:
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
 %&-line parsing enabled.
entering extended mode
(./9d1449ace9e9dbafaa128735de68470d
LaTeX2e <2005/12/01>
Babel  and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, arabic, farsi, croatian, ukrainian, russian, bulgarian, czech, slov
ak, danish, dutch, finnish, basque, french, german, ngerman, ibycus, greek, mon
ogreek, ancientgreek, hungarian, italian, latin, mongolian, norsk, icelandic, i
nterlingua, turkish, coptic, romanian, welsh, serbian, slovenian, estonian, esp
eranto, uppersorbian, indonesian, polish, portuguese, spanish, catalan, galicia
n, swedish, ukenglish, loaded.
(/usr/share/texmf-texlive/tex/latex/base/article.cls
Document Class: article 2005/09/16 v1.4f Standard LaTeX document class
(/usr/share/texmf-texlive/tex/latex/base/size12.clo))
! I can't find file `feynman'.
l.2 \input feynman
                  
Please type another input file name
! Emergency stop.
l.2 \input feynman
                  
No pages of output.
Transcript written on 9d1449ace9e9dbafaa128735de68470d.log.

[edit] Go

sgf2dg by Daniel Bump and Reid Augustin for go games described in SGF (doc | template).

Genan—Shuwa, 1842:
WikiTeX: sgf2tex reported a failure, namely:
/usr/share/mediawiki/extensions/wikitex/wikitex.sh: line 59: sgf2tex: command not found

[edit] Graph

Graphviz by Lefty Koutsofios, et al.; for relational diagrams (doc | template).


<dot> rankdir=LR; node [shape = doublecircle]; LR_0 LR_3 LR_8; node [shape = circle]; LR_0 -> LR_2 [ label = "SS(B)" ]; LR_0 -> LR_1 [ label = "SS(S)" ]; LR_1 -> LR_3 [ label = "S(end)" ]; LR_2 -> LR_6 [ label = "SS(b)" ]; LR_2 -> LR_5 [ label = "SS(a)" ]; LR_2 -> LR_4 [ label = "S(A)" ]; LR_4 -> LR_8 [ label = "S(D)" ]; LR_5 -> LR_7 [ label = "S(a)" ]; LR_5 -> LR_5 [ label = "S(b)" ]; LR_6 -> LR_6 [ label = "S(b)" ]; LR_6 -> LR_5 [ label = "S(a)" ]; LR_7 -> LR_8 [ label = "S(b)" ]; LR_7 -> LR_5 [ label = "S(a)" ]; LR_8 -> LR_6 [ label = "S(b)" ]; LR_8 -> LR_5 [ label = "S(a)" ]; </dot>

[edit] Greek

Ibycus by Pierre MacKay for polytonic Greek (doc | template).

greek

[edit] Music

Lilypond with midi output (doc | template).

WikiTeX: lilypond reported a failure, namely:
lilypond: unrecognized option: `--no-pdf'

[edit] Plot

Gnuplot by Hans-Bernhard Broeker, et al.; for plotting two- and three-dimensional line, point, dot, box, histogram graphs or vector fields (doc | template).

WikiTeX: gnuplot reported a failure, namely:
/usr/share/mediawiki/extensions/wikitex/wikitex.sh: line 59: gnuplot: command not found

[edit] Teng

TengTeX by Ivan Derzhanski for Fëanorian Tengwar (doc | template).

WikiTeX: latex reported a failure, namely:
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
 %&-line parsing enabled.
entering extended mode
(./372dc84d292b5d7c19637a753f35a38b
LaTeX2e <2005/12/01>
Babel  and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, arabic, farsi, croatian, ukrainian, russian, bulgarian, czech, slov
ak, danish, dutch, finnish, basque, french, german, ngerman, ibycus, greek, mon
ogreek, ancientgreek, hungarian, italian, latin, mongolian, norsk, icelandic, i
nterlingua, turkish, coptic, romanian, welsh, serbian, slovenian, estonian, esp
eranto, uppersorbian, indonesian, polish, portuguese, spanish, catalan, galicia
n, swedish, ukenglish, loaded.
(/usr/share/texmf-texlive/tex/latex/base/article.cls
Document Class: article 2005/09/16 v1.4f Standard LaTeX document class
(/usr/share/texmf-texlive/tex/latex/base/size12.clo))

! LaTeX Error: File `tengtex.sty' not found.

Type X to quit or  to proceed,
or enter new name. (Default extension: sty)

Enter file name: 
! Emergency stop.
 
         
l.3 \pagestyle
              {empty}^^M
No pages of output.
Transcript written on 372dc84d292b5d7c19637a753f35a38b.log.

id est,

“One Ring to rule them all, One Ring to find them,
One Ring to bring them all and in the darkness bind them.”

[edit] See also

[edit] Credits

WikiTeX was conceived by Peter Danenberg, where Tomasz Wegrzanowski's texvc provided impulse; which packages twain may yet coexist in a self installation.

Several security fixes have been submitted by Johannes Berg.