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
0 votes
1 answer
52 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,315
2 votes
4 answers
217 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,089
1 vote
1 answer
47 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
  • 119
6 votes
3 answers
860 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
82 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
107 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
125 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
159 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
  • 288
3 votes
1 answer
313 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
50 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
132 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
44 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
345 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,404
3 votes
2 answers
280 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
  • 35
4 votes
1 answer
78 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
323 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
116 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
0 answers
50 views

Summation and other math symbols with helvet font

I am trying to insert math operator symbols like summation, integration, etc... in a document setup with Helvetica font and lmodern, however, it does not compile them. I don't see any incompatibility ...
José's user avatar
  • 667
0 votes
1 answer
18 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
259 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
61 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
417 views

Smaller `\odot` for elementwise/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
  • 659
0 votes
1 answer
66 views

Are stmaryrd and stix packages compatibile?

I would like to know if stmaryrd and stix package are mutually compatibile and even if they are compatible with the packages I use into the following code: indeed, I see that \Lbag and \Rbag ...
Antonio Maria Di Mauro's user avatar
0 votes
1 answer
61 views

How to do this double sum with a subscript in the middle? [duplicate]

This is How to do this double sum with a subscript in the middle?
Eloy Ávalos's user avatar
2 votes
0 answers
30 views

\bigoplus, \prod, etc. with hats [duplicate]

