{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}.

learn more… | top users | synonyms (2)

3
votes
1answer
16 views

Odd (?) spacing for mapping notation

I recently wrote up an answer on MSE that involved the mapping f\colon\mathbb{R^+}\to\mathbb{R^+}; the output looked a little different to me, and thus I thought it could have something to do with ...
2
votes
1answer
20 views

How to write a greek letter as bold and not italic? [duplicate]

How to write the letter θ as bold and not italic? I have tried the following but it gives me the θ as italics and not bold: \textbf{$\theta$}
11
votes
2answers
754 views

How can I enable italic correction for LuaTeX?

LuaTeX ignores mathematical italic correction by default, as noted by Khaled Hosny. This leads to some awful errors when using some alphabet which is very slanted, like XITS' mathematical script ...
0
votes
1answer
32 views

Hypergeometric function in Latex [duplicate]

How to write the hypergeometric function in Latex with comma in between the parameters?
0
votes
0answers
29 views

Undefined Control Sequence-Equation

there, I am trying to work on a definition which includes equations like below, \begin{definition}[Weak Formulation] To get Weak Formulation, multiplying...............to get\\ ...
4
votes
2answers
508 views

xhookrightarrow and xmapsto?

I use $\xrightarrow{f}$ a lot and I found myself in need of the corresponding commands \xmapsto and \xhookrightarrow quite a few times and I was wondering if there is anything like it. I'd like to ...
0
votes
1answer
31 views

How to make inline number bigger?

How to make inline number enclosed in $...$ as big as those in $$...$$? I just found that (b) looks ugly. Thanks.
1
vote
1answer
48 views

derivative of vector using prime symbol [duplicate]

The problem is shown on the picture. I want to use prime symbol for derivative of vector, but as you can see, it doesn't look well (prime symbol and vector arrow are 'glued' together). What would be ...
11
votes
3answers
446 views

d with a little line through the top of it

In math mode one can do $\hbar$, which produces an h with a little line through the top of it. I want to do the same thing, except with the letter d instead. Is there a generalization of $\hbar$ that ...
3
votes
2answers
54 views

Simple equation editing

I am writing a simple equation in my thesis: \begin{equation} \begin{align} y &= x^{k}\\ \log(y) &= \log(x^{y})\\ \log(y) &= y\log(x)\\ \frac{\log(y)}{\log(x)} &= y \end{align} ...
0
votes
0answers
35 views

Substitution to double money sign $$ [duplicate]

When I insert the double money sign $$ we have the equation stressed centered. I would like to know if it's possible to have a substitute for the double money sign $$. I'm looking for a symbol to get ...
1
vote
1answer
75 views

I can't make what I type to pdf

I can't make pdf I type this : ‎‎ $‎E(‎\frac{1}{2}‎\Phi ‎+‎\frac{1}{2}‎\Phi‎‎\prime ‎,‎\frac{1}{2}‎\Psi ‎+‎\frac{1}{2}‎\Psi‎‎\prime‎)\leq ‎‎\frac{1}{2}E(‎\Phi , ...
0
votes
1answer
42 views

Conflict between option ISO of package txgreeks and \mathcal

When I use the package option ISO to make Greeks italic, I find that \mathcal is out of work. Can anybody help me out? Thanks. \documentclass{article} \usepackage{etex} \usepackage{amsfonts} ...
0
votes
1answer
54 views

Wrong emptyset symbol

