Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [math-operators]

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

Filter by
Sorted by
Tagged with
4 votes
2 answers
632 views

How to replicate this curly brace

I'm a novice when it comes to TeX. Does anyone know how to get the exact curly brace in the pic? I've searched everywhere and found nothing. I just like how it looks, nothing more. ;-) Thanks in ...
Karabo Dibakoane's user avatar
2 votes
3 answers
153 views

Subscripting a custom \mathbin operator

I have a custom binary operator \newcommand{\foo}{\mathbin{\bullet^*}} I now need to subscript sometimes, but clearly I get instead of Is there a way to make mathbin pass the subscript to its ...
seldon's user avatar
  • 291
0 votes
3 answers
81 views

Any easy way to get boxed \implies arrows?

Trying to write my math solutions and I'm looking for a boxed \implies arrow as in the photo. I'm looking to separate out the 'if' and 'only if' implications in my proofs so suggestions that make ...
Jeff8770's user avatar
2 votes
1 answer
202 views

Improve spacing around equality = and other math relation symbols

I find that LaTeX puts too much space around equality = and other relation symbols. I realise that I can brace symbols, e.g. typing ${=}$ instead of $=$. However, this goes too far in the other ...
Jim's user avatar
  • 165
0 votes
0 answers
43 views

Outline of symbols \top, \bot, \vdash

In Nicolas Bourbaki's Algebra I, he uses an outline version of \top for his internal composition law (depicted below). Is there any way we can produce analogous symbols but with the vertical line &...
John's user avatar
  • 137
2 votes
3 answers
89 views

Wedge inside of itself math symbol

