Wikisophia:Sandbox

From Wikisophia
Jump to: navigation, search

Sandbox for experimentation and ex tempore.

<music> \relative c' { c d e f } </music>


<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>

<asmath> \begin{align*} H &= \sum\limits_{i=1}^N \frac{\vec p^2_i}{2m_i} + \sum\limits_{i,j \quad i\neq j}V(\vec r_i , \vec r_j) \end{align*} </asmath>

<math>\mathfrak qwerty</math>

Contents

Elvish

<teng>\quenya Once upon a time, the planet was tyrannized by a giant dragon. The dragon stood taller than the largest cathedral, and it was covered with thick black scales. Its red eyes glowed with hate, and from its terrible jaws flowed an incessant stream of evil-smelling yellowish-green slime.</teng>

Dot

<graph> { rankdir=LR; node [shape = doublecircle]; LR_0 LR_3 LR_8; node [shape = circle]; LR_0 -> LR_2 [ label = "SS(B)" ]; 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)" ]; } </graph>

Plot

Cycloid

<plot> set parametric r=1.93459321 plot [t=0:4.59458712] \

 r*(t-sin(t)), -r*(1-cos(t))

</plot>

Helix

<plot> set parametric splot [t=0:6*pi] \

 cos(t), sin(t), t

</plot>

Interlocking Tori

<plot>unset border set style fill transparent solid 0.30 border set dummy u,v unset key set style line 2 linetype 2 linecolor rgb "#03a0f0" linewidth 0.500 pointtype 2 pointsize default set parametric set view 64, 345, 1.24375, 0.995902 set isosamples 50, 20 set noxtics set noytics set noztics set urange [ -3.14159 : 3.14159 ] noreverse nowriteback set vrange [ -3.14159 : 3.14159 ] noreverse nowriteback set pm3d depthorder set pm3d interpolate 1,1 flush begin noftriangles hidden3d 2 corners2color mean set palette rgbformulae 8, 9, 7 splot cos(u)+.25*cos(u)*cos(v),sin(u)+.25*sin(u)*cos(v),.25*sin(v) with pm3d, 1+cos(u)+.5*cos(u)*cos(v),.5*sin(v),sin(u)+.5*sin(u)*cos(v) with pm3d </plot>

Kuen's Surface

<plot>unset border set style fill transparent solid 0.65 border set dummy u,v unset key set style line 2 linetype 2 linecolor rgb "#a0a0f0" linewidth 0.500 pointtype 2 pointsize default set style line 3 linetype -1 linewidth 0.500 pointtype 3 pointsize default set parametric set view 122, 357, 1.35, 1.08 set isosamples 51, 51 set hidden3d offset 1 trianglepattern 3 undefined 1 altdiagonal bentover set ticslevel 0 set noxtics set noytics set noztics set urange [ -4.50000 : 4.50000 ] noreverse nowriteback set vrange [ 0.0500000 : 3.09159 ] noreverse nowriteback set lmargin screen 0.1 set bmargin screen 0.1 set rmargin screen 0.9 set tmargin screen 0.9 set pm3d depthorder set pm3d interpolate 1,1 flush begin noftriangles hidden3d 3 corners2color mean unset colorbox x(u,v) = 2.*a*(cos(u)+u*sin(u))*sin(v) / (1+u**2.*(sin(v))**2) y(u,v) = 2.*a*(sin(u)-u*cos(u))*sin(v) / (1+u**2.*(sin(v))**2) z(u,v) = a*log(tan(v/2.))+2.*cos(v)/(1+u**2.*(sin(v))**2) a = 1.0 splot x(u,v), y(u,v), z(u,v) with pm3d</plot>

Julia Set

<plot>set pm3d at s solid set palette rgb -6,-15,-7 unset colorbox set ticslevel 0 unset ztics unset surface set samples 70 set isosamples 70,70 complex(x,y)=x*{1,0}+y*{0,1} mandel(x,y,z,n) = (abs(z)>2.0 || n>=1000)? log(n): mandel(x,y,z*z+complex(x,y),n+1) a=-0.38 b=-0.612 set multiplot set origin 0,0 set size 0.55,0.77 splot [-0.5:0.5][-0.5:0.5] mandel(a,b,complex(x,y),0) set origin 0.35,-0.15 set size 0.7,0.96 set view 0,0,,, splot [-0.5:0.5][-0.5:0.5] mandel(a,b,complex(x,y),0)</plot>

Klein Bottle

<plot>x(u,v)= cos(u)*(cos(u/2)*cos(v)+sin(u/2)*sin(2*v)+3.0) y(u,v)= -sin(u)*(cos(u/2)*cos(v)+sin(u/2)*sin(2*v)+3.0) z(u,v)= -sin(u/2)*cos(v)+cos(u/2)*sin(2*v) set pm3d explicit set palette rgb 3,7,9 unset colorbox set parametric set hidden3d set ticslevel 0 unset key set isosamples 40,40 set view 65,70,1,1 set urange[-0.5*pi:1.5*pi] set vrange[-pi:pi] set zrange[-2:2] set multiplot splot x(u,v),y(u,v),z(u,v) w pm3d splot x(u,v),y(u,v),z(u,v) lt 6</plot>

Trigonometric Surface

<plot>set border 4095 lt -1 lw 1.000 set view 150, 10, 1, 1 set samples 50, 50 set isosamples 50, 50 unset surface set pm3d at s set pm3d scansbackward flush begin noftriangles nohidden3d implicit corners2color mean splot sin(sqrt(x**2+y**2))/sqrt(x**2+y**2)</plot>

Fourier-Synthesis

<plot> set xrange [0:12] set yrange [-1.2:1.2] set sample 10000 f(x)= sin(x)+sin(3*x)/3+sin(5*x)/5+sin(7*x)/7+sin(9*x)/9 plot f(x) </plot>

<plot> set xrange [0:12] set yrange [-1.2:1.2] set sample 10000 f(x)= sin(x)-sin(3*x)/3**2+sin(5*x)/5**2-sin(7*x)/7**2-sin(9*x)/9**2 plot f(x) </plot>

<plot> set xrange [0:12] set sample 10000 f(x)= pi/4*cos(x) + cos(2*x)/(2**2-1) - cos(4*x)/(4**2-1) + cos(6*x)/(6**2-1) - cos(8*x)/(8**2-1) + cos(10*x)/(10**2-1) plot f(x) </plot>

Fëanorian Tengwar

<teng>\quenya Sauron Bilbo Frodo </teng>

Music

Debugging the example from the wikitex page

There is something badly wrong with this example, taken from the wikitex page. I've started fixing it (see the first bar in the treble clef for example) but the problem seems to be major note collision badly handled.

