It is currently Tue Nov 21, 2017 11:03 am


All times are UTC [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Sun Feb 28, 2016 4:34 pm 
Administrator
Administrator

Joined: Mon Oct 26, 2015 12:27 pm
Posts: 40
XyJax is is a almost Xy-pic compatible package for MathJax.

Some examples using xyjax:

1) \begin{xy} (0,0)*+{A}="c", (20,0)*+{B}="b", (40,0)*+{ C}="a"
\ar @{->}^f "c";"b" \ar @{->}^{g_1} "b";"a" < 2pt>
\ar @{->}_{g_2} "b";"a" <-2pt>
\end{xy}

2) \begin{xy}
<-3em,0em>*{\mathscr{C}},
<0em,0em>*+{a}="a", <4em,0em>*+{b}="b", <4em,-4em>*+{c}="c",
"a";"b" **@{-} ?>*@{>} ?<>(.5)*!/_.6em/{\scriptstyle f},
"b";"c" **@{-} ?>*@{>} ?<>(.5)*!/_.6em/{\scriptstyle g},
"a";"c" **@{-} ?>*@{>} ?<>(.5)*!/^.6em/{\scriptstyle g \circ f},
"b"+/r4em/;"b"+/r8em/ **@{~} ?>*@2{>} ?<>(.5)*!/_.6em/{F},
"c"+/r4em/;"c"+/r8em/ **@{~} ?>*@2{>} ?<>(.5)*!/_.6em/{F},
"a"+/r15em/*+{Fa}="Fa", "b"+/r15em/*+{Fb}="Fb", "c"+/r15em/*+{Fc}="Fc",
"Fb"+/r3em/*{\mathscr{D}},
"Fa";"Fb" **@{-} ?>*@{>} ?<>(.5)*!/_.6em/{\scriptstyle Ff},
"Fb";"Fc" **@{-} ?>*@{>} ?<>(.5)*!/_.6em/{\scriptstyle Fg},
"Fa";"Fc" **@{-} ?>*@{>} ?<>(.5)*!/r3em/{\scriptstyle F(g \circ f)=Fg\circ Ff},
\end{xy}

3)
\begin{xy}
\xymatrix@R=1pc{
\zeta \ar@{|->} [dd] \ar@{.>}_\theta [rd] \ar@/^/^\psi [rrd] \\
& \xi \ar@{|->} [dd] \ar_\phi [r] & \eta \ar@{|->} [dd] \\
P_{F}\zeta \ar_t [rd] \ar@/^/ [rrd]|!{[ru];[rd]}\hole \\
& P_{F}\xi \ar [r] & P_{F}\eta
}
\end{xy}


4) \begin{xy}
0;<0.8pc,0pc>:
(0,0)="o", "o"*!/rd 1em/{O},
"o"+/l 3pc/="xs";"o"+/r 13pc/="xe" **@{-} ?>*@{>} ?>*!/u 1em/{x},
"o"+/d 3pc/="ys";"o"+/u 8pc/="ye" **@{-} ?>*@{>} ?>*!/r 1em/{y},
(13,10)*{y=f(x)},
(13,-3)*{x_{n+1} = x_n - \frac{f(x_n)}{f'(x_n)}},

(13.5,0)="x0" *!/u 1em/{x_0},

(-3,-4)="A", (15,9)="B", (1.5,5)="C", (10,-2.5)="D",
"A";"B" **\crv{"C"&"D"},
?!{"x0"+/d 3pc/;"x0"+/u 10pc/}="fx0" +/3pc/="L1e" -/12pc/="L1s";"L1e" **\dir{--},
?!{"xs";"xe"}="x1" *!/u 1em/{x_1},
"fx0";"fx0"+/l 20pc/ **@{} ?!{"ys";"ye"}="y0" *!/r 1em/{f(x_0)},
"fx0";"y0" **@{.},
"x0";"fx0" **@{.},
"L1e" *!/l 5em/{y=f(x_0)+f'(x_0)(x-x_0)},

"A";"B" **\crv{~**@{} "C"&"D"},
?!{"x1"+/d 3pc/;"x1"+/u 10pc/}="fx1" +/5pc/="L2e" -/15pc/="L2s";"L2e" **\dir{--},
?!{"xs";"xe"}="x2" *!/u 1em/{x_2},
"fx1";"fx1"+/l 20pc/ **@{} ?!{"ys";"ye"}="y1" *!/r 1em/{f(x_1)},
"fx1";"y1" **@{.},
"x1";"fx1" **@{.},
"L2e" *!/l 5em/{y=f(x_1)+f'(x_1)(x-x_1)},
\end{xy}

Notations:
1) XyJax also works if we use the xy-pic code, enclosing it between $\small\text{\begin{xy} {} \end{xy}}$
2) There is no need to enclose the xyjax code between dollars. It renders at the centre of the post. But if you want to have it inline must be enclosed between a pair of dollars.
3) Some more examples you can find here.

_________________
admin


Top
Offline Profile  
Reply with quote  

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC [ DST ]


Mathimatikoi Online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group Color scheme created with Colorize It.
Theme created StylerBB.net