{math-operators} is about operators in math mode. These include sums, integrals and similar, text operators like sin, cos, etc.

learn more… | top users | synonyms

7
votes
2answers
469 views

Log-like operator with math inside (e.g. p-lim)

I am looking to make a log-like operator that looks the same as $p \text{-lim}$. The best way so far I found to do this is \DeclareMathOperator*{\plim}{\text{$p$-lim}} Question: Is this the ...
6
votes
1answer
5k views

How to write something underneath \min?

How to type this expression, where has \min on top and \forall at the bottom?
4
votes
1answer
1k views

Typesetting plus-minus uncertainties with different upper and lower bounds

I'm making a data table and need to include my error bars with my data. $\pm$ works great if the upper and lower bounds are the same, however, several of my data points has a different upper limit ...
2
votes
1answer
128 views

\textsuperimposetilde does not superimpose as \sum subscript

Compiling the document, the tilde and P lie seperately under the \sum operator, but as the command superimpose would suggest, I would like them to be superimposed. Works just fine when using ...
1
vote
1answer
729 views

Undefined control sequence math operators

I have an algorithm defined under figure container. For some reason I am getting a strange error in the conditional expression of the second If block statement. \begin{figure} \begin{flushleft} ...
7
votes
1answer
1k views

operator name for kernel

I'm trying to define \newcommand{\ker}{\operatorname{ker}} just after \begin{document} in order to have a nice way to write the kernel of an application but the command is ignored and I don't know why ...
8
votes
1answer
10k views

Two different calligraphic font styles in math mode

I have been succesful in using the calrsfs package together with the standard CM type1cm font. I have been able to obtain in separate documents different calligraphic symbols in math mode with ...
16
votes
1answer
623 views

Customized summation symbol

I am interested in defining some customized math symbols out of existing ones. For example I would like to distinguish between different types of sums, so beside the usual symbol I would like to ...
4
votes
1answer
3k views

Undefined control sequence in align

\begin{align} \label{eq:x} x = \sign{a} \cdotp \sign{b} \cdotp \min(\lvert a \rvert,\lvert b \rvert) \end{align} Above gives me Undefined control sequence. Any ideas would be helpful.
4
votes
2answers
267 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
3answers
443 views

Typesetting the square of a mathematical operator

