TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Using @Stefan Kottwitz's solution of Highlight elements in the matrix, is it possible to select one single entry in the matrix? Where does one need to place the left and the right marks?

share|improve this question
For one element you don't need to \tikzmark it, put directly the entry inside a tikz node, say, \tikz[baseline] \node {<the node content>};, possibly adjusting the inner sep of the node etc. – percusse Feb 16 '13 at 11:13
@percuße: Thanks ! – Marco Feb 16 '13 at 17:06

For a single element you don't need to use external mechanisms but a node option instead via |[....]|. This will pass the options to the cell as node options. A simple example taken from the linked question:

        \matrix [matrix of math nodes,left delimiter=(,right delimiter=)] (m)
            8 &8 &1 &6 \\
            3 &8 &5 &7 \\
            4 &8 &9 &|[draw=red,fill=blue!10,outer sep=0,inner sep=2pt]|5 \\

enter image description here

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.