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

Connecting parts of equations with lines

When for example collecting terms in writing out an expression, it is often useful to indicate what terms are similar by drawing lines between them. Take for example \documentclass{article} ...
5
votes
2answers
131 views

Ignore Greek letters using `\mathcal`

I want to define various styles using commands, so that I can globally change them later if necessary. For example I want all sets to written using \mathcal{...}. This worked until I needed to use a ...
2
votes
1answer
48 views

Writing two partial differential equations in LaTeX

Do you know how is it possible to write this equation in LaTeX? I tried with this type, but it seems that this is not the correct version of writing. \begin{equation} $$K_ox=\frac{d^(2/3)_o}{n_x} ...
2
votes
1answer
56 views

\smile underneath the exponent

I'd like to write a formula where there is a $\smile$ underneath the exponent. Like in this example which works fine: $2^{\overset{\text{blabla}}{\smile}}$ But when I want to replace the blabla ...
0
votes
0answers
37 views

`:` is set to `\colon`, but the spacing is still wrong - part 2

This question explains how to make : behave as \colon. It has two solutions. The present question concerns the second, less upvoted solution, egreg solution, as in this question of mine, it turned out ...
2
votes
3answers
45 views

Embed Latex equation in LyX

I would like to transfer the LaTeX: \begin{equation} W(\mathbf{F},\lambda_{\chi})=\min_{\textbf{R}\epsilon S^{2}} \end{equation} which gives the subscript {\textbf{R}\epsilon S^{2}} right under ...
4
votes
1answer
115 views

What is wrong with this description list?

The below snippet is supposed to show a list of items and some associated values which I've stored as new commands. Unfortunately, what happens instead is a mess. I've included everything I think ...
4
votes
1answer
59 views

`:` is set to `\colon`, but the spacing is still wrong

This question explains how to make : behave as \colon. Except that the solution in the most upvoted answer doesn't work 100%. That solution says to make : behave in such a way, one has to use the ...
3
votes
2answers
32 views

greek capital letters not displayed properly in PNAS style

when using PNAS LaTeX template (here), Greek capital letters get rendered incorrectly. for example, \Phi(\vect{x}, t | \vect{x}_0) gets rendered as . i am using the following in my TeX source ...
0
votes
0answers
27 views

What's wrong with this question? [on hold]

Can anyone tell me what's latex wise or even grammatically wrong with this question and why is stack exchange maths sector is refusing to post this question? Question: If $$A_n = 1/(log n)^{log ...
1
vote
1answer
37 views

How can I split the expression?

When I use the command \begin{split} inside the command \begin{itemize} I get an error... Why? Can we not use it there? The command I wrote is the following: \begin{description} \item ...
3
votes
0answers
21 views

Beamer: alert and math color [duplicate]

I'm having some trouble changing the colors of parts of an equation in Beamer, with "math text" being set. The following MWE demonstrates the example: \documentclass{beamer} \usepackage{color} ...
4
votes
1answer
87 views

How do I produce the text displayed on the banner of this website?

This question is for interest purposes, rather than a problem which I have to be solved. How does one produce the equations and text displayed on the banner of this website? Here is a screenshot of ...
8
votes
2answers
231 views

Creating a symbol that combines a number with a triangle for math-mode

I'm trying to create a new symbol that simply combines a number with a triangle, by placing the number inside the triangle. It should work in math-mode (text mode would be nice, but not required). ...
4
votes
2answers
109 views

How to automate adding spaces around an ampersand in math mode

Suppose, we are writing a logical expression in math mode: \documentclass{article} \usepackage[a4paper]{geometry} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \begin{document} $a\&b$ ...
0
votes
2answers
26 views

Left-align text in math-mode and break equations

I have the following MWE \documentclass[11pt, a4paper]{article} \usepackage{fancyhdr} \usepackage{graphicx} \usepackage{amsfonts, amsmath, amssymb, amsfonts} \begin{document} \begin{align} ...
4
votes
1answer
34 views

Remove space between characters