I would like to have big operators like \bigoplus, \prod, etc. with hats. A first approximation is the following code: \documentclass{scrartcl} \usepackage{unicode-math} \DeclareMathOperator*{\...
Jakob Werner's user avatar
0 votes
2 answers
64 views

does anyone know how to do this notation of equilibrium of rigid bodies in latex? [closed]

This notation serves to indicate the positive direction of the axes of external, internal, and reaction efforts. Used in the book Statics: Mechanics for Hibbler Engineering
augusto with lavender CR's user avatar
5 votes
2 answers
222 views

Why not using curly braces with operators made with \DeclareMathOperator give problems?

The following code compiles and generates the pdf properly: \documentclass{article} \usepackage{amsmath} \DeclareMathOperator{\zero}{\overline{0}} \begin{document} Writing $V_\alpha$ does not give ...
Zero's user avatar
  • 627
0 votes
1 answer
48 views

Typesetting + sign as if a letter

In Baxter's transcription of Middle Chinese, there is an ASCII-friendly version, which uses only te 26 Latin letters as well as a + sign (standing for ɨ). Assume I wish to typeset specifically this ...
Alexander Z.'s user avatar
1 vote
2 answers
80 views

To define operator of closure, interior [duplicate]

I am using Scientific workplace 5.5, when I define the math operator in this program, it defines it as \limfunc{} as below. When I type this in preamble it doesn't work. Is there any way to do this? ...
Mehmet Onat's user avatar
1 vote
1 answer
70 views

To define operator of closure, interior and cardinal [duplicate]

How can define math operator closure, interior and cardinal? \documentclass{article} \usepackage{amsmath,amsfonts} \begin{document} $\bigskip IntA=clB$ $card\beta \mathbb{N}=card\beta \mathbb{Q}$ ...
Mehmet Onat's user avatar
13 votes
3 answers
2k views

Math symbol "an arrow pierces the heart"

Can anyone help me create a new math symbol like in the picture below please? I wanna use it as a binary relation symbol: «a heart pierced by an arrow from left to right» for «A is in love with B». ...
Pavel's user avatar
  • 131
0 votes
1 answer
57 views

Question regarding TikZ

I've tried to create a figure using TikZ (see code below): \begin{center} \begin{tikzpicture}[SIR/.style={rectangle, draw=black!60, fill=black!5, very thick, minimum size=8mm}, ] %Nodes \node[SIR] ...
Schrödinger's cat's user avatar
5 votes
1 answer
113 views

Font in math operator

I'd like to extend the \min function by a subscript. The definition is \newcommand{\smoothmin}[1]{\operatorname*{min_{{#1}}}} But the fonts of #1 in \[ \smoothmin{P,0}_{i=0,\dots,n} \] differ from ...
Alois Pichler's user avatar
9 votes
4 answers
1k views

How can I produce this expression in latex: ⌜A⌝?

I want to introduce a unique operator in my document. I basically want it to look like this: ⌜A⌝, where A is just an arbitrary statement. So '⌜⌝' is the operator. How can I produce the ⌜ and ⌝ symbols ...
SemValX's user avatar
  • 91
1 vote
2 answers
123 views

How to rotate a big mathematical operator?

I would like to rotate the \bigcupdot operator, provided by the STIX2 Math font, by 180 degrees about its center. I tried the following code. \documentclass{article} \usepackage{unicode-math} \...
Evan Aad's user avatar
  • 10.9k
5 votes
2 answers
141 views

No spacing after binary operator after math operator

There is some issue that I've come across while using \mathop where the space after a binary operator is not present when the first parameter is a operator. Minimal Example As you can see there is not ...
Hunter Kohler's user avatar
10 votes
2 answers
667 views

How to define a maths operator with two arguments?

I am writing a paper about functional programming where function application is denoted by space (e.g., f x y for f(x,y)). What would be the correct way to typeset that in LaTeX to get the correct ...
user avatar
0 votes
1 answer
122 views

How to use the "\limits{}" command with ANY math symbols?

I know \limits can be used to directly place lines under math symbols, but now I want to realise the following effect: My solution is to define the integrals as a new math operator "\int\cdots\...
Link Gao's user avatar
1 vote
2 answers
131 views

Landau notation with optional argument

I would like to create a command for Landau's notations (small o for example), which would have an optional argument consisting of two elements (the variable and the point) separated by a comma. How ...
jowe_19's user avatar
  • 855
2 votes
2 answers
66 views

LaTeX command that defines two new commands, one as a capitalized version of the other

I wish to create a command that defines two new math operators, one being a capitalized version of the other. For example, the command \makeoperator{log} would create \log and \Log to typeset ...
btshepard's user avatar
  • 670
1 vote
1 answer
64 views

Aligning overbraces with other TikZ tree nodes

I'm using the tikz-qtree package to create a tree. Using \overbrace in a node changes the height of the node, but the anchor does not align with it. Using \underbrace works perfectly fine: \...
Survari's user avatar
  • 15
1 vote
2 answers
124 views

Problem with \mathbb command in times new roman font

I have this code written: \documentclass{article} \usepackage[margin=2cm]{geometry} \usepackage{fontspec} \usepackage[utf8]{inputenc} \usepackage[]{unicode-math} \setmainfont{Times New Roman} \...
panos Physics's user avatar
8 votes
2 answers
499 views

Square curly bracket symbol

I would like to create "square-curly bracket" delimiters, somehow looking as in this question. I came up with the code below, which produces some good results, but has also some ...
Watson's user avatar
  • 870
4 votes
3 answers
489 views

How do I create a custom math mode binary operation symbol that is a combination of two binary operation symbols?

I want to create two math mode binary operation symbols: (1) A combination of - (minus symbol) and * (asterisk) (2) A combination of / (slash symbol) and * (asterisk) The desired result would be ...
Amanuensis Frances's user avatar
1 vote
1 answer
43 views

Mathmode: Treating binary operators as standalone symbols for spacing purposes

I'd like to use symbol \sim as the name of a set, and write expressions such as $x \in \sim$. But \sim is treated by TeX as a relation symbol and as a result the spacing around \in isn't quite right. ...
Nick A.'s user avatar
  • 111
0 votes
1 answer
84 views

Adding to ```\smallsetminus```

I am looking to produce a symbol \Smallsetminus which looks like \smallsetminus, but has two lines instead of one. It should look similar to \newcommand{\Minus}{\rotatebox[]{-45}{$=$}}, but the ...
Jackson Bodoviwitz's user avatar
3 votes
2 answers
479 views

Three-line intersection symbol

The symbol \Cap can be produced using the relevant packages. Is there anyway I can create three-line intersection symbol \CAP, as shown in the picture below? Thanks!
Jackson Bodoviwitz's user avatar
3 votes
2 answers
108 views

Fitting oxidation numbers above elements without overlapping

I want to make oxidation numbers above an element but the numbers keep overlapping in my case. I am searching for a practical solution. Maybe it would help if I managed to make the operator (- and +) ...
Juch's user avatar
  • 31
7 votes
2 answers
202 views

spacing of slash in mathmode

I want to get \setminus to use the spacing of an ordinary forward slash. I've tried things like \mathbin, \mathop, and \mathrel, but they don't give me what I want: \begin{align} A &/ x & A &...
user313032's user avatar
0 votes
2 answers
112 views

Triangle inside of triangle

How can I produce a symbol like \Subset for \triangle (i.e., another triangle inside of \triangle)? See the below picture. Thanks!
Jackson Bodoviwitz's user avatar

1
2 3 4 5
20