This is admittedly a bit of an abuse of MathJax, but I'm trying to use it to draw lines to connect dots within a rectangular array.

I can easily get an array of dots, but I can't figure out a way to draw lines connecting them:

$$ \begin{matrix} \bullet&\bullet&\bullet\\ \bullet&\bullet&\bullet\\ \bullet&\bullet&\bullet\\ \end{matrix} $$

I tried horizontal and vertical strikeouts, but they don't span from one array element to the next, and they also overlap the corners:

$$\require{enclose} \begin{matrix} \enclose{verticalstrike,horizontalstrike}{\bullet}&\enclose{verticalstrike,horizontalstrike}{\bullet}&\bullet&\\ \enclose{verticalstrike,horizontalstrike}{\bullet}&\enclose{verticalstrike,horizontalstrike}{\bullet}&\bullet\\ \bullet&\bullet&\bullet\\ \end{matrix} $$

I'm trying to accomplish something like this:

enter image description here

Is this possible using MathJax?

  • 2
    $\begingroup$ Sorry, you have the wrong website. This site, meta.math.stackexchange.com, is for discussing math.stackexchange.com. $\endgroup$ – Gerry Myerson Nov 2 '15 at 22:39
  • $\begingroup$ @GerryMyerson I understand that, but there seem to be many other MathJax-related questions here, and there's even a tag for them. How does this question differ from those? $\endgroup$ – GentlePurpleRain Nov 2 '15 at 22:40
  • $\begingroup$ A question about how MathJax is implemented on math.stackexchange.com could be on-topic. That's the difference. Have you considered tex.stackexchange? I don't know anything about that site, but it might be worth a look. $\endgroup$ – Gerry Myerson Nov 2 '15 at 22:44
  • $\begingroup$ @GerryMyerson Thanks for the clarification. I have edited my question accordingly. $\endgroup$ – GentlePurpleRain Nov 2 '15 at 22:48
  • $\begingroup$ Editing out the reference to Puzzling.se doesn't suddenly make your question on-topic for meta.math.se $\endgroup$ – Gerry Myerson Nov 2 '15 at 22:48
  • $\begingroup$ @GerryMyerson I will check out Tex.SE as well. $\endgroup$ – GentlePurpleRain Nov 2 '15 at 22:49
  • 2
    $\begingroup$ @GerryMyerson For the most part, MathJax is off-topic on TeX - LaTeX since it's not TeX or its variants. $\endgroup$ – user147263 Nov 2 '15 at 22:50
  • $\begingroup$ @GerryMyerson I understand, and will try elsewhere. However, if this question had originally appeared here in its current form, would you have thought it off-topic? $\endgroup$ – GentlePurpleRain Nov 2 '15 at 22:51
  • $\begingroup$ Even in its current form, it doesn't relate to math.se, so (in my opinion) it's off-topic on meta.math.se. $\endgroup$ – Gerry Myerson Nov 3 '15 at 0:46
  • $\begingroup$ Have you looked at the huge Mathjax thread on this meta? amscd (for commutative diagrams) is likely as good as it's going to get (but would leave gaps), unless you spend hours going crazy with v and hskips or some other terrible thing. $\endgroup$ – pjs36 Nov 3 '15 at 5:35
  • 1
    $\begingroup$ Just use Inkscape, GIMP, Paint, whatever you want. MathJaX simply isn't designed for this. Maybe you'll manage to get what you want, but it will be through horrible tricks that will take hours to achieve when it would take minutes to produce the same picture with usual drawing software. $\endgroup$ – Najib Idrissi Nov 3 '15 at 8:35
  • $\begingroup$ This is somewhat related: Is there a way to draw a graph (vertices & edges) in LaTeX on this website?. (Ant try to have a look at other posts shown among linked and related questions in the sidebar.) $\endgroup$ – Martin Sleziak Nov 3 '15 at 12:48
  • $\begingroup$ Some very simple graphs can probably be drawn as commutative diagrams. It is possible to create some simple commutative diagrams using MathJax, but the possibilities are rather limited: How to draw a commutative diagram?. This answer links a website where you can use xypic syntax to create commutative diagrams online. (And then you can embed them as a picture.) $\endgroup$ – Martin Sleziak Nov 3 '15 at 12:51

You must log in to answer this question.

Browse other questions tagged .