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

1
vote
2answers
108 views

What kind of font is used in math mode of LaTeX?

For some reasons of compatibility and interactivity I need to create my own simple system for drawing the formulas. (So I need standard math sybols and something like \mathcal{N}.) Is there a way ...
21
votes
6answers
5k views

Upright Lowercase $\pi$

On pg. 144 of Kopka and Daily's A Guide to LaTeX, they mention that the symbols $e$, $i$, $d$, and $\pi$ should be displayed upright in math mode (for their usual uses). This is easy to do for $e$, ...
3
votes
1answer
39 views

Aligning equations in 3 columns

I want to align two equations in 3 columns (so empty space in the middle). How do I align another equation in the next column with the empty space? \begin{align*} a&=144 & b&=51666 \\ ...
52
votes
1answer
2k 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
1answer
37 views

Aligning two multiline equations [duplicate]

I searched a lot for this but couldn't find an answer. Say I have two equations that are 2 lines long each. I can align each equation at their equality sign using equation-aligned or gather-split, ...
12
votes
7answers
2k views

How do I get function argument parenthesis to position correctly?

I'm having trouble with the appearance of parentheses representing function arguments. They appear to far away from the function name. For example the code ...
11
votes
3answers
1k views

Diereses (German Umlauts) in math?

Is it possible to enter Umlauts directly in math? I would like to do something like the following (using XeLaTex): \documentclass{article} \usepackage{amsmath} \usepackage[silent,no-math]{fontspec} ...
0
votes
0answers
15 views

Theorem and lemma and proposition numberings with the numbers first [duplicate]

If one considers the following MWE one sees that theorems and lemmas have their number as a suffix: \documentclass[fleqn]{scrartcl} \setkomafont{disposition}{\normalfont\bfseries} ...
2
votes
2answers
305 views

I'm trying to bold this set of code: $T^{-1}(x)$=$\frac{9}{5}$x+32

I'm in LaTex, and am trying to boldface this whole line of text: $T^{-1}(x)$=$\frac{9}{5}$x+32. However, when I use \textbf, it only boldfaces x+32. Any suggestions on how to boldface it all? ...
1
vote
0answers
59 views

How to get a photoshop font look like math mode in tex? [duplicate]

I want to make a figure in Mathematica, export it as a PDF, edit/label it in Photoshop, and then add it as a figure in a TeX document. I would really like to have the font in the figure closely match ...
7
votes
2answers
148 views

Arbitrary \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.\) ...
8
votes
1answer
85 views

How can I add space before my unit vectors?

This is how I'm currently typesetting vectors: \documentclass{article} \newcommand{\ih}{\mathbf{i}} \newcommand{\jh}{\mathbf{j}} \newcommand{\kh}{\mathbf{k}} \begin{document} $1/z \ih + \jh - ...
12
votes
3answers
18k views

Really wide hat symbol

Is there any way to get a hat wider than widehat? Why doesn't \widehat{abcdefghijklmnopqrstuvwxyz} really go over all of it?
2
votes
1answer
76 views

Thicker line for minus sign and plus sign

Most of the times the minus sign in my documents is so thin and so short that I have a hard time seeing it on a printed copy. Is there a way to alter the thickness of the line for the minus sign (and, ...
19
votes
1answer
444 views

Tips how to display multiple equations beautifully

I'm starting to write in Latex in a more professional way and I'm facing with the following problem: I want to display this long equation in the more easy reading way: So I think the best ...
5
votes
2answers
50 views

Mathematical multiple lines inside a parbox

I am getting multiple errors for missing } or missing $ inside a parbox with two lines, but I do not understand for the life of me why... I have put together a MWE replicating exactly what the problem ...
4
votes
1answer
84 views

Formatting a fractional exponent in display math

Typographically, what is the correct way to display a fractional exponent in display math mode? There was a post regarding inline math, but consider this example. \documentclass{article} ...
33
votes
4answers
1k views

Is it ever bad to use \left and \right? [duplicate]

