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

10
votes
1answer
171 views

How can I add circles and arrows in linear equation systems?

How can I write a linear equation system that uses circles and arrows to indicate what should be added on each line. This is what I have so far: $S = \begin{cases} x_1+2x_2 - 2x_3 = 1 \\ ...
4
votes
2answers
52 views

How to avoid change of textsize when using underbrace?

I'd like to use underbrace in a formula: \begin{IEEEeqnarray}{r/C/l?s} P_{a} \left( a | \gamma, \epsilon, \hat{K} \right) & = & \frac{1}{1 + \frac{\gamma}{\epsilon} \times \underbrace{ ...
4
votes
1answer
55 views

How to get a bigger bracket? I have tried \left and \right

I have the following code. The problem is the outer brackets are the same size as the inner bracket so it doesn't look that nice. I have tried \left and \right and it doesn't make a difference. The ...
1
vote
3answers
86 views

Space after comma in units package

I have a problem with using the units package. In my thesis I used it sometimes in math environment, sometimes not. Now I realized that there is an addition space after the comma in math mode. I think ...
12
votes
3answers
269 views

Displaymath environment that can align equations and squeezes math

I have a long equation to align. Without squeezing the math, it is just barely longer than \textwidth. However, the align environment doesn't squeeze the math at all, which results in a badbox. ...
7
votes
1answer
136 views

Why and since when does \mathrm render ligatures?

As explained in answer to this question and several others as well as in various other ressources, \mathrm is for setting upright math symbols (and may thus cause problems when used for text). So if, ...
18
votes
2answers
299 views

How to prevent superscripts from moving under \sqrt?

When I put an expression with superscripts under a \sqrt, the superscripts (here "vis") move down a bit. How can I prevent that, so that it looks consistent no matter whether it's under a root or not? ...
1
vote
0answers
58 views

The spacing of `\to`

Let's say I use \def\searrow{\mathbin{\text{\rotatebox[origin=c]{-33}{$\to$}}}} instead of the \searrow. But \mathbin doesn't seem to provide the spacing that \to has; what should it be? Other ...
4
votes
2answers
142 views

LyX analogue for LaTeX \everymath{\displaystyle}: inline math with the style of equations