That's intentional, actually: we're dealing with five-part counterpoint, and the odd stem-placement gives the illusion of voice separation. Danenberg 10:45, 10 July 2007 (CDT)
<music> \new Pianostaff << \new Staff { \time 2/2 \clef violin \key cis \minor \relative c \context Staff << \new Voice { \voiceOne s1 gis8 fis gis a gis fis e gis fis e fis gis fis e dis fis e dis e fis e d cis e d cis d e d cis b d cis b cis d cis b a cis b a b cis b a gis b a2 r cis2. } \new Voice { \voiceTwo e8 gis <a cis> <cis e> <dis e> <bis fis'> <cis fis> dis4 s s2 s1 s1 s4 fis, b b b a8 gis a2 gis1~ gis8 gis fis eis fis2 gis2. } \new Voice { \voiceThree \stemDown s1 s s s s2. fis4 eis2 fis } >> } \new Staff { \clef bass \time 2/2 \key cis \minor \relative c' \context Staff << \new Voice { \voiceOne s1 r4 gis cis cis cis bis8 ais bis2 cis1 b2. s4 s1 b2 cis~ cis~ cis8 cis b a gis2. } \new Voice { \voiceTwo \stemUp cis,1 bis2 e dis1 \stemDown cis4 e a a a gis8 fis gis2~ \stemUp gis fis gis1 a2 fis~ fis8 fis e dis e4 } \new Voice { \voiceThree \stemDown cis4 b a2 gis4 r4 g2\rest e1\rest e1\rest e1\rest r4 cis' fis fis fis eis8 dis eis2 fis r r } >> } >> </music> <music> \relative c' c d e f g a b </music> </blockquote>

Tenor part from third Agnus Dei of Josquin's Missa Ave Maris Stella.

<music> \relative c' { \time 2/1 \clef alto \key f \major g1 d'1 (d2) c4 d4 e1 d2 f1 e4 d4 c1 d1 (d2) e2 f1 (f2) d2 g1 f2 d2 f2 g2 e1 d1 r1 r1 d1 d1 g,1. a2 bes1 c2. d4 ees2 d1 c4 bes4 a1 g1 r1 c1 c1 a1. bes2 c1 d1 c2 bes2 a1 g1 r2 g2 a2 c1 bes4 a4 g1 f1 r1 r1 bes2. c4 d2 c1 a2 bes2 g2 bes2 c2 a1 g1 r2 c1 a2 bes2 c2. bes4 a4 g4 f4 g4 a4 f4 g1 a\breve g\breve (g\breve) (g\breve) (g\breve)\bar "||"} </music>

An experiment in Eastern music

<music> \relative c { \time 4/4 \clef treble \repeat volta 1 {\grace g16 c1 c8 (b8) c4 c8 (a8) c16 (a16 c16 b16) a16 g8. ~ g4 f16 (e16 f8) g8. (a16) g8 e16 (g16) f8 e8 e4 (g8 e8) g2 g8 b8 (a8) c8 c8 (b16) c16 (g4) g8 b16 (a16) b16 (a16 c16 b16) c4 c16 (e8) d16 c4 c8 (b8) c8 (a16 c16) a8 g8 g8 (b16) a16 b16 (a16 c16 b16)}

\repeat volta 2 {c2 c16 (a8.) c16 (a8.) g4 g16 f16 e16 f16 f8 e16 f16 c'8 a8 (g4) g8 e16 g16 f8 e4 f8 g4 g8 e8 e16 g16 f8 f8 d8 d16 g16 e4 f8 g4 g8 (c8) a4 g4 g8. (e16) g16 e16 g8 g8. b16 a8 b8 c4 a8 b8} \alternative{{c1} {c2 c8 (e8) d8 (e8)}}

\repeat volta 1 {e8 (f8) e4 e8 d8 c8 b8 c4 c16 e8 d16 c4 c8 b8 c8 a16 c16 a8 g8 g8 b16 a16 b16 a16 c16 b16 c4 e8 d16 e16 d8 c4. c,8 c'8 a4 g4 g8 e8 a8 g8 g8 e16 g16 f8 e8 f8 d8 c4 c8 f8 e4 e8 g16 e16 g2 g8 b16 a16 b16 a16 c16 b16}

c8 d8 b8 c8 a8 [b8 c8] g8 [a8 b8 c8 a8 g8] f8 [g8 a8] f8 g8 e8 [f8 g8] d8 [e8 f8] c8 [d8 e8 f8 g8 a8 b8 c8] d8 [e8 f8 e8] d8 [e8 d8 c8] b8 [g8 a8 b8] c4 g4 c8 b8 a8 g4 f8 e8 d8 c8 d4 e8 f8 g8 a8 b8

\repeat volta 2 {b2. c8 c16 a16} } </music>

etc

Rudolph the Red-Nosed Reindeer

Second Minuet to the C minor French Suite (BWV 813a)

Let's try something a bit longer in the music department.

A short excerpt:

<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>

What about transposing?

<music> \transpose a d, \relative c' {

  \clef bass
  c d e c
  c d e c
  e f g2
  e4 f g2
  g8 a g f e4 c
  g8 a g f e4 c
  d g c2
  d4 g c2

} </music>


Test

<music> \relative c {

 a4^\markup{Swing} a f f d8 d4 c8~ c2 f4 f g8 g4 f8~ f2 r \bar "|."
}

</music>

Alright, lemme see.

<music> \relative c { \time 4/4 \clef treble \key e \major e8 fis gis gis4 gis8 e4 e8 e4 e e8 a, g2 } </music>

"With your feet in the air and your head on the ground..."

« j'ai du bon tabac » (french song in 3/4 should be in 2/4 but want to try partial mesure)

<music> \relative c'{ \clef "G_8" \time 3/4 \key c \major \partial 2 c8 d e c d4 d8 e f4 f e e c8 d e c d4 d8 e f4 g c,2 \bar "|:" } </music>

<music> \relative c { \time 2/4 \clef treble \key c \minor c8 ees g f16 g g8 c g, ees, c,16 d, ees, f, g,8 b, c g c4 } </music>

gr33tz from DocSnyder to GS and CL

<music> \relative c' { \clef violin \time 4/4 \key c \major e8 g e c e2 a8 c a f a2 g8 b g e g4. g8 f8 a f d e2 \bar "||" e8 g e c e2 g8 bes g e g4. e8 f8 as c, d e g4 e8 c2. r4 \bar "|." } </music>

<music> \relative c' { c,16\mf d\< e f g a b r c d e f g a b r c\! d e f g a b r c\> b a g f e d r c b a g f e d r c\! b a g f e d8 c4 r2. c16\ff c' d, d' e, e' f, f' g, g' a, a' b, b' c, c' d, d' e, e' f, f' g, g' a, a' b, b' c, c' r8 <c-1 e-3 g-5> } </music>

<music> \relative c' { <a d>8 <a d>8 <a d>8 <c f>2 r8 <c f>8 <c f>8 <c f>8 <e a>2 r8 <c f>4 <e a>4 <c f>4 <a d>4 } </music>

Pop music?

<music>

\chords {
  c1:m7 f2:7 c2
  }  
\relative c {
   g2 es8( c4. )
   f8 f es d c2
  }
\addlyrics {
   Li ly,
   is go- na sing green!
  }

</music>

Why do the chords mess-up?


<music> \relative c' { \time 7/8 \clef violin \key c \major c8 d e f g a b | c gis4 <c, ees g>2 } </music>

Chess

FIXME: fails to produce long board

<chess> \whitename{Franz Meier} \blackname{Gustav Frank} \chessevent{Tournament, 2002} \chessopening{K\"{o}nigsindisch} \makegametitle \styleB \newgame \mainline{1. Nf3 Nf6 2. c4 g6 3. Nc3 Bg7 4. e4 d6 5. d4 O-O 6. Be2 e5 7. O-O Nc6 8. d5 Ne7 9. b4 a5 10. Ba3 Nd7 11. bxa5 Rxa5 12. Bb4 Ra8 13. a4 Bh6 14. a5 f5 15. Nd2 Nf6 16.c5 Bxd2 17.Qxd2 fxe4} \[\showboard\] </chess>

<chess> \whitename{Korody} \blackname{Bologh} \chessevent{1933} \chessopening{Unknown Chess Event} \styleA \newgame \mainline{1. d4 d5 2. c4 e5 3. dxe5 d4 4. e3 Bb4+ 5. Bd2 dxe3 6. Bxb4 exf2+ 7. Ke2} \[\showboard\] \mainline{7... fxg1=N+ 8. Rxg1 Bg4+} \[\showboard\] </chess>

& White resign... 0-1

<chess> \whitename{Me} \blackname{Myself} \chessevent{1902} \chessopening{something} \makegametitle \styleB \newgame \mainline{1. Nf3 Nf6 2. c4 g6} \[\showboard\] </chess>

  • Excellent!! This is already useful to show games and openings! Promotions and uderpromotions works too, cool! But how to setup chess problem now? No FEN notations?! :( This are great news anyway! Thank you Maestro Danenberg!! --Igor 09:08, 19 Apr 2005 (CDT)
    • Try the \fenboard command, Igor, for FEN notation:
      <chess>\newgame

\fenboard{5k1r/2q3p1/p3p2p/1B3p1Q/n4P2/6P1/bbP2N1P/1K1RR3 b KQkq - 0 1}

\showboard</chess>
Danenberg 18:44, 19 Apr 2005 (CDT)

newchess

FIXME: large board fails on font creation

<chess> \whitename{Franz Meier} \blackname{Gustav Frank} \chessevent{Tournament, 2002} \chessopening{K\"{o}nigsindisch} \makegametitle \mainline{1. Nf3 Nf6 2. c4 g6 3. Nc3 Bg7 4. e4 d6 5. d4 O-O 6. Be2 e5 7. O-O Nc6 8. d5 Ne7 9. b4 a5 10. Ba3 Nd7 11. bxa5 Rxa5 12. Bb4 Ra8 13. a4 Bh6 14. a5 f5 15. Nd2 Nf6 16.c5 Bxd2 17.Qxd2 fxe4} \showboard </chess>

Chemistry

<chem>\octamethylene{4==S;5==S}{1W==HO;1D==O;8D==O;8W==OH;2SB==H;7SA==H;2SA==NH$_2$;7SB==NH$_2$} </chem>

<chem>\tetramethylenei{4==OH}{1==\bzdrv[c]{1==OH;4==(yl)};2SB==NH$_2$;2SA==H;3D==O} </chem>

<chem>\tetramethylenei{4==OH}{1W==\nonaheterov[bjge]{1==N}{1==H;3==(yl)};2SB==NH$_2$;2SA==H;3D==O} </chem>

<chem>\tetramethylenei{4==OH}{1W==\fiveheterovi[A]{1==N;4==N}{1==H;2==(yl)};2SB==NH$_2$;2SA==H;3D==O} </chem>

<chem>\tetrahedral{0==C} </chem>

<chem>\purinev{} </chem>

Greek

<greek> \begin{verse} \leavevmode\llap{)=}Hri me`n ai(' te Kudw'niai\\ mhli'des a)rdo'menai r(oa=n\\ e)k pota'mwn i('na Parqe'nwn\\ kh=pos a)kh'ratos, ai(' t' oi)nanqi'des\\ au)co'menai skie'roisin u(f' e('rnesin\\ oi)nare'ois qale'qoisin; e)moi` d' e)'ros\\ ou)demi'an kata'koitos w('ran.\\ <a)ll' a(' >q' u(po` steropa=s fle'gwn\\ Qrhi+'kios Bore'as a)i's|-\\ \quad swn para` Ku'pridos a)zale'ais mani'aisin e)remno`s a)qambh`s\\ e)gkrate'ws pedo'qen \dagger fla'sen\dagger\\ <finga' fool roo'noip\\ h(mete'ras fre'nas. \end{verse}

w)= Zeu=, xalepo's e)stin o) bi'os.

</greek>

Ibycus' Fragm. 5, Page

<greek> a b c d e f g h i j k l m n o p q r s t u v w x y z A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

</greek>

Alphabet

IPA

topo <ipa>["tO.po] </ipa>
sputo <ipa>["spu.to] </ipa>
cavolo <ipa>["ca.vo.lo] </ipa> <ipa> [T, D, \textteshlig, \textdyoghlig, \*r, I, \ae, @, U] </ipa> It's important to fix this odd behaviour regarding '[' and ']'.

Agreed; we'll likely switch to a new renderer in the upcoming version, dvipng, which lacks that tendency to crop the edges. I'd like to have a trial before solstice. Danenberg 08:17, 13 Dec 2004 (CST)
dvipng shows a noticable improvement; though the left bracket, I believe, is softer than the right. Danenberg 23:09, 30 Jan 2005 (CST)

<ipa>@"bAUt </ipa>

feynman diagrams

<feyn> \begin{fmfgraph*}(40,30) \fmfleft{a,b} \fmflabel{$e^-$}{a} \fmfright{c,d} \fmflabel{$e^-$}{c} \fmf{fermion}{a,e,m,n,b} \fmf{photon,left}{m,n} \fmf{fermion}{c,f,g,h,d} \fmf{photon}{e,i} \fmf{fermion,left}{i,j,i} \fmf{photon}{j,k} \fmf{fermion,left}{k,l,k} \fmf{photon}{l,g} \fmf{photon}{f,h} \end{fmfgraph*} </feyn>

<feyn>

      \begin{fmfgraph*}(40,30) \fmfpen{thick}
        \fmfleft{i1,i2} \fmfright{o1,o2}      
        \fmf{fermion}{i1,v1,o1} \fmf{fermion}{i2,v2,o2}
        \fmf{photon,label=$q$}{v1,v2} \fmfdot{v1,v2}
      \end{fmfgraph*}

</feyn>

<feyn>

    \begin{fmfgraph*}(40,25)
      \fmfpen{thick}
      \fmfleft{i1,i2}
      \fmflabel{$\bar{b}$}{i1}
      \fmflabel{$d$}{i2}
      \fmfright{o1,o2}
      \fmflabel{$\bar{d}$}{o1}
      \fmflabel{$b$}{o2}
      \fmf{fermion}{i1,v1}
      \fmf{fermion,label=$\bar{t},,\bar{c},,\bar{u}$,
                   l.side=right}{v1,v3}
      \fmf{fermion}{v3,o1}
      \fmf{fermion}{o2,v4}
      \fmf{fermion,label=$t,,c,,u$,l.side=right}{v4,v2}
      \fmf{fermion}{v2,i2}
      \fmf{photon,label=$W^+$,l.side=left}{v1,v2}
      \fmf{photon,label=$W^-$,l.side=right}{v3,v4}
      \fmfdotn{v}{4}
    \end{fmfgraph*}

</feyn>

<feyn>

      \begin{fmfgraph*}(40,25)
        \fmfpen{thick}
        \fmfleftn{i}{2}
        \fmfrightn{o}{4}
          \fmflabel{$e_-$}{i1}
          \fmflabel{$e_+$}{i2}
          \fmf{fermion}{i1,v1,i2}
        \fmf{photon}{v1,v2}
        \fmfblob{.15w}{v2}
          \fmf{photon}{v2,v3}
            \fmflabel{$\mu_+$}{o1}
            \fmflabel{$\nu_\mu$}{o2}
            \fmf{fermion}{o1,v3,o2}
          \fmf{photon}{v2,v4}
            \fmflabel{$\bar{c}$}{o4}
            \fmflabel{$s$}{o3}
            \fmf{fermion}{o4,v4,o3}
      \end{fmfgraph*}

</feyn>

<feyn>

      \begin{fmfgraph*}(40,25)
        \fmfpen{thick}
        \fmfleftn{i}{2}
        \fmfrightn{o}{4}
        \fmflabel{$e_-$}{i1}
        \fmflabel{$e_+$}{i2}
        \fmf{fermion}{i1,v1,v2,i2}
          \fmf{photon}{v1,v3}
            \fmflabel{$\mu_+$}{o1}
            \fmflabel{$\nu_\mu$}{o2}
            \fmf{fermion}{o1,v3,o2}
          \fmf{photon}{v2,v4}
            \fmflabel{$\bar{c}$}{o4}
            \fmflabel{$s$}{o3}
            \fmf{fermion}{o4,v4,o3}
      \end{fmfgraph*}

</feyn>

<feyn>

    \begin{fmfgraph*}(40,25)
      \fmfpen{thick}
      \fmfleft{i1,d1}
      \fmfright{o1,d2}
      \fmfn{plain}{i}{4}
      \fmf{plain}{i4,v,o4}
      \fmfn{plain}{o}{4}
      \fmffreeze
      \fmf{gluon,left,fore=red}{i1,o1}
      \fmf{gluon,left,fore=green}{i2,o2}
      \fmf{gluon,left,fore=blue}{i3,o3}
      \fmfdotn{i}{3}
      \fmfdotn{o}{3}
      \fmfv{d.sh=circle,d.f=empty,d.si=.2w,b=(1,,0,,1),
            l=$\Sigma$,l.d=0}{v}
    \end{fmfgraph*}

</feyn>

<feyn>

    \begin{fmfgraph}(40,25)
      \fmfpen{thick}
      \fmfleft{i1,i2}
      \fmfright{o1,o2,o3,o4}
      \fmf{fermion}{i1,v1,i2}
      \fmf{boson}{v1,v2}
      \fmf{fermion}{o1,v2,v3,o4}
      \fmffreeze
      \fmf{boson}{v3,v4}
      \fmf{fermion}{o3,v4,o2}
    \end{fmfgraph}

</feyn>

Graph

<graph> punk { rankdir=TB; size="12,9" node [shape = doublecircle]; "mod" "the orb" "2600"; node [shape = circle]; "living theatre" -> "jim morrison" -> "iggy pop" -> "punk" "mod" -> "ska" "malcolm mclaren" -> "punk" "ska" -> "reggae" "reggae" -> "dub" "lee 'scratch' perry" -> "dub" "dub" -> "the orb" "punk" -> "the clash" "dub" -> "the clash" "the clash" -> "big audio dynamite" "kraftwerk" -> "big audio dynamite" "big audio dynamite" -> "2600" }</graph>
<graph layout="neato"> graph ER { node [fontsize=12]; node [shape=box]; course; institute; student; node [shape=ellipse]; {node [label="name"] name0; name1; name2;} code; grade; number; node [shape=diamond,style=filled,color=lightgrey]; "C-I"; "S-C"; "S-I"; name0 -- course; code -- course; course -- "C-I" [label="n",len=1.00]; "C-I" -- institute [label="1",len=1.00]; institute -- name1; institute -- "S-I" [label="1",len=1.00]; "S-I" -- student [label="n",len=1.00]; student -- grade; student -- name2; student -- number; student -- "S-C" [label="m",len=1.00]; "S-C" -- course [label="n",len=1.00]; label = "\n\nEntity Relation Diagram\ndrawn by NEATO"; } </graph>
<graph> /*digraph thornsett*/ { rotate=90; "Thornsett Logo\n(animated)" -> "Charterhouse\n(CGI)" "Charterhouse\n(CGI)" -> "Aston Webb House" "Aston Webb House" -> "Pont St" "Pont St" -> "Cadogan St" "Cadogan St" -> "WestCityOne" "WestCityOne" -> "Eaton Gate\n(morph)" "Eaton Gate\n(morph)" -> "Technopark" "Technopark" -> "Welsh Coll. Logo\n(animated - woven)" "Welsh Coll. Logo\n(animated - woven)" -> "Strawberry Close" "Strawberry Close" -> "Smokehouse Quay" "Smokehouse Quay" -> "Swanswell Close" "Swanswell Close" -> "Thornsett Logo\n(animated)" } </graph>

Graph: Prostate Cancer

<graph> { /* graph [fontsize=8]; edge [fontsize=8]; */ node [fontsize=10]; "fatal-type \n cancer" -> "test positive"; "non-fatal-type \n cancer" -> "test positive"; "treatment" [shape=box]; "fatal-type \n cancer" -> "death"; "treatment" -> "death" [style=dashed]; "treatment" -> "side-effects: \n impotence or\n incontinence"; } </graph>
<graph> /* graph [fontsize=8]; edge [fontsize=8]; */ node [fontsize=10]; "國中" -> "就業"; "國中" -> "高中"; "高中" -> "就業"; </graph>

Math

Here is some inline text with small symbols like <amsmath>\pi</amsmath>and bigger symbols like <amsmath>\sum_{i=1}</amsmath>. Apparently, we can even mix symbolic math and text, as in <amsmath>\Pi arie</amsmath>, the original name of Pyarie. The strange thing is that sometimes, the math causes linebreaks like those shown.

Because of the MediaWiki coupling with Texvc, we often have to use the <amsmath> tag, making <amsmath>\pi</amsmath> become <amsmath>\pi</amsmath>. Although that's not necessary here as <amsmath> works.

I might even bring that up with MediaWiki, John; a quick fix is to remove the space after the math tag [fixed; see below]. Danenberg 17:57, 28 Feb 2005 (CST)
P.S.  Hmm; although you can replicate the behaviour with, say, <greek>p</greek>; I have yet to have success on Wikipedia itself.  Controversy. Danenberg 18:15, 28 Feb 2005 (CST)
Should be fixed now in 1.0.4. Danenberg 01:26, 16 Jun 2005 (CDT)

OMFG, a Hamiltonian: <amsmath> H = \sum\limits_{i=1}^N \frac{\vec p^2_i}{2m_i} + \sum\limits_{i,j, i\neq j}V(\vec r_i , \vec r_j) </amsmath>

Here's a beautiful formula by Ramanujan:

<amsmath>\fbox{$ \frac{\displaystyle 1}{\displaystyle 1+ \displaystyle \frac{e^{-2\pi}}{1+ \displaystyle \frac{e^{-4\pi}}{1+\cdots}}} =\left(\sqrt{\frac{\displaystyle 5+\sqrt{5}}{\displaystyle 2}}-\frac{\displaystyle \sqrt{5}+1}{\displaystyle 2}\right)e^{2\pi/5} $}{ }</amsmath>
Who can write the proof here?
Testing my formula:
<amsmath>0=(\cos^{2}\alpha-\sin^{2}\beta)((x-a)^{2}-\frac{2z\cos\beta\sin\beta(x-a)}{\cos^{2}\alpha-\sin^{2}\beta}+\frac{z^{2}\cos^{2}\beta\sin^{2}\beta}{(\cos^{2}\alpha-\sin^{2}\beta)^{2}})+z^{2}(\frac{-\cos^{2}\beta\sin^{2}\beta}{(\cos^{2}\alpha-\sin^{2}\beta)}+(\cos^{2}\alpha-\cos^{2}\beta))+y^{2}\cos^{2}\alpha </amsmath> testing... <amsmath>x^y=\frac{((\frac{z^y}{y^\alpha})^(\cos\omega))}{\sqrt{z}}</amsmath> <amsmath>\sum_{n=0}^\infty \frac{x^n}{n!}</amsmath> . <amsmath>\int\displaylimits_{-\infty}^{\infty} dx f\left(x\right)</amsmath> <amsmath>\begin{eqnarray*}x & = & y \\y & = & z\end{eqnarray*}</amsmath> Another test <amsmath>\frac12</amsmath> <amsmath> \begin{table}[htdp] \caption{Terminology used in theoretical sections of the paper.} \begin{center} \begin{tabular}{|c|l|} \hline $cFRET$ & FRET signal corrected for signal cross-talk\\ $dFRET$ & donor concentration normalised FRET efficiency\\ $aFRET$ & acceptor concentration normalised FRET efficiency\\ $AER$ & Acceptor excitation ratio, determines\\ & direct acceptor excitation at $I_{ex, D}$\\ $DER$ & Donor emission ratio, determines bleed-\\ & through of donor emission into acceptor channel\\ $\alpha$ & normalisation parameter for $dFRET$\\ $\beta$ & normalisation parameter for $aFRET$ \\ $Q_{D}$ & Quantum yield of donor\\ $Q_{A}$ & Quantum yield of acceptor\\ $T_D^A$ & collection efficiency for donor photons emitted into\\ & acceptor channel\\ $T_A^A$ & collection efficiency for acceptor photons emitted into\\ & acceptor channel\\ $\psi_{X}^{Y}$ & collection efficiency for signal from species $X$ \\ & in detection channel $Y$\\ $B_{X}^{Y}$ & Einstein $B$-coefficient for stimulated absorption \\ & of species $X$ at excitation wavelength $Y$\\ $\Gamma_{X}^{Y}$ & spectral overlap factor of $X$ at excitation\\ & wavelength $Y$\\ $XmYx$ & The image collected in channel $X$ when \\ & using excitation wavelength $Y$\\ \hline \end{tabular} \end{center} \label{Terminology used in theoretical sections of the paper.} \end{table} </amsmath>

Music

<music>

\relative c {
       \clef treble
       \key c \major
       \time 4/4
    
       d8 b c4 d8 e f4 g4 d a g \times 2/3 {d2 d d}
    }

</music>

Music 1

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

Go

<go>(; PL[1];B[qd];W[oc];B[ec];W[pf];B[od];W[nd];B[oe];W[pc]; B[qe];W[qc];B[qi];W[de];B[cd];W[ce];B[bd];W[mf];B[of];W[gc];B[fc]; W[gd];B[ee];W[do];B[cj];W[di];B[ci];W[dh];B[cm];W[fe];B[ef];W[ff]; B[eg];W[fg];B[eh];W[fh];B[ei];W[dj];B[dk];W[ej];B[fi];W[dl];B[ek]; W[fj];B[gi];W[dd];B[dc];W[ck];B[el];W[bk];B[ch];W[cg];B[dg];W[fl]; B[fk];W[gj];B[bg];W[cf];B[ed];W[dm];B[em];W[dn];B[gl];W[hj];B[hi]; W[ij];B[il];W[jf];B[jh];W[kj];B[gn];W[oi];B[hg];W[qj];B[rj];W[qh]; B[pj];W[pi];B[qk];W[ri];B[ie];W[if];B[hf];W[jd];B[hd];W[hc];B[me]; W[lf];B[ne];W[md];B[le];W[kd];B[kf];W[kg];B[ke];W[je];B[jg];W[kh]; B[rc];W[rb];B[rh];W[qj];B[ld];W[lc];B[qi];W[bh];B[bi];W[qj];B[mc]; W[nc];B[qi];W[bf];B[ah];W[qj];B[kc];W[mb];B[qi];W[af];B[cl];W[bm]; B[ki];W[qj];B[lb];W[mc];B[qi]; C[Now the situation becomes complicated beyond the point of mortal understanding, since in addition to the ko on the right, White is trying to revive his dead stones on the left. If they live, White does not need to worry about eyes in the center.] )</go>

Music 1

<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>

Music 2

<music> \new Pianostaff << \new Staff { \time 2/2 \clef violin \key cis \minor \relative c \context Staff << \new Voice { \voiceOne r4 cis8 dis e4 gis fis8 fis gis a gis fis e gis fis e fis gis fis e dis fis e dis e fis e d cis e d cis d e d cis b d cis b cis d cis b a cis b a b cis b a gis b a2 r cis2. } \new Voice { \voiceTwo e,8 gis a b cis dis bis dis cis4 r r2 r1 r1 r4 gis, b b b a8 fis a2 gis1~ gis8 gis fis eis fis2 gis2. } \new Voice { \voiceThree \stemDown s1 s s s s2. fis4 eis2 fis } >> } \new Staff { \clef bass \time 2/2 \key cis \minor \relative c' \context Staff << \new Voice { \voiceOne s1 r4 gis cis cis cis bis8 ais bis2 cis1 b2. s4 s1 b2 cis~ cis~ cis8 cis b a gis2. } \new Voice { \voiceTwo \stemUp cis,1 bis2 e dis1 \stemDown cis4 e a a a gis8 fis gis2~ \stemUp fis8 fis e dis e4 e e e e e e e } \new Voice { \voiceThree \stemDown cis4 b a2 gis4 r4 g2\rest e1\rest e1\rest e1\rest r4 cis' fis fis fis eis8 dis eis2 fis r r } \new Voice { \voiceFour \stemDown r4 g2\rest e1\rest e1\rest e1\rest r4 cis' fis fis fis eis8 dis eis2 fis r r r4 gis4 a2 b cis4 } >> } >> </music>


Music 3

A short round.

<music> \new Staff \with { \remove "Note_heads_engraver" \consists "Completion_heads_engraver" } { \time 3/4 \context Staff << \new Voice \relative c' { \voiceOne c2.^"* Sung by a single voice" c4 d e d2.~ d2 c4 f2. f4 e d c2. \break e2.^"*" e4 f g g f e d2. c4 f2 f4 g a g2. \break c2.^"*" c c4 bes a g2 f4 a2. a4 c, f e2. \bar "||" \break } >> \context Staff << \new Voice \relative c' { \voiceOne c2.^"* Sung as a round" c4 d e d2.~ d2 c4 f2. f4 e d c2. \break e2. e4 f g g f e d2. c4 f2 f4 g a g2. c2. c c4 bes a g2. f4 a2. a4 c, f e2. c2.^"*" c4 d e d2.~ d2 c4 f2. f4 e d c2. \break e2. e4 f g g f e d2. c4 f2 f4 g a g2.~ g^\fermata } \new Voice \relative c' { \voiceTwo s2. s s s s s s c2.^"*" c4 d e d2.~ d2 c4 f2. f4 e d c2. \break e2. e4 f g g f e d2. c4 f2 f4 g a g2. c2. c c4 bes a g2. f4 a2. a4 c, f e2. c2.^"*" c4 d e d2.~ d2 c4 f2. f4 e d c2.~ c } \new Voice \relative c' { \voiceThree s2. s s s s s s s2. s s s s s s c2.^"*" c4 d e d2.~ d2 c4 f2. f4 e d c2. \break e2. e4 f g g f e d2. c4 f2 f4 g a g2. c2. c c4 bes a g2. f4 a2. a4 c, f e2.~ e } >> \bar "|." } </music>

<music> \new Staff \with { \remove "Note_heads_engraver" \consists "Completion_heads_engraver" } { \time 3/4 \context Staff << \new Voice \relative c' { \voiceOne c2.^"* round round get around" c2 c2 c2 c2 \break e2.^"* i get around" b2 b2 b2 \break

                       d2.^"* get around round round" a1 a2 a2 \break

} >> \bar "|." } </music>

Tablature test

<music> \context TabStaff {

a\2 c'\2 a\3 e'\1

e\4 c'\2 a\3 e'\1

a,4\5 c'\2 a\3 e'\1

e\4 c'\2 a\3 e'\1

b\4 c'\3

} </music>

The MIDI link doesn't play anything, however... --Phil 06:19, 24 May 2005 (CDT)


Sandboxing

Messiaen's mode 21 <music> {

       \clef treble

c' des' ees' e' fis' g' a' bes' c } </music>


Use \relative. <music> \relative {

 \clef treble
 c4 d8 e f4 g | c8( fis,) g[ a] g4. r8 
 \bar "|."

} </music>


Messiaen's mode 22 is really cool <music> { \clef treble cis' d' e' f' g' gis' ais' b' cis } </music>


Messiaen's mode 23 is really cool... isn't it? <music> { \clef treble d' ees' f' fis' gis' a' b' c d } </music>

OK I'm just testing interaction between text and music. Edoardo

Ode to joy <music> { \clef violin b' b' c d d c b' a' g' g' a' b' b' a' a'2 } </music>

ehehe --Helios89 13:47, 1 Jan 2006 (CST)

SVG

What's wrong with this SVG?
Why it is compiled with latex and not with convert (ImageMagick) ?

<svg> <g> <path i:knockout="On" fill="#FFFFFF" stroke="#FF0000" d=" M0.487,79.041C10.493,36.044,118.352,2.814,153.582,0.726 c74.74-4.432,130.319,57.104,98.817,128.802c-29.475,67.081-86.583,91.006-96.181,170.465 c-9.872,81.722-10.424,98.725,45.607,150.162c71.812,65.922,142.583,101.204,242.317,89.09 c92.768-11.259,255.825-186.75,125.809-250.673c-83.41-41.009-140.565,29.118-212.942,51.331"/> </g> </svg>

Klien Bottle

<plot> x(u,v)= cos(u)*(cos(u/2)*cos(v)+sin(u/2)*sin(2*v)+3.0) y(u,v)= -sin(u)*(cos(u/2)*cos(v)+sin(u/2)*sin(2*v)+3.0) z(u,v)= -sin(u/2)*cos(v)+cos(u/2)*sin(2*v) set pm3d explicit set parametric set hidden3d set ticslevel 0 unset key set isosamples 40,40 set view 65,70,1,1 set urange[-0.5*pi:1.5*pi] set vrange[-pi:pi] set zrange[-2:2] set multiplot splot x(u,v),y(u,v),z(u,v) w pm3d splot x(u,v),y(u,v),z(u,v) lt 6 </plot>

Macro

Is there any way to define a macro for use in a graph in wikitex?

<graph> \def\MacroTest{a->e->f;} digraph {

\MacroTest
a->b->c;

} </graph>


Plot

<plot>set samples 500 plot [-5:25][-0:455] -(1/3)*(x*x*sin(x)) + 8*(x*x) - 15*x title "-x^3/3 + 8x^2 - 15x" </plot>

<plot>set samples 500 plot [-3:3][-10:10] 5*sin(3*x)+2*sin(23*x) title "5sin 3x + 2sin 23x"</plot>

<plot> set samples 500 set arrow to 0,19 set arrow from -10,0 to 10,0 nohead plot [-10:10][-2:20] x*x title "x^2"

</plot>

Plots with Data

Attempting to plot actual data values is futile. Surrender now before you wast brain sweat trying to figure out how. Here's why.

Danenberg 17:42, 17 February 2006 (CST): Added data in 1.1beta1; upload a file and reference it so:
<plot data="upload.dat">plot "upload.dat" on 1:2;</plot>

Armor

<plot>set pm3d; unset surface; splot sin(cos(tan(x*y)))</plot>

Testing

Será que funciona acentuação? <amsmath>\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}


\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)} \textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)} \textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)} \textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)} \textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}

