Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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
2  
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
    
What is a "book match"? –  Mico Nov 28 '11 at 19:40
add comment

1 Answer 1

up vote 7 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

\documentclass{article}
\begin{document}
\[
  \left\{\frac{a}{b} \middle] \frac{c}{d} \middle| \frac{e}{f} \middle( \frac{g}{h} \right\}
\]
\end{document}

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
add comment

Your Answer

 
discard

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.