Tagged Questions
3
votes
2answers
72 views
Declaring a math operator with cursor placement, e.g. expected value
I'd like to declare a new math operator \ev for representing the expected value, in the form: E<.> so that it looks like the following but with an argument
...
4
votes
2answers
182 views
How to build macros for vector-matrix operators?
Can anybody build macros for doing the following vector operations? Or are there already such macros? For example,
1) Example data: \def\a{(5,3,0)}
\def\b{(5,1,6)}
...
15
votes
2answers
2k views
newcommand vs. DeclareMathOperator
As far as I understand, whatever can be done using DeclareMathOperator can also be achieved using newcommand, but not the other way around. If this is the case, what are the circumstances where ...
7
votes
1answer
117 views
Creating a customizable n-ary operator?
I'd like to be able to create a customizable n-ary operator that behaves like \sum or \bigoplus but which takes an arbitrary symbol as an argument.
The closest that I have been able to come to ...
5
votes
1answer
224 views
How to make a \newcommand that acts like \dim?
The \dim command is good at deciding how to space things following it: for example, both $\dim M$ and $\dim_A M$ look right (the subscript immediately follows the dim, whereas the non-subscripted ...
7
votes
4answers
571 views
Swap definition of starred and non-starred command
I don't like the fact that I am required to use \abs* when I want the vertical line of the absolute value to automatically re-size. I pretty much always want it to re-size, so would like to swap the ...
29
votes
8answers
1k views
How can I specify a long list of math operators?
The preambles of my LaTeX documents often include many many lines of \DeclareMathOperator instructions, e.g.
\DeclareMathOperator{\Rep}{Rep}
\DeclareMathOperator{\Tet}{Tet}
...