Is tikzpicture possible?

1,400 views
Skip to first unread message

elim

unread,
May 18, 2012, 11:58:59 AM5/18/12
to MathJax Users
Is the following possible with MathJax? Thanks


\documentclass{article}

\usepackage{tikz}

\begin{document}

\begin{tikzpicture}
\matrix (M)
{
\node (x11) {$x_{11}$}; & \node (x12) {$x_{12}$};
& \node (x13) {$x_{13}$}; & \node (x14) {$x_{14}$};
& \node {\ldots};\\
\node (x21) {$x_{21}$}; & \node {$x_{22}$}; & \node {$x_{23}$};
& \node {$x_{24}$}; & \node {\ldots};\\
\node (x31) {$x_{31}$}; & \node {$x_{32}$}; & \node {$x_{33}$};
& \node {$x_{34}$}; & \node {\ldots};\\
\node (x41) {$x_{41}$}; & \node {$x_{42}$}; & \node {$x_{43}$};
& \node {$x_{44}$}; & \node {\ldots};\\
\node {\ldots}; & \node {\ldots}; & \node {\ldots};
& \node {\ldots}; & \node {\ldots};\\
};
\draw[->] (x11.south west) -- (x11.north east);
\draw[->] (x21.south west) -- (x12.north east);
\draw[->] (x31.south west) -- (x13.north east);
\draw[->] (x41.south west) -- (x14.north east);
\end{tikzpicture}

\end{document}

Davide P. Cervone

unread,
May 18, 2012, 12:09:03 PM5/18/12
to mathja...@googlegroups.com
There is currently no MathJax implementation of the tikz package, so
no, you won't be able to do this in MathJax.

Davide

Raniere Gaia Silva

unread,
May 18, 2012, 12:09:58 PM5/18/12
to mathja...@googlegroups.com
As Cervone say, it isn't possible right now. IMHO, the best way right now is convert the image to jpg ou some other format and serve it as a static file.
Some days ago I think about that and would like to write a javascript file to make some similar to MathJax but for tikzpicture. Unfortunately I'm working at some other project.

elim

unread,
May 18, 2012, 12:55:04 PM5/18/12
to MathJax Users
Thanks Davide and Raniere answering my question. The pkg won't be used
very often anyways.

Peter Krautzberger

unread,
May 18, 2012, 1:24:44 PM5/18/12
to mathja...@googlegroups.com

Thomas Leathrum

unread,
May 21, 2012, 1:55:19 PM5/21/12
to mathja...@googlegroups.com
Your example seems to be using TikZ for commutative diagrams.  As an alternative for that purpose, you might want to look at XYjax for doing your diagrams:

http://homepage.mac.com/oasis/xyjax.html

The syntax is somewhat different, but the end result should meet your needs.


On Friday, May 18, 2012 12:24:44 PM UTC-5, Peter Krautzberger wrote:
one more pointer: tex4ht can convert TikZ diagrams into svg

mathemati...@gmail.com

unread,
Dec 31, 2013, 11:09:58 AM12/31/13
to mathja...@googlegroups.com
Even the Beta didn't exist at the time of your post, but now MathJaX 2.2 supports AMScd, which can also be used for that purpose.
Reply all
Reply to author
Forward
0 new messages