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 data displayed in pairs. Currently, it appears like this, on one line:

(numbers; numbers; numbers)

However, I am looking for a better center divider. Here are some e.g.:

(numbers | numbers | numbers | numbers)
(numbers / numbers / numbers)

I am willing to change the outer brackets to any style, if necessary, to find a good match:

{numbers | numbers | numbers | numbers}
[numbers I numbers I numbers I numbers I numbers]

However, these all seem like good solutions. I cannot find any center divider that matches any of the outer dividers or that at least looks nice and visually separates the various parts.

What can I use?

share|improve this question
I don't really understand what this question has to do with TeX or Friends? Could you elaborate? – Seamus Nov 28 '11 at 15:04
up vote 8 down vote accepted

You can use the \middle command which provides extensible delimiters for the middle of a set of outer delimiters (like \left and \right). For example:

enter image description here

  \left\{\frac{a}{b} \middle] \frac{c}{d} \middle| \frac{e}{f} \middle( \frac{g}{h} \right\}

In the above example, the outer \left and \right pairs match, while the inner \middle macros do not have to match in number nor in delimiter usage. The latter, actually, also holds for the \left and \right pair.

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.