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.
Math & Science ⇒ Vertical line and a Fraction
Vertical line and a Fraction
- Attachments
-
- verticals.jpg (11.6 KiB) Viewed 11830 times
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
There are several commands for manual adjustment of this vertical bar. See example below.
See the »Math mode« document for further reading.
Best regards and welcome to the board
Thorsten
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}
Best regards and welcome to the board
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Vertical line and a Fraction
Thank you very much! looks great
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Vertical line and a Fraction
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).rayman wrote:[…] looks great
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10