If we use \usepackage{amsmath} we get a symbol \Cap which, when rendered in math mode, produces an intersection symbol \cap inside an intersection symbol. How can we produce \Wedge for \wedge? (I.e., ...
John's user avatar
  • 137
8 votes
4 answers
1k views

Is there a way of creating this symbol for probability independence with respect to a $\sigma$-algebra?

I'm need a symbol for "independence" in probability, that could take parameters, so it is probability over a $\sigma$-algebra. I don't know how to describe it, so I wrote it by hand. I've ...
Susana Santoyo's user avatar
6 votes
3 answers
405 views

Long inclusion symbol

With \joinrel{=}{=} we can produce a longer equality sign. How can we produce a longer inclusion symbol? Obviously \joinrel{\subset}{\subset} isn't going to cut it.
John's user avatar
  • 137
5 votes
2 answers
666 views

Declare a math operator with only lower limit

I'd like to declare a math operator which only expects a lower limit but not an upper one. What I mean is that in case of a display, only the lower limit would go under the operator while I can write ...
Máté Wierdl's user avatar
2 votes
1 answer
64 views

Reduce gap around \cdot and parentheses

This is basically a follow-up on this question: How can I reduce the gap between left and right of \cdot with a macro? The aim is to reduce spacing around \cdot. The accepted answer proposes to define ...
mranvick's user avatar
  • 420
0 votes
0 answers
22 views

Geometric measure theory: Notation for currents over oriented manifolds [[M]] [duplicate]

In the book "Introduction to geometric measure theory" by Simon, the author uses a kind of double square bracket notation for currents over oriented $C^1$ manifolds, something like this [[M]]...
Franlezana's user avatar
7 votes
2 answers
181 views

Vertical spacing of argmin subscript

In my documents, I define \argmin with the following command. \DeclareMathOperator*{\argmin}{arg\,min} IMO, the subscript (in display mode) is too far from the operator (because of the depth of the &...
inavda's user avatar
  • 251
4 votes
2 answers
282 views

different integral signs for \int versus \iint

I need to use both single and multiple integral signs, but latex produces slanted single integral signs and up-right multiple integral signs. Here is a MWE: \documentclass{amsart} \usepackage{wasysym}...
underflow's user avatar
  • 633
2 votes
1 answer
89 views

Definition of \sum -- how does the size selection work

When writing \[\sum\], a larger summation sign is used than when writing \(\sum\). How does the \sum command find out which size to use? What does \sum expand to? I am guessing it is just a shorthand ...
Oliver Leenders's user avatar
0 votes
1 answer
123 views

How to load a math glyph and set it up like \int

I want to modify the glyph for the integral, and then use it as \myint sometimes in place of \int. For this reason i need to figure out how to load the integral glyph from some font and give it the ...
Rubids's user avatar
  • 27
0 votes
2 answers
75 views

Auto sized bracketing with Math Operators

I noticed that $$\exp(\frac12), \exp\{\frac12\}, \exp[\frac12]$$ are all (at least visually) equivalent to $$\exp\left(\frac12\right), \exp\left\{\frac12\right\}, \exp\left[\frac12\right]$$ The same ...
Anvit's user avatar
  • 135
2 votes
1 answer
96 views

Spacing around math operators

This has been bothering me for a while now... Consider the expression |\log x| = |{\log x}| = |\log(x)| = |{\log(x)}| which outputs: Visually, the first and last look "wrong" with too much ...
Martin Hairer's user avatar
3 votes
2 answers
662 views

How to write deg with an underline across the bottom of 'g'?

I want to use this notation in LaTeX: , which is different from \underline{\deg}. Is there any way to obtain this notation? Thanks!
lolipop's user avatar
  • 35
3 votes
2 answers
242 views

How to split an equation at specific position and align it where there is a LaTeX operator

I have a long equation in twocolumn article. The equation has a LaTeX operator like \sqrt{}. I want to split the equation at some position and align it inside the operator ...\sqrt{...&...}...\\&...
zebda's user avatar
  • 125
0 votes
2 answers
58 views

Creating operator with arguments above and below

I am working with creating an operator which has too look like this: I wanna make clear that I need to change the arguments many times in my document because I am showing relation properties between ...
MathHack's user avatar
2 votes
2 answers
226 views

Binary operator as exponent

I've defined \newcommand{\skw}{\mathbin{\star}} which works as expected in expressions like $a\star b$. However, unlike $a^+$, when I try $a^\skw$, I get a compilation error, which goes away if I ...
Leandro Caniglia's user avatar
3 votes
1 answer
71 views

Optidef problem with constraint alignment and reference MILP model

Hi i read the optidef guide but i can't write properly my mixed integer linear problem in overleaf, the constraints are unaligned and it doesn't shows the number between parenthese for all the ...
Mattma's user avatar
  • 31
2 votes
1 answer
117 views

Special symbols in table (filled cross, empty cross, filled square, empty square) [closed]

I am working on a table in latex, describing the data in a figure. It contains a number of special symbols that the figure includes, and I wanna have the same things in the table. However, I am ...
mohammad fazli's user avatar
10 votes
3 answers
624 views

Creating a product integration symbol which behaves as the standard integration symbol

Context. The product integral is the continuous analogue of the ordinary (Riemann, Lebesgue, Denjoy, Perron etc...) integral and was introduced by Vito Volterra in 1887 in order to provide a compact ...
Daniele Tampieri's user avatar
0 votes
2 answers
78 views

How to modify \forall so that it places sub/superscripts below/above just like \sum? [duplicate]

How to modify \forall so that it places sub/superscripts below/above the "all" symbol? Just like \sum or \int.
Joachim W's user avatar
  • 762
8 votes
1 answer
181 views

How to change font inside \DeclareMathOperator?

LaTeX friends. I need to change the font inside \DeclareMathOperator, but my initial attempt failed, as the example below shows. How can I achieve the desired result? \documentclass{article} \...
Gonzalo Medina's user avatar
6 votes
1 answer
183 views

How to achieve consistent spacing in `derivative`s?

When compiling: \documentclass{article} \usepackage{derivative} \begin{document} \noindent \[\pdv{P}{r}\] \[\pdv{T}{r}\] \[\pdv{X}{r}\] \end{document} one gets: where it is clear ...
Matthias's user avatar
3 votes
1 answer
167 views

How to properly crop a math operator? A command for the direct factor symbol?

I am sorry if this has already been answered, but neither chatgpt provided me with a satisfying answer nor have I found what I am looking for on the stack exchange. I would like to know if there is a &...
julio_es_sui_glace's user avatar
4 votes
2 answers
120 views

Vertically centered alignment of large math operators with "\limits"

This MWE \documentclass{article} \usepackage{mathtools} \begin{document} {\renewcommand{\arraystretch}{2.75}% \begin{table} \begin{tabular}{|c|c|} \hline $\...
Jason D.'s user avatar
  • 187
0 votes
1 answer
69 views

How to define probabilities with underneath text? [closed]

I want to use probability where I can write some text underneath it. I have the following: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{...
pixel's user avatar
  • 1,370
2 votes
4 answers
347 views

Why does this DeclareMathOperator give me an error?

I'm trying to create a large blue star. I don't want to type {\Large \textcolor{blue}{$\star$}} everywhere, so I used \DeclareMathOperator{\Star}{{\Large \textcolor{blue}{$\star$} \thinspace }} But ...
Fraïssé's user avatar
  • 3,179
1 vote
1 answer
51 views

Adding two numerical variables

I defined two variables x and y. If I want to define a new coordinate, I can easily operate them. In this case the output for (A) would be (-1,3). However if I want to draw an ellipse, the output of ...
vitamin d's user avatar
  • 137
6 votes
3 answers
886 views

Is it possible to redefine the limit operator to print Lim, not lim?

The default limit operator displays “lim” with a small l. I wish to redefine it to display “Lim” that is, with a capital L like shown below.
Cristofer's user avatar
2 votes
1 answer
144 views

DeclareMathOperator with auto scaling parentheses

Using the "physics" package, there's a nice behavior where if you write \usepackage{physics} \begin{document} \[ \arctan(\frac{1}{\sqrt{3}}) \] \end{document} The parentheses will ...
Justin Murante's user avatar
2 votes
1 answer
124 views

How to shorten a math command in Latex

I am trying to shorten the adaptable bracket size left[ into \l[ (same for \right]). I have tried both: \DeclareMathOperator{\l[}{\left[} \DeclareMathOperator{\r]}{\right]} and: \newcommand{\l[}{\...
Julep's user avatar
  • 123
2 votes
1 answer
255 views

Long Multiplication using Latex

I am writing a program that generates the steps performed during math operations ( + - * / ) and explain it has well. I have read this and the best answer here is using the xlop package , which ...
Aarav Shah's user avatar
3 votes
2 answers
447 views

Consistent way to typeset modality symbols

In logic, modalities are often represented by a geometric symbol before a proposition, where the choice of the shape is strongly determined by tradition. amsfonts and amssymb provides various symbols ...
Trebor's user avatar
  • 287
3 votes
1 answer
346 views

Is there a way to avoid having to add \mathit to eachword in an equation?

When there are words consisting of several letters in an equation, I have to add \mathit to brace each word up or the inter-letter space will vary. See the difference between the two instances of &...
Sherman Chen's user avatar
0 votes
1 answer
52 views

New indexing in the summation sign

Can you help me to write this notation in latex? it is a new symbol and I do not know how to write it in latex.
Touba Parsa's user avatar
3 votes
1 answer
206 views

Change the font of $\text{}$ within mathmode

In order to exchange the font of my document to Times New Roman, my preamble includes \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{times} (to be quite honest, I'm not exactly sure ...
GaloisFan's user avatar
  • 195
0 votes
1 answer
63 views

How make bag delimiters more big using stmaryrd package? [duplicate]

I am using the stmaryrd package and I have to increase the size of "bag" bracket, but unfortunately the usual commands \big, \Big, \biggl, \Biggl, \left, \right do not work, so that I ...
Antonio Maria Di Mauro's user avatar
9 votes
1 answer
355 views

Why can the name of a `MathOperator` have a number?

This does not compile, which is what I'd expect: \documentclass{amsart} \newcommand{\G2}{G_2} %\DeclareMathOperator{\G2}{G_2} \begin{document} \(\G2\) \end{document} produces ! LaTeX Error: Missing \...
LSpice's user avatar
  • 1,468
3 votes
2 answers
348 views

How to write an arbitrary Math symbol larger like summation?

I want to write something like this I have tried something like (requires relsize package for using \larger[]{}) $$\mathop{\mathop{\text{\larger[5] C}}_{i=1}^{i=N-1}}_{j=i+1}^{j=N} t_i t_j$$ But, ...
akopty's user avatar
  • 45
4 votes
1 answer
122 views

operatorname vs text in subscripts

I often see things like \lambda_{\min} or \lambda_{\max} in papers. To me, it seems that the "min" and "max" are not used as operators, but rather as text, so it would be better to ...
overfull hbox's user avatar
4 votes
3 answers
353 views

Problem facing when I define a new operator

Working with LaTeX, I want to define a new operator, specifically a projection operator. I am able to define the operator, but it is not working how I want. This is how I define the operator: \...
RIPAN DAS's user avatar
5 votes
1 answer
153 views

Superscript horizontal alignment on flipped integral symbol

I'm trying to define a command in latex that gives me a flipped integral symbol as I haven't been able to find it in any existing package. So far this is my attempt: \newcommand{\cocoendtni}{\...
Monoidoid's user avatar
  • 153
0 votes
1 answer
29 views

Aligning \operatorname's with \phantom

Consider the following MWE. \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align*} A&=\sin x +{}\\ &\phantom{{}={}}\sin y \end{align*} \end{document} If instead of \sin ...
Delfad0r's user avatar
  • 125
0 votes
0 answers
652 views

Is there a symbol for arg-top-k (similar to argmax) in latex?

$\arg\max$ is the standard symbol for $\arg$ top-1. What if I want top-$k$ for $k > 1$? $\arg\max$ is already not well-defined all the time, so I don't feel guilty for introducing another pseudo ...
John Jiang's user avatar
0 votes
1 answer
64 views

What is this sign is called and how to do it in Latex

Can someone please tell me what is |maximum is called in math terms and how to do it in latex?
Dumbo's user avatar
  • 145
1 vote
2 answers
3k views

Smaller `\odot` for pointwise product

I usually use $\circ$ for elementwise/pointwise product of vectors/matrices/functions. I find $\cdot$ unsuitable: it is often used for the dot product, so is ambiguous. $f \circ g$ is also ambiguous ...
MRule's user avatar
  • 679

1
2 3 4 5
20