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
3
votes
1answer
42 views

Unknown operator | when using data visualization and tikz

Problem: I am trying to get the function y = |x| to work with data visualization library in TikZ but without success. It seems the issue is with the operator |. Minimal Working Example (MWE): \...
3
votes
2answers
56 views

Symbol for succeeds or precedes? [duplicate]

Might be an obvious (or impossible) request, but does anyone know if there's an equivalent of the "less than or greater than" symbol but for "succeeds or precedes?" Thanks! I've tried using detexify (...
1
vote
1answer
39 views

\underline and \overline spacing problem in the definition of mathematical operators

Disclaimer: I searched the TEX.SE before deciding to post this question since, despite having see several question addressing the spacing behavior of the \overline and \underline operators, no one of ...
3
votes
2answers
61 views

DeclareMathOperator does not respect math font

I use the Libertine font for text and math. If I declare a new operator with \DeclareMathOperator*, the font used to typeset the operator is not Libertine. For example: \documentclass{article} \...
4
votes
1answer
64 views

What is the proper markup for a Math operator in boldface?

I'd like to render the string Id as a Math Operator in upright boldface. What is the proper markup for that? \mathbf{\operatorname{Id}}? \operatorname{mathbf{Id}}? \mathop{\mathbf{Id}}? Note; this ...
4
votes
2answers
100 views

Math symbols in math operators

I would like to customize the weak-star limit as a math operator. It should look like w$^*$-lim. I don't want to use w*-lim or w^*-lim because it looks ugly. But when I write \DeclareMathOperator*{\...
1
vote
1answer
70 views

Collection of redefined commands

I find myself creating new commands for latex commands that I commonly use in order to cut down on the cognitive load of what I am writing. An example would be writing matrices, instead of writing ...
0
votes
0answers
20 views

How to redefine a csc function to display cosec? [duplicate]

I need help to define the csc function to display as cosec. I've tried \textrm{cosec} \theta, but this does not give the same output as \sin \theta, because the space between the theta and the ...
0
votes
0answers
14 views

for this specific font style, \mathbf{} does not work [duplicate]

In Latex, how to generate this specific type of character, it seems that \mathbf{E} is not the one.
1
vote
1answer
186 views

The LaTeX syntax for this probabilistic formula

I would like to create a math formula as follows. How do I write it in LaTeX?
3
votes
1answer
39 views

Math “metaoperator” adding dot and preserving math class

I want to define a command, call it \dotted, that adds a period at the right place next to certain other math characters*: to the right of function-like tokens, i.e. Ord and Op, and to the left of ...
4
votes
1answer
155 views

Getting this error. Missing { inserted

\begin{equation} \max_{\substack{k , {k^'}}}|{G_k-G_{k^'}}| \leq T_1\\ \end{equation} I am not getting what are the errors. Please help me.
1
vote
1answer
39 views

Create a math environment inside itemize

I would like to portray a list of text, were on of these blocks of text needs a centered Summation equation inside of one item of the list. is that possible? I have very little experience in Latex, ...
0
votes
1answer
44 views

Proper way to semantically enclose several characters as a single name

Answering this question could involve saying something about MathJax. It depends on what turns out to be the answer. I am interested in how things should be done in the LaTeX side, though. LaTeX, as ...
2
votes
1answer
43 views

Enumeration indicator for number of arguments of a function

I'm trying to replicate this style of indicator for dotted enumeration as suggested below Can some one help me with this one?
6
votes
2answers
6k views

A Strange Latex Symbol

In the book ``All of statistics A Concise Course in Statistical Inference'' of Larry Wasserman has a strange symbol, and look like a coil spring ... How can I use it in LaTeX?
10
votes
2answers
287 views

How can I reduce the gap between left and right of \cdot with a macro?

MWE \documentclass[a4paper,11pt,border=1pt]{standalone} %\LetLtxMacro{\oldcdot}{\cdot} %\renewcommand{\cdot}{\!\cdot\!} <-- Like this \begin{document} $3\cdot 10^8$ m/s \end{document} I'm getting ...
0
votes
0answers
17 views

How to write italic capital I / iota? [duplicate]

I'm trying to write I in the following style: How do I do this?
0
votes
1answer
30 views

multiple math operators newcommand not working

I'm trying to create a \newcommand, on my system, called \states which takes two arguments. It should look like this (image below): But the angle brackets are not appearing when I try (MWE) : \...
0
votes
1answer
28 views

Operator font with lualatex not changing correctly

I'm using newpx as my document font. However I'm having some problems when compiling with lualatex because the font of math operators does not change to newpx and Computer Modern is shown instead. ...
4
votes
3answers
576 views

Complex fractions

How to make this more adequate ('beatifuller' :))? 2 needs to be better shown as being in the power of n-1, but the current representation just smothers it. \frac{1}{1-\sum_{2}^{n} \frac{1}{{\frac{r}{...
41
votes
4answers
2k 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 ...
4
votes
4answers
417 views

How to make a small $\varhexagon$ in latex?

I would like to have a command that shrinks down the size of $\varhexagon$ from the wasysym package in latex to a very small size. In principle, $\tiny \varhexagon$ does what I want, but apparently ...
0
votes
1answer
38 views

Letter O with vertical line: operator null [duplicate]

I wan to know how this letter O with a vertical line for operator null in maths. Thanks.
2
votes
0answers
112 views

slender \lgroup and \rgroup

The default \lgroup symbol in the most of math-mode fonts is thicker as compared to the text- and math-mode alphabets and numbers. A few fonts provide slender \lgroup symbols like newtxmath, mathabx, ...
13
votes
3answers
179 views

Setting fixed height (in all situations and characters) for overset notations

A noticeable downside to aesthetics in the \vec{} notation is that, for "short" and "tall" characters (a, i, v vs b, k, l), the overset vector notation shows difference in its height from the baseline....
3
votes
2answers
56 views

Import txfonts integral

I was trying to import the integral symbol from txfonts. In txfonts.sty I was able to find only multiple integrals of any type but the simple single one. I am sure I am missing something, can someone ...
0
votes
0answers
70 views

How to typeset nested radical/root expressions?

I'm writing my own math expression typesetting engine. I want to learn how to best typeset radical expressions. The choices actually apply to all radical expressions, however, nested radical ...
1
vote
2answers
255 views

Transpose a matrix and parenthesis

I would like to define a command transp having eventually one argument : the name of the matrix and finally two outputs. \transp{A} is the matrix A^T between parenthesis, \transp A is just the ...
1
vote
2answers
53 views

Defining TikZ function to produce Knodel graphs

I am trying to define a function that will produce a Knodel graph (examples pictured below). I'm not completely sure how the code works for TikZ to do a for loop using a range, and how to compute ...
5
votes
3answers
108 views

Parenthesise math expression if it contains operator

Imagine I have written several fractions of the form $\frac{V+W}{U}$ and decide later that I want them to be displayed as a slashed fraction instead. In the group where I want this to happen, I can ...
1
vote
1answer
65 views

How to type summation notation with a vertical line in Latex?

I need to type the following summation symbol in Latex. Could anyone help me? Literally, there needs to be a vertical line in a summation symbol, and $\hat{\beta}_2$ is just a subscript. Thanks in ...
1
vote
0answers
26 views

Math mode in Tabular environment [duplicate]

With tabular or tabularx environment, when dealing with numbers , percentages and other math symbols per se, do we need to use the math mode ( $$ for instance ) with every number/symbol. Is there an ...
0
votes
0answers
52 views

Pre-define complicated math operators

Problem I am trying to find a easy way to write Rademacher complexity so that I just need to write different index, function and constraint every time. Like defining partial derivative I previously ...
0
votes
0answers
51 views

What is a good way to declare math operators?

it's not really clear to me how to declare unary and binary math operators in a "good" way. At the very least, I'd like spacing to be correct. But I'd also like the defined macro to be used "as is" in ...
5
votes
1answer
84 views

Align vector symbol with upright math letter

So basically I need to put a vector symbol (\vec) on an upright letter for which I use \mathrm in math mode. For example: \vec{\mathrm{E}} While Katex seems to get the alignment right on all the ...
1
vote
2answers
96 views

Underscript, subscript and superscript add the same time possibly via \mathoperator* without trailing space

I have a symbol, which I want to give a underscipt, subscript and superscript. I tried: \DeclareMathOperator*{\wmat}{w} \wmat_2_i^j But now I get a space between my symbol and the sub and ...
1
vote
3answers
203 views

Stacking Symbols for a Math Operator [duplicate]

I want to create a math operator that is an integral with a square (\square) stack onto it such that the integral is still formated the way that the operator \int is. How do I do this?
1
vote
1answer
226 views

Symbol “represented by” from quantum mechanics [duplicate]

The symbol I'm referring to is a standard equal sign with a dot right above it. I've looked around, but cannot seem to find the LaTeX code for the symbol used by Sakuri to represent operators in his ...
0
votes
0answers
19 views

XeLaTex: error on Z operator of an equation

I try to write the following equation using amsmath: So far I tried the following approaches: $H : G \rightarrow \Z_{q}^{*}$ $H : G \rightarrow \Zeta_{q}^{*}$ But both of them result to erroneous ...
2
votes
1answer
48 views

Resize several math operators to the same size

I need to use several math operations between the same kind of objects and would like them to be of matching sizes. E.g. I have two different operations: $\otimes$ and $\ast$. But the asterisk is much ...
2
votes
2answers
131 views

How do I fix the parentheses and division bar spacing in this quotient of partial derivatives?

With this code: $\frac{\left(\ffrac{\partial \left[\frac{P}{T}\right]}{\partialV}\right)_T }{\left(\ffrac{\partial V}{\partial T}\right)_V}$ And where: \newcommand{\ffrac}[2]{\ensuremath{\frac{\...
0
votes
0answers
43 views

Using “\R”, for real numbers, results in error “Undefined control sequence” [duplicate]

I would like to insert a double-struck letter ℝ for the real-numbers. However, all of my attempts so far have yielded an error. \documentclass[sigconf]{acmart} \begin{document} \section{...
0
votes
0answers
36 views

How to define an arbitrary math function that works in `tikz` environments? [duplicate]

Using this post: Package or command for inverse hyperbolic trig functions? it is easy to write (inverse) hyperbolic Secant function in documents. But the main problem is it doesn't works on tikz ...
3
votes
1answer
90 views

Define a new big operator in ConTeXt

I would like to replace the sum symbol by a big plus as Pedro G. Mattos wanted to do here How can I define a big plus operator that works like \bigcup?. In the wiki I found that the command I should ...
1
vote
1answer
40 views

How can i type a negative angle

How can I type a negative angle? Like this: I've been trying a lot of things around $U\angle\gamma$ but couldn't make it work.
1
vote
1answer
38 views

Error when defining a math operator and corresponding `\renewcommand`

I tried to define a new math operator - essentially a math macro. I wanted to define an operator for the Eccentricity of a graph or network. The code seems to work when I generate a PDF, however I am ...
5
votes
1answer
97 views

Wrong position of the vcentered minus sign in subscript using stix2

Is there any way to place minus sign at the same height as the horizontal bar of the plus without using raisebox? \documentclass{article} \usepackage{stix2} \begin{document} \( I_{a\vcenter{\hbox{$...
7
votes
1answer
276 views

No spacing after \Sigma?

There seems to be barely any spacing (if at all) after \Sigma, making it hard to read. Is this normal? Is there any way around it? $ \Sigma_{v \in V} \alpha $ Output: Desired output:
1
vote
1answer
76 views

Are there any packages which simplify typsetting integrals?

The physics package has been instrumental for me in typesetting math cleanly and consistently (while following a lot of nuances of mathematical typesetting). But it does not have integral support. ...