Each time i type $\emptyset$ an ugly (if I may say so, I think it's ugly), or rather unexpected slashed circle comes out instead of the (expected) emptyset. I want my \emptyset! What should I do? ...
4
votes
1answer
31 views

Fake math sizing using tokens assignment

I'd like to implement sizing functions like \Huge in a way that makes them work in math mode as well. Essentially I want to create a command myHuge which maps {foo \myHuge bar} to {foo \mbox{\Huge ...
17
votes
3answers
2k views

What is the mandatory argument of alignedat for?

alignedat has a mandatory argument. But Herbert (in his mathmode.pdf) wrote as follows, I have made a trial and error, I noticed that the largest number that can be passed is 1073741823 and no ...
3
votes
1answer
79 views

Outputing matrix-vector in latex?

I have to write a formula like this: Using: \begin{equation} \left( \begin{matrix} n \\ k \end{matrix} \right) =\frac { n(n-1)\quad ...\quad (n-k+1) }{ k(k-1)...1 } \end{equation} The daum ...
4
votes
1answer
38 views

Fixing a Run-On Equation

I have the following LaTeX code: \documentclass[12pt, letterpaper]{article} \usepackage{etoolbox, ifxetex, ifluatex} \ifboolexpr{bool{xetex} or bool{luatex}}{ \usepackage{polyglossia} ...
5
votes
1answer
64 views

Using symbols from the arevmath package without changing the entire mathematics font?

I know this question is very similar, but most everything there is centered on MnSymbol, but I am trying to use or "obtain" three symbols using the arevmath package (I am using pdfLaTeX and MiKTeX): ...
1
vote
2answers
38 views

TexStudio Special Comments for math mode over highlighting in minted environment

Latex sudo noob here. I had a question regarding the answer to the question TeXstudio recognize $ in R code as that of the math mode How does one create the special comment listed in the answer? It ...
14
votes
1answer
131 views

Ligatures are not used in OpenType maths families?

The appended plain TeX example shows three cases: maths alphabets \rm, \bf, \it using plain TeX setup similarly maths alphabets loaded from "classical" Latin Modern fonts similarly maths alphabets ...
1
vote
0answers
23 views

Change certain characters font in math mode

I recently changed from pdfLaTeX to XeLaTeX to be able to use different fonts when it comes to typesetting math. I am using mathspec package with different fonts for Latin, Numbers and Greek. I have ...
2
votes
1answer
189 views

Fonts that look alike as text and as math

What fonts give similar look when used as text and within math environment? I'm particularly interested in sans serif fonts, but serif fonts are also very welcomed.
2
votes
2answers
37 views

Bolding the first column of a table in math mode

What I want to do: Create a table in math mode without $...$ everywhere Bolding the first column What I have done: Using >{$}c<{$} to put table in math mode; see this answer. Following ...
1
vote
1answer
28 views

Can one redefine `$$` by `\[ … \]`? [duplicate]

Regardless of the purpose, I wonder whether one can redefine $$ by \[ ... \]?
22
votes
3answers
50k views

how to write ceil and floor in latex?

Is there a macro in latex to write ceil(x) and floor(x) in short form? The long form \left \lceil{x}\right \rceil is a bit lengthy to type every time it is used.
4
votes
1answer
58 views

Any \left \right delimiters

Is there a package that would allow me to use other symbols/any symbol apart from the (among others) usual delimiters . () [] {} | with \left and \right? For example, \(\left\int f(x) dx \right.\) ...
10
votes
5answers
7k views

Proper display of fractions

Have a look at the following code: \documentclass[letterpaper]{article} \usepackage{amsmath,amssymb} \begin{document} $2-\frac{2}{1-\left(\frac{2}{2-\frac{2}{x^2}}\right)}$\quad ...
0
votes
0answers
22 views

Is there a built-in command like `\sin` except for curl? [duplicate]

I know that we can write \sin x to get a non-italic sin. I would have expected there to be a similar command for curl, so I could write \curl \mathbf{F}. Is there such a command, or should I define my ...
4
votes
1answer
45 views

Math symbol in section heading

I have a section heading which includes an epsilon. Furthermore I am using the "hyperref" package to create links in my PDF document. When compiling I get a strange warning that a math symbol is not ...
5
votes
2answers
531 views

Is there a way to have LaTeX perform distribution?

I tried to do a search for this as I have to imagine it's somewhere... but I couldn't find it (probably not using the right keywords or something) Anyway, what I want is to be able to put in a set of ...
3
votes
1answer
71 views

Is there a command like \italicmath?

A well-known command is \boldmath (equivalent to \mathversion{bold}) that makes all mathematics bold. Is there a similar command for italic math, working like \mathit, that makes all math (including ...
5
votes
2answers
136 views

How to make all roman capital letters as mathroman inside math environments

I would like that all capital (uppercase) roman letters inside math envirorments become as mathroman. I mean for example to get $\mathrm{K}$when writing $K$.
3
votes
3answers
56 views

Subscripts after a macro for \left( and \right) parentheses

I'm trying to come up with some macro for round parentheses that looks nicely in both inline and display modes. The constraints are: The macro should behave like \left( \right) in display mode It ...
0
votes
1answer
17 views

Multiline subscripts in summation notation [duplicate]

\documentclass{amsart} \begin{document} \[ \prod_{k=0,\ k\neq i}^{n} \frac{x-c_{k}}{c_{i}-c_{k}} \] \end{document} I would like to make the k \neq i, which is next to k=0, parallel to k = 0. I tried ...
2
votes
1answer
28 views

\mathds{0} and \mathbbm{0} not working

It seems \mathds and \mathbbm are only defined for number one to nine, are there some fonts in math mode that works for zero?
3
votes
1answer
42 views

How to indent formula in two different lines

Please see the uploaded photo. The formula is too long, so I have to let it breaks to the second line. However I want to indent the two formulas, so what should I do ? Please help me. Thanks.
0
votes
0answers
22 views

Large Equation with no left hand margin

I have a large fractional equation with multiple lines already in the numerator. I want to get rid of the left hand margin entirely (or almost entirely) for this equation only to try and make it fit ...
1
vote
0answers
17 views

Multiline in math mode [duplicate]

Can anyone please help me to write this in math mode? I need command for the line
1
vote
0answers
35 views

Change math font size only in one section

I'm trying to modify the math environment font size but only in a defined part of my document. \DeclareMathSizes{a}{b}{c}{d} works fine but affects the whole document. Is there a simple way to change ...
13
votes
4answers
7k views

A short hyphen in a math formula

In a LyX math formula, I want to write something like "r-number". However, the usual dash looks too long (like a minus sign). I am looking for a short, possibly upper hyphen. I couldn't find it in the ...
23
votes
3answers
685 views

Visually highlighting symbolic material

I have a diagram in which I need to indicate the difference between symbolic mathematics and English words (potentially to someone who doesn't know about it): Colour works beautifully for making ...
4
votes
1answer
60 views

Neither \boldsymbol{} nor \bm{} work in beamer class

I need to typeset some variables in math mode that are bold and slanted. I tried to use \boldsymbol (\usepackage{amsbsy}) and \bm (\usepackage{bm}). However, neither of them work. MWE: ...
2
votes
2answers
94 views

fractions in table

I have a table with three columns, in the second and third sometimes appear fractions: \documentclass{scrartcl} \usepackage{array} \newcolumntype{C}{>{$}c<{$}} \begin{document} ...
0
votes
0answers
18 views

Sharelatex and spaces in mathmode text [duplicate]

I've used LaTeX (a long time ago!) before, and the following code would usually (if I remember properly) produce a set with spaces preceding and immediately following the words "and" and "or", however ...
3
votes
2answers
177 views
6
votes
3answers
89 views

Aligning text to the right of matrices in math mode

I wonder how I could make LaTeX align to the right some specific descriptions I wrote about the operations I apply to matrices. For example, here is a screenshot of what I have right now but I want it ...
8
votes
4answers
297 views

Greek `\chi`'s subscript expressions: how to make it smaller or offset lower?

I am unsatisfied with the way subscript is rendered for the Greek letter \chi. This particular letter is rendered with a small downward offset. I occasionally have to prefix the subscript with ...
6
votes
3answers
127 views

Display math gets typeset as inline math

When typesetting the below annotated equation my summations are being typeset as inline maths rather than display maths. If I wrap the sum and subscript with \smashoperator{} then they are typeset ...
1
vote
1answer
29 views

Displaying $\chi_{A}$ properly? [duplicate]

\documentclass{amsart} \begin{document} $\chi_{A}$ $\chi_{S_{i}}$ \end{document} I found that the $A$ in $\chi_{A}$ does not look like a subscript; it seems too large. This problem becomes more ...