{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
3answers
44 views

Creating several sets of laterally aligned equations

I'm just getting started into understanding TeX and the workings of it. However I am trying to write up something and I am very unsure about what to do. I have no idea where to start with this, any ...
3
votes
1answer
26 views

First row of array is the first line

I want to code an array on which the first row would be the first line. I used the array environment. Here is what I get but it's not what I want (the line is centered on the second row). Here is ...
1
vote
0answers
38 views

Different font size or style in the paragraphs with and without math

I am using the class report with 12pt font size. I would like the text to have the same size and font in the different paragraphs. I also defined two languages for the listings. As you see in the ...
0
votes
0answers
22 views

How to escape a keyword like ges? [on hold]

This is my "Formula" ØTagesbedarf\quad *\quad Beschaffungszeit\quad +\quad Sicherheitsbestand Turns out, that ges is a tex keyword. And gesis in the word Tagesbedarf Sorry for this really basic ...
1
vote
1answer
19 views

How to annotate lines in split equation with left-justified comments?

I have an equation that is split into 4 lines using amsmath's split environment. How can I annotate individual lines with a text comment such that the comments are themselves left-justified and ...
8
votes
3answers
232 views

Spacing in math mode

In Math mode, if I write ":", it will automatically insert spaces before and after the colon. For example, $s:type$ will be shown as "s : type". How can I remove these spaces?
2
votes
0answers
27 views

use \partial sign from other packages, for example mathpazo [duplicate]

I would like to include another \partial sign, for example the one from mathpazo. i found a way to do it but i'm not sure wether it will change other things as well, so is this the right approach? \...
4
votes
3answers
74 views

How to align terms in polynomials in display math?

I'd like to align the terms of some polynomials in display math. For example, in the following: \begin{align} e &= x^5 + x \\ f &= x^5 + x^4 + x^3 + x^2 + x + 1 \...
2
votes
2answers
47 views

column vector without using \bmatrix?

How can I write a colomn vector like following without using \bmatrix? (no \usepackage{amsmath}) Thanks a lot!
2
votes
2answers
34 views

How do I properly resize an array?

At the moment my latex code looks like this but I get two errors saying Missing $ inserted. } . I have tried a lot to fix it but nothing helps. I am not sure if I am using a symbol that is messing ...
3
votes
2answers
34 views

Bracket around some (not all) lines in an equation

I want to put a bracket around some lines of an equation and add some text to it. It should look like this: so the : of the texts should be aligned as well as the =. I tried this code: \begin{...
3
votes
1answer
45 views

Spacing around a comma to separates conditions (in math mode)

Let say I have a set \{ x \in A : first condition , second condition , third condition \}, or as a more explicit example \{ x \in A : x > 0 , x^2 \in B , x^3 \notin C \}. I find that the ...
2
votes
1answer
111 views

Subscript with Exponent (which is correct)

Lets say I want to type $i_0$ raised to the power $p$. Which is the correct way: $i_0^p$ (the simplest) ${i_0}^p$ ${i^p}_0$ I think they appear slightly differently. Thanks for help.
2
votes
1answer
45 views

text format in math mode and none-math mode

I have one problem when I want to align my text font in and out math mode, here is the code: \documentclass[xcolor=x11names,compress]{beamer} \usepackage{xcolor} \usepackage{tikz} \usepackage{...
1
vote
2answers
121 views

What causes the problem when compiling a displayed equation with \overbrace and \underbrace?

$$ \left( \begin{array}{c} m+n\\ m \end{array} \right) = \frac{(m+n)!}{m!n!} = \frac{\overbrace{(m+n)(m+n-1)\cdots(n+1)}^\mbox{$m$ factors}}{\underbrace{m(m-1)\cdots 1}_\mbox{$m$ factors}} $$ I am ...
1
vote
2answers
45 views

The most simple way to split equations, left align them and have a space between them?

I have four equations which I want to split, align and make sure there is a space between the equations. \begin{align*} \sum^\infty_{i=1} (3t_{2i-1}+t_{2i})9^{-i} \\ =\sum^\infty_{i=1} (3t_{...
2
votes
2answers
33 views

How to manage indentation in math mode?

I have a problem, maybe with indentation but I don´t sure. This the code: \documentclass[12pt]{article} \usepackage[letterpaper]{geometry} \geometry{top=1.5cm, bottom=2.5cm, hmargin=3cm} \...
1
vote
1answer
33 views

Aligning equations within multline

I have this really long equation and I have used multline to break it up. I also want to align the broken bits of the equation to the left. When I use align, for some reasons it aligns to the right ...
2
votes
2answers
31 views

Problems with using \begin{multline} \end{multline]

I have the long equation $$frac{1}{2^j}K_{b_0}K_{b_1}..K_{b_{j-1}}K_{b_j}= \frac{(\sqrt{2})^j}{2^{j-1}}exp{[(-1)^{b_1}-(-1)^{b_2}+ (-1)^{b_3}- ... +(-1)^{j-2}(-1)^{b_{j-1}}+ (-1)^{j-1}]\frac{i \pi}...
12
votes
2answers
220 views
+500

Xparse k argument to parse options at end of environment

I am trying to combine the solutions from How to properly use \collect@body within align environment Xparse t argument type (underscore with optional parameter) to parse optional parameters ...
1
vote
0answers
19 views

TexMaker: How to “save” user defined tags.

So I want to type commands like \geq_{\alpha} or \leq_{\alpha} into the user section (the bit with the symbol of the person, above PStricks, and below Left/Right). Fine, but how do I save these ...
2
votes
0answers
47 views

The correct way to typeset comma between math symbols?

I am curious which is the textbook correct way of typing $a,b\in X$ to say that a, b are elements in the set X. Clearly, the most convenient way is $a,b\in X$. Qn 1) $a, b\in X$ (note the space ...
1
vote
1answer
33 views

Use text font for alphanumeric characters in math

My document currently uses TeX Gyre Termes as the main text font and Computer Modern for math. I would like to continue using Computer Modern for math mode symbols, operators, and greek, but replace ...
3
votes
1answer
18 views

How can I use a large solidus in a display fraction in LyX?

I would like to use the equivalent of the latex \middle/ in a display equation in LyX. I have a fraction with a large left hand side, and I want the solidus (/) to be automatically sized to match the ...
8
votes
1answer
69 views

How to properly use \collect@body within align environment

The following code (an example of using \collect@body as a test case for this specific question) modified bmatrix to not add the surrounding [ and ]. This seems to work fine, but requires that I ...
4
votes
2answers
407 views

Redefine _ like _{\!_{ }}

I would like redefine _ like _{\!_{ }} to do subscripts smaller. I've tried with: \renewcommand{\_}[1] {_{\!_{#1}}} But it doesn't work, apparently, maybe I'm wrong. Take this equation, for ...
1
vote
1answer
69 views

How to write non-english characters in the math mode?

I'd like to have the Danish letter ø in my text. It's very simple when I mean plain text: {\o}. How can I achieve the same result in the math mode? If I add {\o} to my formulas, this character isn't ...
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
243 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 \...
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 \...
3
votes
1answer
30 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 ...
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 ...
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 ...
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 ...
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 ...
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}(...
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.
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
35 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.
1
vote
1answer
63 views

Which library contains \left(? [duplicate]

I have included libraries amsthm, amsmath, amssymb, mathtools and hyperref and I get an error when I use \left( or \right). However, it doesn't happen in overleaf, which also includes graphicx, ...
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 ...
0
votes
1answer
37 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 ]=\...