How can I remove the space between this \newcommand{\deref}{\ensuremath{\rightarrowtriangle}\xspace} $b\deref\mathbf{r}_S$ such that the arrow is as closest to the two surounding characters as ...
3
votes
2answers
40 views

Suppress proof heading in proof environment

I'm using the proof environment defined by \usepackage{amssymb,amsthm}, mainly so the qed box is inserted automatically in the correct place. But I don't want a heading (or the blank row) before the ...
9
votes
1answer
137 views

Understanding expansion of \mathpalette

I'm trying to make sense of the \mathpalette code used in this answer. To repeat it below: \makeatletter \newcommand{\raisemath}[1]{\mathpalette{\raisem@th{#1}}} ...
2
votes
1answer
29 views

Subscript overlap issue with \mathclap

I wanted to use \mathclap (from mathtools) to make more compact the appearance of \documentclass[12pt]{report} \usepackage{mathtools} \begin{document} \[ \lim_{(x,y)\to (0,0)} f(x,y) \] ...
0
votes
1answer
31 views

Tex error when I run my tex file

! LaTeX Error: Command \subequations already defined. Or name \end... illegal, see p.192 of the manual. ! LaTeX Error: Command \openbox already defined. Or name \end... ...
1
vote
0answers
56 views

A math prime symbol instead of single quote in text mode

I have an abbreviated name say ABC and I want to write something like ABC', but I prefer the quote to be the math mode prime symbol. Something like ABC$'$ will give me that, but is there a better way ...
1
vote
1answer
36 views

Curly braces disappear when reloading LyX document

I have a problem in LyX when using a math macro with an optional argument. I want to have an interval [a,b] as argument, which I need to group in curly braces, otherwise LaTeX will confuse the ...
0
votes
1answer
64 views

How to put a fraction into italics? (No math-mode preferred)

I know, it sounds strange, but I need to have a fraction in italics. I have plenty of tables in my document where in one column everything is always in italics. And there I have one specific table ...
1
vote
1answer
38 views

“overfull hbox (62.122123 too wide)” message in a long equation

2.\\ (a) Since there is only one observation the likelihood function only includes $p_1^{y_1}(1-p_1)^{(1-y_1)}$.\\\ =$>$ $L(\alpha , \beta_1 , \beta_2 , \beta_3) = ...
3
votes
1answer
53 views

Why do \left and \right add so much extra space under the baseline?

When I write \[ \left \lVert \overrightarrow{\nabla} \right \rVert \] I get way too much extra space under the baseline: Why is this happening, and how can I fix it?
3
votes
3answers
199 views

Help with “missing $ inserted” in table* environment

I receive 20 error because of missing $ inserted. However. I put $ before and after each symbol. Here is my code: \documentclass[twocolumn]{article} \usepackage{blindtext} \begin{document} ...
2
votes
2answers
49 views

Spacing too large with double subscript [duplicate]

In a document that uses the newtx packages, double subscripts seem to have too much spacing. \documentclass{scrartcl} \usepackage{newtxtext} \usepackage{newtxmath} \pagestyle{empty} ...
4
votes
2answers
114 views

Unbold a \boldsymbol in mathmode?

I want to create a command that get an unbold character from a boldsymbol in mathmode. In my setup every vector is in bold font for example $\boldsymbol{x}$ and the command \coef{\boldsymbol{x}}{i} I ...
1
vote
2answers
57 views

How to make the subscript in $f(x)_{x \to x_0} \to \lambda$ appear beneath the arrow

Sometimes I like to write my limits in the form f(x) ----> a x --> 0 Is there a way to achieve that in latex ?
2
votes
1answer
61 views

Align text like in math mode

My question is pretty basic but I couldn't find any solutions to this. I'm looking for something to align text; in math mode you can use the & to mark where the next line of code should be ...
3
votes
2answers
167 views

How can I write framed formulas in my LaTeX document?

I am interested in this thing because I think that the framed formulas make my document more beautiful. For example how can I make this formula framed? $F=m\cdot a$ I would like to make a light ...
1
vote
2answers
53 views

