{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

4
votes
1answer
245 views

Consistency versus aesthetics with respect to \tilde and \widetilde

I am currently working on a paper which heavily uses \tilde for both lower case letters and capitals in math bold font. When using \tilde for lower case letters, everything looks perfectly fine, but ...
14
votes
1answer
220 views

How can I use German umlauts in DeclareMathOperator?

I would like to define a math operator Homöo, but when I try \DeclareMathOperator{\Homoo}{Homöo} \DeclareMathOperator{\Homoo}{Hom\"oo} I get Homo. How can I use German umlauts in ...
1
vote
0answers
31 views

can't renew math command '\exp', why? [duplicate]

In the preamble of the main.tex file I've written \renewcommand{\exp}[1]{ \exp \left( {#1} \right) } so that the math function \exp automatically includes the round brackets. In the file I wrote ...
0
votes
1answer
1k views

Using Trigonometric Functions [closed]

When I type Trig functions using {} or () I seem to get the same result, what is the difference between the two?
10
votes
2answers
314 views

“esint” integrals with default limits

When I'm trying to set a normal volume integral with the esint package, it will be generated with the limits set right to it: A corresponding example code for this is \documentclass{article} ...
4
votes
2answers
142 views

\cupdot gives “Undefined control sequence” with MikTek on Windows 7

I am using MikTek 2.9 on Windows 7. When I try to use \cupdot, in math mode, I get an "Undefined control sequence" error message. Is there a package that I need to include to use \cupdot?
7
votes
2answers
154 views

Unwanted separation in an equation

I have an equation with an intersection which has multiple limit levels, like this, \[ \langle H, H'\rangle = \bigcap_{\substack{ L \leq G, \\ H \cup H' \subseteq L. }}L \] It compiles nicely, ...
3
votes
1answer
172 views

How to properly display a product within a fraction?

I have product inside a fraction, like this: \[ \phi_n(t)=\frac{t^n-1}{\prod_{\substack{ d \mid n,\\ d<n.}} \phi_d(t)} \] And that places the "limits" of the product on it's side, not ...
5
votes
2answers
219 views

Variation on $\prec\prec$

