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

I have some special delimiters that I want to add to a glossary, those get hyperlinks and colors etc. However when i want to use those delimiters, using \left, \right and \middle becomes impossible. I think with the following question fixed I can create my hyperlinked delimiters:

How to color delimiters:

As a minimal working example I have:


What i would like to have is (Created without \left \right):


This gets the error: ! Missing delimiter (. inserted).

Trying this :


results in ! Extra }, or forgotten \right.

Who can help me?

share|improve this question

use it this way:

$\color{red}\left(\normalcolor a\right)$


$\textcolor{red}{\big(} a\big)$

There a \big, \bigg, \Big, and \Bigg

share|improve this answer
this will not work if the current color is not the \normalcolor. And as I want to use this in a command, this will not work for me. And put this in a hyperlink will not work with this solution. – J. van Hoorn Jul 11 '12 at 12:02
then you can only use \big et al (see edit). – Herbert Jul 11 '12 at 12:06
However, i do not want the delimiters to be big :) They should fit, that is why I want to use \left and \right – J. van Hoorn Jul 11 '12 at 15:49

Here is macro that can easily be extended to different styles of brackets:

enter image description here




    \newcommand{\@Brac}[3]{% #1,#3 = left/right bracket type           
        \mathopen{\color{red}\left#1\vphantom{#2}\BracKern\right.}% left bracket
        #2%  content
        \mathclose{\left.\BracKern\vphantom{#2}\right#3}% right bracket

    $\bracr{a}$  $\displaystyle\bracr{\frac{1}{2}}$
    $\bracs{a}$  $\displaystyle\bracs{\frac{1}{2}}$
    $\bracc{a}$  $\displaystyle\bracc{\frac{1}{2}}$
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.