\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}\textrm{Define} f: X \to \mathbb{R} \quad \textrm{as} \quad f(x) = \frac{\sum_{i=1}^{n}\phi_i(x)}{1+\phi_i(x)}



</amsmath>

File:Http://www.terra.com.br/istoe/istoe sp/esportes/fotos/consumo ciclismo 02.jpg File:Example.jpg [Image:http://www.terra.com.br/istoe/istoe_sp/esportes/fotos/consumo_ciclismo_02.jpg]


<amsmath> {\bf y}(n) = \sum_{n=0}^N {\bf h}(n){\bf s}(n-k) </amsmath>

Será que funciona acentuação?

Egg Sample:

Dsdhall 12:46, 27 June 2006 (CDT) Don't hotlink to other sites without permission - thanks

<teng>

\sindarin ash nazg duRbatuluuk, ash nazg gimbatul,

ash nazg thrakatuluuk, agh buRzumishi krimpatul

</teng>

Test Bottle

<plot> x(u,v)= -cos(u)*(cos(u/2)*cos(v)+sin(u/2)*sin(2*v)+3.0) y(u,v)= -sin(u)*(cos(u/2)*cos(v)+sin(u/2)*sin(2*v)+3.0) z(u,v)= -sin(u/2)*cos(v)+cos(u/2)*sin(2*v) set pm3d explicit set parametric set hidden3d set ticslevel 0 unset key set isosamples 40,40 set view 65,70,1,1 set urange[-0.5*pi:pi] set vrange[-pi:2*pi] set zrange[-2:2] set multiplot splot x(u,v),y(u,v),z(u,v) w pm3d splot x(u,v),y(u,v),z(u,v) lt 6 </plot>

