I want to typeset direct and inverse limits, as shown in the following image:
I also want to know how can I control the way subscripts are attached. Normally subscripts are attached to the bottom-right, but this behavior is changed for some special symbols like lim and such. How can I mimic this behavior on custom symbols?
Use math.op to define things the same way predefined lim and sin for example are defined. It takes an argument to set limits.
Also note that you can force it directly using the limits function (scripts is the opposite). And in inline equations even lim has subscripts instead of limits, but it can be forced with limits again as shown below…