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

12
votes
3answers
8k views

How to put something at the top of the \longrightarrow?

I would like to put something at the top of the \longrightarrow, something like \longrightarrow^{k\rightarrow\infty}. However, instead of putting k\rightarrow\infty on the top right corner, I would ...
3
votes
1answer
54 views

Use \int\limits by default, except for inline math

How can you instruct latex to use \int\limits as default for \int except when it's in inline math mode? Example: In display math: \int is replaced by \int\limits In inline math: \int should stay ...
2
votes
1answer
30 views

How to make the distance between two rows larger in array?

I found a mathematical formula in mathdesign document, it looks good and elegant When I try to type it as it looks, what I got is always not as good as origin. The code I use is ...
16
votes
1answer
17k views

How do I get normal-sized fractions in my matrices?

I would like to write something like the definition of a gradient operator in cartesian coordinates. \usepackage{amsmath} \begin{equation} \nabla \Phi = \begin{pmatrix} \frac{\partial ...
1
vote
1answer
172 views

Bold advanced math symbols

I am looking to get bold math symbols beyond simple characters. In particular, I'm having trouble with the following: \bm{$a\xleftarrow{r} b$} I've tried using several other packages besides bm, ...
2
votes
1answer
40 views

How to write notations of equations in LaTeX. (Text and Mathematical operator together) [duplicate]

I want write the following sentences in LaTeX. n_e and n_i are the density of electrons and ions; m_\alpha and Z_\alpha are the mass and charge number of species \alpha; v_e and v_i are the ...
13
votes
2answers
8k views

The symbol for a map which is an isomorphism?

Suppose I have a map A → B which is an isomorphism. I'd like to represent this as something that looks like \rightarrow with \simunder it. I could try \underset{}_{}, but is there already a ready made ...
2
votes
1answer
29 views

Make a tall rectangular array square

I have a tall array that I would like to make square. Unlike the solution here, which works but makes the array wider to match up with the width, I would like to decrease the spaces between rows to ...
1
vote
1answer
56 views

Bad spacing around $\in$ symbol before math calligraphhic letter

I'm using a math calligraphic font for some set U, and when I tried to state that X is an element of U $X\in\mathcal{U}$, I obtained a horrible result. Below is the code, with some other examples for ...
15
votes
2answers
1k views

Draw Lewis structures like a book

I want to draw a Lewis structure as in the picture. I tried to do with chemfig but does not perform the separation of the points and a minus in the superscript.
0
votes
0answers
37 views

command for calligraphic lowercase latin and greek letters

I am wondering whether calligraphic type command exists, that supports both Greek and Latin (lowercase) characters in math-environment. Let's say that I have: \documentclass{article} ...
3
votes
2answers
51 views

auto-resizing parenthesis in math formulas

I am looking for a way to have auto-resizing parenthesis on math mode. In a formula like (a * (b + c)), I'd like the external parenthesis to be a little bigger. Ideally, this would be done without ...
1
vote
1answer
352 views

Why is the following LaTeX code invalid?

I am trying to compile a document using lyx and the following line: $Encrypted(k_\left\{subcontractor,airplane\right\}, softwareBytes | HMAC(softwareBytes))$ gives an error as if the first and ...
2
votes
1answer
46 views

Mathematical fraction of text descriptions

I know exactly how to generate it, but I want a more efficient way. Anybody can help? \begin{equation} \nonumber n=\frac{\mathrm{maximum \ fraction \ of \ the \ river \ that \ a \ boat \ can ...
5
votes
2answers
60 views

Straight quotes in math equation?

How can I put straight quotes inside a math equation? I would like to use straight quotes to surround a string-like piece of data that is displayed using \mathtt. Single or double quotes are both ...
6
votes
2answers
80 views

How to prevent uneven spacing between words

In the following example, I get awkward spacing in a multicol environment in the second question. Notice that the words "Which of the following" are not spaced as they are in the first question. I'd ...
1
vote
0answers
24 views

Adding vertical padding to characters in math

This is my first post here, so please bear with me. I'm writing a dissertation with a heavily modified version of the book cls. This dissertation is very equation-heavy. I'm writing vectors in ...
5
votes
2answers
3k views

Anki - LaTeX, Math Font Size, & DeclareMathSizes

I use the Anki flashcard program and render math equations using LaTeX within the program. The problem is that the font sizes are generally too big, unless the equation is really long, in which case ...
2
votes
2answers
34 views

How to center an index or variable under an expression or word in math-mode

How can I get the the term shown in the picture: $\underline{x_a}$ should be centered under max. What I know is the structure below, but this is not what I am looking for: $max_{\atop ...
4
votes
1answer
65 views

How do I get the “normal” theta with ebgaramond-maths in pdfLaTeX?

With ebgaramond-maths in pdfLaTeX, I'm getting a theta (with $\theta$) that's sort of a sparse, cursive, loopy thing. I want the normal theta. Looking at ...
2
votes
1answer
34 views

Doing case analysis on an argument of a macro

Background: As has been discussed here, there appears to be no widely accepted typographical standard for logical quantifiers. To address this I defined in my paper the following macro: ...
3
votes
1answer
124 views

Math command that works in text and math mode

The command \newcommand{\rsim}{\text{$\overset{r}{\sim}$ }} works in text and math mode. That said, the workaround looks somewhat ugly, as text mode and math mode are summoned for a single ...
13
votes
1answer
501 views

Symbol for m by n matrix

I have been using m \times n to denote the size of a matrix. But lately I've decided that it has too much space and doesn't look quite right (to me). Presumably the largish spaces are present because ...
2
votes
1answer
28 views

Hphantom of minus sign in math mode

I would like to align the parenthesis in following two equations using \hphantom \documentclass[varwidth]{standalone} \begin{document} \noindent $d\cdot i\hphantom{j}\qquad\hphantom{-}\;(\ldots)$\\ ...
6
votes
2answers
5k views

Why does lim_{n\to\infty} work in my LaTeX document?

lim_ is not a command in LaTeX because all commands begin with a back slash. However, why does lim_{n\to\infty} work in math mode? What is lim_ if it is not a command?
32
votes
4answers
27k views

Bold math: Automatic choice between \mathbf and \boldsymbol for Latin and Greek symbols?

This is a follow-up to this question. Suppose you want to denote vectors by upright bold letters; then \mathbf{u} works fine, except that if it's a Greek letter you have to use \boldsymbol{\omega} ...
2
votes
1answer
42 views

How to put subscript on a letter

How can I write a letter with a character above and under it?For example a V with 1 above and 0 under? Thank you!
0
votes
2answers
31 views

Making bold subsection-headings in math, but not bold in ToC

I am writing in the document type article, and I wish to have my subsection appear in bold itself, but appear normal in the ToC. I am trying to write a chemical formula, which automatically converts ...
4
votes
2answers
74 views

Graph theory notation

I am writing a TeX document with some graph theory notation and there is some notation I couldn't get: I checked in Word and it's Cambria Math font, but when I used the {unicode-math} package it ...
3
votes
1answer
231 views

Accents not positioned correctly over rsfs letters

On my computer, the file \documentclass{article} \usepackage{mathrsfs} \begin{document} $\tilde{\mathscr M}$ \end{document} renders as But shouldn't the tilde be shifted to the right, so ...
1
vote
1answer
53 views

Bold row in table with first column in math mode

In my LaTeX document I have quite a few large tables where I would like to set the first row in bold font as well as the first column. This works nicely with some well-known tricks. However, when my ...
2
votes
1answer
23 views

Using struktex unintentionally changes math font

I'm using the struktogram environment from the struktex package to draw structograms in my report. The problem is that the package apparently changes some font definitions, so the formulae in equation ...
3
votes
2answers
161 views

How to give some text an equation number

I want to be able to write the following in LaTeX We make the further assumption that \begin{equation} \label{eqn:assumption} There is a bounded linear operator $B:X\to X^*$ such that ...
14
votes
7answers
3k views

Word 2010 on typesetting math [closed]

I tried to find that online, but all I found was: "Word bad, (La)TeX good! Word ugly, (La)TeX pretty!". I want an honest take from someone who used the new Math system in Word 2010, preferably who ...
3
votes
1answer
198 views

Writing functions and LaTeX

How do I write a function in LaTeX? I tried writing f(...), but it just appears as a normal f. Do I have to add a math package or is it already in LaTeX
8
votes
4answers
348 views

Nice display of proof steps without eqnarray

This is a follow-up question to: Is eqnarray really obsolete? The background is that I want to follow the general advice to avoid eqnarray. However, while working on old documents still containing ...
2
votes
3answers
3k views

Force Computer Modern in math mode

I am writing a presentation using the beamer class and XeTeX. I have changed the sans font using \setsansfont. Now some symbols in my equations are rendered using the mono font (like the lowercase ...
2
votes
2answers
48 views

Conditional equations with with one curly bracket in LaTex?

How would I code something like this I've got the code \begin{equation} L = \begin{cases} 1 & \text{if $i = j$ and $deg_j \neq 0 $} \\ stuff & ...
0
votes
1answer
24 views

Alignment issue with \overline{x} [duplicate]

I used LaTeX to write a document, and I was writing complex conjugates, so I had to make line a line on top of each number like this \overline X\cdot\overline y But there's an alignment ...
30
votes
3answers
85k views

How to do the 'curvy L' for Lagrangian or Laplace Transforms?

I am new to TeX, working on it for about 2 months. Have not yet figured out how to script the 'curvy L' for Lagrangian and/or for Laplace Transforms. As of now I am using the 'L' - which is not good! ...
4
votes
1answer
44 views

Breaking equations with different alignments

Suppose I have an equation which is too long for one line and I would like to split it over two lines. However, I would like the first line to be left-aligned and the second to be right-aligned w.r.t. ...
4
votes
2answers
63 views

Parallel resistance command

I've been looking for a way to typeset the parallel of two resistances. I'm aware of the \parallel symbol, but it has the limitation that it won't adapt its size; i.e., the following MWE won't ...
0
votes
1answer
31 views

Avoiding sans serif characters when using \text in mathmode

I'm writing a Physics dissertation. The body text is in sans serif font. However, I'd like the font to remain serif in math mode. For example, typing $V_\text{NL}$ in mathmode gives a sans serif ...
6
votes
2answers
179 views

double sqrt (surd) symbol

I want to define a macro that prints two adjacent sqrt symbols. (Notation from Cauchy's analysis book). I get something close but the spacing is changing depending if there is a number before it. ...
1
vote
2answers
66 views

Typesetting horizontal line used in logic

I am trying to typeset a set of rules of a calculs which should look as the examples in the attached pictured. In the example rules are written in classical notation of logic. I especially wonder ...
8
votes
4answers
951 views

Making an anti-clockwise circled arrow around a + sign in a math environment

\makeatletter \newlength\@SizeOfCirc% \newcommand{\CricArrowRight}[1]{% \setlength{\@SizeOfCirc}{\maxof{\widthof{#1}}{\heightof{#1}}}% \tikz [x=1.0ex,y=1.0ex,line width=.15ex, draw=black]% \draw ...
2
votes
2answers
120 views

Auto-linebreaking in underset

I often find myself writing explanations to passages in (in)equality chains directly under the (in)equality signs, by putting an underset which puts a vertical line starting from the sign and going ...
0
votes
0answers
68 views

How to make to work $\mathbb$ in TexStudio? [closed]

I am using TexStudio 2.8.8 for compiling my TeX documents. I am getting an error with contains the line $\mathbb{Z}$ showing that it is undefined control sequence. How should I rectify it? I have ...
15
votes
3answers
4k views

Can I insert an image into an equation?

I would like to use a small image in an equation, where a symbol like \alpha might otherwise be. Is there a nice way to do this?
2
votes
1answer
33 views

Horizontal spacing for function arguments in fractions

I'm writing with collegues on a document that heavily uses one kind of custom operator (here: a probability density function). We have not decided finally what symbols to use. Consequently, we use a ...