Is there a standard TeX or LaTeX code for a symbol that bears the same relation to \prec\prec that \ll bears to << ? (And how do I get TeX code to get rendered in a question posted here? I'm ...
2
votes
1answer
117 views

Using math symbols inside mbox

I am trying to write something like r=1m or r~1m inlined in my text. Currently i am using $\mbox{r=1m}$. However this gives me problems if I use $\mbox{r \approx 1m}$ it is not working and ...
5
votes
3answers
335 views

Monus operator macro

I'm doing some CS theory papers and need to use a monus operator. Picture below: What package should I use to be able to use it? I've Google'd, but nothing came up. Thanks for the help.
22
votes
2answers
592 views

Typeset assigments +=, -= etc nicely?

Could someone please show me how to get LaTeX to properly typeset the -=, += assignment operators. I have tried $a -= 1$ $a\texttt{-=}1$ $a\verb!-=!1$ but they all look really ugly. I have been ...
2
votes
0answers
76 views

Power set symbol [duplicate]

I don't know if there's some standard symbol to represent the Power Set in Latex. According to Wikipedia there are some possibilities: I think the first one would be the most appropriate because ...
3
votes
1answer
122 views

How to adjust the alignment of a mathematical expression in a text section? e.g. argmax

I am using the following definition to generate the argmax operator: \DeclareMathOperator*{\argmax}{\arg\!\max} However the problem is when I use it in a part that some text exists because of the ...
10
votes
2answers
230 views

Write something below ampersand sign

I need to write something below and top of ampersand sign. I want it to be like \sum. I have tried \&_{i = 0}^{n} but it shows i=0 in the index but not below ampersand sign.
2
votes
3answers
187 views

math cases package problem

I am preparing a presentation with beamer. I want to use a math formulas that contains a cases \begin{cases}{|x|=} x, & for $x \geq 0$\\ -x, & for $x < 0$ \end{cases} the problem in ...
4
votes
1answer
267 views

Conditionally remove the space before a one-letter operator

I'm pursuing the Math Expectation operator (\mathbb{E}). As \DeclareMathOperator is not very good for one-letter operators (since it adds some spacing after itself), I use a plain \newcommand. But ...
5
votes
1answer
139 views

How to make functions

I’m not entirely sure here what terminology I should exactly be using, but let me illustrate a use case. ... \matr{1 & 2 \\ 3 & 4} ... to replace this: ... $\left[\begin{matrix} 1 & 2 ...
15
votes
3answers
241 views

Printing the first N terms from a telescoping series

I would like to produce a LaTeX document that generates the first N terms of the telescoping series sum(1/k-1/(1+k)) where k=1,2,3...,N, such that it displays at least the first 10 terms. I want the ...
5
votes
1answer
529 views

How to make addition symbol inside in a circle? [duplicate]

I need to make + and a dot representing multiplication in a circle. How to do it?
4
votes
2answers
138 views

How to change the height of the sum sign

I would prefer to write the definition as in equation (2). However the sum sign is too low in this case. Is there a way to make it higher? \documentclass{article} \usepackage{amsmath} ...
3
votes
1answer
173 views

Quantifier spacing with unicode-math

When using consecutive quantification in a math formula, there is not enough spacing around the quantifiers. For example: \documentclass{article} \usepackage[colon=literal]{unicode-math} ...
3
votes
1answer
174 views

\underset italicizes whatever in it

I'm trying to write a simple argmin equation. However \underset command italicizes whatever in it. Here is my code: \begin{align} \label{Eq:argmin} &{x}={\arg\underset{p}{\rm ...
8
votes
3answers
459 views

DeclareMathOperator in bold

Ho can I declare a math operator which will appear in bold font? I tried the following, but it didn't work: \DeclareMathOperator{\Div}{Div} \newcommand{\Divxk}{\mathbf{\Div}_{X/k}}
5
votes
3answers
94 views

How to get for to stand separate in an equation?

I have the following equation: \begin{equation} C_k = \frac{1}{N}\sum\limits_{n=1}^N k_n for k \in {1,\dots,K} \end{equation} How can I get the for, and everything after it, to stand ...
1
vote
0answers
187 views

How to implement a template for math journal? [closed]

I want to design a math journal. Please give me a structure for it. For any article there is an individual .tex file. (Excuse me for my bad English :) )
4
votes
1answer
107 views

How can I influence the spacing of mathematical functions by an own macro?

I would like to get a macro \of to define a function with an optional macro \at to define its restriction. The reason is, that I don't like the spacing for functions (as there is no spacing) and I ...
4
votes
1answer
421 views

Typing Following notation in Latex [duplicate]

I need to generate following notation in LaTeX. It's used in differential geometry to denote vector fields. I can't find documentation and detexify is not helpful either.
6
votes
2answers
1k views

Line in set definition

I'm trying a simple definition of a set. My try: $M=\{x\,|\,1\le x\le p-2\}$ Is there a more comfortable way of getting a little space before and after the |? I'm thinking of something like the ...
5
votes
1answer
218 views

Getting Math Operators to work in verbatim

I'm very new to Latex and I'm looking to simply have math operators appear with in verbatim tags as follows: \begin{verbatim} 24: max:=0 25: for i:=n downto 1 do 26: found:=false 27: ...
4
votes
2answers
806 views

limits to \oplus not working and double ended arrow equation

I am having an equation which having \oplus with limits, but \limits for \oplus gives error and there is another critical equation with double ended arrow. can anyone please help me to key this ...
6
votes
3answers
19k views

latex symbol for “if and only if” [duplicate]

In LaTeX the symbol for material implication is produced by $\to$, but for biconditional ?
6
votes
1answer
125 views

Commands with Capital letters in their name

A topic that appear over and over is to explain the difference about commands such as \operatorname vs. \DeclareMathOperator. So far I've seen discussions about using one or the other, but no one ...
14
votes
3answers
466 views

How could LaTeX replace the tokens <= by the command \leq?

How could LaTeX replace the tokens <= by the command \leq efficiently? Example 1: I have this code: \[ 2x <= 4x - 2 \] And I want to get after the compilation this: Example 2: \[ ...
5
votes
2answers
197 views

Typesetting with long limits

The problem of typesetting with long limits has already been discussed in Improving typesetting of sums with long limits. However, the answer given there uses \mathop, which does not produce ...
1
vote
2answers
4k views

Subscript of sum [duplicate]

How can I make a subscript for sum in latex like the following picture: I tried \sum_{q_i} but that doesn't make the result I want. It makes the following result:
14
votes
1answer
380 views

How to write a formula using box product

Can anybody help in writing the following formula... I am having trouble. LHS I can write, but not the RHS.
1
vote
1answer
145 views

Assigning different colors to numerical values below a certain parameter?

I'm relatively new to Latex so apologies for any stupidity upcoming. I'm trying to read a Matlab vector into a latex table with values ranging between 0 and 1. For the values less than 0.1, I want ...
1
vote
3answers
647 views

To show something are appearing n-times!

Suppose I want to write that the sequence 1,1,...,1 appear n-times. How will I do this? Usually in mathematics we use a braces at the bottom and write "n-times" below the brace.
2
votes
1answer
903 views

How to write a modified limit operator? [duplicate]

I am trying to write an generalised limit operator, which look approximately like the standard \lim, except it has an additional symbol in front, connected by a hyphen (see example below). I would ...
7
votes
3answers
182 views

Correctly typesetting a relation

I'm trying to typeset a relation. The following should read "< equals {...}", just in the same sense as one would use "x = {...}". \documentclass{article} \begin{document} $< = \{(x, y), (y, ...
7
votes
3answers
220 views

Place symbol inside of \bigsqcup

How can I place a symbol inside of \bigsqcup? What I have tried is this: \newcommand{\concn}{\bigsqcup_{i=1}^n\hspace{-1.07em}\text{\footnotesize $h$\normalsize\hspace{0.6em}}} The problem ist ...
5
votes
2answers
5k views

Matlab LaTeX Interpreter: Minus sign in subscript or in superscript

In general, using Matlab with the LaTeX interpreter works fine. Today I focus a really stupid bug in the visualization of the minus sign. In Matlab I write a text with the LaTeX string $K_{-1}$ and ...
3
votes
2answers
4k views

Split environment alters spacing around binary operators

I've been using split environment from amsmath. A problem that I've run into is that if an & for alignment is placed next to a binary operator, the spacing on that side of the operator is reduced ...
17
votes
5answers
632 views

Brackets around a sum that has no top limit

MWE: \documentclass[12pt]{article} \usepackage{amsmath} \begin{document} \thispagestyle{empty} \[ \mathcal{F} \left\{ \sum_j e^{-2i\pi\nu_j t} \right\} \] \end{document} Result: The sum only ...
7
votes
2answers
447 views

Spacing after derivative operator in the commath package

I am using the commath package to typeset the derivative operator "D" with the command \Dif. This work well unless I want to add subscripts or superscripts. In this case, the spacing after operator is ...
8
votes
1answer
172 views

Change spacing around binary operators

I'd like to change spacing around binary operators and this issue is discussed there: How to change default for spacing around binary relations? Is there way how to change spacing in math and ...
6
votes
2answers
373 views

When substack and array doesn't work

I am trying to write a formula. But both substack and array cannot fulfil my needs (as far as I know how to use them). The first is how I want it to look like. But I need an i'\neq i below the ...
6
votes
1answer
792 views

PGFPlots: Math operations within coordinates yields error?

How can I use math operators within PGFPlots coordinates? When I write something like \draw (axis cs: 0,0) -- (axis cs: sqrt(3),1), I get the following error: ¡ Argument of ...
5
votes
1answer
188 views

Using operator spacing to indicate precedence

I regularly have to typeset equations that are, because of their inherent complexity, difficult to read. To address this I have gotten into the habit of emphasizing operator precedence by horizontal ...