{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

5
votes
4answers
1k views

Writing Linear Temporal Logic in LaTeX

I am writing some LTL (Linear Temporal Logic) statements in LaTeX and am having issues finding any packages online or information as to this can be done. Any help would be appreciated.
40
votes
3answers
7k views

What is the difference of \mathop, \operatorname and \DeclareMathOperator?

One sees all kind of versions in source files for defining something like a limit etc. So my question is which one serves what purpose. Is there any "best practice" in chosing one over the other?
4
votes
1answer
134 views

\sum_i acts as \sum\limits_i but just sometimes

The code part looks like this \begin{equation} \frac { \left(\sum_i r_{ik}x_{ij}\right) - \mu'_{kj}\left(\sum_i r_{ik}\right) + (\alpha-1)-\mu'_{kj}(\alpha+\beta-2) ...
3
votes
1answer
132 views

operators within the dollar sign

I am using operators : +,-. For example, $6-1$. The operator - becomes rather large between $ $. Normally, would you leave the operator negative between the $$? If not, how do you make it to the ...
4
votes
2answers
7k views

\int with \limits or without?

I read that I can use \int_a^b or \int\limits_a^b. With \limits, the equation looks more compact horizontally, but a little bigger vertically. Is there some design rule to it, or just personal ...
11
votes
4answers
443 views

How to construct a logic argument with colored hline with length under control?

How to construct a logic argument like this one? I can construct it like this: Latex of my argument: \documentclass[10pt]{article} \usepackage{newtxtext} \usepackage{newtxmath} ...
6
votes
0answers
119 views

Spacing around \left and \right: When is it needed? [closed]

There have been a few questions (such as this and more recently this) regarding the "extra" spacing around \left and \right. And there are various options for fixing it, including the mleftright ...
7
votes
4answers
3k views

How to make equation fit in the column

HI here is the latex code \documentclass{sig-alternate} \usepackage{ctable} \begin{document} $G_{CS}(\mathbb{S_c})= \begin{cases} \displaystyle\sum_{k=1}^{r} ...
8
votes
3answers
790 views

How do I make the \min and max bold?

Refering to this question How to make the table fit into the column? How should I make the \min and \max bold?
6
votes
1answer
884 views

div equivalent to mod

What's the easiest way to define a \bdiv equivalent to \bmod, i.e., a binary operator for integer division? I tried \meaning\bmod, but got very primitive TeX commands, so I'm sure there's a ...
0
votes
0answers
40 views

how do you write the grad operator? [duplicate]

Possible Duplicate: How to look up a symbol? I can only get \div which is upside down. I tried typing \grad but no luck. Packages I am using: \usepackage[utf8x]{inputenc} ...
2
votes
1answer
93 views

Is there a command of the type “\blabla” where I can write \mbox{div}(F)

Maybe my question is easy. When I want to write $$ \mbox{div}(F) = \sum_i (F_i)_{x_i} $$ I have to type \mbox{div}(F), which is cumbersome. Is there a way to define a command \blabla to produce ...
10
votes
2answers
131 views

Strange spacing when putting a math macro before a binary operation

I found there to be very odd spacing when using a math macro just before a binary operation. Here is a minimal example: \documentclass[11pt]{article} \usepackage{amsmath} ...
9
votes
1answer
7k views

Expression under summation on multiple lines [duplicate]

Possible Duplicate: Separate long math text under sum symbol into different lines? I want to write expression \sum_{i=0}^n i with i\neq 4 under the summation symbol. How can I write this?
1
vote
0answers
269 views

Why do people write italic “d”s in integrals? [closed]

In some German books, I see what I consider proper: \int \mathrm d x In other books, I just see this: \int d x Since everybody writes $\sin(x)$ instead of just $sin(x)$, I wonder why people ...
12
votes
1answer
1k views

Double sum over i and j with i \neq j

I would like to represent a double sum with i\neq j. So I want two capital sigmas with text i\neq j underneath them. How can I achieve this?
6
votes
1answer
326 views

how to place text on fraction for accounting formulas?

Sorry for the bad grammar. English is not my native language. I want to have text on a fraction type line to show up in an accounting formula, here's an example of what I want: So, I've tried ...
11
votes
1answer
581 views

How can I make LaTeX ignore certain math symbols in math mode?

I have the following equation: <trigger threshold> = average - (<trigger fraction> * average) I want to print this in math mode in a very specific way: <trigger threshold> and ...
16
votes
2answers
7k views

double perpendicular symbol (for independence)

I found from http://jblevins.org/notes/latex that I could use the independence symbol: \newcommand\independent{\protect\mathpalette{\protect\independenT}{\perp}} ...
15
votes
1answer
786 views

Making a unary operator out of a binary operator or relation symbol

Often in physics, the symbol \sim is used as a unary operator to mean "approximately." For example, one might say "the energy of these processes is $\sim 4$ eV." However, this looks awkward because ...
1
vote
1answer
557 views

Combining \operatorname with \mathnormal and \mathrm

Related Question: Typesetting the square of a mathematical operator \operatorname converts its argument into a function symbol with appropriate spaces on the left and on the right. However, I ...
13
votes
4answers
580 views

Is there another symbol that is slightly different from \forall (likewise for \exists)?

What Is there a symbol that is slightly different from $\forall$ (e.g. having a second line from upper left to lower middle)? It should obviously mean "for all" but be sufficiently different to not ...
0
votes
0answers
71 views

How to write a dirac delta symbol in LaTeX? [duplicate]

Possible Duplicate: How to look up a symbol? I mean the squiggle d_{ij} Dirac Delta thing but I am not sure how to put the notation for it. Does anyone know?
7
votes
2answers
415 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 ...
4
votes
1answer
4k 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
120 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
652 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
956 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 ...
7
votes
1answer
8k 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
587 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
253 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
421 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 ...
0
votes
1answer
603 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
315 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> ...
31
votes
2answers
9k 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
377 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 ...
7
votes
1answer
377 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
276 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
483 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
927 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
147 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
225 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
234 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
1k 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 ...
7
votes
3answers
2k 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
430 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.