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

0
votes
0answers
27 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 ...
4
votes
1answer
54 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 ...
12
votes
2answers
2k views

Exchange meaning of : and \colon

I usually use the colon symbol : to denote maps. For set syntax there is the braket package. So as the spacing of : is not appropriate, I want it to behave like \colon. I tried ...
2
votes
3answers
38 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
112 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 ...
2
votes
2answers
26 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 ...
8
votes
5answers
452 views

auto-detect conditional probabilities in macro

Is it possible to write a macro that detects whether there is a | character in its arguments, and expands that to something else? In concrete terms, I want to be able to use the following definitions ...
2
votes
1answer
2k views

How to change the height of a (multi)row in tabular with math

I have the following code: \documentclass{article} \usepackage{multirow} \begin{document} \begin{table}[htbp] \centering \begin{tabular}{lcccl} \textbf{Irland} & - & ...
4
votes
1answer
83 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 ...
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} ...
8
votes
2answers
227 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
1answer
33 views

Is there a way to change the text size of \displaystyle?

I know you can apply different font sizes in math mode such as \scriptstyle and \scriptscriptstyle. What I am looking for is a way to get that "size" but still have the "style" of \displaystyle. ...
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 ...
0
votes
2answers
25 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} ...
10
votes
4answers
250 views

putting two indices and exponents side to side

I did not find the answer to my following question on the web. I apologize in advance if this question has already been answered somewhere. I would like to write a matrix with the two subscripts and ...
54
votes
4answers
48k views

Show inline math as if it were display math

I'm very familiar with how symbols display differently in inline mode (with $) vs. how display math shows them (with \[ or $$). Two examples would be with limits $\lim_{n\righarrow \infty}f(x)$ ...
1
vote
1answer
35 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 ...
3
votes
2answers
38 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 ...
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 ...
9
votes
1answer
134 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
1answer
83 views

Why is the space below the numerator different to the space above the denominator?

I've never noticed it before, but LaTeX puts a lot more space between the numerator and the bar than it puts between the bar and the denominator. Now maybe this makes sense for more complicated ...
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 ...
141
votes
7answers
219k views

How can I get bold math symbols?

To make Latin-letter variables bold I can use e.g. \mathbf{a}, but while putting Greek letters or symbols such as \nabla inside \mathbf doesn't cause any errors or warnings, it also doesn't do ...
3
votes
3answers
197 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} ...
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?
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 ?
3
votes
1answer
64 views

pgfplotstable and _{some text} or ^{such text} in an string type column

So this is the second question I need to ask to get this table working: I'm using this: \documentclass{article} \usepackage[margin=1cm,a3paper]{geometry} \usepackage{siunitx} ...
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 ...
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
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
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
66 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 ...
6
votes
1answer
2k views

Can I insert a vertically centered image in math mode?

In Mikael Öhman's answer to this question, he provides some code for placing an image in math mode as a symbol using the \mathord declaration. I can define a new command in the preamble using this, ...
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:
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*} ...
46
votes
7answers
4k views

Writing readable LaTeX

Lets say I have the following LaTeX code \subsection{Convex sets} A set \( \mathcal{S} \) in \( \mathbb{R}^n \) is said to be convex if \[ \mathbf{x}_1, \mathbf{x}_2 \in \mathcal{S} \implies \lambda ...
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} ...
26
votes
3answers
54k views

how to write ceil and floor in latex?

Is there a macro in latex to write ceil(x) and floor(x) in short form? The long form \left \lceil{x}\right \rceil is a bit lengthy to type every time it is used.
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} ...
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.
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 ...
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} ...