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
1
vote
2answers
54 views

DeclareMathOperator not displayed in math font with Beamer

I am writing a Beamer presentation using pdfLaTeX for the backend. I want to use Lato for the text and eulervm for the math font. However my operator Re is not displayed with the math font in the ...
0
votes
1answer
40 views

Aligning indices in multiple sums with overline

I'm writing a double sum over elements of a set and its complement, and I would like the result to look better. The elements I use as indices are not aligned due to the presence of $\overline{S}$; ...
2
votes
3answers
89 views

\int not coming out right

I am trying to write this: Using $$p_{\Theta | X} = \frac{f_{\Theta}(\theta) p_{X|\Theta}(x\,|\,\theta)}{\int f_{\Theta}(\theta ') p_{X|\Theta}(x\,|\,\theta ') \, d\theta '}$$ However, what I get ...
3
votes
3answers
3k 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 ...
1
vote
0answers
159 views

How can I write Arabic Mathematical Symbols in Latex?

How can I write Arabic mathematical symbols within Arabic text in Latex? For example, Integral, square root and derivative symbols from right to left as follow: Edit: \documentclass[12pt,a4paper]{...
1
vote
1answer
50 views

Special union operation

I have defined a graph operation which is somehow related to the graph union operation. I want the operation to look like in the figure below. I will use the operation several times so I would like ...
1
vote
1answer
21 views

Why can't I use hyperref and \C together?

Today, I updated from TeXLive 2015 to TeXLive 2019 (about time, right?). However, I am having an issue that I haven't encountered before. I usually declare \C as a macro for the complex numbers. ...
15
votes
5answers
19k views

Is there a short hand command to write derivatives?

Every time I want to write an (ordinary) derivative I have to use frac, like this: \frac{\mathrm{d}^2 \omega}{\mathrm{d}\theta^2} Or using \partial for partial derivatives. Is there a package or a ...
56
votes
4answers
3k views

How do you make your own symbol when Detexify fails?

My first visit to TeX.SX came when I was looking for a symbol for a twisted product: I knew about Detexify and the Comprehensive LaTeX Symbol List, but I could not find the symbol there. I tried the ...
0
votes
1answer
21 views

How to define an operator with an index argument below?

I am defining a trace symbol as follows: \DeclareMathOperator{\Tr}{Tr} but now I would like to be able to insert a summation variable below. However \Tr_x places the subscript x on the side: I want ...
1
vote
1answer
62 views

Division in Latex -I'm getting incorrect values-How to perform division correctly

I'm trying to perform a division and sometimes it works and other times I get and unexpected value. \documentclass[fleqn]{article} \usepackage{amsmath} \usepackage{enumerate} \usepackage{cancel} \...
1
vote
0answers
51 views

Is this possible for inline math line breaks: Have symbol duplicated on the next line?

In certain typographical conventions, it is customary to duplicate symbols of binary mathematical operators when a line break occurs. For instance, if a + b = c is broken at +, the result would be a + ...
0
votes
0answers
39 views

Algebraic long division with package? in math mode? Able to handle negative exponents?

I need to express a/(a+a^(-1)) - a^(-1)/(a+a^(-1)) with long division, for a mathematical lemma. I have done the operation on paper and have the come to the following: eq1: a/(a+a^(-1)) = 1 - a^(-2) +...
5
votes
1answer
73 views

Resize integral symbol in the same way of a delimiter

This answer addresses the possible way to typeset a bigger integral sign, but one has to choose the right size of the symbol that better fits the situation. My question is: why can't we resize the \...
0
votes
0answers
11 views

How can I write a double expression below de comand \argmin for explain the range of two variables? [duplicate]

How can I write a double expression below de comand \argmin for explain the range of two variables
2
votes
0answers
54 views

How to make enough space around custom turnstiles?

I use the package turnstile, but only to define my own macros because it doesn't define negated turnstiles and its turnstiles are too tall. My non-negated turnstiles look fine to me (not as tall as ...
0
votes
0answers
46 views

Operator space mismatch

Operator space differ for first number and subsequent numbers in inline math, how to fix it throughout in inline math? e.g., $-3 -3$ \documentclass{article} \begin{document} analyse the effects of ...
7
votes
1answer
161 views

Formatting for a math notation of the form $[a:b]$

I would like to use a notation for ranges of integers $[a:b] = \{ a, a+1, \dots, b-1, b \}$. However, the spacing of $[a:b]$ is often not quite satisfying. The colon : seems to push the glyphs a ...
9
votes
1answer
2k 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 \pgfplots@evalute@tikz@...
42
votes
1answer
249k views

LaTeX adjusting \sum limits

Is there a way to show \sum limits partially in inline mode and partially in display mode? I want to write: \begin{equation} \sum_{n=-\infty}^{+\infty} [...] \end{equation} but this way the lower ...
0
votes
0answers
64 views

Why aren't my mathematical operators showing up? [duplicate]

I've inherited a fairly substantial LaTeX document as part of a new job. Unfortunately, I haven't really had time to get to grips with it and it now need to be compiled. There are no errors (other ...
3
votes
1answer
38 views

Crash between math \exp and that of gb4e

As originally tweeted here, I would like to use \exp to produce some exponential expressions in math mode, but since gb4e, which I also want to use to make interlinear glossing, overwrites the command ...
0
votes
2answers
41 views

How can I group elements of an array made with bmatrix like in this image?

How can I put this kind of grouping under elements of an array? Like the image I want to make groups of l elements.
0
votes
1answer
57 views

Is there an Average Operator? [duplicate]

In the same way that \min and \max work, is there a version for "ave" meaning the average? Thanks.
0
votes
0answers
37 views

\min and \max compiled as musical notes?

I have been working on a large document form some time now already, and I recently noticed that some of the \max and \min operators I used in math-mode and equation environments are being compiled ...
3
votes
4answers
1k views

Circled not equal sign

How can I create a circled not equal sign similar to the image below?
190
votes
3answers
115k views

What's the difference between \mathrm and \operatorname?

I apparently can't see the difference in a compilation (pdflatex) between \mathrm and \operatorname. So, as in the title the question is: is there a difference? Which one is preferable in what ...
45
votes
3answers
160k views

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

In LaTeX the symbol for material implication is produced by $\to$, but for biconditional ?
4
votes
2answers
144 views

trema (ddot) does not appear in mathrm mode with newtxmath font

Apologies for such a specific question. I am using the newtx fonts. For some reason, it seems that newtxmath ignores the trema (ddot) in math mode when using \operatorname or even just \mathrm. Here ...
4
votes
2answers
78 views

Moving a subscript on a binary operator

I have some code in which I write this: $\sim_r$. I want to use this command as a binary operator (in the same way as $\sim$ is normally used, but with a subscript). I would like to create a custom ...
2
votes
1answer
73 views

\sum not coming out right

I am trying to write this: Using $$p_{\Theta | X} = \frac{p_{\Theta}(\theta) p_{X|\Theta}(x\,|\,\theta)}{\sum_{\theta ‘} p_{\Theta}(\theta ‘) p_{X|\Theta}(x\,|\,\theta ‘)}$$ However, what I get is ...
21
votes
2answers
26k views

Limits under multiple \sum

I would like to place a lower limit under two consecutive \sums, somewhere in between. So I have \sum_{j=1}^{\infty}\sum_{k=1}^{\infty} and would like to place j>k in the lower limit between the ...
1
vote
2answers
38 views

How to increase the size of the coefficient of a root

I find that the coefficient 4 is very small compared to the symbol of the root. How does it increase in size? $ \dt\psi&=\sqrt[4]{\dfrac{g^2}{R^2}\cdot \left( G_z^2-1\right)} $
0
votes
1answer
66 views

How can we replace a math symbol?

I found a way to define a math symbol as follow: \documentclass{article} \makeatletter \begingroup\lccode`~=`* \lowercase{\endgroup\def~}{\times} \mathcode`*="8000 \makeatother \begin{document} ...
3
votes
2answers
8k views

Question about mathematical notation

Should one really write $\text{det}A$, instead of $detA$, similarly $\text{Aut}G$ instead of $AutG$, or is $det$, $Aut$ acceptable?
2
votes
1answer
56 views

How to DeclareMathOperator on operator that has underscore in it?

I am trying to compile latex generated by computer algebra system Fricas, which generates log_integral. Since latex does not know about this, I tried to make a math operator by changing log_integral ...
1
vote
2answers
69 views

How do you deal with multiple superscripts while writing higher order partial derivatives?

I have a set of PDE's i am trying to type in, certain higher order terms in them already have a superscript. I am using the physics package function \pdv[n]{}{} , this is the code I have written ...
0
votes
2answers
115 views

Symbol for Laplace Transform : 2 connected dots, one filled [duplicate]

What I want is the following: x(t) ●-o \hat{x}(f) (The bar should be longer) What is the name of the symbol in between and does it exist in LaTeX?
14
votes
5answers
859 views

How to align operators using alignat or someother environment?

I'm trying to align equal signs and plus/minus operators in the following two equations: S = 1 - 1/2 + 1/3 - 1/4 + 1/5 - 1/6 + 1/7 - 1/8 + ... S/2 = 1/2 - 1/4 + 1/6 - 1/8 + ... I want to align the ...
3
votes
4answers
140 views

how to vertically shift a summation limit and align the result with another one (in another term)?

Here is a formula each term of which includes a summation symbol: \documentclass{article} \usepackage{mathtools} \DeclarePairedDelimiter{\norm}{\lVert}{\rVert} \begin{document} \begin{equation*} \...
0
votes
2answers
70 views

how to type vector symbol in another way

Is there any other way for vector symbol for a quantity, which looks better than these two results. MWE: \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \...
0
votes
1answer
62 views

How to render a sharp sign that denotes the number of a set?

In math, # usually denotes the number of elements in a set (cardinality). For example, in this equation the #D{x} operator denotes the number of elements in the set D that satisfies property x. I ...
9
votes
2answers
1k views

How to make a vertical \iff?

I will like to make a vertical version of \iff. I can not be satisfied with \Updownarrow, as it is too short.
3
votes
3answers
124 views

How to reduce distance between two line of Vert?

How can I reduce distance between two line of \Vert? i.e. I want to have the following \Vert (for norm) instead of the usual one ? I remember that the output of \Vert in my previous TeXlive (2014) ...
2
votes
1answer
139 views

How do I write multiple exponents within a fraction (Anki and LaTeX)? [closed]

I'm using Anki and LaTeX to format my flash cards. This problem that I'm about to outline only occurs with the cloze card type. I basically want to express a fraction with multiple exponents like ...
2
votes
1answer
51 views

How to fix bad output of a custom overline macro?

For changing the vertical position of \overline I have found the following macro: \newcommand*\oline[1]{% \vbox{% \hrule height 0.5pt% % Line above with certain width ...
9
votes
3answers
420 views

Peano's dot notation

I am wondering what is the best way to typeset Peano's dot notation. It is a subset symbol with dots on both sides. For example, for 4/3 I write: ::\supset :\!.. However the spacing and the size of ...
14
votes
1answer
1k views

What does “rel” in `\mathrel` and `\stackrel` stands for?

Most latex tags have straightforward meanings, for instance, \sqrt stands for/comes from "square root" \equiv stands for/comes from "equivalent to" What does "rel" in \mathrel and \stackrel stands ...
0
votes
2answers
66 views

The “^” sign over the “=” sign [duplicate]

I want to have the "^" sign over the "=" sign. I have tried \newcommand{\defeq}{\overset{^}{=}}, \newcommand{\defeq}{\stackrel{\text{^}}{=}}, \newcommand{\defeq}{\overset{\^}{=}} and different ...
4
votes
4answers
115 views

A better expectation operator which plays nicely with undersetting?

I would like to define an expectation operator that acts like \iint in the following sense: I want it to behave nicely with limits in that I would like it to default to place text to the right, but ...

1
2 3 4 5
14