Test Schema Diagram

<graph> digraph schemaExample { /* graph [fontsize=8]; edge [fontsize=8]; */ node [fontsize=10]; "SuggestedConstraint" -> "featureName"; "SuggestedConstraint" -> "numberOfItems"; "SuggestedConstraint" -> "operation"; "SuggestedConstraint" -> "newConstraintType"; "SuggestedConstraint" -> "newConstraint"; "newConstraint" -> "stringType"; "newConstraint" -> "integerType"; "newConstraint" -> "floatType"; "newConstraint" -> "intRangeType"; "intRangeType" -> "minInt"; "intRangeType" -> "maxInt"; "newConstraint" -> "floatRangeType"; "floatRangeType" -> "minFloat"; "floatRangeType" -> "maxFloat"; "newConstraint" -> "dateRangeType"; "dateRangeType" -> "minDate"; "dateRangeType" -> "maxDate"; } </graph>

Test Schema Diagram II

<graph> digraph schemaExample { nodesep=.05; rankdir=LR; node [shape=record,width=.1,height=.1]; node00 [label = "{SuggestedConstraint}"]; node11 [label = "{<n> featureName|string}"]; node12 [label = "{<n> numberOfItems|integer}"]; node13 [label = "{<n> operation|integer}"]; node14 [label = "{<n> newConstraintType|integer}"]; node15 [label = "{<n> newConstraint}"]; node21 [label = "{<n> stringType|string}"]; node22 [label = "{<n> integerType|integer}"]; node23 [label = "{<n> floatType|float}"]; node24 [label = "{<n> intRangeType}"]; node25 [label = "{<n> floatRangeType}"]; node26 [label = "{<n> dateRangeType}"]; node31 [label = "{<n> min|integer}"]; node32 [label = "{<n> max|integer}"]; node33 [label = "{<n> min|float}"]; node34 [label = "{<n> max|float}"]; node35 [label = "{<n> min|date}"]; node36 [label = "{<n> max|date}"]; node00:p -> node11:n; node00:p -> node12:n; node00:p -> node13:n; node00:p -> node14:n; node00:p -> node15:n; node15:p -> node21:n; node15:p -> node22:n; node15:p -> node23:n; node15:p -> node24:n; node15:p -> node25:n; node15:p -> node26:n; node24:p -> node31:n; node24:p -> node32:n; node25:p -> node33:n; node25:p -> node34:n; node26:p -> node35:n; node26:p -> node36:n; } </graph>

