Questions tagged [math-mode]

{math-mode} is about typesetting mathematical content, e.g. tweaking the appearance of spacing and symbols in a formula, or producing specific mathematical constructs. For questions about "wrapper" environments like equation or align, consider the tag {equations}.

Filter by
Sorted by
Tagged with
12
votes
4answers
553 views

Typesetting numbers above, below, left, and right of a symbol

What commands would be the best way to put numbers above, below, left, and right of a symbol in math-mode, as in the following image: Would the tensor package be useful here, or possibly another ...
6
votes
2answers
140 views

Circle symbol compatible with \square and \triangle

I need a circle symbol that is somehow compatible (from a layout point of view) with \square and \triangle. As you can see in the following example \documentclass{article} \usepackage{amsmath} \...
1
vote
1answer
25 views

Theorem Environment, Text in math mode breaks out of margin

Could someone explain to me why some of the text in math mode breaks out of the margins? Edit: Sorry for the bad question formatting. Why is it that when I paste things it runs on like a single ...
3
votes
1answer
69 views

Change Font of Numbers Using Baskerville

I am using the a Baskerville font, via \usepackage{lmodern} % monospace font \usepackage[scale=0.89]{tgheros} % Helvetica is too big \usepackage[osf]{Baskervaldx} % tosf in text, tlf in math \...
9
votes
2answers
223 views

To which atoms correspond \left and \right in \showlists?

This is the input: $\left|-\infty\right|\showlists$ \end This is the output: \mathinner .\left"26A30C .\mathbin ..\fam2 ^^@ .\mathord ..\fam2 1 .\right"26A30C It is not clear to what atoms ...
2
votes
3answers
171 views

How do I make a commutative diagram with LaTeX? [duplicate]

How do I make a diagram like this? Thanks in advance
1
vote
1answer
30 views

Have Right implication sign all the way to the left inside align environment

I want to add \Rightarrow into my align environment (or something similar) all the way to the left of a specific line. However whenever I try to do this I either get that the arrow sticks with the ...
1
vote
1answer
34 views

math syntax doesn't work when using siunitx syntax for alignment on decimal point in tables

I have the following problem: Math syntax doesn't work for the labels in the second row in my table for h=1, h=3, h=6. How can i fix it? Here is my code for it. Thank you
0
votes
2answers
31 views

Mixing font sizes inside the same equation

I would like to use latex to produce math output like this: Please, no scolding about how this looks like a ransom note, makes your eyeballs bleed, etc. This is for didactic purposes in specific ...
3
votes
1answer
34 views

How to center rows in multiline set

I've created a multi-line set like this: \begin{align*} \Set{ \begin{array}{l} (1, 2),(1, 3),(1, 4),(1, 5),(1, 6),(1, 7),(1, 8),(1, 9),(1, 10),\\ (2, 1), (2, 2), (2, 3), (2, 4), (2, 5),(2, 6), (2, 7),...
1
vote
1answer
65 views

Use of New Math Operator doesn't match its definition

I defined my self some macros for l- and L-spaces, to be specific some \l1, \L2, and so one. Now Latex throws errors while compiling, always exactly at the first \lx I defined: ! Use of \l doesn't ...
2
votes
2answers
58 views

changing mathup font

I'm just a poor latex user who wants customized font style. Here is my basic setting. \documentclass[11pt]{article} \usepackage{amsthm,amssymb,amsmath,amsbsy} \usepackage[T1]{fontenc} \usepackage[lf]{...
3
votes
1answer
86 views

How to Create an Image for Cantor's *Diagonal Argument* with a Diagonal Oval

I would like to produce an illustration for Cantor's diagonal argument, something like a centered enumeration of $4$ or $5$ decimal expansions $x_{i} = .d_{i1}d_{i2}d_{i3} \ldots$, and then insert a ...
3
votes
1answer
60 views

Can I make a matrix from just a parts of the cells?

Can I make a matrix from just a parts of the cells? i.e. not all the cells just some of it, like here: It possible to make something like this? Thank you!! P.S. I'm using LyX.
4
votes
3answers
41 views

problem with array “how to make it in the same line”