How to stop centering effect when using split equation?

For example, the following code produces the equations below: \documentclass{article} \usepackage{amsmath} \begin{document} \[ \begin{split} Helloworld & = A \\ & = B ...
2
votes
2answers
68 views

How to include eqnarray in caption of figure

I want to write a set of equations in a caption of a figure. I implemented the answer of this question but it did not work out. The error I got is: ! Argument of \Hy@tempa has an extra }. For ...
3
votes
1answer
68 views

siunitx: Bold single numeric cells with turned off alignment

Having a table with numeric values, I want to achieve: Automatically grouping digits into blocks of three Highlight some cells in bold However, no alignment is needed. To achieve the first, I use ...
1
vote
2answers
40 views

Handwrite letter V in Inline Math Mode [duplicate]

What package and command do I have to insert to write letter V in a handwriting style using Inline Math Mode? Below is the result I want to obtain:
3
votes
1answer
50 views

How to have ceil function in Table?

Code which works in \begin{equation}...\end{equation} within the normal text but not in the table; extended from this thread. \documentclass{article} \usepackage{mathtools} ...
2
votes
2answers
92 views

Can't wrap integral equation

I am attempting to wrap the following integral equation, but get the following error: "Missing } inserted" Here's the code: \begin{align*} ...
1
vote
2answers
34 views

Typeset all caps to bold and all small to italics in math environment

I want to typeset all capital letters/symbols to be bold and all small letter to be italics in math environment by default. I was wondering how can I do that? \documentclass{article} ...
5
votes
1answer
66 views

Renaming \d for differentials

I know this question might sound dangerously like asking for an opinion, but I nevertheless give it a try. Since I never used the "underdot accent" \d I renamed it to get a differential in math mode ...
4
votes
2answers
409 views

Typesetting a function defined by case analysis

Can any one suggess me the code to write this equation in LaTeX.
2
votes
1answer
29 views

Using a text inside a math environment in a pgfplots label

How is it possible to have a \text{} field inside of a math environment of a pgfplots label. A minimum not working example is displayed below: \begin{tikzpicture} ...
8
votes
1answer
234 views

Spacing around \cdot

I'm trying to use \cdotas a dummy for a function argument in the following expression C(\cdot\mid\mathcal{F}_{t-1}) However, the above produces more space to the right of the dot than to the left. ...
6
votes
2answers
144 views

Brackets not tall enough with smallmatrix from amsmath

The following MWE shows that when I typeset a matrix using the smallmatrix environment from amsmath, and wrap it in a \left( \right), the parentheses generated are not big enough to reach the ...
1
vote
0answers
27 views

Is there any difference between math mode and text mode for numbers? [duplicate]

Take the sentence: "The answer is 42". Is there any difference between The answer is $42$. and The answer is 42. In the final PDF I cannot see any difference. Does it make a difference whether I ...
3
votes
1answer
71 views

Uniform number formatting

I am facing the problem that in a collaborative research paper there are several different number formats within the text, if the number is not pasted in math mode. For example: 10.000,00 or ...
1
vote
2answers
219 views

Physics notation

I really don't know how to write that 'Y' in latex. I have tried many methods but I didn't succeed. Any help will be appreciated.
0
votes
1answer
182 views

Math notation in LaTeX?

How can I write e^(3j) in LaTeX? I have tried many syntax, like $e^(3j)$ or $e^*{3j}$ Any help will be very well received.
1
vote
1answer
40 views

Arrow above text (like widehat)

I'm doing a presentation for a lay audience and I was hoping to have an arrow above the word "dim" to differentiate the dimension vector from the dimension generally. However, $\xrightarrow{dim}$ puts ...
1
vote
1answer
50 views

fonts in mathmode

I would like to ask if there exists anywhere a font for math mode that is as similar as possible to the font called "Avenir" (or else Helvetica Neue, Helvetica or Verdana) ? Cheers Edit: as to the ...