latex test

<amsmath>{\cal D}=mc^2</amsmath>

<music> \new Staff \with { \remove "Note_heads_engraver" \consists "Completion_heads_engraver"

               \remove "Time_signature_engraver"

} {

       \time 4/4

\clef "G_8" \context Staff << \new Voice \relative e { \voiceOne e1_"Stars Bangled Banner (E-Major)" | cis1_"If I Can Dream" | d1_"Stars Bangled Banner (D-Major)" } \new Voice \relative c { \voiceOne b1 | ais1 | a1 } >>

} </music>

More Music

More Feynman diagrams

<feyn> \[ \parbox{60pt}{ \begin{fmfgraph}(20,10) \fmfleft{a} \fmfright{b} \fmf{fermion,width=3}{a,b} \end{fmfgraph} } = \parbox{60pt}{ \begin{fmfgraph}(20,10) \fmfleft{a} \fmfright{b} \fmf{fermion}{a,b} \end{fmfgraph} } + \parbox{100pt}{ \begin{fmfgraph*}(30,10) \fmfleft{a} \fmfright{b} \fmf{fermion}{a,c,b} \fmfv{decor.shape=circle,decor.filled=empty,label=$\Sigma$,label.dist=0}{c} \end{fmfgraph*}

} + \parbox{120pt}{ \begin{fmfgraph*}(40,10) \fmfleft{a} \fmfright{b} \fmf{fermion}{a,c,d,b} \fmfv{decor.shape=circle,decor.filled=empty,label=$\Sigma$,label.dist=0}{c,d} \end{fmfgraph*} } +\dots \]

