Hello I've been having a "Missing $ inserted" on my latex document and i'm not sure what to do. I've tried asking previously but wasn't able to fix it.  I'm not sure at all what I'm doing wrong but i get an error Missing $ inserted. $ on the 2nd line with c)\  The text works fine separately but when put with the rest of the document i keep on getting errors.  The rest of the text works fine and there are no $ signs that are not already paired in previous parts  \noindent c)\\ coordinates = (99,85),(190,220),(286,383)\\ \begin{align} error&amp;= \left | y-(a+bx) \right |\\ E&amp;= \left | y-(475.5+1.253x) \right |\\ (99,85): E&amp;=\left | 85-(475.5-1.253(99) \right |\\ &amp;=\left | 85-(351.5) \right |\\ &amp;=266.5\\ (190,220): E&amp;=\left | 220-(475.5-1.253(190) \right |\\ &amp;=\left | 220-(237.5) \right |\\ &amp;=17.5\\ (286,383): E&amp;=\left | 383-(475.5-1.253(286) \right |\\ &amp;=\left | 386-(117.2) \right |\\ &amp;=265.8\\ \end{align} $\therefore$ \text{Next location is "The Reservoir" at (190,220)} \end{document}   This is link to writeLatex online document   Is anyone able to help with this? Error is at end.
123025
Can anyone help with this. I'm not sure at all what I'm doing wrong but i get an error Missing $ inserted.                   $ on the 2nd line with c)\  The rest of the text works fine and there are no $ signs that are not already paired in previous parts  \noindent c)\\ coordinates = (99,85),(190,220),(286,383)\\ \begin{align} error&amp;= \left | y-(a+bx) \right |\\ E&amp;= \left | y-(475.5+1.253x) \right |\\ (99,85): E&amp;=\left | 85-(475.5-1.253(99) \right |\\ &amp;=\left | 85-(351.5) \right |\\ &amp;=266.5\\ (190,220): E&amp;=\left | 220-(475.5-1.253(190) \right |\\ &amp;=\left | 220-(237.5) \right |\\ &amp;=17.5\\ (286,383): E&amp;=\left | 383-(475.5-1.253(286) \right |\\ &amp;=\left | 386-(117.2) \right |\\ &amp;=265.8\\ \end{align} $\therefore$ \text{Next location is "The Reservoir" at (190,220)} \end{document}
29033
The following code does not compile:  \documentclass{article} \usepackage{amsmath} \begin{document}  \begin{align}      \eta_{m} = &amp; \omega_{m1}D_{1} + \omega_{m2}D_{2} + \dots + \omega_{mT}D_{T} \\     \eta_{a} = &amp; \omega_{a1}D_{1} + \omega_{a2}D_{2} + \dots + \omega_{aT}D_{T}  \end{align}  \end{document}   However, if I remove empty lines, it does. (Same with equation environment). Why? Why would it be problematic for a code to allow spaces? Convention?   For reference, the error in TexStudio is quite dramatic, for an apparent trivial issue:  line 7: Paragraph ended before \align was complete. line 7: Missing $ inserted. line 7: Missing \endgroup inserted. line 7: Display math should end with $$. line 8: Misplaced alignment tab character &amp;. &amp; line 8: Missing $ inserted. &amp; \omega line 9: Misplaced alignment tab character &amp;. &amp; line 10: Missing $ inserted. line 11: Misplaced \cr. \end{align} line 11: Misplaced \noalign. \end{align} line 11: Misplaced \noalign. \end{align} line 11: Extra }, or forgotten \endgroup. \end{align} line 11: Missing $ inserted. \end{align} line 11: Display math should end with $$. \end{align}   NOTE: I am aware of , , and  question. But none of them explains why empty lines are problematic (besides a trivial and rather tautological answer like "the code does not allow it").
58895
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?
23985
I just don't seem to get it. So I come from the german speaking part of Switzerland and naturally I need ä ü ö a lot when I write german texts. So in LaTeX I have the option to go via  "a "u "o  which isn't really comfortable, or I can use an additional package. So now the confusion starts. I can use either  \usepackage[T1]{fontenc}  or  \usepackage[latin1]{inputenc}  So now if I create a new document and save it as a latin-1 encoded .tex file it seems it doesn't matter which option I chose they both work. Now why should I pick one over the other or use both? Which problems could occur (Do they occur if I use the same .tex file on another OS depending on which option I have chosen?)?  If I save the .tex encoded as lets say the mac os latin then the first option compiles but shows the wrong characters for the ä ü ö's. Is it then like latex maps the ä according to the latin1 to a character and since the document is encoded as something different than latin1 then gets encoded to something different again?  So if the last 2 paragraphs have been confusing (mainly because I'm confused) the main question is: What does fontenc what inputenc doesn't do and vice versa?
87901
There is some conflict or error I don't understand. I can skip it and nothing visible happens. The output is okay and everything seems to be fine. Still I would like to get rid of the error message. If I run the following minimal example:   \documentclass[]{scrbook}  \usepackage[applemac, grafiken]{tahbiblatex} \usepackage[ngerman]{babel}   \begin{document}  Testing äüöaüä.  \end{document}   I get the error message:      ! Missing = inserted for \ifnum. &lt;to be read again&gt;                     , l.4 \usepackage                [ngerman]{babel} ?  ! Missing number, treated as zero. &lt;to be read again&gt;                     , l.4 \usepackage                [ngerman]{babel}   Here is my .sty file:  \NeedsTeXFormat{LaTeX2e}\relax \ProvidesPackage{tahbiblatex}[2012, by tah modified by sm]  \RequirePackage{ifthen}  \DeclareOption{latin1}{\PassOptionsToPackage{\CurrentOption}{inputenc}} \DeclareOption{applemac}{\PassOptionsToPackage{\CurrentOption}{inputenc}} \DeclareOption{cp850}{\PassOptionsToPackage{\CurrentOption}{inputenc}} \DeclareOption{utf8}{\PassOptionsToPackage{\CurrentOption}{inputenc}}  \DeclareOption{dvi}{% \newif\ifpdf \ifx\pdfoutput\undefined     \pdffalse \else     \pdfoutput=0     \pdftrue \fi}  \newcounter{Grafiken}\setcounter{Grafiken}{0} \DeclareOption{grafiken}{\setcounter{Grafiken}{1}}  \newcounter{Randausgleich}\setcounter{Randausgleich}{0} \DeclareOption{randausgleich}{\setcounter{Randausgleich}{1}}  \newcounter{Tabellen}\setcounter{Tabellen}{0} \DeclareOption{tabellen}{\setcounter{Tabellen}{1}}  \newcounter{Sync}\setcounter{Sync}{0} \DeclareOption{sync}{\setcounter{Sync}{1}}  \ProcessOptions  \RequirePackage{fixltx2e} \RequirePackage{inputenc} \RequirePackage[T1]{fontenc} \RequirePackage[T1]{url} \RequirePackage{setspace} %\RequirePackage[german]{varioref} \RequirePackage{textcomp}  \newcommand{\urlangabe}[2]{% $\langle$\url{#1}$\rangle$ -- Zugriff am #2}  \def\hierlockern {\begingroup \def\par{\endgraf\endgroup}%   \tolerance 1414%   \hbadness 1414%   \emergencystretch 1.5em%   \hfuzz 0.3pt%   \vfuzz \hfuzz%   \raggedbottom% }  \newcommand{\alleslockern}{%   \tolerance 1414%   \hbadness 1414%   \emergencystretch 1.5em%   \hfuzz 0.3pt%   \vfuzz \hfuzz%   \raggedbottom% } \ifthenelse{\value{Grafiken}=1}   {   \ifx\pdfoutput\undefined \newcount\pdfoutput \fi   \ifcase\pdfoutput       \RequirePackage[dvips]{graphicx}       \DeclareGraphicsExtensions{.eps}       \typeout{Paket tah Meldung: Die Option `grafiken' fuer DVI wurde gewaehlt.}% \else     \RequirePackage[pdftex]{graphicx}     \DeclareGraphicsExtensions{.jpg,.tif,.png,.pdf}     \typeout{Paket tah Meldung: Die Option `grafiken' fuer PDF wurde gewaehlt.}%   \fi}   {}  \ifthenelse{\value{Sync}=1}   {     \ifx\pdfoutput\undefined \newcount\pdfoutput \fi     \ifcase\pdfoutput     \RequirePackage{srcltx}     \typeout{Paket tah Meldung: Die Option `sync' fuer DVI wurde gewaehlt.}%     \else     \RequirePackage{pdfsync}     \typeout{Paket tah Meldung: Die Option `sync' fuer PDF wurde gewaehlt.}%     \fi }   {}   \ifthenelse{\value{Randausgleich}=1}   {\typeout{Paket tah Meldung: Die Option `randausgleich' wurde gewaehlt.}%   \RequirePackage[activate]{pdfcprot}}   {}  \ifthenelse{\value{Tabellen}=1}   {\typeout{Paket tah Meldung: Die Option `tabellen' wurde gewaehlt.}%   \RequirePackage{tabularx}   \RequirePackage{ragged2e}   \RequirePackage{dcolumn}   \RequirePackage{booktabs}   \newcolumntype{L}{&gt;{\RaggedRight\hspace{0pt}\arraybackslash}l}   \newcolumntype{Y}{&gt;{\RaggedRight\hspace{0pt}\arraybackslash}X}   \newcolumntype{d}[1]{&gt;{\DC@{.}{,}{#1}}l&lt;{\DC@end}}   }   {}    \endinput   I also don't really need all the features. So it would be nice to reduce it to minimal features, which are needed..
90273
Can someone tell me what's wrong with this? because i can't figure out where the missing \right( is.  \begin{equation}  \begin{split} Μ=&amp;-\pi \rho \frac{c^{2}}{4}    \left[c\left(\frac{α}{c}-\frac{1}{2}\right)\ddot{h}+Uc\left(\frac{3}{4}-     \frac{α}{c}\right)\dot{\alpha} +\frac{c^{2}}{4}\left(\frac{9}{8}+      \frac{4α^{2}}{c^{2}}-\frac{4α}{c}\right)\ddot{\alpha} \\  &amp;-\left(\frac{4α}{c}-1\right)U C(k) \left(-\dot{h} +U\alpha + c \left(\frac{3}{4}-\frac{α}{c}\right)\dot{\alpha}\right)\right]  \end{split} \end{equation}
52827
When I compilethis MWE:   \documentclass[a4paper,12pt]{article} \begin{document} Test $x_\mathit{in}$ \end{document}   ...it works perfectly with latex and pdflatex. If I try to use htlatex on it, it chokes:   ! Argument of \new:mfont has an extra }. &lt;inserted text&gt;                  \par  l.7 Test $x_\mathit{                     in}$   What am I doing wrong?   (BTW: if someone can point me to a comprehensive document about htlatex, please do... my google-fu is quite low today).   EDIT I discovered that if I write:   ...$x_{\mathit{in}}$    (with the extra set of braces) it works. But I am still wondering why...  This is standard (distribution-provided) full LaTeX installation in Ubuntu 14.04.
79187
I've recently started to use LaTeX but I've just encountered a problem, I tried searching it, although apparently no-one asked it before.  I'd like to write using Japanese input, but when I typeset, there can happen 3 things:   I get some error when compiling; I get question marks where Japanese stuff should appear; Nothing appears.   For example I had an example .tex file, compiled it and it worked, so I added some japanese in order to see "The author is [Japanese here]", but what I could see was "The author is [blank space]".  I've tried checking some guides, but I haven't found anything that could solve my problem (they are too old, or they don't talk about this at all).  Some minutes ago I tried compiling this:  \documentclass[12pt]{article}   \usepackage[T1]{fontenc}   \usepackage{CJKutf8}   \usepackage[romanian]{babel}   \usepackage[overlap, CJK]{ruby}   \usepackage{CJKulem}   \renewcommand{\rubysep}{-0.2ex}   \newenvironment{Japanese}{%   \CJKfamily{min}%   \CJKtilde   \CJKnospace}{}   \begin{document}   \parskip 3ex   \parindent 0pt   \begin{CJK}{UTF8}{}   \begin{Japanese}   ねこ    \end{Japanese}   \end{CJK}   \end{document}   It compiles fine but, still same problem, nothing appears when typeset, even if I should see "ねこ". There are many Linux guides, but I have a Mac and apparently, there aren't a lot around...   EDIT: A small add, if I get this to work, is the solution related to other asian languages such as Korean or Chinese?
118425
Please why does  \begin{document} \begin{tikzpicture} \foreach \x [remember=\x as \lastx (initially A)] in {B,...,H}{%   $\overrightarrow{\lastx\x}$, } \end{tikzpicture} \end{document}   give  Missing character: There is no , in font nullfont!   in the log file while in document body? Removing the comma (,) after $ relieves the warning.
33450
I just installed the vim latex-suite plugin.  Whenever I type empty brackets, parentheses, or braces, I get an extra pair of them, and I am moved to the middle of the new pair and put into insert mode.    i.e. after typing  {}   I get  {}{}   with the cursor between the second pair of empty braces.  How can I disable this?
40363
I'm trying to replace each , in the current file by a new line:  :%s/,/\n/g    But it inserts what looks like a ^@ instead of an actual newline. The file is not in DOS mode or anything.  What should I do?  If you are curious, like me, check the question  as well.
12332
The standard way of writing quotes and double quotes in LaTeX is with `` and '', but I find them quite ugly. Isn't there something similar to \emph{}, but for quotes? I mean something like \quotes{quoted text goes here}.  I've been looking but couldn't find any, maybe you guys can.
22682
I need to output the below text but since \ is a special character, I cannot:  [RegularExpression(@"\d+")]   Also sometimes I need use dollar sign $ as well but it seems to be a special char, too.  What is the way to escape those in LaTeX?  UPDATE:  I used \verb as suggested but I am unable to run commands inside it. Also, in the output the font and the opacity of the text is different than the default one:  \verb|[RegularExpression(\newline @"\d+")]|
9589
Newbie question: Within the body of the text that I've inserted into a Journal's Latex Template, I don't understand why I get a newline and italicized font when I add the command \leq to generate "less than or equal to"...  Below is (1) the Journal's template preamble and (2) my text in the body of the document.  I'm using MacText/TexShop on MacOSx10.6  (1) PREAMBLE  \NeedsTeXFormat{LaTeX2e}[1995/12/01] \documentclass[10pt]{bmc_article}      % Load packages \usepackage{cite} % Make references as [1-4], not [1,2,3,4] \usepackage{url}  % Formatting web addresses   \usepackage{ifthen}  % Conditional  \usepackage{multicol}   %Columns \usepackage[utf8]{inputenc} %unicode support %\usepackage[applemac]{inputenc} %applemac support if unicode package fails %\usepackage[latin1]{inputenc} %UNIX support if unicode package fails \usepackage{times} %so today's date appears on each version \urlstyle{rm}  \def\includegraphic{} \def\includegraphics{}  \setlength{\topmargin}{0.0cm} \setlength{\textheight}{21.5cm} \setlength{\oddsidemargin}{0cm}  \setlength{\textwidth}{16.5cm} \setlength{\columnsep}{0.6cm}  \newboolean{publ}   (2) IN THE BODY OF THE DOCUMENT .tex  coefficients kappa: \leq 0.4 poor to fair; 0.6 moderate agreement.   in Typeset: this pdf reads      coefficients kappa:      &lt;={italics}0.4poortofair;0.6moderateagreement
98525
In  my question () contains a "$" in a quoted section of the question.  Originally I had a second "$" in a second quoted  section of the same question.    However when I did this the second $ seemed to trigger a style that made the text italic and lost spacing between words.  I took out the second "$" and instead emphasized it with the word "dollars" which solved the immediate problem.  However, in the listing of the question, (not the question itself) the same thing happens after the first "$".  The summary shows the text without spaces between words and in italic.  Seems like a bug.  Below is a verbatim copy/paste of the original issue (two dollar signs):    I was able to find a small ESC for about $12 off of ebay.  If you were designing a robot, would you see that and think?       $12 bucks for an ESC that connects to simple pulse-wave interface -   sign me up!   Or would you think:     $12 just to control a motor? I could throw together an H-bridge for   $0.50 and be done with it.   My robot in particular actually has two motors and therefor $24 to control the two of them.  But the interface is really easy (plus has the added advantage of being R/C vs computer controlled with a simple change of connectors.  Which way would you go?
41095
How do I create something like this without getting any errors?  \begin{thm}[\cite[page 10]{ABC2011}] ... \end{thm}   I tried putting various things into {...} brackets, but not eliminating any errors. I probably have misunderstood something about how LaTeX works in the background and the AMS packet:  \usepackage[amsmath,thmmarks]{ntheorem}
98731
I'm getting an error on latex and don't understand why ... The purpose was to create some tables on latex, but it is getting me some error which i don't really understand ... Any hint for me please ? Thank you :)  error:  ! LaTeX Error: Illegal character in array arg.  See the LaTeX manual or LaTeX Companion for explanation. Type  H &lt;return&gt;  for immediate help.  ...                                                l.5 \begin{tabular}{ | 1 | p{5cm} |}   code:  \documentclass[12pt,a4paper]{article} \usepackage[portuguese]{babel} \usepackage[applemac]{inputenc} \begin{document} \begin{tabular}{ | 1 | p{5cm} |} \hline Nome &amp; Manuel da Silva  \\ \line  Data de nascimento &amp; 1977 \\ \line  Data de falecimento &amp; 2011 \\ \line  \end{tabular} \begin{tabular}{ | 1 | p{5cm} |} \hline Nome &amp; Ana da Silva  \\ \line  Data de nascimento &amp; 2006 \\ \line  \end{tabular} \begin{tabular}{ | 1 | p{5cm} |} \hline Nome &amp; Maria Felisbina  \\ \line  Data de nascimento &amp; 1980 \\ \line  \end{tabular} \end{document}