0
votes
1answer
37 views

Bad math environment delimiter in standalone class [duplicate]

Given a file master.tex: \documentclass{article} \usepackage{standalone} \begin{document} \input{sub} \end{document} and a file sub.tex: \documentclass{standalone} \begin{document} \[ 0 ...
2
votes
2answers
142 views

undefined control sequence in latex

I snippet of my code is presented here.I do not understand why I'm getting the error undefined control sequence.I have also included the package amsmath. \subsection{Logistic Regression} \noindent ...
1
vote
1answer
62 views

TeX capacity exceeded + Semantics package [closed]

I get the following error: ! TeX capacity exceeded, sorry [input stack size=5000]. \do #1#2#3->\mathcode `#1 ="8000 l.14 ..._{1}\; a_{2} -> v_{2}}{a_{1} - a_{2} -> v} ! ...
3
votes
1answer
87 views

Eqnarray nested matrices produces alignment error

I wrote the following equation array. \begin{eqnarray} w_{0} & < & 1 \\ w^{m}_{i} & = & \left \{ \begin{matrix} w_{0} & i = 0 \\ ...
6
votes
2answers
236 views

Tables: Missing $ inserted

I'm trying to learn how to use Latex so I've got a little bit of problems in understanding what is the mistake that I've made. In this case I'm compiling a Table containing multiple datas about ...
1
vote
1answer
100 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 ...
0
votes
2answers
808 views

\begin{equation}: “Display math should end with $$” error?

I'm pretty new to LaTeX, completely new actually, and there is one thing I can't quite understand. I get the error "Display math should end with $$" when writing an equation like this: ...
1
vote
1answer
69 views

What are the restrictions when using the TeX Live rpm distro?

I installed [root@magpie ~]# yum -q info texlive Installed Packages Name : texlive Arch : x86_64 Epoch : 3 Version : 2013 Release : 4.20131226_r32488.fc20 Size : ...
4
votes
1answer
279 views

Missing $ inserted in maths mode

Been trying to this line to parse for a good 20mins, but all attempts have failed: \beta = $-$0.84, t = $-$2.09, P = 0.04 Could anyone tell me why I'm getting a Missing $ inserted error here?
2
votes
1answer
2k views

I get the warning “Undefined control sequence” with \mathbb

I am doing my first LaTeX work using TeXstudios and I'm having trouble with an Undefined control sequence. When I've checked solutions on google it appears as this is caused by typos in the ...
4
votes
2answers
204 views

New to TeX; issue with compiling

I keep getting the compiling error >file ended while scanning use of \frac. I can't see any missing {}, so I'm not sure what to do. \documentclass[]{scrreprt} \usepackage{geometry} ...
3
votes
1answer
125 views

Error when typing Matrix and Binomial coefficients

New guy here, I am just trying to study LaTeX from the very beginning. I am using TexShop on a Mac, and now I am reading George Grätzer's Short Course. Here's my question, when I type Binomial ...
2
votes
1answer
718 views

troubleshoot needed for LaTeX Error: Command \item invalid in math mode [closed]

Can someone please troubleshoot this? It gives me an \item invalid in math mode although I use a very similar casing on a previous frame. \documentclass[mathserif]{beamer} ...
29
votes
2answers
504 views

When is it safe to type less and drop curly braces in math mode

I'm using tex a lot more now, and I'd like to get more efficient by typing less. I've partly been inspired by editing mathjax posts and seeing people write things like \frac12. However I've also had ...
3
votes
1answer
65 views

Why is this statement not compiling correctly?

For some reason, the following excerpt from my code is not compiling correctly and I can't figure out why. \begin{equation} \begin{split} \frac{100}{-6} &= -16(-6) + 4\\ &\implies z^100 ...
1
vote
1answer
90 views

I can't find/fix the errors in order to be able to compile it

\documentclass{article} \usepackage{amsmath} \begin{document} $These are two truth tables for the following: $\neg (p \vee q)$ is logically equivalent to $(\neg p) \wedge (\neg q)$ ...
3
votes
1answer
157 views

New to LaTeX, getting bunch of errors and not sure how to fix them

I started learning LaTeX just today. I'm trying to write some of my notes in TeX form, but when I try to build this I'm getting a bunch of errors. Can you take a look at it and see what's wrong? ...
1
vote
1answer
89 views

Missing $ inserted, any ideas where?

I have been staring at the screen for what seems like hours trying to understand this error. I cannot see why it's giving me an error message. It's more than likely that I have been staring at the ...
3
votes
1answer
67 views

Keep getting an error with the code for this equation!

I've been trying to get this to work, but I keep getting errors saying Paragraph ended before \end was complete. I can't see where the issue is though. Could someone help? \documentclass[12pt, ...
4
votes
2answers
133 views

\renewcommand for \forall to add a parameter

Hi I'm trying to redefine the \forall command so that it accepts an argument instead of using the regular juxtaposition. What it looks like at the moment is ...
5
votes
1answer
385 views

`missing $ inserted` Error when not putting $ before and after array environment

Considering this answer I added $ before and after the array, i. e. before \begin{array} and after \end{array} in the following code. Then the former missing $ inserted Error was gone. ...
4
votes
1answer
113 views

Why aren't the braces showing

I have this tex: \(\mu_{A}\left(x\right)\in \[0,1 \right\]\) The issue here is that [ and ] are not showing around 0,1, why is that? Thanks.
4
votes
2answers
76 views

Not making space?

The system of linear equations \[6x_1 + 4x_2 = 9 \\ x_1 + 5x_2 = 0 \] can be also depicted as \[ \left( \begin{array}{ccc} 6 & 4 & 9 \\ 1 & 5 & 0 \end{array} \right). \] When ...
1
vote
3answers
125 views

Getting “! Missing $ inserted” error

I try to write a math formula but i get many errors and a bad display. Here's the code : \documentclass[a4paper]{article} \usepackage{amsmath} \begin{document} Suite de Syracuse : $\forall U_0\ge 1, ...
0
votes
2answers
91 views

Can somebody tell me why this command doesn't work?

$\frac{1-(-$\frac{1}{2}^t$) }{$\frac{3}{2}$}$ For some reason it gives me an error, something about a Missing \endgroup, be warned I'm new to Latex.
3
votes
1answer
246 views

Using mathsf in a section title

I'm trying to use the mathsf font in a section title and it wont compile. Here is a MWE: \documentclass{amsart} \usepackage{verbatim, rotating, stmaryrd, bbm, pict2e, ytableau, mathrsfs, amssymb, ...
1
vote
1answer
96 views

Using \matbb{Z} and \textregistered in Math Mode

How can you use the two symbols in the Math mode? My tex $\matbb{Z}$ $\textregistered$ My formatting code \documentclass{bmcart} %%% Load packages %\usepackage{amsthm,amsmath} ...
0
votes
0answers
39 views

undefined control sequence on Expected value [duplicate]

I'm trying to type in conditional expected value E[yi|xi=x]=b1+b2*x, and no matter what I do it gives me error messages. Here is part of my code: \usepackage{amsmath} \[\mathbb{E}(\underline y_i ...
0
votes
0answers
28 views

Undefined control sequence error when using \abs [duplicate]

I have the following line of code that is throwing up an undefined control sequence error: \begin{equation} \vec{N} = \frac{\vec{T'}(t)}{\abs{\vec{T'}(t)}} \end{equation} The problem is with the ...
2
votes
1answer
117 views

after using \def I cannot use math formula

This is what I type in: exist f(x) - f(a) = \(frac{f(x) - f(a)}{(x - a)}\) \def\lim {$lim_{x \to a}$} \lim[f(x) - f(a)] = \lim $frac{f(x) - f(a)}{x - a}$(x-a) \\* = \lim $frac{f(x) - ...
1
vote
2answers
3k views

Environment align undefined line 11, all I can see to do is to retype the line and it still isn't working

\documentclass [12pt]{article} \oddsidemargin=0pt \topmargin=0pt \textwidth=6.5in \textheight=8.5in \begin{document} \begin{center} {\large\bf\LaTeX\ Example 8} \end{center} Sometimes we have to ...
3
votes
1answer
102 views

Troubleshooting Code for 'Cases'

I was trying to do the following: $$ \begin{cases} a, & n=1\\ $\Phi^{-1}x(n-1)$, & x(n)=x(n-1) $\Phi^{-1}\x(n-1)+c$, & x(n)=x(n-1)+1 \end{cases} $$ But I keep getting errors. Is ...
2
votes
1answer
110 views

Accents package incompatible with bm?

Reading egreg's answer to Decrease length of underline in math, I wanted to use the accents package for lower bars in math mode. It seem however that the package is incompatible with the bm package. ...
1
vote
1answer
1k views

Undefined control sequence for equation

I am running into the error message !Undefined control sequence with the below explanation and can't figure out what I'm doing wrong. I am using Mactex and Texmaker. I am new to LaTeX and would really ...
6
votes
1answer
94 views

Problem between opticals and minionint options in the MinionPro package

I've already told the author of the MinionPro package about this. But I post it here to see if somebody solves it before him: This document: \documentclass{scrartcl} ...
4
votes
1answer
906 views

How to use the \L command in LaTeX

While Using the command \L in LaTeX Error Display: latex error mathcal allowed only in math mode
1
vote
0answers
83 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".
3
votes
2answers
394 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 $.
6
votes
1answer
9k 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?
2
votes
1answer
138 views

How to stop Latex from inserting $ in my URLs? [duplicate]

When I type this \footnote{ http://www.cems.uvm.edu/~tlakoba/math337/notes_12.pdf. Page 3.} LaTeX inputs $ $ in for me when I do not want them. How can I stop this from happening?
5
votes
2answers
231 views

Double subscript error with \newcommand?

Disclaimer: I know of Defining a newcommand with sub- or superscript and avoiding "double subscript" error but this only gives a work-around, but no explanation to my question. Here's a ...
7
votes
1answer
2k views

“Display math should end with $$” error

I'm trying to write math in a code listing, like so : \documentclass{article} \usepackage{listings} \begin{document} \begin[mathescape]{lstlisting} $\infty$ \end{lstlisting} \end{document} I get ...
8
votes
1answer
199 views

Why doesn't \mathord work to turn an Acc atom into Ord?

Writing ${\dot X^a}^b$ produces a very cryptic "double superscript" error: this has been explained here on this forum: the reason is that {\dot X}^a generates an Acc atom and that, for a reason that ...
13
votes
1answer
1k views

Which version of LaTeX permits more than 16 alphabets?

Sometimes I receive a message: ! LaTeX Error: Too many math alphabets used in version normal. I know that there is a limit of 16 alphabets at most allowed to one article. However this message ...
2
votes
2answers
157 views

Can anyone solve my error and make the long multiline equation multiline please?

In case it matters, I'm using win edit as editor. \documentclass[12pt,a4paper]{article} \usepackage{amsmath}\usepackage{amssymb} \textwidth=16.5cm \oddsidemargin=-0.10cm \evensidemargin=-0.10cm ...
5
votes
1answer
220 views

\polyset and greek letters

The polynom style (version “2006/04/20 0.17 (CH,HA)” from texlive 2012) has to be told about which tokens represent variables. The manual has an example like this: \polyset{vars=XYZ\xi, % make X, Y, ...
2
votes
2answers
1k views

Beamer - Array problem

I encounter some trouble with the following array in the frame : \begin{frame} \frametitle{Measurability of - Third case} \begin{block}{Expression of } Let the unique solution of on :\\ \[ t^* ...
5
votes
1answer
232 views

\underbrace error [closed]

I'm trying to write an equation, but I keep getting an "Undined control sequence error on the line my equation is one, and I can't seem to figure out what the error is. Can any of you guys seen an ...
2
votes
1answer
413 views

Errors with multicolumn-equations inside tabular (inside tcolorbox)

I try to rebuild a fairly complicated math-table, and I'm almost satisfied with the result. The MWE actually compiles to the table I want, but with error messages. When I include the table in my real ...
2
votes
2answers
244 views

error with math mode

Given a curve $\mathcal{L}$, define two functions of distance transform $\kappa_{+}$ and $\kappa_{-}$ on \mathbb{R}^{2} as $\kappa_{+}(x) = d(x,\mathbb{R}^{2}\D), x \in \mathbb{R}^{2}, ...