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

Math font changing and siunitx?

Consider this MWE: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T2A, T1]{fontenc} \usepackage{amsmath} \usepackage{lmodern} \usepackage{siunitx} \usepackage{mathpazo} ...
3
votes
1answer
29 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
304 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? ...
3
votes
1answer
98 views

Change kerning for `f'` in math mode

I want to adjust the kerning between f' in math mode (and other pairs) across the entire document. I found http://tex.stackexchange.com/a/219881/54601, which is exactly what I want but for text mode, ...
1
vote
0answers
58 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 ...
6
votes
1answer
220 views

Math content in forest

I'm trying to modify an example given in the forest manual. However, the template is setup in such a way that I'm not able to enter more "advanced" math contents, such as \nicefrac or \underset. In ...
7
votes
2answers
139 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
82 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
17k 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
64 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
423 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
45 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
74 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
181 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
25 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
42 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
112 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
102 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
75 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
53 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
56 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
35 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
281 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
131 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
68 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
212 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) ...
19
votes
1answer
213 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
79 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
186 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
45 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
57 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} ...
81
votes
5answers
162k 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
62 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, ...
3
votes
1answer
100 views

How to restrict TexStudio macro script to work only in text/normal mode?

I understand that you can write (?highlighted-as:numbers,math-delimiter,math-keyword) before your trigger and TexStudio will execute the macro only in Math mode. I already tested that in "scripts ...
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
290 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 ...
2
votes
1answer
46 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
63 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
142 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
138 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
245 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
31 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
40 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 ...