{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
1answer
32 views

How to write a text under subscript [duplicate]

I know two different ways to write the following: We can either type $(a_{ij})_{\mathop{1\le i\le n}\limits_{1\le j\le n }}$ or, as shown here, $(a_{ij})_{\underset{1 \leq j \leq n}{1\le i\le n}}$. ...
2
votes
1answer
33 views

Spacing and size of my matrix displays

I am displeased with some of my display in the following equation : \begin{frame} \begin{align*} \left[ \begin{array}{l} \dfrac{\partial \log L}{\partial b} \\ ...
1
vote
1answer
34 views

Center align after horizontal line inside an align environment?

I am trying to add a horizontal line in an align environment using the macro provided in this questiion and Package amsmath . The horziontal line looks okay with the equation but the contents below ...
1
vote
1answer
39 views

Nice line-break in inline math within theorem environment

This is my first question here, I hope it's not bad (please bear with me if it is). I have quite a specific problem concerning inline math and theorem environment. In general, I want to obtain the ...
2
votes
1answer
46 views

Typesetting Sets

I adapted a solution from Typesetting coordinates to typeset sets, but it seems to have difficulty with nested usage. $\coord[\big]{0,1, \coord{A,B,C}, \coord{3,2,1}}$ yields: Code: ...
1
vote
1answer
19 views

You can't use `\eqno' in math mode,Missing } inserted

I understand from previous post that this error come when you have extra {,( involved. But in my case i am not able to find any such case. \begin{equation}\overset{\wedge}{\pi}\left(\beta/ A_n\right) ...
1
vote
0answers
73 views

What is the font used by Nature magazine? How can we get the same or similar text font and math font in LaTex? [duplicate]

For example, in this paper: http://www.nature.com/nature/journal/v529/n7587/pdf/nature16961.pdf How can we get the same or similar text font and math font in LaTex?
6
votes
1answer
536 views

Reproducing Gauss' famous proof

The following appears in a text (in the context of generalizing Gauss' famous proof): I would like to reproduce this, but I cannot figure out how to get the alignment down. I thought of trying to ...
5
votes
1answer
106 views

Left-justified text with wrapping math

I would like left-justified text with embedded math which wraps in a manner similar to the behaviour with fully justified text. It seems LaTeX will wrap math at "sensible" points (e.g. between certain ...
2
votes
1answer
38 views

Align text by numbers in table columns

I need to align the text in columns by decimals in the numbers. However the numbers go together with text so I can not simple use dcolumn package in 5th column as in the 1st one. If I split to more ...
0
votes
0answers
17 views

How to use '\' inside $$ [duplicate]

How can I make \ symbol inside $ $ in latex. As \ is used to start all the commands, so if I want to write some set A which excludes a few elements then usual math way is to write them as $A\ ...
4
votes
1answer
111 views

Equations with italic characters

I would like this equation: \begin{equation}\label{equ3} \textit{E}=\sqrt{p^2c^2+m_0^2c^4}=mc^2 \end{equation} to be shown in a nice way, italic characters, but I cannot. Any idea? it is my ...
2
votes
2answers
45 views

How do I adjust or suppress interletter spaces in math mode

In other words, how do achieve the effect of wrapping an entire equation in \mathit, except without italicizing numbers? More generally, how do I change the amount of whitespace that's added between ...
0
votes
1answer
50 views

tufte-latex: math tag into margin

How can I push a \tag of a math environment into the margin when using tufte-latex? I tried to modify the answer in margin note left of an equation? but I didn't understand the command. Here is a MWE ...
2
votes
1answer
31 views

Why does combining arrays and \left/\right cause alignment?

The following MWE is rendered as shown below: \documentclass{article} \begin{document} \begin{array}[t]{@{}l@{}} \left[\int abc\right]\\ \left[abc\right] \end{array} \end{document} Why ...
0
votes
1answer
36 views

Place tikzmark at Vertical Center of Math Line

Based on a previous question I asked, I have created the following: \documentclass{standalone} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage[fleqn]{mathtools} ...
21
votes
4answers
13k views

\hfill in math mode

Is there any easy way of declaring a new command which emulates \hfill in math mode. I don't want flalign or something similar. I want to use the command in the same way (and with the same freedom) I ...
8
votes
2answers
332 views

Inconsistent superscript placement in $q_x^{n_x} q_y^{n_y}$

As part of a document, I am typesetting the objects q_x^{n_x} and q_y^{n_y} right next to each other, as \frac{ q_x^{n_x} q_y^{n_y} }{2} It bugs me that the n_y gets displayed at a different ...
0
votes
1answer
250 views

Why does LaTeX insert space before formulas?

What is the typographic reasoning here? Does it make the text look less crowded?
24
votes
7answers
22k views

Typeset mathematical symbols also in sans serif font?

For creating the graphics for my thesis (function graphs, flow charts, line art sketches) I've chosen to use the sans serif font by \renewcommand\familydefault{\sfdefault} However when I use ...
1
vote
0answers
40 views

\mathcal only allowed in math mode

I am having a couple of errors with this code. With the second line 'missing $ inserted' Then with the third line it says '\mathcal only allowed in math mode'. Would anyone be able to help me with ...
2
votes
1answer
55 views

Labeling rows/columns of a matrix with text and braces

I would like to label rows and columns of my matrix with formulas and text. I've started with a version using bordermatrix. \[ \underbrace{ \bordermatrix{ & \underset{\downarrow}{x} & ...
9
votes
1answer
2k views

e^{…} vs \exp(…) in display mode

In terms of readability as well as correct syntax, what is more preferred in mathematical equations: e^{...} or \exp(...) -- and why? For instance, e^{x^2/(4t)} or \exp(x^2/(4t)). The latter is ...
0
votes
0answers
30 views

mathbf related to math in sectionheading problem [duplicate]

I am using the \blacksquare symbol from the amssymb(?) package in my section heading. But this leads my bold math turning into ASCII symbols after a while. Thanks for your help. \boldmath helped. ...
54
votes
4answers
3k views

How do I display pi in LaTeX like Don?

Way back in 1979, Donald Knuth, tried to give the feeling that π is irrational using the idea of infinite sequence of smaller and smaller font sizes like what I have tried to do here using HTML and ...
1
vote
1answer
36 views

How to get tilde enclosed in parenthesis

Quick and simple question (actually surprised I couldn't find it on Stackexchange already): How can I typeset (in math mode) quantities with a tilde on top that is enclosed in parentheses? Something ...
3
votes
2answers
112 views

Proper style/use of parenthesis

I'm using 'mathpazo' for text and math. One thing I have noticed is that the style of the parentheses in text and math mode are not alike. What would you use? \documentclass{article} ...
1
vote
1answer
35 views

How to make parentheses under math formulae?

How to make parentheses (with labels J1 and J2) as shown on the picture below?
6
votes
1answer
181 views

How to get limits in integral to the right hand side

I like the integral from mathdesign, but how can I get the limits to the right hand side? \documentclass{article} \DeclareSymbolFont{md}{OMX}{mdput}{m}{n} ...
0
votes
1answer
45 views

Some Symbols Won't Appear in pdf [duplicate]

I am a new user and I need some help! I think I've figured out the basics of creating a document, but certain symbols are not transferring into the pdf: the box, the diamond and the "force" turnstile. ...
1
vote
1answer
40 views

Writing Lines and Lines of Math Without Continuation Characters

I've recently converted to using \[ \] instead of $$ $$ as my begin/end math command since I read that is the "correct" method. However, the backslash character is near my pinky on my keyboard and ...
0
votes
0answers
33 views

subscript appearing properly but following character are italic

To write subscript say, x subscript 1 , I am writing x_1. However, the problem is that anything following 1 appears to be italic. Why is it so? I am using Kile as editor.
6
votes
3answers
174 views

bar through letter in mathmode

Hi do you know how I can produce this symbol in latex? Only the bar through the letter i need I know the rest. And i need something that works on math mode for sure. I tried using \sout with ulem ...
1
vote
0answers
37 views

\triangleleftneq and \trianglerightneq commands?

There are certain 6-tuples of commands, such as: \subset, \subseteq, \subsetneq, \supset, \supseteq, \supsetneq <, \leq, \lneq, >, \geq, \gneq There are also commands \triangleleft, ...
3
votes
1answer
73 views

XeLaTeX does not load newtxmath with LinuxLibertine (sometimes)

I'd like to use newtxmath along with LinuxLibertine under XeLaTeX. What maybe sounds simple really drives me crazy. Here's an MWE: \documentclass{article} \PassOptionsToPackage{no-math}{fontspec} ...
0
votes
1answer
78 views

How to create augmented matrix in iBook Author using LaTeX [duplicate]

I am very new to LaTeX so please bear with me if my question is rudimentary. I searched through other questions and while this question has been answered the solutions provided did not work for me, ...
4
votes
2answers
72 views

Horizontally misalligned sub-/superscripts in fractions when using 'minus' sign

I am combining sub- and superscripts in the denominator of a fraction. I get ill behaviour when the exponent is preceded with a minus sign: I would expect the sub- and superscript of the first two ...
3
votes
1answer
46 views

Putting a subscript beside \det

I am trying to write that the trace is the pushforward of the determinant, and so I would like to have * as a subscript beside \det in mathmode. But when I type $\det_*$ then instead the * appears ...
2
votes
1answer
59 views

Wrong to delete/replace equation by using changes package

I am using changes package to check the changing in my latex file. For changing in sentence, it works well. However, it showed some wrong/unexpected result when I change equation. This is my problem ...
0
votes
1answer
56 views

Standard way of typing a set of equations in math mode involving two relations, for example: $=$ and $<$ [closed]

When typing a set of equations in math mode, is it better/clearer/standard to type, for example, how Rudin types this equation (pg 15 'baby Rudin'): Notice, how the third line changes to $\le$ and ...
0
votes
1answer
39 views

The expression seems not good ( mathematical operator)

I am trying to write an expression but the output is not the same as expected. Try: $c_{j_{1}}^{L,n} = \displaystyle\sum_{m=1}^{M-1} (t_{j{_1}m})$ How can I correct it. Please help me.
0
votes
0answers
41 views

Bar symbol with subscript

I want to type Y bar with subscript as shown in following code. However, when I try to use \bar , the Bar symbol is going beyond Y. I want to limit the bar symbol to Y. \documentclass{article} ...
2
votes
1answer
40 views

Array Problems Math mode

\documentclass[12pt,a4paper,notitlepage]{report} \usepackage{amsmath} \usepackage{array} \usepackage{multirow} \begin{document} \[ \begin{array}{llll} \hline & \multirow{2}{*}{\tilde{b}\leq ...
2
votes
0answers
33 views

adjust length of \leadsto arrow to the text above [duplicate]

I am having really hard time to figure out how to adjust the length of \leadsto arrow in order to match the text above it. The command I am using is ...
3
votes
2answers
81 views

Text under equation

I'm trying to achieve which can be best described from this picture: I want to be able to write the green text and line under my equation (it's exactly this equation actually) but how do I do that? ...
7
votes
2answers
93 views

Custom command with \ensuremath within \textbf

I have created a custom command to help me with scientific number notation: \newcommand{\E}[1]{\ensuremath{\cdot 10^{#1}}} The command works OK, but now I have a need to bold some of the numbers ...
15
votes
5answers
10k views

How to print \frac{1}{2} by a single Unicode character?

I am looking for a command which would print simple fractions like 1/2, 1/3 etc using glyphs available in modern TTF/OTF fonts. Ideally, I want this command to output ordinary \frac{1}{2}, \frac{1}{3} ...
9
votes
2answers
4k views

How can I put a matrix in a figure caption?

I would like to put a matrix in a figure caption. The following example demonstrates the idea: \documentclass{amsart} \usepackage{graphics, epsfig, psfrag} \begin{document} \begin{figure} ...
6
votes
3answers
783 views

How to write given equation in LaTex?

I want to write equation below in LaTex: I wrote it : r_{i,j}=min\lbrace\vert x_{i,j}$\bigotimes$ K_{p} \vert \: p=1 to 4\rbrace\; but it giving error. Please ...
3
votes
2answers
34 views

How can I align an equation with the & placed inside an \underbrace?

I have an aligned equation that looks like: \begin{align*} 1 &+ 1\\ 120 &+ 120 \end{align*} I would like to add an underbrace to one of the lines, but keep the alignment. However, when I ...