Is there a way to achieve in LyX what one can achieve using \everymath{\displaystyle} in LaTeX, that is to force all inline math to look the same as math in equations (large integral signs, full-size ...
10
votes
1answer
314 views

How to vertically align underbraces

I am trying to balance underbraces in the equation below, how can I ensure that both underbraces at the same depth? \begin{equation} y = \underbrace{ \left [ x^2 + r^2 (a^2+\frac{a^{0.3}}{b}) ...
6
votes
2answers
71 views

LaTeX math tabbing: Can we make alignat work this way?

The second alignat below illustrates my problem. \documentclass{article} \usepackage{amsmath} \begin{document} \begin{alignat*}{2} a &= & b \\ & & + c \end{alignat*} ...
5
votes
0answers
98 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 ...
3
votes
2answers
48 views

Decrement macro, subtract 1 in side equation

While doing general math inside a math macro is not very feasible. I feel like a mecro that does, only for single digits should be possible, with default for other inputs \dec{1} to 0 \dec{2} to 1 ...
11
votes
2answers
226 views

mathabx and mathtools: \widetilde{} and \dot{} problem

The problem is the odd placement of g in the second line in the align environment. Strangely, the \dot{}-character is only misplaced if it is followed by another character. I need the mathabx package ...
1
vote
0answers
64 views

Alternative for `\linebreak` in inline math mode

Looking at this question and the chat that followed it, I was wondering what would be considered best practise to include line breaks in inline math mode (breqn does not quite work; there's some ...
0
votes
1answer
124 views

Using Trigonometric Functions [closed]

When I type Trig functions using {} or () I seem to get the same result, what is the difference between the two?
4
votes
2answers
182 views

Help me input a column vector

I'm trying to input an arrow vector (a column vector, see the picture) in an align environment, but it reports an error. Can someone show me the TeX code of it in an align environment?
2
votes
1answer
105 views

Integral with a circle and an arrow indicating clockwise or counter clockwise [duplicate]

I am aware of \oint. I want the circle to have a counterclockwise arrow on it, as is sometimes seen in complex analysis.
3
votes
1answer
76 views

Missing var greek letters in math mode using eulervm

The eulervm package lacks the varrho and varsigma greek letters. Can I replace them by some greek letters from a different package? (So as that they rest distinct from their non-variant versions.) ...
10
votes
2answers
197 views

“esint” integrals with default limits

When I'm trying to set a normal volume integral with the esint package, it will be generated with the limits set right to it: A corresponding example code for this is \documentclass{article} ...
5
votes
1answer
136 views

\atop vs. \substack for multiple lines under a sum

I did a search trying to find out how one can typeset multiple lines under a sum and found out that there is the possibility to use \atop or \substack together with a remark that one shouldn't use ...
1
vote
1answer
104 views

Big fractions for exponentials

Does anybody know how to represent this style of fraction? Notice that it is located inside an exponential.
2
votes
0answers
41 views

compute position of each symbol [closed]

I've created a program that generates clickable areas on images with HTML5, taking as input a series of coordinates. Now what I'd like to do is send to that program a .png of a LaTeX expression ...
5
votes
2answers
61 views

replacing eqnarray when several alignment tabs are present

I have three mathematical equations which I would like to have typeset in one block such that they are aligned at the equality sign = and the following comment. Up until now, I've been using eqnarray ...
1
vote
1answer
54 views

Missing $ inserted, any ideas where?

I have been staring at the screen for what seems like hours trying to understand this error. I cannot see why it's giving me an error message. It's more than likely that I have been staring at the ...
5
votes
3answers
118 views

Symbol for logical equivelence

I'm trying to use this symbol in a LaTeX document I'm writing but I can't for the life of me, find how to write it in LaTeX: The symbol means that two expressions are logicically equivalent (i.e. A ...
0
votes
1answer
70 views

Two line expressions using a single bracket

I want to fit two expression inside a large bracket something like this: I looked some of the examples like this one, however, I need variables such as x1 instead of 1. Help appreciated.
1
vote
0answers
77 views

How to make a simple division diagram to a base b? [duplicate]

How can I typeset a simple diagram (dividend-quotient-remainder) in a base different to decimal? For example: $120101_{3} \div 102_{3}$
4
votes
2answers
66 views

\cupdot gives “Undefined control sequence” with MikTek on Windows 7

I am using MikTek 2.9 on Windows 7. When I try to use \cupdot, in math mode, I get an "Undefined control sequence" error message. Is there a package that I need to include to use \cupdot?
6
votes
2answers
442 views

How to create the name space for a kid's math worksheet? and other issues?

I want my worksheet the name and date to the left above the worksheet's title. I also want to learn what code to use to adjust the spacing. The spacing is a little off and I want the two columns of ...
1
vote
1answer
394 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} ...
5
votes
1answer
73 views

missing angle brackets using newpxmath

The newpxmath package (version 2013/12/12 v1.061) makes angle brackets vanish from math mode: \documentclass{standalone} \usepackage{newpxmath} \begin{document} $\langle x \rangle$ \end{document} ...
3
votes
1answer
66 views

Keep getting an error with the code for this equation!

I've been trying to get this to work, but I keep getting errors saying Paragraph ended before \end was complete. I can't see where the issue is though. Could someone help? \documentclass[12pt, ...
1
vote
0answers
56 views

Using oldstyle numbers in XeLaTeX math mode for ONLY inline math

Is there any way to use OldStyle numbers for text and inline math only, while using Lining in the align and equation environments? Ideally via mathspec, but I'm open to other solutions.
6
votes
2answers
160 views

Stretch mathematical symbols in mathmode

For an exercise I have to stretch the summation and other symbols vertically like As you see does the size not change horizontally. Any suggestions on how to do this? I've been looking for quite ...
4
votes
3answers
195 views

Equation with euro symbol

I need to make this equation in LateX but I get some errors when i try to do that. Can you help me please??
6
votes
1answer
50 views

how to have \tag, \text and cases environment like things in eqnarray

I have this journal template that insists that I do not use amsmath in any way and forces me to use eqnarray. I am very used to amsmath and have things like cases environment, \tag, \text, etc. in my ...
1
vote
0answers
84 views

\to or \longrightarrow and \mapsto or \longrightarrow in functions? [closed]

I'm typing up a research project and I am not sure which ones I should use when I'm defining functions. I personally prefer \longrightarrow and \longmapsto but I see a lot of people use \to and ...
8
votes
2answers
94 views

Please help me input the following formula correctly

This is the formula I want to be made in LaTeX. The problem is to make this formula aligned. I've made something like this \begin{gather} 1 = \cos \, (\bar x, \bar x) = \cos^2 \, (\bar x, x) + ...
1
vote
1answer
55 views

Writing text in math mode [duplicate]

I was writing an IEEE paper.I wanted to insert some texts like IMAGE_NEW and IMAGE_OLD but when I am writing it is showing me some error.How to solve this issue.
7
votes
2answers
78 views

Check if in an align* environment

I want to use different styles of matrices if TeX is in an align* environment or in a normal math environment. I already found a solution for checking if it is in math mode (\ifmmode) but not ...
4
votes
1answer
111 views

Widetilde and prime (derivative) position

I need to write something like {\widetilde f}' in my text, but the result looks rather ugly since the prime (derivative) sign is too low. It looks like \widetilde{f'}. Is there any way to do this ...
4
votes
1answer
131 views

Symbols of height intermediate between \big and \Big needed

I consistently find that math symbols scaled with \big/\bigl/\bigr are too small and those scaled with \Big/\Bigl/\Bigr are too tall. Here is an example: \documentclass{article} ...
9
votes
1answer
157 views

ebgaramond interface for newtxmath

Remarks The newtxmath-package comes with support for various fonts, including libertine, minion or garamondx. Personally I like the Garamond very much, but garamondx is not part of the default ...
6
votes
1answer
132 views

Double vertical bar notation

A common notation used for information divergence is D(P||Q). I hope to get something like D(S||Q) where S=||P||/2. I wonder if it is possible to display it nicely ? In such a way that the middle ...
10
votes
4answers
964 views

a small halo symbol

One can generate an oval shape using $\subset\supset$ and adjusting the space in between to make this look like a "halo". Are there any other solutions that would make it look more like an ellipse? I ...
4
votes
1answer
118 views

Aligning piecewise functions and function definition maths

I am unsure how to align the following so that \mathbb{N} is aligned with the n in f(n). I have tried \begin{align*} but that just gave me a bunch of errors. Any help will be much appreciated! It ...
1
vote
3answers
91 views

Putting spaces between two \arrowvert to indicate cardinality of a group

How to put spaces between two vertical lines in Latex for e.g typing the usual notation of cardinality of a group ?
7
votes
2answers
2k views

\mathscr (LaTeX or XeLaTeX)

I'm trying to use \mathscr in my documents, but it just doesn't show up. I'm using MacTeX, with pdfTeX and XeTeX version 3.1415926 and TeXShop version 3.26. As an MWE, I can use: %!TEX TS-program = ...
5
votes
2answers
67 views

How to format a multi-line statement with a label

I am trying to format a multi-line statement with a label. \documentclass{article} \usepackage{amsmath} \usepackage[showframe,pass]{geometry} \begin{document} Let $P(n)$ denote the statement that ...