2

How can I do this bar with the size adjusted?

enter image description here

Thanks in advance!

  • 1
    Personnally, I would write$\vu(s)$ on the left of the vertical line – Bernard May 31 at 14:34
  • I agree it looks better. I only put the print as it has written in the paper. – George May 31 at 14:43
6
  • I use the \left and \right approach.
  • With \left. you create an "empty" \left. See Equation 2 where I used \left| instead.
  • With \right| you create the bar that you want.
  • Equation 3 is just a typographical addition and un-related to the question (\text{d} instead of d). Some people prefer it that way.

\documentclass{article}

% amsmath + improvements (here used for \text in math mode)
\usepackage{mathtools}

\begin{document}

\begin{equation}
\left.\frac{d}{ds}\right|_{s=0} \nu(s)
\end{equation}

Equation 2 ist just to show the effect of \texttt{\textbackslash left.} compared to \texttt{\textbackslash left|}.
\begin{equation}
\left|\frac{d}{ds}\right|_{s=0} \nu(s)
\end{equation}

\begin{equation}
\left.\frac{\text{d}}{\text{d}s}\right|_{s=0} \nu(s)
\end{equation}

\end{document}

enter image description here


Further reading

| improve this answer | |
5

Like this? (with amendments suggested by Manuel Kühner and egreg)

enter image description here

\documentclass{article}
\begin{document}
$\displaystyle 
 \frac{d}{ds}\bigg\vert_{s=0} \nu(s) \quad\mbox{or}\quad
 \frac{d\nu(s)}{ds}\bigg|_{s=0}      \quad\mbox{or}\quad
 \nu\mkern1mu'(0)$
\end{document}
| improve this answer | |
  • 1
    +1: I think that I have never used \vert before :). – Dr. Manuel Kuehner May 31 at 14:46
  • 2
    @Dr.ManuelKuehner \bigg| would do as well. – egreg May 31 at 15:00
  • 1
    I'm not sure how this is preferable to \nu'(0). But I'm a mathematician, you know… – egreg May 31 at 15:01
  • 1
    @egreg Thanks! That's easy to remember. – Dr. Manuel Kuehner May 31 at 16:23
5

It is very simple with the diffcoeff package:

\documentclass{article}
\usepackage{diffcoeff}

\begin{document}

\[ \diff{ν(s)}{s}[s=0]\]%

\end{document} 

enter image description here

| improve this answer | |
4

I add my answer using derivative package:

\documentclass[a4paper,12pt]{article}
\usepackage{amssymb}
\usepackage{derivative}
\begin{document}
\[\odv{\nu(s)}{s}_{s=0}\quad \text{ or } \odv*{\phantom{d}}{s}_{s=0}\nu(s)\]
\end{document}

PS: Actually in this laptop I have not MikTeX installed. I'm using Papeeria. If someone could please edit my answer and enter a confirmation screenshot, I am grateful. Thank you all and welcome.

Using another old package (it is not very used) called physics package you can obtained.....

\documentclass[a4paper,12pt]{article}
\usepackage{amssymb}
\usepackage{physics}
\begin{document}
\[\eval{\dv{s}}_{s=0}\nu(s), \quad \eval{\dv{\nu(s)}{s}}_{s=0}\]
\end{document}

....this output:

a

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.