How can I write the vertical line in this expression? It is as tall as the before relation.
Asked
Active
Viewed 1,298 times
2
Perfect Fluid
- 211
-
1Are answers to this question what you're after? – Dai Bowen Aug 08 '18 at 13:57
3 Answers
6
You can use the esdiff package, for a simpler typing of derivatives (partial or not) of any order in Leibniz notation. For derivatives evaluated at some point, you have a \diff*command with 3 arguments, the function, the variable and the evaluation point, but it uses a pair of parentheses. If you want a single vertical line, you have to do it by hand. Here is an example of both:
\documentclass{article}
\usepackage{mathtools}
\usepackage{esdiff}
\begin{document}
\[ 4\pi\varepsilon ^2\diff*{\widetilde{G}}{R}{R = \varepsilon } \]%
\[ 4\pi\varepsilon ^2\diff{\widetilde{G}}{R}\biggm\vert_{R = \varepsilon } \]%
\end{document}
Bernard
- 271,350
4
If you prefer to have the same image you inserted with the same symbols, you can also use my code (with slanted operator "d" or vertical mode for "d")
\documentclass[a4paper,12pt]{article}
\usepackage{amsmath,amssymb}
\usepackage{times}
\usepackage{newtxtext,newtxmath}
\usepackage{fancybox}
\usepackage{xcolor}
\begin{document}
\[\colorbox{gray!20}{$4\pi\varepsilon^2\dfrac{d\tilde{G}}{dR}\biggr|_{R=\varepsilon}.$}\]
\[\colorbox{gray!20}{$4\pi\varepsilon^2\dfrac{\mathrm{d}\tilde{G}}{\mathrm{d}R}\biggr|_{R=\varepsilon}.$}\]
\end{document}
Sebastiano
- 54,118
-
1@Sebatiano: Nicely done within a colored box. However don't forget that "derivation" is an operation and so the symbol "d" in that case needs to be an operator - meaning being upright. – Aug 08 '18 at 21:20
-
Thank you very much for your compliments. I have not positioned the "d" in an upright position because in Italy (you could see many pantries on the net) the "d" is positioned in an inclined position. Thank you very much. Now I have added the "d" as a vertical position. – Sebastiano Aug 08 '18 at 21:25
-
1@Sebatiano: ... you say they do operators in "italics"? ... What a word game though :-) As far as I was taught, operators should be upright, independent from which country they come along ... Maybe I was taught wrong or it is just a matter of "personal style" – Aug 08 '18 at 21:32
-
1
-
@JürgenG Look here to pag. 5: http://www.dm.unibo.it/~barozzi/MI2/PDF/MI2-Cap.8.pdf. It is only an example. – Sebastiano Aug 08 '18 at 21:35
-
-
@JürgenG ahahah. Almost all teachers in Italy write "d" in an inclined position. What you ask me is impossible. :-) – Sebastiano Aug 08 '18 at 21:42


