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

4
votes
2answers
1k views

Writing mod in congruence problems without leading space

I have been writing $a \equiv r (\mod n)$ but this puts a space between the ( and mod. For example, r ( mod n ) instead of r (mod n). So, how do you write r (\mod n) without that space? What ...
2
votes
0answers
36 views

Need to split right bracket at side of matrix into three smaller brackets [duplicate]

To the right of this matrix I have a big right curly bracket with the text "2m terms" that spans the height of the matrix. I need to replace this right bracket with three smaller ones that together ...
6
votes
4answers
2k views

Using LaTeX to render hypergeometric function notation

I decided to look if the solution Caramdir gave in this question would work as well for my attempts to use a new notation for hypergeometric functions. However, trying {}_3 ...
5
votes
1answer
74 views

Math expression in header

I'm trying to put short math expressions in my chapters or sections like this: \chapter{Basic topological concepts in $\mathbb{R}^{n}$ } The problem is that headers seem to ignore the math part and ...
2
votes
1answer
35 views

Need to represent information about a matrix, attached image showing what is needed [duplicate]

The following matrix is of size $10 \times 10$, however it is representing an $m \times m$ matrix. Hence I need to signify that the first five columns represent terms $0$ to $\frac{m}{2} - 1$ and the ...
2
votes
2answers
174 views

LaTeX Error: \mathbb allowed only in math mode.

I'm writing a package which, among other things, gives abbreviations for \mathbb, as follows: \newcommand{\A}{\mathbb A} \def\B{\mathbb B} \def\C{\mathbb C} \newcommand{\D}{\mathbb D} ...
3
votes
1answer
40 views

Vdots are taller than the rest of text [duplicate]

When I use \vdots within the align environment, its size is bigger than of the rest of characters. I want to get rid of the gap (purple colour on the picture below) or somehow move \vdots upward ...
1
vote
0answers
39 views

What are these characters Ö and Þ supposed to be and how do I configure my internet browser to have them load properly? [closed]

tl;dr: My internet browser is not configured properly so characters are not loading properly. I am using the default Firefox 24.0 in Linux Mint 16, and have not installed any typesetting software. I ...
6
votes
1answer
107 views

Is it possible to add new alphabets to unicode-math?

In ordinary LaTeX, one can easily add new math alphabets by using \DeclareMathAlphabet. One is then able to use, say, cmsy, eus, and rsfs letters side-by-side. Unfortunately, there does not seem to be ...
5
votes
2answers
87 views

Big Euclidean norm?

I would like to replace the Euclidean norm and the first pair of brackets with bigger ones but I get errors. Can you help me to fix it? \documentclass[11 pt,a4paper,oneside,openany, ...
25
votes
5answers
9k views

How to best typeset “special” constants (complex unit i, Euler's number e,…)?

I'm trying to come up with a typographically appealing way to express "special" numbers such as the complex unit i = sqrt(-1) or Euler's number e. It has to be such that it cannot be confused with ...
0
votes
0answers
45 views

How do I use different fonts for mathematical equations?

The title says it all. This is my code snippet: \documentclass[12]{article} \usepackage{amsmath} \usepackage{tex4ht} \usepackage{chemarrow} \usepackage[usenames,dvipsnames]{color} ...
1
vote
2answers
53 views

Getting a weird output using \alignat (picture and code included)

When I run the following code \begin{alignat}{2} \text{min} & \sum_{t\in T}\sum_{v\in V}\sum_{(i,j)\in W_{v}}(c_{ijv}-u_{i}- v{j})x_{ijvt}+\sum_{j\in J}\sum_{t\in T}M_{jt}s_{jt} \\ ...
10
votes
5answers
849 views

A \boxed alternative with nicer spacing?

I like using \boxed to emphasize my answers in homework problem sets. However, whenever I use superscripts/exponents inside the box, the box becomes taller than it seems it should. This causes two ...
2
votes
1answer
58 views

Error: Command \ invalid in math mode

I am getting the following error: Command \ invalid in math mode. Why? Compilation ends but no PDF is created because of those errors. This seems to be the problematic piece of code but I don't ...
3
votes
1answer
38 views

Page break in dmath equation environment

I have a very very long equation. I want it to split over different pages automatically. My quation contains 1700 terms and it may go for many pages. Is it possible with dmath or any other way? e.g., ...
1
vote
1answer
79 views

Error in a math expression

I have a problem with this expression: $$n \geq \Bigg\lvert \bigcup_{l \leq |A_{i}| \leq 2l} |A_{i}| \Bigg\rvert \geq \sum_{i = 1}^{N_{l}}\Bigg\lvert A_{i} \Biggl \bigcup_{j =1}^{i-1} A_{j}\Biggr ...
1
vote
2answers
47 views

Parenthetical Errors [closed]

\documentclass{article} \begin{document} 8.) Now calculate the logarithm of the $n$th term in the sequence, i.e. log($a_{n}$). \indent Use the series representation of the logarithm \\ \\ \indent ...
7
votes
2answers
72 views

Right-aligning text over expression

Basically, I want something like this: $$ \overset{\qquad\quad\; 2}{\sqrt{x+x^2}} $$ where the expression above is (automatically) right-aligned, but I have no idea how to achieve this. (The ...
0
votes
0answers
42 views

Derivative in two point [duplicate]

I need to write a derivative formula with two variables after the "pipe" symbol. I have used the following \begin{equation} \left. \frac{df}{dx} \right|\ ^{x=0}{_{u=0}}\end{equation} but it doesnt ...
4
votes
1answer
100 views

equation in math mode

\begin{equation} E-\epsilon_{i}-T_{i}-V_{0,i}(\textbf{R}) \tilde \chi_{i}^(+)(\textbf{K_{i}},\textbf{R})&=0 \end{equation} Missing $ inserted and I don't know why. Can anybody help me? thanks ...
5
votes
1answer
85 views

Break in square root line

I'm having a problem where the line that runs the top length of my square root sign is discontinuous. \begin{equation} N_t(\text{V})=\sqrt{\sum_{i=0}^{n}N_i^2} \end{equation} Yields this... ...
6
votes
2answers
118 views

How can I change the math font in slides class?

I use the "slides" class to get full size equations for a presentation. (Yes, it needs to be in Powerpoint ;) ) However, I want to have the standard math font (like in the article class). There seems ...
6
votes
1answer
501 views

Subscript spacing in equation

I have a document, where I want to use $\tau_{ff}$. If this is rendered it looks like a space is inserted between the two f's. $\tau_{rl}$ looks fine ... Where does this additional space come from ...
50
votes
4answers
45k views

Command for argmin or argmax?

How can you get the argmin or argmax in Latex? Two solutions I found are: \underset{x}{\operatorname{argmax}} \DeclareMathOperator*{\argmin}{arg\,min} Any other ideas? [1] ...
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, ...
5
votes
1answer
93 views

Problem with spacing after \[…\] environment when using the \textcolor{} command

I'm getting odd spacing/indentation behavior when the \textcolor command is combined with the \[ ... \] environment. I did find a fix by putting % in a couple places, as outlined below, but I'd like ...
5
votes
2answers
88 views

LaTeX parenthesis problem with multline environment [duplicate]

I have a problem with the different size of parenthesis with multiline (see image). Actually i don't care about the different size of the square parenthesis on M and \bar{M} but I really care about ...
3
votes
1answer
63 views

punctuation mark should be placed after the end of math mode

When writing there are $n!$ possible permutations of $n$ objects, lacheck complains that "punctuation mark should be placed after the end of math mode". Why is this, and how should I do this ...
18
votes
4answers
1k views

Underscore in textmode vs mathmode

I use _ character often in text mode, so I changed category of underscore: \catcode\_=12, but that applies also to mathmode and now I'm unable to make subscripts with underscore in mathmode. Is there ...
2
votes
2answers
114 views

Why can't I renew the \label command in math mode?

When I'm writing a paper and want to refer to a section, figure or equation in a different part of the document, I end up spending a lot of time scrolling through my source code so that I can see what ...
0
votes
0answers
34 views

Get a large 0 in a diagonal or triangular matrix matrix [duplicate]

I am interested in creating a matrix that is diagonal (or triangular even) that has a large 0 below the diagonal. Is there a way that I can create a matrix that has entries on the diagonal and then ...
2
votes
1answer
31 views

Substitute characters in text-mode with their math equivalent

I'm looking for a TeXway to substitute - (or other characters) while in text-mode with their math equivalent (i.e. $-$) in one environment/group. I'm looking for a 'switch' (\foo # and not \foo{#}). ...
5
votes
1answer
267 views

Putting normal letters in between Greek ones

So I am trying to write out Gauss' law for gravitation and I am having a hard time figuring out how to write it out without an error. I am currently trying to write in an equation block ...
35
votes
6answers
1k views

Microtypography on equations

Is there a way to make all three lines of math in the code below take up the same amount of length by use of font expansion? I know too little about microtype to even see if it could offer a solution. ...
4
votes
1answer
35 views

How to use the \pderiv and \D macros of the cool package with subscripts?

Is it possible to use the \pderiv or \D macros of the latex cool package when the derivative order and the variable uses a subscript? This fails with a "double subscript" error: \D[a_1]{f}{x_1} ...
2
votes
1answer
95 views

How to get a calligraphic Pi in latex? [duplicate]

It would be easy to do calligraphic letters as: \mathcal{AABBCCQQZZ} As But How can I get a calligraphic \pi or \Pi, I mean capital version of Pi. I clearly remember that I saw calligraphic ...
9
votes
2answers
131 views

Overline thickness

Is there a way in latex to change the vertical thickness (height) of the line generated by the \overline command? \[ \overline{\overline{A \vee B}} = \overline{\overline{A} \wedge \overline{B}} \]
4
votes
2answers
221 views

how to make maths equations start at the left?

how to make maths equations start at the left? $$ \lim_{ x \to 0} \frac{\log {10 + \log(x+ \frac{1}{10})}}{x} = 10 $$ this display on center we want to start it left
0
votes
1answer
21 views

How to deal with theorem vs thm mismatch

I often find that I want to include a LaTeX file that has uses the environment theorem defined, but my document class has instead defined environment thm, so I get errors like Environment theorem not ...
4
votes
7answers
1k views

Can I make all my math upright?

I'm not a fan of italics in math mode, is there a way to make all my math upright? When using the MinionPro package, I'm quite happy with the frenchmath option, which I believe turns all greek ...
2
votes
2answers
44 views

Using \eqno in math mode

does anyone know, why do I keep getting this error message? !You cant use '\eqno' in math mode. ..and it's pointing at this line in my code: \left(\sqrt[5]{x^4}\right)’ &=& ...
5
votes
2answers
99 views

Bold math in the title of an article

Can this be done? I can't find anything anywhere on this -- which is very strange to me! Addendum: Thank you everyone for the hints. The problem was that I was using a particular .sty file. I have ...
2
votes
4answers
201 views

“Where” notation in definition

I need to define a rather complex operation. Hence I want to use the classical "where" definition style, i.e. Foo = Bar(x,y) WHERE x = Baz y = Fob My attempt so far in latex is: \begin{align*} ...
20
votes
4answers
67k views

Not equal sign (≠) with a vertical bar

Is it possible to get a \neq but with a vertical bar instead of a slanted one? There are inequality operators like AMS's \gvertneqq that feature this kind of "not equal" but not without mixing it with ...
10
votes
3answers
384 views

Which fonts can be used with *unicode-math* package?

What can i put into \setmathfont{<...>.otf} for the unicode-math package to make it all work (with XeLaTeX or LuaLaTeX)? There are several suggestions on the GitHub page of unicode-math, but ...
0
votes
1answer
107 views

How to draw a induced charge under soliton - Feynman diagram?

Can someone illuminate line-by-line clear, how to draw this diagram? Just a clear LaTex code is enough. Thank you!! Either for the case: (1) in an equation or (2) in the figure.
5
votes
2answers
295 views

Prettying up this equation from Mathematica

I like to type in 2d maths into Mathematica and then generate latex code for it. It has been working fine so far until I attempted this expression: TeXForm[HoldForm[ S (k*L) = (4*l + 1)/ 2 ...
3
votes
2answers
114 views

Strings and Harps to be drawn

I'd like to draw a picture similar to the hand-drawn one below: With labels $0$, $1$, $\Psi_{L,S}$, $a_1$, $\ell_i + 2\varepsilon$, $\Psi_{L,H}$, $b_1$, $-\varepsilon$, $1 + \varepsilon$, ...
1
vote
0answers
41 views

How can I make text inside set notation look like normal text?

I'm very new to LaTeX, and have never been very good with computers, so apologies for not knowing how to post questions on here properly or missing out anything important. I have this: ...