\documentclass{article} \usepackage{amsmath,amssymb,amsthm} \begin{document} let $ \begin{array}{cccc} f: & \mathbb{R}&\longrightarrow &]-1,1[\\ &x&\mapsto & \dfrac{x}{1+|...
1
vote
0answers
31 views

Why won't Beamer build this? [duplicate]

I am very new to beamer, but not new to LaTeX, and for the life of me cannot find my error when trying to get started building in Beamer. I have read numerous intro guides, and I still just don't get ...
2
votes
3answers
67 views

Bracket for dual pair (in functional analysis)

In functional analysis, one occasionally considers a so-called dual pair (a pair of vector spaces tied together by a non-degenerate bilinear map to the ground field). I usually typeset these using \...
2
votes
1answer
58 views

Correct way to write mathematical expressions between text?

I'm new to Latex so I'm pretty sure I have some severe misconceptions here. I want the following output: Blablabla xi ∈ X, i = 1..N blablablabla, 1 <= I(xi) <= L I was trying with: ...
0
votes
0answers
31 views

Type overlapping math expressions without errors/warnings in overleaf

I was wondering if anyone knows if there's a way to write math expressions (formulas, integrals, sums, limits, equations, etc) and have them overlap and be written slanted or upside-down or other ways....
13
votes
2answers
501 views

Spacing setting of math mode

In typing of an article, I need to type many formulas like $ \left( a, b,c,d | e,f,g,h \right) $. Since they are too tight, I should add space using \, command to obtain $ \left( a, \, b, \, c, \, ...
1
vote
1answer
27 views

Slanted letter in mathmode keeping current style

I'm trying to make a slanted roman d to use in math mode. Using How can I use the slanted variant of the libertine font? I've managed to get it to mostly work, but I don't know how to account for ...
1
vote
1answer
37 views

How \middle is defined in mleftright.sty?

Process the following example with etex: \input mleftright.sty $\sin\mleft(x^2\middle|y^2\mright)$ \end I wonder what is the definition of \middle - I can't find it anywhere.
5
votes
1answer
49 views

Trying to use the array environment inside a tikz node with `execute at begin node`

I'm trying to package a tikz key math array that lets me wrap the contents of a node inside an array environment in math mode, but I'm getting errors that I'm unable to debug. Here's the code: \...
1
vote
2answers
54 views

How to number the parts of a piece wise function equation separately?

A simple piece-wise function: \[ \begin{cases} 0 & x\leq 0 \\ \frac{100-x}{100} & 0\leq x\leq 100 \\ 0 & 100\leq x \end{cases} \] It will build as equation (1). I ...
0
votes
1answer
35 views

How to make spacing before \left the same as before \bigl?

Compare result of the following two examples: $1\mathopen{\hbox{$\left(\vbox to8.5pt{}\right.\nulldelimiterspace=0pt \mathsurround=0pt$}}$ \end $1\left(\vbox to8.5pt{}\right.$ \end Why \left( in ...
3
votes
4answers
123 views

Alignment Problem of Mathematical Equation in Beamer Presentation

\documentclass{beamer} \newcommand\Fontvi{\fontsize{2}{4}\selectfont} \usepackage[utf8]{inputenc} \usepackage[compat=1.1.0]{tikz-feynman} \usepackage{amsmath, amsthm, amssymb,amsfonts} \usepackage{...
4
votes
3answers
112 views

Alignment problem with a mathematical equation in a presentation in beamer

\documentclass{beamer} \newcommand\Fontvi{\fontsize{2}{4}\selectfont} \usepackage[utf8]{inputenc} \usepackage[compat=1.1.0]{tikz-feynman} \usepackage{amsmath, amsthm, amssymb,amsfonts} \usepackage{...
0
votes
0answers
32 views

How to type “not absolutely continuous” with unicode-math?

I've tried both \nu\not\ll\mu and \nu\centernot\ll\nu. I'm including amsmath, amsthm, amssymb, centernot, mathtools, thmtools, unicode-math and compiling with XeLaTeX. This is the ouput: I suppose ...
1
vote
2answers
33 views

\hfill in math mode for multiple alignments

I would like to reproduce something like the screenshot attached here, with two separate equations in each line, each set of equations aligned amongst themselves. On my end, LaTeX always pushes ...
0
votes
0answers
33 views

change font style of script in math mode

I hope you are doing well. I am writing to ask you how I can change the font style of the script in math mode in latex. Actually i use \text{} to write script in equation area nicely, for example : X_{...
3
votes
3answers
98 views

Fix a problem with surrounding braces in the splitting of an over-long set definition

Consider the following example: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{amsmath, amsthm, amssymb, mathtools, thmtools, unicode-math} \begin{document} \begin{equation*} ...
1
vote
2answers
50 views

Typesetting Multiple Set Constraints

I don't know what to search, so I'm adding a picture of what I want to do. Basically, I want to write multiple set constraints on the right hand side (see below). How do I accomplish this in latex?
6
votes
2answers
395 views

How to color a tag in a math equation?

I have a math equation with a \tag operator. \documentclass{article} \usepackage{amsmath,amssymb} \usepackage{xcolor} \begin{document} This is my favorite equality: \begin{align*} \color{red}\...
1
vote
1answer
24 views

Loading fontspec makes Greek maths styles vanish

If I load fontspec, without unicode-math or mathspec, in LuaLaTex or XeLaTeX, I can no longer use \mathsf{\Phi}, \mathbf{\Phi}, and maybe other variants. Demo: \documentclass[a4paper]{article} \...
1
vote
1answer
34 views

How to use \newfam properly?

Consider the following example: \newfam\myfam \font\myfont=msam10 \textfont\myfam=\myfont $A\mathchar"2850 B$ \end Notice that family "8" is specified explicitly, because \mathchar allows only ...
5
votes
1answer
234 views

Question about exercise 17.22 in TeXbook

What is the meaning of the following sentences from the answer to this exercise? On the other hand, \left will balk if the following character is a left brace. Therefore it’s best to have control ...
5
votes
1answer
152 views

Question about exercise 17.16 in TeXbook

The answer to the exercise is: \def\sqr#1#2{{\vcenter{\vbox{ \hrule height.#2pt \hbox{\vrule width.#2pt height#1pt \kern#1pt \vrule width.#2pt} \hrule height.#2pt}}}} \def\square{\mathchoice\...
4
votes
1answer
63 views

Automatic solution for nice roots - but problem with nested ones

Please look at the following MWE. I found an automatic solution for nice roots. The depth of letters ist ignored and subscripts do not influence the depth. But when I nest the roots, it gets ugly. ...
2
votes
1answer
33 views

Adjust space between base and superscript

I noticed that, in math mode, the top right corner of some letters, such as N or K, seems to clip into the superscript that follows the letter. I'm attaching an example: I guess a local solution ...
0
votes
1answer
19 views

Autosizing for expectation with additional index

I was trying to define a new command for an expectation which scales the vertical dash (in case of conditional expectation) and parenthesis to the argument, respectively. Additionally, I want to have ...
4
votes
5answers
311 views

Adjusting vertical spacing in fractions?

Consider the following MWE: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation*} t = \frac{\dfrac{T_1}{T_2}}{1+\dfrac{Q_1}{Q_2}} \end{equation*} \end{document} It ...
11
votes
4answers
769 views

Align by center of symbol

I want to align my equation by the center of a symbol, not by the beginning. More precisely, I have the following: \begin{align*} A\subseteq B&\iff\forall a\in A:a\in B\\ A\subsetneq B&...
2
votes
0answers
69 views

Are there open braces ⦃⦄ in some standard package for [pdf]latex? [duplicate]

I would like to get the white curly brackets ⦃ and ⦄ with pdflatex and latex (not with {xe|lua}latex). Is it possible to get these symbols without loading stix (or, at least, without loading all of ...
3
votes
2answers
74 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 (...
4
votes
3answers
119 views

What is the best way to stacked subscripts for a matrix?

I use this code to generate subscript indexes for a matrix but stacked thanks to substack: \documentclass{standalone} \usepackage[utf8]{inputenc} \usepackage{amsmath} \begin{document} $(v_j^h)_{\...
0
votes
1answer
37 views

Math-mode font size increase for document global font size above 14pt

I'm writing a memoir with a \documentclass[b4paper,14pt,english,twoside]{memoir} and was very surprised that math formulas are so small. Then my goal is to increase math-mode font size but keep a ...
7
votes
1answer
869 views

is there a tex font set for this kind of curly alphabet?

the symbols comes from this post is there a tex font set for this kind of curly alphabet?
2
votes
1answer
57 views

simple calculator in lyx

I'm trying to find a very simple calculator for lyx. for now, I just want to do something like this: 1+1-50+30*5= \ans and let lyx to calculate this. I could not find something to do that, may you ...
6
votes
3answers
302 views

How to put an arrow below a vector?

I am having trouble writing this vector: $\textbf{v}=(2n-1,n-1,n-1,\ldots,n-1,1,1,\ldots,1)$. I want to indicate that $n-1$ appears $n-1$ times and $1$ appears $n$ times by writing arrow under $\...
2
votes
2answers
48 views

Overspacing for a text [duplicate]

In the book I'm writing there are some parts with math-mode spaces and math-mode inline spaces that are too excessive for me. The first and the second image that I am reporting are taken directly from ...