\[ \parbox{60pt}{ \begin{fmfgraph}(20,10) \fmfleft{a} \fmfright{b} \fmf{photon,width=3}{a,b} \end{fmfgraph} } = \parbox{60pt}{ \begin{fmfgraph}(20,10) \fmfleft{a} \fmfright{b} \fmf{photon}{a,b} \end{fmfgraph} } + \parbox{100pt}{ \begin{fmfgraph*}(30,10) \fmfleft{a} \fmfright{b} \fmf{photon}{a,c,b} \fmfv{decor.shape=circle,decor.filled=empty,label=$\Pi$,label.dist=0}{c} \end{fmfgraph*} } + \parbox{120pt}{ \begin{fmfgraph*}(40,10) \fmfleft{a} \fmfright{b} \fmf{photon}{a,c,d,b} \fmfv{decor.shape=circle,decor.filled=empty,label=$\Pi$,label.dist=0}{c,d} \end{fmfgraph*} } +\dots \]

\[ \parbox{60pt}{ \begin{fmfgraph*}(20,20) \fmfleft{a,b} \fmfright{c} \fmf{fermion}{a,d,b} \fmf{photon}{d,c} \fmfv{decor.shape=circle,decor.filled=empty,label=$\Gamma$,label.dist=0}{d} \end{fmfgraph*} } = \parbox{60pt}{ \begin{fmfgraph*}(20,20) \fmfleft{a,b} \fmfright{c} \fmf{fermion}{a,d,b} \fmf{photon}{d,c} \end{fmfgraph*} } + \parbox{60pt}{ \begin{fmfgraph}(20,20) \fmfleft{a,b} \fmfright{c} \fmf{fermion}{a,d,e,f,b} \fmf{photon}{e,c} \fmffreeze \fmf{photon,left}{d,f} \end{fmfgraph} } +\dots \] </feyn>

