This is kind of a non-answer, but here's what I'd do. For vectors, I'd always just use
Let the vector $x=(x_1,x_2,x_3)$ be ...
In math mode, TeX inserts a thin space after the ,
(\thinmuskip
, as Lev points out in his answer), and I find that exactly right. In your other example, I'd write
the points $a$, $b$, and~$c$ ...
(with or without the ,
after $b$
), and this is also what Knuth recommends in the TeXbook. (Note the tie after and
!) This yields correct spacing; moreover, it allows a linebreak after $a$
.
Just for completeness. In principal the same solution as of Altermundus, but with tikz-3dplot.
\documentclass{minimal}
\usepackage{tikz}
\usepackage{tikz-3dplot}
\tdplotsetmaincoords{70}{120}
\begin{document}
\begin{tikzpicture}[%
tdplot_main_coords,
scale=2,
>=stealth
]
\draw[ultra thick,->] (0,0,0) -- (1,0,0);
\draw[ultra thick,->] (0,0,0) -- (0,1,0);
\draw[ultra thick,->] (0,0,0) -- (0,0,1);
\draw[fill=gray,opacity=0.5] (0,0,0) -- (0,2,0) -- (2,2,0) -- (2,0,0) -- cycle;
\draw[fill=red,opacity=0.5] (0,2,0) -- (2,2,0) -- (0,1,3) -- cycle;
\draw[fill=orange,opacity=0.5] (2,2,0) -- (2,0,2) -- (1,0,3) -- (0,1,3) -- cycle;
\draw[fill=yellow,opacity=0.5] (2,2,0) -- (2,0,0) -- (2,0,2) -- cycle;
\draw[fill=blue,opacity=0.5] (0,1,3) -- (1,0,3) -- (0,0,3) -- cycle;
\end{tikzpicture}
\end{document}
Best Answer
One option using TikZ:
New version:
Explanation:
First, you place some marks for the relevant lines using
\tikzmark
, then you use the\mess
command to add the circles with their arrows; the three mandatory arguments for\mess
are the string for the initial mark, the string for the final mark, and the text to be used inside the circle. The optional argument gives control over the length of the horizontal separation.Notice also the use of the
systeme
package, so that the system of equations gets nicely typeset.Since the code requires some internal calculation, two or three runs will be needed for the elements to stabilize.
First version
The mandatory argument for
\mess
will be written in the circular node; the optional argument allows control over the length of the horizontal part of the arrow.