Assume I want to typeset the square of some mathematical operator A. Using \operatorname (amsmath package), there are basically two ways to do that: \(\operatorname{A^{2}}\) (i.e., the exponent is ...
1
vote
1answer
720 views

Is there a symbol for a circled intersection? Like \oplus for the plus sign [duplicate]

Possible Duplicate: How do I put a circle around an operator? Is there a symbol for a circled intersection sign? or an alternative way to render something like in the image below? Something ...
12
votes
1answer
343 views

Problem with “equal” sign and glossary entry definition

I am using glossaries package and I encountered a problem in the symbol field. When I define it as $m=1$ I get the following error message: ! Missing $ inserted. <inserted text> ...
35
votes
2answers
11k 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 ...
13
votes
4answers
394 views

Creating a circled operator which expands into a lozenge

I have a LaTeX document which has a binary operator called "composition". Normally, this is written as a circled letter, where the letter is passed as a parameter: \comp{x}. I can achieve good results ...
2
votes
2answers
1k views

Using \Mathsmaller in math display mode makes the character appear to the right of the symbol itstead of below it

I am trying to use \prod in math display mode but it appears large (larger than I want it to be) but when I use \mathsmaller from the relsize package the letter appears on right side of it instead of ...
8
votes
1answer
415 views

Making integral ∫ use \limits by default with unicode-math

How can I make the unicode integral symbol ∫ act as if it is followed by \limits? Classically \usepackage[intlimits]{amsmath} would do. But with unicode-math this does not help anymore. I also tried: ...
6
votes
2answers
294 views

How to put i=1 to n for a \square?

Here's the i=1 to n for a \bigwedge \documentclass[conference]{IEEEtran} \usepackage{ amssymb } \begin{document} $ \bigwedge\limits_{i=1}^n t_1 $ \end{document} How do I do it for a \square ...
9
votes
5answers
503 views

Is there a more correct way to show explicit exponential operators?

I typed in this question like this: $\underbrace{\alpha \hat{\phantom{\hat{}}} \alpha \hat{\phantom{\hat{}}} \dots \hat{\phantom{\hat{}}} \alpha}_\text{n times}$ which mathjax prints as I feel ...
10
votes
2answers
1k views

Exchange meaning of : and \colon

I usually use the colon symbol : to denote maps. For set syntax there is the braket package. So as the spacing of : is not appropriate, I want it to behave like \colon. I tried ...
4
votes
2answers
2k views

Customized log notation

In my country, the base of logarithm is written in superscript before the log sign, i.e. $^a\log b$ means log base a of b. This doesn't look nice on LaTeX, because there is a gap between ^a and \log. ...
1
vote
1answer
1k views

Using < > symbols inside algorithmic [duplicate]

Possible Duplicate: Why do the less than symbol (<) and the greater than symbol (>) appear wrong as upside down exclamation or question mark? I have the following code ...
7
votes
1answer
155 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 ...
6
votes
1answer
250 views

Automatic reduplication of equal sign in the beginning of broken formula

Suppose we have the following code \documentclass{article} \begin{document} $a=b=c=d=e=f=g=h=i=j=k=l=m=n=o=p=q=r=s=t=u=v=w=x=y=z$ \end{document} which produces the following result I want to have ...
5
votes
1answer
264 views

The font of operator names: the size

A while ago, I asked what was the correct way of changing the font used to set operator names. I stabilized at: \DeclareSymbolFont{sfoperators}{OT1}{cmss}{m}{n} ...
1
vote
1answer
2k views

LaTeX notation for summation over all combinations of two variables?

Is there a notation that expresses a summation over all order-independent combinations of two variables? I have a single set of objects and want to show the summation of the joint probabilities of ...
8
votes
3answers
3k views

How to put your symbol explanation for the formula?

I have a formula written in LaTeX. What is the best way to explain what the symbols mean in the formula? For example I have this equation with a where: symbol definitions \begin{equation} ...
5
votes
2answers
503 views

Any way to change color of \not

I often use command \not just to cancel off symbols in my equations and i would need an advice on how to change the color of this command.
2
votes
1answer
339 views

Formula in displaystyle but operator limit in normal subscript position [duplicate]

Possible Duplicate: Show inline math as if it were display math I have a formula in an equation environmente i.e., in a display style modality. Moreover, since I have to enumerate an ...
3
votes
1answer
1k views

Enlarge the integral sign proportional to its content

In LaTeX you have a command like \left(\right) to enlarge the brackets proportional to the content between the brackets. for instance \left(a\right) will produce smaller brackets than ...
16
votes
2answers
4k views

Getting the expectation symbol to behave like $\sum$ instead of $\Sigma$

How can I get an expectation symbol which behaves like $\sum$? Specifically, I want the underscore to be like that of a summation. At the moment I use $$\mathbb{E}_{x\in A}$$ However, I do not ...
1
vote
1answer
229 views

My limits are moved [duplicate]

Possible Duplicate: Writing a limit so that the subscript goes directly underneath I am not sure how to explain this, but my code doesn't behave $\lim_{(x,y)\to(0,0)} xy + y$ ...
5
votes
4answers
4k views

How do you write “times”? [duplicate]

I come from Norway, and here the formatting of maths are a little bit different than in the U.S. and the UK. If you want to factorize 25, you know that it is 5 times 5. How would you write this with ...
2
votes
1answer
182 views

Computing a simple maths calculation and use the result as page numbers in the Table of Contents

Following up this question here, I am looking for a way to compute a simple maths calculation inside the document and let the result of this calculation be the value that appears as page number in the ...
9
votes
1answer
4k views

How do I write $\sim$ approximately with the correct spacing?

I would like to use the symbol $\sim$ as "approximately". e.g: \documentclass{minimal} \begin{document} There are $\sim 10^{80}$ atoms in the universe. \end{document} I think that I need to declare ...
14
votes
4answers
2k views

Spacing between triple vertical lines

I would like to create a norm-like operator with 3 verticals bars instead of two. It has to look like $|||\cdot|||$. I would like to know how to decrease the spacing between the vertical bars such ...
8
votes
2answers
264 views

typesetting 2 line conditions over which is summed

I am trying to typeset the formula below in a way that m_j=m_i and z_j=z_i have the same scriptsize, the = are aligned, and j: is before both, larger and with vertical position between the lines. How ...
11
votes
4answers
1k views

How do I put a circle around an operator?

For example, I want to put a circle around \land, just like one can put a circle around + by writing \oplus. Is there a general method to do this?
7
votes
2answers
295 views

Math operator resizing in autosized brackets

I want to define a new command to format \mathbb{E} in the same way as \sum - same size in display/inline formulae, and same treatment of sub/superscripts. The following seems to work... ...
8
votes
1answer
296 views

How to put a hat on a binary operator and maintain spacing

This is maybe easy question. How is the right/good way to put a hat on a binary operator like \otimes? For example a\otimes b vs a\hat\otimes b In the second case it is not typeset as a binary ...
1
vote
2answers
221 views

Designing a new mathematical operator

We all know that \binom{n}{r} in math mode renders the binomial coefficient. For the purposes of a note, I am TeXing up, I am interested in designing a new math operator. Suppose I called that ...
5
votes
1answer
866 views

Why does lim_{n\to\infty} work in my LaTeX document?

lim_ is not a command in LaTeX because all commands begin with a back slash. However, why does lim_{n\to\infty} work in math mode? What is lim_ if it is not a command?
67
votes
3answers
22k views

What's the difference between \mathrm and \operatorname?

I apparently can't see the difference in a compilation (pdflatex) between \mathrm and \operatorname. So, as in the title the question is: is there a difference? Which one is preferable in what ...
3
votes
2answers
597 views

Using a math operator inside a 'cases' environment

When I do this: \begin{equation} b_i = \begin{cases} arg \min_{\forall p \in B} d(a_i, p) & \text{if } d(a_i, b_i) < D_{max} \\ \text{undefined} & \text{otherwise} \end{cases} ...
4
votes
2answers
1k views

Times New Roman with LaTeX (mathptmx)

Is it possible to change the look of \infty when using mathptmx? It looks horribly small compared to the other characters.
14
votes
1answer
705 views

R-Integral symbol for my notes

I am typing up a set of notes for the Riemann Stieltjes integral. For reasons beyond the scope of the question, I would like to start with defining the Darboux's integral and then formulate Riemann's ...
1
vote
1answer
394 views

Defining a prefix operator with space before its argument

I want a particular spacing behavior for a custom operator. I can produce the desired spacing by setting math classes (\mathord and so forth), but I have to do it on a case-by-case basis since no ...
8
votes
2answers
300 views

Writing specific versions of an operator for display and inline modes

I'm busy answering a question by constructing a new math operator that uses the sum symbol and some TikZ placed on top. My answer as it stands can be found here. It looks (I think) pretty good in ...
7
votes
3answers
882 views

The modulo two sum sign in LaTeX

I would like to know how I can obtain the 'modulo two sum' sign (unicode 2A0A i.e., the letter sigma with a circle in its middle). I know I can obtain it by using the unicode-math package. But does ...
4
votes
2answers
169 views

Customizing the Weak limit

Using the command \displaystyle \lim_{\Lambda \uparrow \mathbb{Z}^2} I can produce the limit that I desire. But I like to write the above limit as in the photo below. Could you help me? Thanked. Ps. ...