Equations with numbers

<amsmath> \end{displaymath} \setcounter{equation}{1} \begin{equation} \label{eq:2} \int f dx = 0 \end{equation} \begin{displaymath} \mbox{but now and eq} (\ref{eq:2}). </amsmath>

<amsmath> \end{displaymath} \setcounter{equation}{1} \begin{equation} \label{eq:2} \int f dx = 0 \end{equation} \begin{displaymath} \mbox{but now and eq} (\ref{eq:2}). </amsmath>


<amsmath> \end{displaymath} \setcounter{equation}{2} \begin{equation} \sum f dx = 0 \end{equation} \begin{displaymath} </amsmath>

<amsmath> \end{displaymath} \setcounter{equation}{3} \begin{eqnarray} \label{eq:3} \sum f dx &=& 0 \\ \label{eq:4} \int_a^b f dx &=& 0 \end{eqnarray} \begin{displaymath} </amsmath>


but now (\ref{eq:4}) and eq (\ref{eq:1}).

music test

repetition

<music> \relative{ \time 3/8 \partial 8 \new PianoStaff << \new Staff { \repeat volta 2 { e'16-4\pp dis e dis e b-1 d c a8 r16 c,-1 e a b8-5 r16 e,-1 gis b c8 r16 e, e'-5 dis-3 e-4 dis e b d c a8 r16 c, e a b8 r16 d, c' b } \alternative { { \partial 4 a4 } { a8 r16 b-1 c d } } e8. g,16 f'-5 e } \new Staff { \clef bass r8 r4. a,,,16\sustainDown e' a r16 r8\sustainUp e,16\sustainDown e' gis-2 r16 r8\sustainUp a,16\sustainDown e' a r16 r8\sustainUp r4. a,16 e' a r16 r8 e,16 e' gis r16 r8 a,16 e' a r a, e' a r r8 c,16\sustainDown g' c r r8\sustainUp } >> } </music>

tuplet

<music> \relative{ \time 4/4 \new PianoStaff << \new Staff { \times 2/3 { f8 bes f } \times 2/3 { bes f bes } \times 2/3 { f8 c' f, } \times 2/3 { c' f, c' } } \new Staff { \clef bass << f,,1 \\ { { bes8 des } { bes des } a c a c } >> } >> } </music>

simple plot test

<plot>set samples 500 plot [-4:4][-10:10] 5*sin(3*x)+2*sin(23*x) title "5sin(3x) + 2sin(23x)"</plot>

dummy song

<music> /relative c'{ /time 6/8 /clef treble} </music>

Russian test

<amsmath>a^2+b^2=c^2 Теорема Пифагора</amsmath>

Well... no Russian letters in equations, too bad!

Edit

I have problem with editing pages. It doesn't show changes... Old MediaWiki version problem? --Igor 19:05, 7 July 2007 (CDT)

<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>

<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 f a b c d e f) } </music>

Music Text(i can't invoke wikitex in wikiversity articles)

<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>

Music Test 2

<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 a,1) } </music>

test

<amsmath> M=

 \begin{bmatrix}
   a   & b/2  \\
   b/2 & c
 \end{bmatrix}

</amsmath>

<amsmath> \sigma_1 = \begin{pmatrix}

   0 & 1 \\
   1 & 0

\end{pmatrix} ,\, \sigma_2 = \begin{pmatrix}

   0 & -i \\
   i &  0

\end{pmatrix} ,\, \sigma_3 = \begin{pmatrix}

   1 & 0 \\
   0 & -1

\end{pmatrix} \,. </amsmath>

Rancid - Time Bomb (Organ Solo)

<music> \clef treble \key a \major \time 4/4

    \acciaccatura gis8 a2 fis8 a8 fis8 \acciaccatura fis8 gis8~
    gis2 fis4 e4~
    e2~ e8 cis4 cis8
    \acciaccatura cis8 d4 \acciaccatura cis8 d4 \acciaccatura cis8 d8 cis8 b'8 a'8~ \break
    a'4 cis8 a'8 \acciaccatura cis8 d4 cis8 a'8
    r8 \acciaccatura cis8 d4 cis8 d8 cis8 \acciaccatura cis8 d8 \acciaccatura d8 e8~
    e1~
    e1

</music>

A Guitar Test Song

Guitar test song

<music> \clef "G_8" b16 d16 g16 b16 e16 \textSpannerDown \override TextSpanner #’edge-text = #’("XII " . "") g16\startTextSpan b16 e16 g16 e16 b16 g16\stopTextSpan e16 b16 g16 d16 </music>

Bach Air on G String

<music> \relative c' { \set Staff.instrumentName = "Flute" \clef violin \key d \major \time 4/4

\set Staff.midiInstrument = "flute" \repeat "volta" 2 { fis'1 ~ | fis8 b16 g \acciaccatura { fis8 } e16 d cis d cis4 \acciaccatura { b8 } a4 |  % 3 a'2 ~ a16 fis c! ( b ) e ( dis! ) a' g | g2 ~ g16 e b ( a ) d ( cis ) g' ( fis ) |  % 5 fis4. gis!16 ( a ) d,8 d32 e fis16 ~ fis e e ( d ) | } \alternative { { cis16 b b32 cis d16 ~ d8 cis16 b a2 } { cis16 b b32 cis d16 ~ d8 cis16 b a2 } }

\repeat "volta" 2 { cis4 ~ cis16 d32 cis b cis a16 a'4. c,!8 | b b' ~ b16 a g fis g4 ~ g32 fis e d cis!16 b |  % 11 ais! b cis8 ~ cis16 d e8 ~ e16 fis g8 ~ g fis | e16 d cis b cis ( d32 e ) d8 b2 % 13 d4 ~ d16 fis e d b'4 ~ b8 a16 gis! | fis32 e a16 a,8 b8. ( cis32 d ) cis8. b16 a4 |  % 15 d4. fis16 ( e ) e4. g16 ( fis ) | fis4. a16 ( g ) g2 |  % 17 a,4 ~ a16 cis e g g e fis8 ~ fis ~ fis16 g32 a | d,4 ~ d16 fis a c! b4. d,8 |  % 19 cis!16 e g4 d8 a e'16 fis32 g g16 fis8 e16 | d32 cis b8 cis16 d8 ( cis16) \trill d d2 } }

</music>


Document Test

<document>


\author{Stephen J. Eglen\\

 Department of Applied Mathematics and Theoretical Physics\\
 University of Cambridge\\
 Wilberforce Road\\
 Cambridge CB3 0WA  U.K.}

\date{\today} \title{A short example of how to use \latex for scientific reports} \maketitle

\begin{abstract}

 The purpose of this short document is to provide a brief overview of
 the facilities that \latex offers for formatting scientific reports.
 Furthermore, the source files for regenerating this report are
 freely available so that users can easily start writing their own
 reports using \latex.

\end{abstract}

\section{Introduction}

\latex is a typesetting program; given an input file with formatting instructions (e.g intro.tex), the program will create your document in one of several formats (DVI, Postscript or PDF). It is therefore not a WYSIWYG word processor. \latex is known as a logical markup language, similar for example to HTML, so that you describe a piece of text as a ``section heading rather than saying that it should be formatted in a certain way. It has excellent facilities for typesetting mathematics, and handles large documents (such as theses) well. The aim of this document is not to provide an overview of \latex, since many other guides have already been written (see Section~\ref{sec:summary}). Instead, it has been written primarily to provide simple workable examples that you can cut and paste to help you get started with \latex. The examples have been selected to be those most likely to be useful when writing a scientific report. This document is best read by comparing the source code with the resulting output.

