{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
1answer
83 views

Always have the ring of the tensor product below the \otimes

I would rather have always have my tensor product look like $A\underset{R}{\otimes}B$ but still write $A\otimes_R B$. Is there a way to make this happen by some command in the preamble? (it's ok if it ...
6
votes
3answers
100 views

\mathop in sums and limits

What is the \mathop command meant to be, officially? I see it used in indexes of sums and limits to improve the spacing, e.g. \sum_{n\mathop = 1}^\infty a_n Why doesn't it just format it like ...
4
votes
2answers
55 views

Question about limits in lim command and scale in mathtools package

This is a follow up question regarding the limits in \lim command and mathtools package. To begin with how can I make the limits to start at the beggining of the lim symbol and not ahead of it? ...
0
votes
1answer
40 views

use a “+” or “-” by itself without terms

I want to typeset an I with a subscripted "+" sign. How can I do this? I know there's a trick to tell TeX that there are no operands, but I can't remember what it is, and I can't seem to search for it ...
4
votes
1answer
65 views

Example of a complex compound tikz math statement

Could someone provide an example of a complex compound mathematical statement in tikz as I find that most of the answers out there are difficult to understand or lacking. I want a MWE example like ...
4
votes
2answers
103 views

Not able to show negative signs

I have the following. \item Arrange in ascending order (smallest to largest): $−6, −2, 0, 1, −5, 4, 3$ But this output does not have negative signs. 6, 2, 0, 1, 5, 4, 3 It shows negative in ...
6
votes
3answers
160 views

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

This question is similar to this one, only that I'm using the siunitx package: \documentclass{minimal} \usepackage{siunitx} \begin{document} The temperature is \SI{\sim 200}{\kelvin}. \\ The ...
7
votes
1answer
138 views

Integral Sign $\int…$

does anybody know how to write integral signs in LaTex that are slanted to the left, and not the right. See here if you do not know what I mean: (From ...
3
votes
3answers
101 views

“Average sum” symbol

Is there a convention for an average sum symbol, for instance \overline{\sum_{i \in I}} to mean \frac{1}{\#I} \sum_{i \in I}? I can live with the overline option but it does not look good in inline ...
1
vote
0answers
22 views

\varamalg and \varcoprod operators for disjoint union

For the disjoint union, I don't like \amalg and \coprod very much. So, I did all my best to create a \varamalg with this code: \documentclass{article} \usepackage[utf8]{inputenc} ...
0
votes
0answers
13 views

subnumcases and inline math [duplicate]

Code \usepackage{cases} \begin{subnumcases}{}\label{eq:regola_scelta_reject} \min \quad \sum_{j=1}^{H}x_jw_j & $\sum_{j=1}^{H}x_jw_j \geq W_L$ ...
4
votes
2answers
97 views

Designing medcirc and circledtimes symbols

It would be great to use only \medcirc and \circledtimes from the pxfonts or to design the similar symbols by other techniques. The symbols from pxfonts are quite well but when I connect the ...
3
votes
1answer
51 views

A simple solution to using widebar on subscripted symbol with small space with the subscript

Looking for a simple method to use a widebar over a letter with subscript, but have the space remain the same as when using \bar as \overline produces large space which does not look good even though ...
2
votes
1answer
126 views

How to write partial eta square in LaTeX?

Problem: Writing partial eta square in LaTeX. I couldn't find anywhere online giving guidance to this statistic symbol. Example (it's the symbol to the left): Any help would be appreciated.
1
vote
1answer
35 views

How do I create a newcommand which outputs a letter with an index? [duplicate]

When I use \newcommand{\F1}{$\mathrm{F}_1$} I get the Missing \begin{document}. error and missing $ inserted if I move it inside the document. How do I define a macro so that \F1 would expand to ...
20
votes
2answers
216 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
242 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
56 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 ...
6
votes
1answer
64 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 \[ ...
4
votes
3answers
72 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
81 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
62 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
107 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
61 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
179 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
90 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
89 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
79 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
170 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
27 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
122 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
195 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
66 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
103 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
94 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
70 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
58 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
124 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
495 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
60 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
84 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
147 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
104 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
97 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
120 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
214 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
227 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
101 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
84 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
75 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 ...