{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

20
votes
2answers
245 views

Defining arithmetic operators that insert brackets according to usual precedence rules

I have a program that generates bits of Tex code like these: $\product{a}{\add{b}{c}}\leftrightarrow \add{\product{a}{b}}{\product{a}{c}}$ $\add{a}{\add{b}{c}}\leftrightarrow \add{\add{a}{b}}{c}$ ...
7
votes
3answers
281 views

Designing a new tuple of Algebra Operators

It's neccessary to have at least two extra tuples of Albera Operators. A minimal tuple is a triple (to_be_subset_eq, meet_operator, join_operator). There are some ideas how to make 2 extra tupes. ...
4
votes
1answer
80 views

How to typeset categories with long names?

I am typing some category theory and I am unsure how to handle the name of a category in LaTeX. I read the post How to typeset the name of a category? and implemented the mathbf-solution mentioned ...
7
votes
1answer
131 views

How to make a command for a circled letter to work with all font sizes?

I introduced the following macros \newcommand{\malcev}{\mathop{\text{\textcircled{\scriptsize M}}}\nolimits} \newcommand{\imalcev}{\mathop{\text{\textcircled{\tiny M}}}\nolimits} The code \[ ...
5
votes
3answers
85 views

Declaring a math operator for every capitalized word? [duplicate]

I've declared a lot of math operators lately, e.g. \DeclareMathOperator{\Hom}{Hom}, \DeclareMathOperator{\End}{End} and so forth. This is getting a bit annoying and seems automatable: what I'd really ...
2
votes
1answer
106 views

mathjax \sqrt command

I don't if this forum is the right place where post my question, anyway, it concerns TeX. Mathjax seems to create the bar over the argument of \sqrt command as a box with a sequence of very densely ...
3
votes
3answers
78 views

Vertical spacing problems with a custom math symbol in LaTeX

I need to have a few custom math symbols by adding different number of dots on top of the standard \preceq math symbol. So, I have done this as follows: ...
3
votes
1answer
143 views

Alternative for \DeclareMathOperator

I'm getting a little tired of defining all my mathematical operators with \DeclareMathOperator. Also it is rarely useful to have them as a macro. On the contrary it sometimes leads to macro name ...
1
vote
0answers
62 views

\sum not properly displayed? [duplicate]

When I do $ \sum_{k=1}^{K} $ I get this: But I want to get this: where i is above! I am working in beamer.
-1
votes
1answer
192 views

How do I write this mathematical equation?

I want to write the shown mathematical equation in LaTeX but I am getting an error. Here this is not eta but it is n. The code which I am writing is \begin{equation} \Delta {E} + \frac{\omega^2 ...
0
votes
1answer
131 views

How to use \lll properly

I need the symbol <<< (left rotation). Now from TexStudio help, I found it as \lll. But when I use it, I get an error Undefined control sequence ... \lll. How to fix it?
3
votes
3answers
140 views

Latex command for plus-over-cross

I want to use the symbol 'plus-over-cross' to refer to point in a Matlab generated figure. In LaTex terms this will be an overlay of + over \times. Any ideas? Note that I do not want the asterisk ...
4
votes
1answer
118 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 ...
13
votes
1answer
193 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
28 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
241 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
224 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
82 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
114 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
103 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 ...
4
votes
2answers
97 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
78 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
158 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.
21
votes
2answers
520 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
65 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
96 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
163 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
128 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
138 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
126 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
219 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
278 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
108 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
106 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
104 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 ...
7
votes
3answers
218 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
90 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
157 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 :) )
2
votes
1answer
81 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
279 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.
5
votes
2answers
154 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
163 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
435 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 ...
2
votes
3answers
6k 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
101 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 ...
13
votes
3answers
298 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
135 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
1k 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
251 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
103 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 ...