{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}.
12
votes
3answers
278 views
Repeated division - Converting from base 10 to another base
I am teaching how to convert from one base to another base, however, I can't find a way to do something like this:
I know little about Tikz, the only thing I have been able to produce is a simple ...
3
votes
2answers
230 views
“Missing $ inserted” although I have $
I have problem with this
$ \text{bredden = x \Leftrightarrow längden = 3 \cdot bredden = 3x} $
I get a
Missing $ inserted
error, although I have $.
3
votes
2answers
73 views
Undefined control sequence [closed]
On this code:
$t = \plusminus \sqrt{\frac{2,7}{4,9}} \approx \plusminus 0,74$
I get the message Undefined control sequence. What have I forgotten?
1
vote
0answers
53 views
Missing $ inserted on blank line [closed]
I get the message "Missing $ inserted" just on a blank line.
After this:
1108. a) Avläsning av kruvan $f_{B}(x)$ vid x = 8 ger att $f_{B}(8)$ ≈ 28$.\\
b) \text{Genom att undersöka var kurvan ...
1
vote
0answers
56 views
Runaway argument [closed]
Where is my fault here: \text{Genom att undersöka var kurvan $f_{A}(x)$ skär linjen $T=20$ ser vi att $x\approx {4.3}$ då $f_{A}(x) = 20$. Error message "Runaway argument".
1
vote
0answers
60 views
Missing $ inserted although I have $
I get "Missing $ Inserted" when typing in this:
Genom att undersöka var kurvan ${f_{A}(x)}$ skär linjen T = 20 ser vi att x ≈ 4,3 då ${f_{A}(x)}$ = 20.\\
Where is my fault?
4
votes
1answer
42 views
Create a weightier (bold) \bar
Here's my MWE, with my question embedded:
\documentclass[12pt]{article}
\usepackage{amsmath}
\begin{document}
The bar over the $E$ in $\bar E$ is a little too faint for my
taste. Or should I just go ...
5
votes
1answer
84 views
Emacs/AucTeX: can LaTeX-math-list read a macro that requires input?
I wanted to make a macro that inserts \left \right delimiters, but I wanted to write it only once and have different bindings pass different delimiters. To wit, I wanted to add the following code:
...
8
votes
3answers
196 views
LaTeX font for 'old-fashioned' script characters
Browsing through a copy of Counterexamples in Analysis (Gelbaum & Olmsted), I'm quite enjoying the typeface used for 'script' letters (see links to examples below); visually it's somewhere ...
2
votes
1answer
84 views
Writing multiplication dots
I try to write a multiplication dot and use \cdot, 4 = 2/cdot{2}. But I get the error message Missing $ inserted. What have I forgotten?
5
votes
1answer
128 views
Writing å, ä, ö in mathmode
I use a Swedish usepackage and when I write, for instance, å in formulas I get an error message please use \mathaccent ….
Here's what I try to write:
\begin{align}
\begin{split}
{R} = ...
9
votes
1answer
1k views
Typesetting permutations with latex
I split the question into two parts and included some answers.
1. Alternatives to the permute-package
The permute-package is very old (version 0.2, 1999) and can lead to problems in connection with ...
7
votes
2answers
145 views
Formulas in ConTeXt are different from those in plain TeX
I often typeset formulas using TeX and friends. I noticed they are different between ConTeXt and plain TeX recently.
\starttext
\startformula
\int\nolimits_a^bf(x)dx=F(b)-F(a)
\stopformula
\stoptext
...
3
votes
1answer
55 views
Can I make LyX automatically use 'smart' parentheses [\left( \right)] in math mode?
When I type in math mode I always prefer to use the parentheses using
\left and \right.
Currently, I go into math mode and then press the button on the ribbon
that appears in this mode and creates ...
2
votes
1answer
40 views
Error using \( … \) environment inside \section argument [duplicate]
This seems to me like a possibly common problem, the solution of which is probably already been posted somewhere, unfortunately I'm not quite sure what key words i should use to find it.
Anyway, to ...
0
votes
0answers
68 views
How to redefine \~ in beamer [closed]
I'm trying to redefine \~ to \overline{} in beamer. Here is what I tried:
\renewcommand{\~}[1]{\overline{#1}}
(works in normal LaTeX) and
\renewcommand<>{\~}[1]{\overline{#1}}
...
2
votes
2answers
117 views
Stealth arrow in math?
Is there an easy way to produce stealth style arrows in normal math mode? By "stealth" I'm thinking of TikZ stealth arrowhead. Something like \rightarrowstealth?
The question originates from a limit ...
2
votes
1answer
52 views
Is it possible to break the following aligned?
I don't want to use the displayed math environment for which \allowdisplaybreak is designed. Shortly speaking, is it possible to break the following alined by defining something like ...
1
vote
0answers
22 views
problem with defining a shortcut for \end{align} [duplicate]
I define \beq=\begin{align} and \eeq=\end{align}. \beq works correctly, but \eeq causes the error
! Paragraph ended before \align was complete.
<to be read again>
\par
...
2
votes
1answer
75 views
How to make dcases environment work in LaTeX
I'm using Kile (kde4) on Mac OS. I can use the cases environment just fine but my version of Kile doesn't have dcases. I'm using Kile via MacPorts. Does anyone know of a way to update my distribution ...
21
votes
10answers
992 views
Best typesetting of formula
Consider the following example.
Code
\documentclass{article}
\usepackage{amsmath}
\newcommand*\mathsetfont{\mathbf}
\newcommand*\DeclareMathSet[1]{%
\expandafter\newcommand\csname ...
9
votes
4answers
157 views
Curved arrow describing a step in a mathematical derivation
Is it possible to achieve something like this in LaTeX?
I want a curved arrrow pointing from 1st line to the other line and is coupled with an equation number which indicates the equation used. I ...
5
votes
1answer
66 views
Lining up angled tick labels on a pgfplots bar plot
I'm trying to produce a bar chart for publication with math text in the tick labels. The most readable layout would be to angle them, but when I do they clash with the axis and are difficult to relate ...
2
votes
3answers
87 views
Grouping two lines inside align environment to put smth. to the left of them
I have an equation which is alligned at 1st equal sign like this:
\begin{align}
a &= b + c \nonumber\\
d &= e + f \label{eq1}\\ %this is row 1
g &= h + i \nonumber\\ %this is ...
2
votes
0answers
97 views
LaTeX is not compiling consistently
I am really new to LaTeX, so it's possible I'm making some egregious error that I'm not aware of, but my documents are compiling inconsistently. By that I mean it compiles correctly maybe one in ...
7
votes
2answers
58 views
Setting an “attribute” for Theorem to be accessed later
I am writing a math paper with a large number of theorems. I'm looking to have a table summarizing my results, and I'd love it if the table could be generated automatically from my paper. I' looking ...
3
votes
1answer
118 views
Constructing general ligatures
I know that LaTeX has macros \ae, \oe etc. for the standard ligatures (i.e. æ, œ).
Is there a more general way to construct ligatures in the equation environment?
I'm working in the language of ...
2
votes
1answer
123 views
How to number an inline-math equation?
I want to add an equation number in a formula, but I've got an error: "You can't use `\eqno' in math mode.". This is my code:
$e_{33} = 0 \eqno(4.4)$
How I can fix it?
2
votes
2answers
67 views
How can I lower an \xrightarrow
I'm referring to a previous post where I asked how to handle lines that are too tall due to stacked mathematical symbols. In particular, the problem occurs in my texts when using \xrightarrow like in ...
18
votes
5answers
8k views
typesetting of negative versus minus
I've occasionally seen a negative (when a number is simply negative, not a subtraction), typeset as negative sign that's slightly skinnier and above the centre line of text. Is this proper notation ...
28
votes
5answers
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. ...
5
votes
2answers
130 views
Math mode in tabular without having to use $…$ everywhere
\begin{tabular}{|l|l|l|}
\hline
Column A & Column B \\
\begin{math}
x & y \\
\end{math}
\end{tabular}
This won't let me compile and gives a lot of errors, how do I enable math mode in a ...
119
votes
8answers
4k views
Are \( and \) preferable to dollar signs for math mode?
Along the lines of Why is \[ ... \] preferable to $$?, what reasons are there (if any) to favor \( ... \) over $ ... $?
13
votes
3answers
107 views
Difference between \mskip and \mkern
What are the differences between \mskip and \mkern? The TeXbook writes the following (ch. 18):
You can insert math glue into any formula just by giving the command
‘\mskip⟨muglue⟩’. [...] ...
2
votes
1answer
78 views
Formula expansion symbol / /
I need to expand formula in LaTeX using / / symbols, like this:
Current version:
Needed version:
How can I do this?
0
votes
0answers
37 views
How to make “\” in latex? [duplicate]
How to make '\' in latex if '\' has to be used in set theory equations?
I have to use it in the following format
$\forall X \in 2^\Omega-{\emptyset} $
Here instead of '-' sign i want to use '\'. Is ...
2
votes
2answers
39 views
“\bar allowed only in math mode” error
When I run
\begin{align*}
\textit{m}(A) &=a&, \\
\textit{\bar{A}} &=1-a& \\
\textit{m}(B) &=0& &\text{for} B \neq A \text{ or} B \neq \bar{A}
\end{align*}
I get the ...
3
votes
1answer
62 views
Citing a reference in a table
I was preparing a table in my research paper where I was having a formula in one column and the name of the Mathematician who discovered it in another column. I also want to cite the paper of the ...
0
votes
1answer
39 views
LaTeX \bar in table [duplicate]
I'm very new to Latex. So i want to put a \bar W in a table but the bar is covered by the horizontal line of table.So it becomes invisible. I tried adding \noalign{\smallskip} after \hline but it cuts ...
4
votes
1answer
84 views
Upright greek math: `theta` with `textgreek` package too boldish
With the following MWE:
\documentclass[british]{article}
\usepackage[british]{babel}
\usepackage{textgreek}
\begin{document}
\LARGE
Normal text default font, italics and upright:
...
8
votes
2answers
223 views
Any good way to write mathematical induction proof steps in LaTeX?
I need to write some mathematical induction using LaTeX.
Are there any packages that I can use for that purpose?
1
vote
2answers
52 views
Spacing between a special character and text
Why do I get output like this ?
Why is the alignment varying if I embed the special characters like lambda and eta ?
code sample 1:
\begin{gather}
\label{eq:Highest spatial frequency}
\frac{2 ...
5
votes
1answer
104 views
Typesetting of volume integral
This question has been bugging me for a long time: How do I properly typeset volume integrals? I would like to use the convention often used in Physics: d^3x=dV and \int dx f(x) instead of \int f(x) ...
3
votes
1answer
62 views
Matching Brackets in TeX output
Is there any ways or features to make pdf-files using one of TeX systems so that when I move the cursor to one of brackets (either open or closed brackets) in pdf, then the bracket and the other ...
5
votes
1answer
42 views
How to use `\mathrm` with capital greek letter and `newtx` package?
I have macros that use \mathrm. However, if the argument is a capital greek letter, newtx package changes the outcome to a math symbol in T1 encoding. I do not expect \mathrm to do anything on capital ...
4
votes
1answer
103 views
LaTeX 'Missing $' Cannot find the reason
So i am writing up some maths definitions for my exams and for some reason Texworks says that I have a 'missing $' in my line of work, however I cannot see anything wrong with it.
...
18
votes
4answers
2k views
Using display style fraction in a matrix environment
I'd like use the \dfrac command in a bmatrix environment as follows:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\[
\begin{bmatrix}
\dfrac{\partial f}{\partial x}
\\
...
16
votes
3answers
345 views
How can I create a new extensible symbol?
Given an arbitrary thin vertical symbol, can I create a new math delimiter from it (and if so, how)?
Edit: Ideally, I would like to be able to create an extensible symbol, either built out an ...
1
vote
1answer
48 views
LyX: Vertical spacing only some lines in a paragraph/ only the inline formulas
I have the following problem in LyX:
I get many paragraphs with awfully long in-line formulas, which by multi-lining come to be vertically adjacent. The aesthetic effect is quite awful, so I would ...
11
votes
4answers
3k views