For mathematics, is it ever disadvantageous to use \left( and \right) in equations? I can't see any way that doing this would hinder the typesetting, so why isn't () just converted into \left( ...
6
votes
1answer
190 views

e^{…} vs \exp(…) in display mode

In terms of readability as well as correct syntax, what is more preferred in mathematical equations: e^{...} or \exp(...) -- and why? For instance, e^{x^2/(4t)} or \exp(x^2/(4t)). The latter is ...
1
vote
0answers
30 views

Getting tex4ht to output all math “unprocessed” between html tags

I would like to use tex4ht to convert a LaTeX document to an electronic book format, but rather than MathJaX or MathML, I want all math-mode code to be dumped into the html output between identifying ...
9
votes
3answers
3k views

What parsers for (La)TeX mathematics exist outside of the TeX engines?

Inspired by the author's motivation for asking Is there a BNF grammar of tex language. Are there any well done libraries that can parse some subset of TeX mathematics independently of the TeX engine? ...
2
votes
1answer
45 views

Problem in writing the equation: missing delimiter (.inserted)

\documentclass{article} \usepackage{...} %packages your code nees \begin{document} \begin{align} T\triangleq &\int_{0}^{\infty}\frac{\gamma^{k+m_2-1}{\rm ...
7
votes
2answers
122 views

Evenly spacing aligned matrices with different elements

I have 8 vectors that I display as bmatrix in an align environment as follows: But as you can see, the first vector is slightly thinner, making the rest unaligned aswell. How can I make the first ...
4
votes
2answers
106 views

Aligning multiple things under a limit

I'm using \lim_{\substack{n\to\infty\\t_n\to t}} to put two things under a limit. But ideally I'd like the arrows to be directly underneath each other. Can this be done? (Something on the lines ...
1
vote
1answer
84 views

Typesetting arrows above a pair of letters to indicate a line [duplicate]

How do I typeset a line segment, with arrowheads at each end, above a pair of letters to indicate a line? I know that $\overline{AB}$ can be used to typeset a line segment between points A and B. ...
2
votes
0answers
59 views

Typesetting a pair of slash symbols to indicate parallel lines

To indicate that two lines - or line segments - I want to typeset two slash characters. I used $\overline{AB} \slash\slash \overline{CD}$. The space between the slash characters is too much, though. ...
3
votes
1answer
61 views

spacing in math equation latex+tikz

I am trying to control the size of math operators and at the same time the spacing between operators and operands using the following code. \setlength{\thinmuskip}{10mu} \setlength{\medmuskip}{2mu} ...
4
votes
1answer
61 views

Is it possible to set per-mode for math and displaymath environment separately in siunitx?

I would like to globally define the per-mode of siunitx for math environment and displaymath environment separately. Is this somehow possible? Here is a MWE: \documentclass{article} ...
6
votes
3answers
287 views

A macro for typesetting sequence with flexible starting index

How can I define a new command called \seq[StartIndex]{Base}{EndIndex} with the following functionalities \seq{a}{n} % -> a_1,a_2,\dots,a_n \seq[3]{a}{n} % -> a_3,a_4,\dots,a_n \seq[k]{a}{n} ...
5
votes
1answer
133 views

Right place for ddots

I've got a problem, when making a presentation with beamer. I want to use the fourier package for the fonts, and use the serif font in math mode. So that's an MWE: \documentclass{beamer} ...
0
votes
0answers
28 views

Explaining subscripts by means of bent arrows in math mode [duplicate]

How can I create something like this into a math equation? The aim is to describe the meaning of the two subscripts (i,j) with the text (sub1,sub2), respectively, by means of a simple and effective ...
6
votes
1answer
71 views

Is it possible, in LuaTeX, to replace text from the input buffer but only inside math mode?

I am trying to create a Lua script that lets me replace all instances of -> inside my equations with \rightarrow. I found this answer that suggests a hack involving a process_input_buffer callback: ...
11
votes
4answers
238 views

New command with two definitions [duplicate]

I want to define a new command that serves two slightly different purposes. Can I define a new command called \set such that it's definition is chosen according to the number of argument(s) is(are) ...
20
votes
1answer
229 views

LuaTeX: Wrong/missing italic correction in TeXLive 2015 vs 2014

Italic correction for OTF math fonts seems to be broken in LuaTeX in TL15. MWE: \documentclass{article} \usepackage{unicode-math} \setmathfont{Latin Modern Math} \begin{document} \begin{equation} ...
5
votes
2answers
99 views

flalign doesn't work in for me

I want to left justify my equations using flalign. However,it works in some places and doesn't in others. Below is a sample of my code \documentclass[12pt]{article} \usepackage{amsmath} ...
2
votes
4answers
195 views

Fit an equation in a single column

I am using the following code but the result obtained is not setting in the space (left column of the page). I have it on my page but it is overlapping the text on the right column of the page. How ...
1
vote
0answers
49 views

arrow in a diagram [closed]

in the following code that encodes a diagram: \xymatrix{a\ar[rr]^{\varphi\qquad}&\ar@{^{(}->}[d]&b\ar@{=}[r]&a\ar[rr]^\varphi&\ar[dd]&b \\ ...
2
votes
1answer
63 views

Graphics equations: put text on top of equations

How I can make sometimes the arrow direction up and sometimes down in a one unique tex file (I want to have both of them in a Latex-tex)? Following program make arrow down. \documentclass{article} ...
84
votes
5answers
169k views

How can I split an equation over two lines

I am having the following equation: \begin{equation} Q(\lambda,\hat{\lambda}) = -\frac{1}{2} P(O \mid \lambda ) \sum_s \sum_m \sum_t \gamma_m^{(s)} (t) \left( n \log(2 \pi ) + \log \left| C_m^{(s)} ...
3
votes
1answer
68 views

BibTeX problem with math symbols

I'm using BibTex for my bibliography, for citing I'm using google scholar. I'm mainly having problems with math symbols: for example, one of the references is: @incollection{deitmar2005schemes, ...
7
votes
4answers
8k views

How can I label \rightleftarrows above and below?

How can I label $\rightleftarrows$ above the top arrow and below the bottom arrow?
19
votes
5answers
3k views

How do I write $\notin$ backwards?

I write $P \niton x$, but it does not work. How can I write the symbol $\notin$ backwards?
9
votes
2answers
296 views

How to use punctuation marks in LuaLaTeX with unicode-math?

I also posts this here: http://texwelt.de/wissen/fragen/3000/interpunktion-in-lualatex-mit-unicode-math-von-hauptschriftart. The problem is that I want to have the \period symbol (also range="002E ...
3
votes
1answer
64 views

vertical and horizontal line in a matrix

I want to create a bmatrix on the right \documentclass[10pt,a4paper]{article} \usepackage[english]{babel} \usepackage{amsmath} \begin{document} \begin{equation} \begin{bmatrix}[c|c] _B[T]_B ...
2
votes
1answer
67 views

Redefine font used in \mathit

I am using the libertine package with pdflatex. For maths I use the Computer Modern font. In formulas I need longer variable names and to do get the spacing right I use \mathit. The font used is ...
2
votes
2answers
150 views

how to write an equation with a special arrow and super and sub scripts

How do I generate something like this?I don't know how to generate such arrows and how to write above and below the arrow.
7
votes
1answer
155 views

Use of Script-size and Script-script-size glyphs

In the answers to this question, I learned that OpenType Math fonts like Cambria and Latin Modern Math contain script-size and script-script-size characters, with different optical scaling. In my ...
3
votes
2answers
281 views

Make box in math mode with current math font

The commands $\mathcal{\mbox{$M$}}$ and \mbox{$\mathcal{M}$} produce different output. I would like a replacement for \mbox that creates a box preserving all features of the current font in ...
2
votes
1answer
36 views

Why does including brackets in a TikZ datavisualization label give me an error?

My questions concerns the following MWE: \documentclass{article} \usepackage{tikz} \usetikzlibrary{datavisualization} \usetikzlibrary{datavisualization.formats.functions} \begin{document} ...
6
votes
1answer
43 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 ...