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

Is there any ways or features to make pdf-files using one of TeX systems so that when I move the cursor to one of brackets (either open or closed brackets) in pdf, then the bracket and the other matching bracket are changed in its color, e.g., in red?

For example (see below), I want in pdf document, when I put my cursor on the first squared bracket, then its color and the color of the matching square bracket (in this case, the last one) are turned into other color. When there is no matching bracket, then it would be changed in other color than that in matching case.

(Ex) [(a + 3(b-c)) + 2*7]

share|improve this question

This probably could be done with PDF and JavaScript (for switching the color of the brackets), but I know of no (La)TeX package for that. And it would need JavaScript in the PDF viewer. And it will probably be quite fragile.

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.