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
9
votes
1answer
321 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 ...
1
vote
1answer
47 views

How to declare a delimiter to be a left or right delimiter?

TeX knows the difference between a "left" and a "right" delimiter (e.g. ( and )) and adjusts spacing accordingly. However, the left and right versions of the delimiter | are the same, so TeX has to ...
5
votes
1answer
105 views

Perfecting the product integral (integral sign with loop at the top)

I want to use this symbol for the product integral: Perhaps with a bigger loop, too. What's the best way of building this notation? I got it to work for just the integral sign itself. \usepackage{...
1
vote
1answer
28 views

Large letter in align environment

I have the following formula in an align environment \documentclass[12pt]{article} \begin{document} \begin{align} \hspace*{5mm}w_{c} = \large{\textit{f}} _{w,c} * \frac{log(|C|)}{\int _{w,C}} \end{...
2
votes
3answers
81 views

Import font, straight integral symbol

I tried a lot (2 days) and try to find a way to extend a answer Using XITS with pdflatex but I am unable to understand the method here. How do I extend above answer to include vertical closed ...
0
votes
0answers
53 views

how can i write Arabic Mathematical Symbols by LaTex?

how can i write Arabic mathematical symbols within Arabic text by LaTex? For example, Integral, square root and derivative symbols from right to left as follow:
6
votes
3answers
195 views

DeclareMathOperator and widearcarrow with kpfonts

The title says it all, I am using the package kpfonts and I would like to declare a math operator that has a widearc on top. However, when I compile I don't get any arc. \documentclass{article} \...
1
vote
0answers
39 views

Long divisions in pages

I'm using the 'insert equation' function in pages and there I can type some LaTeX code to get equations and so on. Anyway, very basic stuff. Now, I started using LaTeX a week ago, I found a lot of ...
0
votes
0answers
23 views

How use \DeclarePairedDelimiterX after \providecommand* for same command?

The package mismath includes the definition: \providecommand*{\abs}[1]{\left\vert#1\right\vert} After loading mathtools, I want to redefine \abs by: \DeclarePairedDelimiterX{\abs}[1]\lvert\rvert{#1}...
3
votes
1answer
37 views

pict2e: Cannot use decimal line slope argument inserted from macro

I am implementing nonstandard operators by drawing them as pictures using the pict2e package and then scaling them to fit in the various math modes. I store the picture's parameters in external macros ...
4
votes
1answer
70 views

Issue aligning tikz object to the document coordinate system

I am having difficulty to align an array of thick lines with the coordinates of the document. The issue can be seen in the following picture. The black boxes should be perfectly aligned with the ...
0
votes
1answer
41 views

What command gives me the highlighted operator? [duplicate]

I need to write this equation in latex, but I don't know how to get the vertical line and the B subscript below it. If anyone knows the operator or command, it'd be very helpful.
3
votes
1answer
47 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
63 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
44 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
73 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
67 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
108 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
73 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
23 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
191 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
42 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
41 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
46 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
47 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
296 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
592 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}{...
50
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
445 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
39 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
133 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
190 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
71 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
75 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
260 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
54 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
114 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
72 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
27 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
86 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
101 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
207 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?