\section{Running \latex}

The files to accompany this paper are at: \url{http://www.damtp.cam.ac.uk/user/eglen/texintro}. Get the following files and put them into a new directory.

\begin{enumerate} \item \url{intro.tex}: the main \latex document. \item \url{example.bib}: a short bibliography. \item \url{sigmoid.ps}: example postscript image. \item \url{sigmoid.pdf}: example PDF image. \end{enumerate}

Change directory to where you stored the files and type the following (ignoring comments placed after \#\#):

\begin{verbatim} latex intro ## Run latex 1st time. bibtex intro ## Extract required references latex intro ## Run latex 2nd to resolve references. latex intro ## Probably need to run latex a 3rd time. xdvi intro ## View the DVI (device independent) file. dvips -o intro.ps intro ## Create a postscript file for printing. \end{verbatim}

You will notice that you run latex several times here; this is so that references can be resolved, and references can be extracted from your bibtex file. After running latex, you will be told if you need to run it again to resolve references. After a while, you will get the idea of how many times you need to run latex to resolve all your references.

If instead you would like to generate PDF files (see Section~\ref{sec:graphics} for a discussion of file formats for included images), you can try the following shorter sequence:

\begin{verbatim} pdflatex intro bibtex intro pdflatex intro pdflatex intro xpdf intro.pdf ## View the resulting PDF \end{verbatim}

Whether you prefer to generate DVI or PDF is up to you. The xdvi viewer has some nice features, such as it can reload your document easily and has a ``magnifying glass that is activated by the mouse. On the other hand, xpdf will display the document more accurately as it will be printed.

\section{Tables}

Tables are relatively straightforward to generate. Note that tables and figures are not always placed exactly where you wish, as they can \textit{float} to other parts of the document. Rather than trying to battle with \latex as to where they are placed, concentrate first on getting the right content and let \latex worry about the positioning. Instead, use labels to your tables to refer to them. See Table~\ref{tab:simple} and Table~\ref{tab:pars} for examples.

\begin{table}

 \centering
 \begin{tabular}{ccc}
   year & min temp (\textdegree C) & max temp (\textdegree C)\\ 
   \hline
   1970 & $-5$ & 35\\
   1975 & $-7$ & 29\\
   1980 & $-3$ & 30\\
   1985 & $-2$ & 32\\
 \end{tabular}
 \caption{Fictional minimal and maximal temperatures recorded in
   Cambridge over several years.}
 \label{tab:simple}

\end{table} %% Why are the negative numbers above enclosed in math mode? %% Hint: consider the difference between "-" in text and in math.

\begin{table}[htbp]

 \centering
 \begin{tabular}{lccc}\\ \hline
             & \multicolumn{1}{c}{$\phi$ (\micro m)}
             & \multicolumn{1}{c}{$\alpha$}
             & $\delta_{12}$ (\micro m)\\ \hline
   W81S1\\
   $h_{11}(u)$  & 67.94 & 7.81\\
   $h_{22}(u)$  & 66.27 & 5.40\\
   $h_{12}(u)$  &       &     &18\\
   \hline
   M623\\
   $h_{11}(u)$  &112.79 &  3.05\\
   $h_{22}(u)$  & 65.46 &  8.11\\
   $h_{12}(u)$  &       &      &20\\
       \hline
 \end{tabular}
 \caption{Summary of parameter estimates for the univariate
   functions $h_{11}(u)$, $h_{22}(u)$ and the bivariate function
   $h_{12}(u)$.  For the univariate fits, $\alpha$ and $\phi$ are 
   least-square estimates (assuming $\delta$ was fixed at 15 \micro m).
   The final column gives the
   maximum likelihood estimate of $\delta_{12}$ assuming that the
   interaction between types is simple inhibition.
   \label{tab:pars}}

\end{table}


\section{Bibliography management}

Scientific reports normally require a section where your references are listed. Bibtex is an excellent system for maintaining references, especially for large documents. Each reference needs a unique key; you can then refer to the reference in your \latex document by using this key within a cite command.

Take care when formatting your references, especially when it comes to writing authors names and the case of letters in journal titles. In our examples, the files are found in \url{example.bib}. As an example of a citation, see \citep{ihaka1996} or \citep{ihaka1996,venables1999}.

Bibtex is flexible enough to format your references in a wide number of different styles to suit your needs. In this file I have used the ``natbib package, which is suitable for the natural sciences. Depending on the type of cite command you get (and the package that you use for citations), you can get different styles of citation. See Table~\ref{tab:cite} for some examples.

\begin{table}

 \centering
 \begin{tabular}{ll}
   \hline
   command & result\\ \hline
   \verb+\citep{ihaka1996}+ & \citep{ihaka1996}\\
   \verb+\citet{ihaka1996}+ & \citet{ihaka1996}\\
   \verb+\citep[see][p. 300]{ihaka1996}+ &
   \citep[see][p. 300]{ihaka1996}
   \\
   \verb+\citeauthor{ihaka1996}+ & \citeauthor{ihaka1996}
   \\
   \verb+\citeyear{ihaka1996}+ & \citeyear{ihaka1996}
   \\
   \hline
 \end{tabular}
 \caption{Examples of different citation commands available in the
   natbib package.}
 \label{tab:cite}

\end{table}


\section{Graphics} \label{sec:graphics}

\latex can include images in one of several format, depending on whether you use latex (postscript format required) or pdflatex (either jpeg, png or pdf required). Figures can be included either at their natural size, or you can specify e.g. the figure width. Figure~\ref{fig:example} shows an example image which intentionally looks slightly different depending on whether you compile the document with latex or pdflatex. Note that in this example the suffix of the image file is not included so that this document compiles under both latex and pdflatex.

\begin{figure}

 \centering
 \includegraphics[width=6cm]{sigmoid}
 \caption{Example of a sigmoidal curve generated by the R programming
   environment.  The title above the curve indicates whether you have
 included the postscript or the pdf version of the figure.}
 \label{fig:example}

\end{figure}

\section{Mathematics}

\latex can format mathematics with ease, either in line, such as $x \times y$, or on separate lines, such as: \[ x^2 +y^2 = z^2 \]

If you are writing several lines of equations, you can use statements like the following:

\begin{align}

 b(t) & = s(t) - \int_{0}^{T} a(t') \cdot i(T-t') dt'
 \\
 a(t) & = \int_{0}^{T} b(t) \cdot e(T-t') dt' \label{eq:am}
 \\
 g(t) & = b(t) \ast e(t) \nonumber

\end{align}

By using labels on certain equations, we can refer to equations by number, such as equation~(\ref{eq:am}).

\section{Summary} \label{sec:summary} This short guide should give you a flavour of what can be done with \latex. It is by no means complete, or supposed to be self-explanatory. It is, however, hopefully enough to get you started! Try experimenting by editing the source file and then recompiling this document. As mentioned earlier, there are many guides for latex. Two that I can recommend are \url{http://www.andy-roberts.net/misc/latex/index.html} and `` The (Not So) Short Introduction to LaTeX2e (\url{http://ctan.tug.org/tex-archive/info/lshort/english/lshort.pdf}).


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% Finally we specify the format required for our references and the %% name of the bibtex file where our references should be taken from. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\bibliographystyle{plainnat} \bibliography{example}

</document>

Yankee Doodle

<music> \relative { \new Staff {

 \clef treble
 \time 4/4
 c c d e c e d2 c4 c d e

} \relative {

 \clef bass 
 \time 4/4
 c2 b

} }


\relative { \new Staff {

 \clef treble 
 \time 4/4
 c4 c d e f e d c
 \clef bass
 d4 f e d c2 c

} } </music>

Some graph

<graph> node [shape=circle, style="filled, bold", fillcolor=red] subgraph cluster1 { node [fillcolor=lightblue]; A; B; } A -> B -> C -> D -> A -> C </graph>

Related Links:

Personal tools