{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
24 views

Substitute \frac for a dash (/) 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
36 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
24 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
147 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
154 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
23 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
35 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
26k 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 ...
1
vote
1answer
70 views

Writing sub-and superscript in mathmode

i want to Write sub-and superscript in math mode but not italic. \documentclass[a4paper,11pt]{article} \usepackage{amsmath} \begin{document} % using mathmode sub- and ...
2
votes
0answers
32 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
37 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
36 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
43 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
48 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
22k 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 ...
8
votes
2answers
137 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
55 views

Help writing a matrix

I have trouble in wrtiting this block matrix Any idea? Thanks a lot.
6
votes
2answers
208 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
97 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
96 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
336 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?
7
votes
2answers
2k views

What is the meaning of $$$ in LaTex?

I want to know the meaning of the triple $ in my document. \documentclass[12pt]{article} \usepackage[letterpaper]{geometry} \geometry{top=1.5cm, bottom=2.5cm, left=3cm, right=3cm} \usepackage{...
3
votes
2answers
70 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?
5
votes
2answers
158 views

Should I keep using LaTeX to do my math homework?

My probability professor suggested us to try to use LaTeX for the homework. I have successfully wrote my first LaTeX project (5 pages). However, no one except me used LaTeX in that course. I spent 1 ...
1
vote
0answers
21 views

Sympy in for Loop runaway argument error

I am trying to have the following document compile using sympytex. The goal is to generate squares of integers using sympy and the latex forloop into exsheets. I have been trying to fix the error for ...
3
votes
1answer
40 views

Adjusting the Size of Summation Symbol inside an Enumerate Environment

Situation: I am making a compilation of problems involving the summation symbol. Problem: I want to resize my summation symbols but unable to do inside the enumerate environment even with the relsize ...
1
vote
1answer
29 views

How can I make a line break on HostMath [closed]

I want to express the following: I need to express it on HostMath, where \nextline somehow doesn't work. What I have so far: \text(If ) \frac{x-3}{3}=k \text( and ) k=3, \text(what is the value ...
3
votes
2answers
210 views

How to boldify math without changing font style

I want to boldify math equations and symbols with out changing the actual font. I tried the following, but I am not getting satisfactory results. a=f \equiv 2 \mod 4 \bm{a = f \equiv 2 \...
2
votes
2answers
597 views

How can I write a cursive letter k in math?

Using amsmath, writing $\ell$ produces a cursive lowercase letter l. I would like to have a reasonably matching cursive lowercase letter k, available through \kay e.g., so that I can write things ...
68
votes
2answers
22k views

Using \colon or : in formulas?

I noticed that in many documents you encounter $f: X \to Y$ instead of $f \colon X \to Y$. Another example are quantified expressions: $\forall x: P (x)$ versus $\forall x \colon P(x)$. I find the \...
0
votes
0answers
21 views

How to stop latex from changing < to squiggles [duplicate]

How to stop latex from changing < to squiggles outside math mode?
14
votes
1answer
531 views

Bracket in math and text

When I write the pair (x,y) with Latex, which way is correct: ($x,y$) or $(x,y)$? Thanks in advance.
4
votes
1answer
95 views
3
votes
1answer
72 views

How can I label my terms in LaTeX?

in Mathematics when we define or describe terms we draw a rotated bracket above or underneath each term ,then we write whatever we want. I hope you get what I mean otherwise I have to include a photo. ...
1
vote
0answers
14 views

Scale math formulae in reStructuredText [closed]

Hello I'm writing formulae with latex style in a rST format using this directive: :math:`d_{p}\frac{\frac{hc}{mr} \cdot v}{wd}` and the result compared with the text around is smallest than the ...
1
vote
0answers
43 views

How to improve my unicode/tikz enabled big integral sign?

I found the following Big integral sign after I asked the (almost?) duplicate Is there a more typographically-satisfying bigints package? and decided that the given solutions are not great. I found ...
5
votes
1answer
95 views

How do I improve the quality of png images when converting to html using htlatex?

I have tried to convert my LaTeX document into xhtml running the following commands (found here): htlatex source.tex tidy -asxhtml -output seconddraft.xhtml firstdraft.html Everything displays ...
1
vote
2answers
74 views

Upright sans serif greek in math mode

Consider the following MWE, which typesets some sans serif math that I'm using in a presentation: \documentclass{article} \usepackage{sansmath} \usepackage{amsmath} \begin{document} \sansmath \[ w\...
21
votes
3answers
71k views

How to make the limit (mathematics) sign?

I want to learn how to make the limit sign. For example, take 'Limit of f(x) as x approaches 2 is 5' , how to make this?
2
votes
1answer
31 views

Pandoc refuses to parse math latex

I have a markdown file like: blah blah $|\left<R_j^{(x)},g_j^{(x)}\right>|$ blah I tried to use Pandoc to convert this file into a .docx file, but it cannot recognise the math expression ...
2
votes
1answer
58 views

How to make vertical bar in equations?

When I try this: \begin{equation} \overline{bel}(x_{t}) = p ( x_{t} \textbar z_{1:t-1} , u_{1:t} ) \end{equation} I get following warning: Command \textbar invalid in math mode on input ...
1
vote
0answers
77 views

A specific Math equation!

I have tried to look for how to make equation as it is shown in picture, can anyone help to show a link for math equations like this one.