How can I do this bar with the size adjusted?
Thanks in advance!
\left and \right approach.\left. you create an "empty" \left. See Equation 2 where I used \left| instead. \right| you create the bar that you want.\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}
Like this? (with amendments suggested by Manuel Kühner and egreg)
\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}
\nu'(0). But I'm a mathematician, you know…
– egreg
May 31 '20 at 15:01
It is very simple with the diffcoeff package:
\documentclass{article}
\usepackage{diffcoeff}
\begin{document}
\[ \diff{ν(s)}{s}[s=0]\]%
\end{document}
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}
This is the screenshot:
Using another package that it is not very used (for reason also of spacing), called physics, you can obtained this:
\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}
....and this is the output: