{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)

4
votes
1answer
1k views

Typesetting mathematical formulas in line breaking

When you typeset a mathematical formula is there a rule regarding the breaking of the formula in a new line, meaning if for instanse the formula breaks in a plus sign (+) or in a equal sign (=) then ...
6
votes
2answers
86 views

Alternative subequations numbering and references

I know how to have a set of equations numbered as subequations: \documentclass{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{amsmath} \begin{document} Some text here \...
47
votes
2answers
50k views

What is the difference between \dfrac and \frac?

The title says it all, both \dfrac{a}{b} and \frac{a}{b} make fractions, so what is the difference between the two?
0
votes
1answer
37 views

how to have tilda and vector above a symbol [duplicate]

Is there a way to have symbol with a tilde and arrow stacked on top of each other? I tried $\vec \tilde{p}$ but it doesn't look good.
8
votes
1answer
244 views

Five iterated integrals

Apparently, there are the commands \iint, \iiint, and \iiiint to type iterated integral symbols. To compute an integral in R^4 x [0,T] (i.e. over a 4-dimensional space and time), I would type \...
4
votes
1answer
75 views

Numbers in multi-language document

When I use two different languages like English and Arabic (one is written form left to right and the other is written from right to left), the equation numbers are written in Arabic, e.g. 14, but ...
4
votes
2answers
97 views

Is there a way to get “dumb” single quote in math mode?

In mathmode, ' gets converted to "prime" symbol. What I'd like is neither the closing nor opening single quote as in (How to get the closing single quote in math mode). Rather, how do I get an ...
3
votes
1answer
31 views

align items in enumeration

I am trying to align multiple items in enumeration with & but its not working. \begin{enumerate} \item[(1)] $ f: &x \longmapsto 0\ $(const 0) \item[(2)] $ f_{\mbox{const 1}}: &x \tab ...
2
votes
1answer
28 views

Typeseeting a multiset with double curly braces

I like to typeset a multi set with double curly braces, i.e., $\{\{A,B,C\}\}$. Unfortunalty, I think the space between two braces are too large and I could not find a special symbol in symbols. Any ...
114
votes
4answers
169k views

What is the “correct” way of embedding text into math mode?

Lets say I have something like: \[ Let x = number of cats \] (This is a contrived example, but pretend we are actually inside a long align environment block...) "Let" and "number of cats" need to ...
57
votes
2answers
13k views

What is the difference between \mathbin vs. \mathrel?

These seem to be very similar as they both separate two operands. When would one be used over the other? Is there any difference in the math spacing surrounding them? How would the spacing in these ...
3
votes
1answer
93 views

Itemization in Tikz

Heavily edited question: In the following code, how can I add an itemization to the title? What I write below does not work. The code is taken from Zarko's answer here: Flowchart + Tikz \...
2
votes
1answer
71 views

Change font to “Times New Roman” in math mode (e.g., $ equation $) in PDFLaTeX

I would like to have a unique font (Times New Roman or an equivalent one) for both text and equations. I'm actually using the commands below, which work only for text mode: \usepackage[T1]{fontenc} \...
5
votes
1answer
59 views

Mimicking mathspec practices in LuaLaTeX

After discovering the magic of microtype, I've decided to switch to LuaLaTeX from XeLaTeX for a large document. Unfortunately, I'm having some difficulties mimicking my mathspec practices from the ...
2
votes
2answers
51 views

How do I represent a mathematical function in LaTeX? [duplicate]

I want to write something like F : X ----> Y x |---> 2x in LaTeX where the x |---> 2x appears directly below F : X ----> Y Any suggestions on how to do this?
6
votes
1answer
46 views

Fraction in \pmod bracket

I want to put a fraction into the \pmod brackets in math mode, i.e \documentclass{article} \usepackage{amsmath} \begin{document} \[x\equiv y\pmod{\frac{a}{b}}\] \end{document} However, the ...
3
votes
1answer
154 views

How to put a \dot accent above a \hat accent in math mode?

I use ${\dot \hat E}$ to put a hat and dot on top of an E simultaneously. However, an error occurs.
2
votes
1answer
50 views

Italic or not in equations? [duplicate]

I have written two equations for the report of my Master thesis: $NLL_{k} = - \sum_{j=1}^n \ln(pdf(PD_{k}^{i},skill_{i}^{j}))$ $person_{k}(interest) = \dfrac{1}{n} \sum_{p=1}^n \dfrac{person_{k}(...
1
vote
1answer
49 views

TeXStudio: redefined newcommand variant has bad error highlighting

I would like to use the following command in my LaTeX code \newcommand{\newsym}[2]{\newcommand{#1}{\ensuremath{#2}}} so that I can easily define new symbols that I often use in my equations, such ...
1
vote
1answer
250 views

Making triangular hat

Is it possible in Latex to make a triangular hat? The one that is used in math over three letters representing points to indicate a triangle. Something like:
1
vote
1answer
55 views

how to subscript when there is a cap on mathematical expression?

The following equation is typed using MS word When I tried to type same using latex with subscript _i ended up with this result bcoz there is a cap above subscript "beta". The latex output is this ...
0
votes
1answer
36 views

Long \mapsto-arrow [duplicate]

Is there a longer version of \mapsto, like with \rightarrow and \longrightarrow? I found an ugly solution by inserting a couple of \quads on top of \xmapsto, but it's not very elegant.
5
votes
1answer
57 views

Substitute \frac for a slash (/) only on inline math mode

I was wondering if there is a way to have LaTeX interpret $\frac{a}{b}$ as $a/b$, but \[\frac{a}{b}\] as \[\frac{a}{b}\]. It is a little tedious to change a inline equation $a/b$ to a display ...
12
votes
2answers
9k views

Why different bra ket notations?

Why are bra and ket defined in the official package braket.sty in two different ways (\bra, \Bra and \ket, \Ket)? I do not understand why there exists the command \bra with non-scalable delimiters. ...
0
votes
1answer
38 views

Equation with condition [duplicate]

I'd like to create the following equation: Could you please give me a solution? Thank you.
1
vote
0answers
25 views

line breaking has no effect in doublespace

I am trying to break a doublespace content without any success. \documentclass{article} \usepackage{amsmath, amssymb, graphics, setspace} \begin{document} \begin{doublespace} \noindent \(\left\{\...
7
votes
3answers
157 views

Alignment in equation environment

I am not able to align equations within a curly bracket. My code is the following: \documentclass[12pt, A4paper]{article} \begin{document} Consider the following: \[ P\Big[\frac{1}{2}+\mu \Big ]=\...
5
votes
1answer
159 views

\bar and \overline

If I write $\bar{X}$ or $\overline{X}$ the bar (or the rule) over X is smaller or longer than the width of X. Is there any way to adjust the width? Thank you in advance. MWE \documentclass{article} ...
0
votes
0answers
24 views

wrong output using \lim [duplicate]

I want to write an equation than contains a limit using the following MWE: \documentclass[a4paper,openright,12pt]{book} \usepackage[a4paper, total={165mm, 240mm}]{geometry} \usepackage{fancyhdr} \...
2
votes
1answer
48 views

Double Subscript in Math Mode

\usepackage{amsmath} \usepackage{siunitx} \begin{equation} 2I_{x}S_{z} \overset{\ang{90} \text{Pulse_{I_y}}}}{\rightarrow} \end{equation} For some reason this is not working. For the overset ...
18
votes
3answers
28k views

Braket notation in LaTeX

I am using the braket package to generate bra and ket vectors. However, I could not figure out how to do <0|0> using the package. Is there a command for this?
60
votes
3answers
3k views

How can I use Dragon NaturallySpeaking to write LaTeX math formulas by voice efficiently?

I write LaTeX documents by voice using Dragon NaturallySpeaking for speech recognition. It allows me to write much faster than if I had to type on a keyboard (~ 100 WPM vs. 50), I find that voice ...
3
votes
0answers
36 views

lacheck doesn't like factorials?

I have the following code. \documentclass{standalone} \begin{document} $n!$ \end{document} Running lacheck on it results "test.tex", line 3: punctuation mark "!" should be placed after end of math ...
1
vote
1answer
40 views

(II) How to render a large TexForm expression from Mathematica

As a follow-up to my question of two days ago How to render readable a large TeXForm expression from Mathematica I'd like to also similarly incorporate the following two expressions: 1. \frac{2 (\...
2
votes
0answers
40 views

siunitx changed something and when I comment it out, pdflatex freezes

I was using a latex template (provided by a journal) to write a paper with the journal's .cls file . These are the style files provided separately: AMSbsy; AMSfonts; AMSgen, AMSsymb, natbib, upmath ...
0
votes
0answers
32 views

Whats the difference between & and && in alignment? [duplicate]

Sometimes in math blocks I see people use & to align equations, while others &&. Sometimes they are used separately, sometimes together in the same block. Whats the difference?
0
votes
0answers
38 views

How to change font size in math mode

I am currently using a widget on a website that uses LaTeX in order to typeset math. Everything that is entered into the widget is automatically in math mode, so I cannot use things like \large to ...
0
votes
0answers
18 views

Outputting TeX to PNG or JPEG? [duplicate]

I found a couple of interesting formulas and would like to post an image of them on Twitter. Anyway, I'd like the formulas to look good, so obviously I'll be typesetting them with TeX... So is there ...
2
votes
1answer
47 views

How to render readable a large TeXForm expression from Mathematica

I am using \documentclass[preprint,showpacs,preprintnumbers,amsmath,amssymb]{revtex4} \usepackage{amsmath} \newcommand\numberthis{\addtocounter{equation}{1}\tag{\theequation}} I'd like to know how ...
1
vote
1answer
70 views

Argument of \mathaccentV has an extra }

I am not able to locate the source of this error. ! Argument of \mathaccentV has an extra }. <inserted text> \par l.238 I've run across a `}' that doesn't seem to match anything. Latex tells ...
8
votes
4answers
23k views

Delta-like symbol in LaTeX

I'd like to write a majuscule delta-like symbol in LaTeX but I can't find it's syntax anywhere. You can see the symbol on equation (12) of the following paper: "Two-Frame Motion Estimation Based on ...
9
votes
2answers
187 views

Lualatex and bm package

I've updated my latex packages yesterday and have now issues with lualatex. One problem arising for me now is, that lualatex does not print bold characters using the bm package. When I compile the ...
0
votes
0answers
18 views

Difference in the three methods for unnumbered equation [duplicate]

What is the (subtle) difference between the three ways to typeset unnumbered equations (if any)? The first is the plain tex, $$ E = mc^2 $$ The second is the LaTeX \[ E = mc^2 \] And the third ...
1
vote
1answer
56 views

Help writing a matrix

I have trouble in wrtiting this block matrix Any idea? Thanks a lot.
6
votes
2answers
213 views

How to draw a vertical bar on top of a math symbol?

I can do $_\tau^{|}$ which renders: What I don't like is: The tau becomes under the baseline I can't control the line's length Can someone help me? Thanks!
27
votes
4answers
3k views

How to get a good “divisible by” symbol?

In addition to the "divides" relation, denoted b | a, there is also a "divisible by" relation expressing the converse (a is divisible by b), often designated with three vertical dots. Up until now, I'...
7
votes
2answers
99 views

What is the correct command to produce small wedges in differential forms?

In a differential form (see, for example, Definition 10.11 in Principles of Mathematical Analysis): there are wedge-like symbols. I found two plausible commands to produce them: \wedge and \land. ...
5
votes
1answer
99 views

Dot over A not in the right place

When I write $\dot{A}(t)$, the dot is not aligned with the top of the letter A. is there a way to correct this?
3
votes
1answer
340 views

How to use math mode inside align* [closed]

Why does this give an error? \begin{align*} $\sum_{i=0}^K n_{\text{i}} * P * 1000$ \end{align*} Why can't I use align* for my math formula which includes a summation?
4
votes
2answers
76 views

Different Sum signs

During my research I noticed different sum signs: The first one is mine and is created by $\sum_{i=1}^n$. The second one is from a paper. Any idea how to write it in LaTeX?