For the thesis that I'm writing I'm dealing a lot with input saturation, for which I would like to define a saturation function. To do so, I would like to have a symbol that represents saturation, as well as a way to define its upper and lower bounds, see the picture below.

From this question I managed to find a way to implement a decent saturation symbol, used in the picture above. Credits go to Steven B. Segletes. However, I would like to be able to add the upper and lower bounds in a command, like \sat_{-5}^{10}, or simply \sat{-5}{10}. Since I'm not at all familiar with Tikz, I have no idea how to properly add these bounds (the picture above was made in Paint). Also, the bounds should have a smaller font, since now they're too large. What would be entirely completely useful is if the saturation symbol could be lowered a bit as well such that it's vertically centered, and if it could reshape like the \sum command, see the picture below, where the left version was created using math mode and the right was made in an align environment.

Is there anyone out there skilled enough and kind enough to help me out here?
The saturation symbol is created in a .tex file saturation.tex with content
\documentclass[border=0mm]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\coordinate (A) at (-.7,-.6);
\coordinate (B) at (-.2,-.6);
\coordinate (C) at (+.2,+.6);
\coordinate (D) at (+.7,+.6);
\draw [black, line width=3pt] (A)--(B)--(C)--(D);
\end{tikzpicture}
\end{document}
after which one creates the command
\newcommand\sat{\ThisStyle{\kern.5\LMpt\includegraphics[height=2\LMex]{saturation}\kern.5\LMpt}}
to be able to type \sat. Here is an MWE:
\documentclass{article}
\usepackage{scalerel,graphicx}
\newcommand\sat{\ThisStyle{%
\kern.5\LMpt\includegraphics[height=2\LMex]{saturation}\kern.5\LMpt}}
\begin{document}
\centering
\sat
\end{document}



saturation.pdffile to new documents, is there an easy way to avoid this? And it seems the bounds' font size does not decrease when decreasing the overall font size, is that correct? – Steven Jun 27 '20 at 08:57\scriptscriptstyle. For OT1 font encoding of the Computer Modern font, there is a lower limit ( I think around 5 pt) for the font size. Try loading thelmodernpackage (reworks the Computer Modern Font as a T1 scalable font and calls it latin modern) and see if that resolves the font size issue. – Steven B. Segletes Jun 27 '20 at 19:59