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

6
votes
0answers
1k views

Inline Tex Math expressions positioning in Anki [closed]

I'm not exactly familiar with how Anki processes the inline math expressions, but the developer advised me to ask this question on a Tex discussion platform: The problem is that the rendered formulas ...
15
votes
2answers
262 views

Placing math environments inside math environments

I have a macro which appears throughout my document in various places: \newcommand{\placefraction}[2]{ $\frac{#1}{#2}$ } Sometimes it is placed with regular text. Sometimes it is placed within ...
9
votes
2answers
16k views

Bold, italic math (\bm) and sansmath

I'm typesetting both text and math in Latin Modern, except for the figures, where I would like to use a sans serif font for both text and math. I need to follow the ISO recommendations for math ...
3
votes
1answer
484 views

Loading a math font with stylistic set in plain XeTeX

How does one activate a stylistic set in plain XeTeX? I have tried: \font\test="XITS Math:+ss01" % for calligraphic \textfont2=\test $ \fam2 A $ \bye but with no luck.
3
votes
1answer
281 views

How do I get rid of this line spacing after multicols?

How do I get rid of the extra spacing after multicols? \documentclass{article} \usepackage{amsmath} \usepackage{anysize} \usepackage{lipsum} \usepackage{multicol} \begin{document} ...
67
votes
2answers
22k views

Using \colon or : in formulas?

I noticed that in many documents you encounter $f: X \to Y$ instead of $f \colon X \to Y$. Another example are quantified expressions: $\forall x: P (x)$ versus $\forall x \colon P(x)$. I find the ...
4
votes
1answer
312 views

Optional math symbols as arguments to custom command

I have a custom command defined as \newcommand{\transition}[1]{$\stackrel{\texttt{#1}}{-->}$} The argument that I pass to the command can sometimes be normal text and thus is formatted using ...
10
votes
1answer
667 views

Using a fancy font for mathmode, falling back to XITS for missing symbols

I'm using a silly font inside an environment, so that the text inside looks quite different than the surrounding text. However, I am having trouble getting mathmode to look silly, but legible. ...
17
votes
2answers
632 views

Are there good resources for converting TeX type files to spoken word?

For a variety of reasons I am very interested in having audio versions of various texts. In some cases I can get these texts in LaTeX format (with equations). Obviously I can use "normal" ...
1
vote
1answer
402 views

Display math formula in the middle of a line

I am writing a report using some template with amsmath. The equations are displayed in a way that they are flushed to the left with certain space in front. Does anyone know how it happens? How can I ...
8
votes
2answers
2k views

Coloured math in beamer

I have a question: Is there any way to have math (everything between $s) in different colour than text (for example, green) in beamer?
8
votes
3answers
7k views

Different \mathcal O

I would like to get a script O looking like this: However, \mathcal O and \mathscr O give , which are slightly different. This is not the pre-1992 \mathcal O.
6
votes
1answer
909 views

Inserting arrays into semantic's inference rules

I want to typeset inference rules containing tables (or arrays) in the premises. I'm using the semantic package, which sets the premises (and conclusion) in math mode, so I thought this might work: ...
2
votes
2answers
264 views

how to encourage custom commands to adopt the math font

When defining new commands or math operators, I have trouble convincing the operator to adopt the ambient math font instead of the default CM font. I observed that if I use the mathdesign package, ...
17
votes
2answers
2k views

How do I get different colors for math and for text?

I want to include something in my LaTeX article that will make all mathematical formulae appear in black, while all text (including everything inside \text{}s in the middle of mathematical formulae) ...
17
votes
2answers
14k views

Normal subgroups

To typeset that H is a normal subgroup of G, I would use H\unlhd G. However, the result doesn't satisfy myself, since the G seems too close to the triangle: Adding a space \ makes "too much ...
30
votes
4answers
4k views

When to use math mode?

In my document, the numbers inside math mode appear differently than those numbers out. Sometimes, I have numbers like "10 squared" within a paragraph, so it seems useful to use $10^2$. However, maybe ...
10
votes
2answers
543 views

I want to have '' after sum

\sum_{k=0}^{n} f(x_{k}) I want to change sth in this code to get sth like this image. I have problem where put ''.
7
votes
3answers
4k views

Limits used as exponents — how to write under the limit symbol without using \displaymath?

If one needs to write a limit as an exponent, one might have this dilemma: if you use \displaymath, "x to infinity" will be nicely printed under the lim symbol, but your exponent will be using the ...
12
votes
3answers
6k views

How to typeset the subscript of a matrix?

What is the correct way to typeset a matrix or vector with subscript/index? Should the index be part of the vector with the Variant 1: \vec{x}_i \mat{A}_i %\mat being defined as upright bold ...
10
votes
2answers
196 views

Different symbols in $…$ and align environments

Is there a way to force LaTeX to produce different symbols either in $...$ or \begin{align}...\end{align} environments? For example $ \mymacro $ should lead to A while \begin{align} \mymacro ...
5
votes
1answer
363 views

What's wrong with my braket macro?

Based on egreg's alternate solution to my previous question from which I learned the idea of making characters into macros, I've now defined a different syntax for bra-kets which I actually like even ...
11
votes
1answer
994 views

Too much space after integral sign with unicode-math and lualatex

(I had a feeling this was a duplicate, but couldn't find an older question about it. Forgive me if I'm just bad at searching.) Consider the minimal example \documentclass{article} ...
1
vote
4answers
220 views

‘A’ with a lower-case omega on top

How can I write this in TeX (or LaTeX)? Also, strictly speaking, this is not part of my question, but has anyone seen notation like this? If so, please answer this question.
3
votes
1answer
706 views

How to refer to labels in math mode from math mode

If you refer to item labels that are written in math mode from some other math mode occurrence, then you get errors. I guess it's because it leads to nested math modes. Is there any way to avoid these ...
5
votes
2answers
9k views

How to reduce spacing in equations?

I want to typeset short equations (variable = value) saving space. Is there a global parameter which allows to reduce the space between operators and operands in math mode? I found out, that there ...
4
votes
1answer
4k views

Capital Sigma in bold mathrm

I want to write capital \Sigma in bold mathrm. I tried \boldsymbol{\mathrm{\Sigma}} but seems like this does not work. Any help in this regard will be highly appreciated. Thanks
6
votes
1answer
653 views

Could icomma conflict with siunitx?

I'm also having the problem with the space after a comma in decimal numbers (like discussed here: German language: use of comma in numbers) and I wonder if I can use both the icomma-package (which ...
11
votes
2answers
3k views

Gaussian reduction of matrices

I have to show a Gaussian reduction in an assignment, and I was wondering what the more space-efficient and neatest way of expressing this is. I thought about using \begin{smallmatrix} (it's only a ...
18
votes
3answers
17k views

How to provide a definition for symbols in a LaTeX math equation?

Say I have an equation: x = R + E What's the best way to provide a definition for R and E? Is there a way to include a line under the equation saying what the variables mean (i.e. a "where" ...
5
votes
2answers
268 views

How to number a set of equations separately from another set?

How can I number a set of equations separately from another set? For example, if we have a file with this contents: \documentclass{report} \usepackage{amsmath} \begin{document} \begin{equation} ...
11
votes
1answer
4k views

Annotating individual math terms with braces

I am trying to annotate individual terms of a mathematical expression, as depicted below. The problem I get is that the comment seems to be taken as part of the fraction, which unnecessarily extends ...
1
vote
0answers
213 views

Custom Equation Numbering [duplicate]

Possible Duplicate: Label equation with a symbol I wanted to know if there a way to create your own custom markings for equation numbering instead of the automatic numbering. Preferably, I ...
64
votes
2answers
13k views

automatic size adjustment for nested parentheses

As I prefer outer parentheses to grow larger in nested expressions, I happen to insert \bigl and \bigr and its larger cousins a lot. I have always wondered whether there is a way to do this ...
4
votes
2answers
13k views

\leftarrow does not work

I am trying to write a document in which for some reason some of the things like \overleftarrow{example} works but \leftarrow and \rightarrow etc. does not work. Any suggestions?
8
votes
1answer
14k views

Is it \limsup or \lim\sup?

Is the concept of limit superior in mathematics written as $\limsup$ or $\lim\sup$?
8
votes
4answers
1k views

Better transitive closure of labelled arrow

I think the answer will be easy, but I haven't found it yet: I use labelled arrows like \xrightarrow\tau a lot. Sometimes, I need the transitive closure of such relations, which I write ...
35
votes
4answers
10k views

How to draw arrows between parts of an equation to show the Math Distributive Property (Multiplication)?

there is a part of my paper where I use the distributive property and it's not that clear for the reader to see (I'm using in proposional logic for a proof). The logic equation (part of) is: (l_{1}) ...
10
votes
4answers
6k views

How to export a equation as a image without background?

For example, if we have a equation on a file like: \documentclass[12pt]{standalone} \usepackage{varwidth} \usepackage[utf8x]{inputenc} \usepackage[T1]{fontenc} \usepackage{amsmath, amssymb, ...
7
votes
1answer
256 views

Using “found” code to typeset augmented matrices, want [] instead of ()

Here's a minimal example of what I'm doing presently: \documentclass[a4paper,12pt]{article} \usepackage{amsmath} \usepackage{arydshln} \makeatletter \renewcommand*\env@matrix[1][*\c@MaxMatrixCols ...
3
votes
4answers
363 views

Add missing () to mathematical functions

I am trying to get LaTeX to render ${f}^\prime = e^{x\,\log \cos x}\,\left(x\,\log \cos x\right)^\prime$ as ${f}^\prime = e^{x\,\log \left (\cos \left (x \right ) \right )}\,\left(x\,\log \left ...
4
votes
6answers
11k views

How can I auto adjust a equation to appear in the entire page? (Scale to equations, is this exist?)

If I have a document like this: \documentclass[landscape, 12pt]{report} \usepackage[landscape]{geometry} \usepackage[utf8x]{inputenc} \usepackage[T1]{fontenc} \usepackage{amsmath, amssymb, ...
14
votes
1answer
8k views

How can I position equation numbers always to the left side?

Equations and amsmath environments put equation numbers to the right side by default, the output of \begin{multline} some equation \end{multline} is: equation (number) How can I change it this ...
8
votes
2answers
2k views

How to write this math term?

I have the following sequence definition: I can't find a way to write this in Latex. Any hints where to start?
3
votes
1answer
269 views

How can I make sizes of different symbols equal?

I have an equation like this \begin{gather} n_i(t-1)= \sum_{j \in S} v_{ij}(t) \\ n_j(t)= \sum_{i \in S} v_{ij}(t) \\ \forall_{t\in T_0} \sum_{i \in S} n_i(t)=N \end{gather} The third part of it ...
26
votes
5answers
9k views

Is there a wider equal sign?

I have defined the equal by definition sign: with this code: \newcommand{\eqdef}{\overset{def}{=}}. However, "def" extends over the edges of the equal sign. Is there a wider equal sign to use?
4
votes
3answers
1k views

\underbrace at a strange place, spanning array columns

Take a look at the following code: $$\begin{array}{rr|r|c|l} vd_2:&\raisebox{0pt}[0pt]{\makebox[0pt][l]{$\overbrace{\phantom{b_1\dots b_{n-l_{k-1}-2k}\hspace{2\arraycolsep}b_{n-l_{k-1}-2k+1}\dots ...
2
votes
1answer
561 views

How to use \phase on MacTeX?

I'm trying to obtain the effect of the \phase command as discribed in the The Comprehensive LaTeX Symbol List (page 70) I've added the amssymb and pict2e packages correctly (no errors on adding ...
7
votes
4answers
1k views

A \boxed alternative with minimal spacing?

The following code comes from this post. The problem is that I would like a way to automate the size of the box so as to be very small with a few of spacing, but the following solution doesn't work ...
5
votes
2answers
338 views

Putting a function into a new command with optional arguments

I know I have asked this before. But I just can not wrap my head around some things in LaTeX. Like the optional arguments. I have gotten some clues how to do it for comands, but not quite sure how to ...