How I can use a vertical bar to represent evaluation in LaTeX

  • Context: LaTeX 
  • Thread starter Thread starter Kreizhn
  • Start date Start date
  • Tags Tags
    Latex Vertical
Click For Summary

Discussion Overview

The discussion revolves around how to represent evaluation using a vertical bar in LaTeX, specifically in the context of derivatives. Participants explore various methods to achieve the desired visual effect, focusing on sizing and formatting of the vertical bar.

Discussion Character

  • Technical explanation
  • Mathematical reasoning
  • Homework-related

Main Points Raised

  • One participant asks for help in using a vertical bar to represent evaluation in LaTeX, providing an example with a derivative.
  • Another participant suggests using \left. and \right| to achieve automatic sizing of the vertical bar, demonstrating it with an example.
  • A different approach is proposed using \bigg| for manual sizing, which avoids the need for the \left. tag.
  • One participant mentions difficulties in using LyX to find the correct code for a larger vertical line, indicating that the default | is too small.
  • Another participant suggests using \| and introduces the concept of an "invisible tower" to adjust the height of the vertical line, providing a code snippet for implementation.
  • A participant shares a specific example involving a matrix notation with a vertical bar, demonstrating its use in a mathematical expression.

Areas of Agreement / Disagreement

Participants present multiple methods for achieving the desired vertical bar representation, but there is no consensus on a single best approach. Various techniques are discussed, indicating a range of preferences and solutions.

Contextual Notes

Some participants mention specific tools like LyX, which may have limitations in rendering LaTeX commands. The effectiveness of different methods may depend on the context in which they are used.

Who May Find This Useful

This discussion may be useful for individuals working with LaTeX in mathematical contexts, particularly those looking to format derivatives and evaluations correctly.

Kreizhn
Messages
714
Reaction score
1
Hey guys. This might not be the right place for this, but any ideas on how I can use a vertical bar to represent evaluation in LaTeX?

Example

\displaystyle \frac{d}{dt} |_{t=0} f(t)

I would like the vertical bar to be the size of the differential. I've tried using \left|, \right|, \vert, etc. but nothing seems to work. Thanks a lot in advance.
 
Last edited by a moderator:
Physics news on Phys.org
Hi Kreizhn,

Is this it?

\left. \frac{d}{dt} \right|_{t=0} f(t)

which is given by

\left. \frac{d}{dt} \right|_{t=0} f(t)

Using either \left or \right on a period means the automatic delimiter sizing takes place, but only one delimiter is shown.
 
Excellent, thank you
 
\frac{d}{dt} \bigg|_{t=0} f(t) achieves a similar effect
with manual sizing (by using two g's) and the unneeded \left. tag.

\frac{d}{dt} \bigg|_{t=0} f(t)
 


I'm using lyx and I'm having difficulty trying to find the code for this vertical line. Any suggestions? I use the | but it's extremely small.
 


Maybe try \|?

The height of the vertical line will be determined by the {stuff} in between the \left. {stuff} \right|. If it's not naturally big, you may want to add an "invisible tower." My invisible tower is called \xstrut, and is defined as follows

\newlength{\myVSpace}% the height of the box
\setlength{\myVSpace}{3ex}% the default,
\newcommand\xstrut{\raisebox{-.5\myVSpace}% symmetric behaviour,
{\rule{0pt}{\myVSpace}}%
}
To change the height of the box, change

\setlength{\myVSpace}{Your number here}
 
\mathbf{M \bigg|_{x^k} \Delta x^k = -f(x^k)}
<br /> \mathbf{M \bigg|_{x^k} \Delta x^k = -f(x^k)}
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 9 ·
Replies
9
Views
5K
  • · Replies 11 ·
Replies
11
Views
6K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K