{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
2answers
176 views

Editing theorem environments

I have two questions about editing theorem environments on Tex. I did not see concrete answers among answered questions, so I ask here mines, hoping that there are not frequently asked. First, I ...
4
votes
1answer
42 views

How to auto linebreak before/after parenthesis in inline math

I read this answer "Allowing line break at ',' in inline math mode" breaks citations I want to change ('s catcode automatically to avoid breaking some packages. ...
9
votes
2answers
291 views

Centering a slash (not) over a (mathematical) glyph?

My aim is to construct a relational symbol which is graphically equivalent the standard infinity sign (coded by\infty) crossed exactly in the middle of it. Yet I am not able to overcome something. To ...
1
vote
0answers
34 views

How to draw change-of-coordinates notation in LaTeX? [duplicate]

For a homework assignment, I'd like to include something like the following image in my document as a single term in an equation: I know I could simply use another variable name, but my professor ...
10
votes
2answers
171 views

How to globally put subscripts in math-mode in upright font using amsmath?

I'm often apply the subscript environment in math-mode to assign e.g. materials to material properties, $\eta_{oil}$, $\lambda_{air}$, etc. Not very mathematical but hey, I'm an engineer ;-) I'm ...
6
votes
2answers
46 views

Expand arrows within an array

Any ideia of how I can expand the \xrightarrow so that they all have the same size? (for aesthetics) \documentclass{article} \usepackage{amsmath} % \text nas equacoes \usepackage{mathrsfs} ...
5
votes
3answers
165 views

How to make large binomial coefficient?

I have a potentially-repeated question, but I was unable to find anything about this. So, I need to create a giant binomial coefficient in LaTeX (something around 1000pt). When I compile the below, ...
0
votes
0answers
37 views

Why use \[ … \] and not $$ … $$ for displayed math mode? [duplicate]

For displayed math mode, one can use either one of : \[ ... \], or $$ ... $$, or even \begin{displaymath} ... \end{displaymath} But I see many people here saying: never use $$ ... $$ for ...
2
votes
2answers
51 views

\endgroup error when using \makebox and gather

I'm getting this error when I try to use \makebox to center several equations that run longer than the textwidth. If I use $$ .. $$, I don't seem to have the issue. Why? Code that throws ! Missing ...
78
votes
4answers
52k views

\mid, | (vertical bar), \vert, \lvert, \rvert, \divides

What's the difference between the different vertical bars? $S = \{\, x \mid x \not= 17 \,\}$ $a \vert b$ implies $a \leq b$ when $b \ne 0$ $a|b$ implies $a \leq b$ when $b \ne 0$ $\lvert x \rvert$ is ...
0
votes
0answers
34 views

Use $$…$$ or \[…\] to enter math mode in LaTeX? [duplicate]

I read on some sites that [ ... ] (with backslashes before the brackets) should be used, rather that $$...$$ what is the difference between both? If you compare the output, the result is the same.
5
votes
2answers
143 views

Matrix inside matrix

How I can make a matrix inside a matrix as shown in this picture? Indeed, I want to treat every block as a separate matrix. For example, I want to add braces over and under the second matrix by ...
1
vote
1answer
42 views

Putting variable constraints on the right of an equation

Suppose I have a formula like y/x, and I want to say that x must be greater than zero. In well-printed literature, you'd see something like y/x ; x > 0 with just the correct amount of spacing ...
7
votes
1answer
4k views

How do I use AMS Euler?

% What to do here \begin{document} This is good integration. $$\displaystyle \int x dx = \frac{x^2}{2}$$ \end{document} I don't know much about LaTeX so I am going to need some spoon ...
0
votes
0answers
27 views

Editor text color in align environment

I am using TeXworks to type up very long assignments. For the types of assignment I type up, I usually have many lines of equations of all sorts with interjections of normal text as explanations and ...
2
votes
1answer
49 views

\sqrt but with a vertical drop at the end [duplicate]

I have a formula $$\sqrt{t_{i + 1} - t_i }\epsilon_{ij}$$ But when rendered, it looks a little unclear since the epsilon is not adequately separated from the square root. I'm reluctant to reorder ...
5
votes
2answers
133 views

How to make expectation symbol and max symbol line up

Suppose you prefer the max symbol to be centered (height-wise) compared to a capitol letter that is taller. How would you do that. For example, below \documentclass[14pt]{beamer} \usetheme{Madrid} ...
1
vote
0answers
93 views

Text font matching CM Math?

I see many people ask about a math font to match their favorite text font. Here I'm asking the inverse question. When I first heard about LaTeX, I was so impressed by its super high quality output, ...
0
votes
0answers
29 views

How to refer to a result of an equation [duplicate]

I have a question: is it possible to \ref a result of an equation? For example I have something like: A is: A = \frac{B}{10} B is: B = 1 + 2 = \somelabelfunction{B}{3} %I want this to show the ...
26
votes
5answers
29k views

Unicode degree symbol ° in math formulas: \textdegree invalid in math mode

I'd like to be able to simply input a degree symbol as ° in my source code. German keyboards have a key for this, and it makes the source so much more readable. I'm using pdflatex from TeXLive 2012, ...
24
votes
3answers
2k views

Getting a tikz picture to have an equation number

I make a lot of commutative diagrams and am trying to switch to Tikz from amcd,diagrams, etc. I often have to refer to these diagrams in the text and would rather have them as equations (i.e. with and ...
4
votes
1answer
47 views

Vertical bar in a math mode inside tabular

I cannot get the | line to appear in a fraction in a tabular. Could someone please tell me what I am doing wrong?? \documentclass{article} \usepackage{amssymb, amsmath} \begin{document} ...
0
votes
1answer
46 views

Missing { inserted. <to be read again> error

I'm desperate. I can't figure out why my code won't work. I need an answer as soon as possible. Many thanks in advance. The line of code it is on is: (IC1) $\int_{\underline{v}}^{\bar{v}} ...
15
votes
1answer
30k views

How to write two dot above a letter?

the two dots above a letter represents two derivative of varible t. My method: \documentclass[UTF8]{ctexart} \usepackage{amsmath} \usepackage{amssymb} \usepackage{graphicx} \usepackage{epstopdf} ...
2
votes
1answer
55 views

Set all numbers greater than “X” bold

I am looking for a way to set automatically all numbers in mathmode bold (\mathbf) that are greater than a certain value. For example I set the new counter to 1000 in the preamble and every number ...
5
votes
1answer
97 views

Insert Paragraph within Equation

How to insert a paragraph inside equation. I need to be able to break lines inside the paragraph. \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align*} y ...
11
votes
3answers
127 views

Incorrect spacing after minus sign with combination of amsmath and hyperref

When no packages are loaded, no space is inserted after the minus sign of a negative number: \documentclass{article} \begin{document} \begin{equation} -1 = -1 % output: -1 = -1 \end{equation} ...
4
votes
4answers
142 views

Numbers are very small in numerator and denominator using \frac

When I use the \frac command, I notice that the characters used for the fraction terms become smaller than those which are not in the \frac command. Is there a way to correct it?
4
votes
1answer
51 views

Loops in TikZ: Executing Subtraction in Math Mode

I learned today that I can execute a loop in TikZ, which makes my life a lot easier... but I'm wondering how to evaluate a numerical expression in math mode. MWE: \documentclass[12pt]{article} ...
0
votes
1answer
553 views

Proper symbol for two sets not intersecting? [closed]

I am not sure of what the proper math symbol is to use here. I have two sets: S1 = {a,b,c} and S2 = {d,e,f} I want to express that anything in S1 cannot be in S2, they do not intersect. What is the ...
0
votes
1answer
65 views

Triangle inequality symbol

Does anybody know what symbol to put above an inequality symbol < to indicate that the triangle inequality has been applied? I would like a symbol like this (which is not in The Comprehensive ...
13
votes
2answers
456 views

How to write these symbols (double vee, wedge and bracket)

I want to know how could I do these three things (in red): For the last one, I'm curious about the brackets. Probably they are not too dificult to "write" in this languege but I've no clue. I hope ...
7
votes
2answers
428 views

Write this equation in latex

I want to write this equation in latex: I need that comments be in right side. I did something like this but it has some flaws. \begin{eqnarray} \label{cons1} % \begin{aligned} ...
4
votes
1answer
153 views

How to write a calligraphic letter with a check hat?

I would like to typeset but $\v{\mathcal{R}}$ or $\mathcal{\v{R}}$ would not work....
5
votes
3answers
2k views

how can we equalize the fonts of mathtt and texttt

I'm trying to use a mono-font in my text, but it seems that mono texts differ in character map in math and text environment. Is there any solution? \documentclass[fleqn]{article} ...
3
votes
1answer
46 views

Making an environment with the same text color as the background

I am looking to type up some solutions to math problems. However, I do not want someone who just looks at the document to be able to see the solution; I want the students to be able to see the ...
1
vote
0answers
83 views

Formulas are not displayed correctly (documentclass 'simauth') [closed]

I am supposed to use the document class simauth as described here. However, the formulas and in general anything math related looks not as it is supposed to look, instead of Does anybody know ...
1
vote
1answer
75 views

Centered LaTeX program written

I have a somewhat working LaTeX program written. One thing I would like to be better is the centering of the \begin{align*}...\end{align*}. I tried \begin{gather*}...\end{gather*} but I can not get ...
5
votes
2answers
103 views

Slash resembling “circled division slash”

The package stmaryrd defines two symbols \varoslash and \varobslash which resemble the "circled division slash" ⊘ and an similar backslash. However, when mixing these circled slashes and regular ...
3
votes
0answers
99 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 ...
0
votes
0answers
22 views

Correct usage of \mathbf [duplicate]

In my work I have: J_{\mathbf{\lambda}}(f(\mathbf{p},t)) but pdflatex prited Why? Maybe I'm not using mathbf correctly?
3
votes
1answer
124 views

Making a thicker \cdot for dot product (that is thinner than \bullet)

I'm trying to replicate the dot that my professor uses in his notes for the dot product between vectors but I am having a hard time doing so. This is what it looks like: I have tried a couple of ...
4
votes
1answer
58 views

Why highlighting math with soul doesn't combine with l2tabu option for the nag package?

I have found that highlighting mathematical formulas with soul package does not work if the nag package is used with l2tabu option. A minimal (not) working example is: \documentclass{book} ...
3
votes
2answers
41 views

Create \uparrow in math mode with variable length

How to make \uparrow to be as long as the object left to it? Is there a way like for brackets \right] ? How to make this look nice: \documentclass[15pt, a4paper]{scrartcl} ...
1
vote
0answers
35 views

How to construct block matrix with shadowed entries? [duplicate]

Is there a simple way of drawing matrices with shadowed blocks like the ones in the picture? I've tried something like Gonzalo Medina's proposal: %% with these packages loaded %% ...
7
votes
2answers
91 views

boldsymbol badly modifies spacing

In the example below, it is my feeling that \boldsymbol badly increases the horizontal spacing with the index: \documentclass[fleqn,11pt]{book} \usepackage{amsmath} \begin{document} ...
5
votes
2answers
82 views

I want to change the font in math mode for only one letter in an equation

Some has suggested this is a duplicate question, but I do not think so, because I haven't been able to do it by reading the other posts. I have something like \documentclass[a4paper,12pt]{book} ...
27
votes
5answers
4k views

What free math font could/should accompany Linux Libertine and Linux Biolinum?

Well, the title of the question pretty much says everything. To be more precise: I'd like to know (1) what font would be visually suitable to use with Linux Libertine and/or Linux Biolinum as the ...
4
votes
1answer
188 views

What is the actual function of “&” in math environment?

First of all, I must and want to say that I really like the idea of this website. It's pretty awesome to have a place like this where you can ask all your questions regarding LaTeX/TeX. :D My ...
4
votes
1answer
134 views

Showing plus or minus error in siunitx

Using the notation we were taught, 0.0010 plus or minus 0.0001, for example, would be: (1.0 +/- 0.1)*10^-3s Is there a way to print this in latex using the siunitx package?