Math & ScienceAutomatically scaled "|" Symbol

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
zainah
Posts: 6
Joined: Sat Mar 24, 2012 8:21 am

Automatically scaled "|" Symbol

Post by zainah »

Dear all,

I want to write the equation below, how to make a symbol "|" become same size with the brace size { }.

Code: Select all

\begin{equation}
d \Omega_{0} = \Span\left\{\frac{\partial \phi}{\partial x} | \phi \in \Omega_{0} \right\}.      
\label{eqae9}
\end{equation}
Last edited by localghost on Fri Apr 27, 2012 9:07 am, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Automatically scaled "|" Symbol

Post by localghost »

Please get used to always providing a minimal example that is compilable out of the box for everybody and serves for testing possible solutions. It is not the first time that you are asked for this. I only know where the \Span command comes from because I was the one who suggested it in one of your former questions*.

Similar to the \left and \right pairs there also exists the \middle command (from eTeX) for such cases.

Code: Select all

\documentclass[11pt]{article}
\usepackage[T1]{fontenc}
\usepackage{mathtools}

\DeclareMathOperator*{\Span}{span}

\begin{document}
  \begin{equation}\label{eqn:eqae9}
    d \Omega_0=\Span\left\{\frac{\partial\phi}{\partial x} \;\middle|\; \phi\in\Omega_0\right\}. 
  \end{equation}
\end{document}

* By the way, it would be very kind if you give some feedback on proposed solutions. You should at least accept the answer that led you to the solution.



Thorsten
Post Reply