Math & ScienceVertical line and a Fraction

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
rayman
Posts: 24
Joined: Thu Feb 24, 2011 11:53 am

Vertical line and a Fraction

Post by rayman »

hello! I have problems with finding a command which would place a vertical line next to a fraction. In the attachment is the thing I am looking for

Thank you!


Edit by localghost: Preferably no external links (see Board Rules). attachments go onto the forum server where possible.
Attachments
verticals.jpg
verticals.jpg (11.6 KiB) Viewed 11830 times

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

Vertical line and a Fraction

Post by localghost »

There are several commands for manual adjustment of this vertical bar. See example below.

Code: Select all

\documentclass[11pt,a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{mathtools}   % loads »amsmath«

\begin{document}
  \begin{alignat*}{2}
    \phi_\ast\frac{d}{dt}\bigg|_0 &= \frac{d\phi^\mu(t)}{dt}\bigg|_0\,\frac{\partial}{\partial g^\mu}\bigg|_e &&= X|_e \\
    \phi_\ast\frac{d}{dt}\bigg|_t &= \frac{d\phi^\mu(t)}{dt}\bigg|_t\,\frac{\partial}{\partial g^\mu}\bigg|_g &&= X|_g
  \end{alignat*}
\end{document}
See the »Math mode« document for further reading.


Best regards and welcome to the board
Thorsten
rayman
Posts: 24
Joined: Thu Feb 24, 2011 11:53 am

Re: Vertical line and a Fraction

Post by rayman »

Thank you very much! looks great
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Vertical line and a Fraction

Post by localghost »

rayman wrote:[…] looks great
Then please mark the topic (not the last post) accordingly as you have already been directed and as written in Section 3 of the Board Rules (to be read before posting).
Post Reply