Can someone tell me how to set the parameters of a declared new command similar to how it is set in the TikZ package? More specifically, I would like to declare a function \condVert{} that sets a vertical line to the right of the selected expression (environment \left. + \right|) indicating a condition (or the limits of a variable change). Also, as an additional parameter, I would like to set the ability to set brackets / frames around the expression.
Examples:
Highlighting the background color would probably be too expressive, but perhaps it would be good to add to the functionality. :)






keyvalpackage (and other packages likekeyvalxetc., and of course TikZ programming layer (pgf), and expl3'sl3keyspackage (read interface3.pdf for this one) key value - A big list of every keyval package - TeX - LaTeX Stack Exchange – user202729 Jun 16 '22 at 12:41