Package Amsmath Error Hat Allowed Only In Math Mode
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more mathit allowed only in math mode about Stack Overflow the company Business Learn more about hiring developers or posting ads
Package Amsmath Error Erroneous Nesting Of Equation Structures Align
with us TeX - LaTeX Questions Tags Users Badges Unanswered Ask Question _ TeX - LaTeX Stack Exchange is a question math mode latex and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best align latex answers are voted up and rise to the top ! Package amsmath Error: \begin{aligned} allowed only in math mode. Althought the display pdf is proper! up vote 4 down vote favorite The display pdf is ok but i receive the following error message : ! Package amsmath Error: \begin{aligned} allowed only in math mode. \documentclass[10pt,a4paper]{book} \usepackage[utf8x]{inputenc} \usepackage[greek]{babel} \usepackage{amssymb,amsmath,latexsym,amsfonts,amsthm,cleveref} \newcommand{\abs}[1]{ \left\lvert#1\right\rvert} \newcommand{\norm}[1]{\left\lVert#1\right\rVert} \begin{document} \begin{aligned} \norm{xy}_{\mathbb{H}}^4 ={} & \abs{z+w}^4 + 16(x_3 + y_3 -
In Latex
\frac{1}{2}Im(z\bar{w}))^2 \\ & = \abs{ \abs{z+w}^2 + 4i(x_3 + y_3 - \frac{1}{2}Im(z\bar{w}))}^2}) \\ & = \abs{ \abs{z}^2 + 4ix_3 + 2z\bar{w} + \abs{w}^2+ 4iy_3 }^2 \\ & \leq (\abs{ \abs{z}^2 + 4ix_3} + 2\abs{\bar{z}}\abs{w} + \abs{ \abs{w}^2 +4iy_3})^2 \\ & = (\norm{x}_\mathbb{H}^2 + 2 \abs{\bar{z}}\abs{w} + \norm{y}_\mathbb{H}^2)^2 \\ & \leq ( \norm{x}_\mathbb{H} + \norm{y}_\mathbb{H})^4. \end{aligned} \end{document} errors share|improve this question edited Jul 24 '15 at 20:51 Christian Hupfer 97.1k12101214 asked Jul 24 '15 at 20:44 blackjack 212 I wonder you could get a correct pdf if you have that error. Enclose the aligned environment with $...$ pair. –Christian Hupfer Jul 24 '15 at 21:08 i can't see why the question is downvoted –touhami Jul 24 '15 at 21:14 @touhami: There were two downvotes some minutes ago, however, not by me... –Christian Hupfer Jul 24 '15 at 21:15 i did enclosed with $ .. $ but now i receive :! Incomplete \ifodd; all text was ignored after line 25. –blackjack Jul 24 '15 at 21:17 @blackjack: Yes, there are more errors inside ;-) The typesetting is quite messy, actually –Christian Hupfer Jul 24 '15 at 21:19 | show 1 more comment 2 Answers 2 active oldest votes up vote 3 down vote Here's a
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business latex math symbols Learn more about hiring developers or posting ads with us TeX - LaTeX Questions Tags Users Badges Unanswered Ask Question _ TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top \bar only allowed in math http://tex.stackexchange.com/questions/256920/package-amsmath-error-beginaligned-allowed-only-in-math-mode-althought-th mode error up vote 4 down vote favorite I am trying to type up an equation for my discrete math class but I keep on getting the "\bar allowed only in math mode" error. My previous usage of \bar worked out fine. $p( \bar{E} \cap \bar{F}) = p( \bar{E \cup F}) = 1 - p(E \cup F) = 1 - p(E) - p(F) + p(E \cap F) = 1 - p(E) - p(F) + p(E)p(F\) = (1-p(E))(1-p(F)) = http://tex.stackexchange.com/questions/302354/bar-only-allowed-in-math-mode-error p( \bar{E})p( \bar{F})$ math-mode amsmath share|improve this question edited Apr 4 at 4:14 Au101 3,26711033 asked Apr 4 at 4:07 fairyfantasy 232 A warm welcome to TeX.SE! –A Feldman Apr 4 at 4:55 add a comment| 1 Answer 1 active oldest votes up vote 4 down vote accepted Your problem is: $p( \bar{E} \cap \bar{F}) = p( \bar{E \cup F}) = 1 - p(E \cup F) = 1 - p(E) - p(F) + p(E \cap F) = 1 - p(E) - p(F) + % ------------------- p(E)p(F\) %right here % ------------------- = (1-p(E))(1-p(F)) = p( \bar{E})p( \bar{F})$ p(E)p(F\). That's your problem. \) exits math mode. \( ... \) is an alternative to $ ... $. Where you've put \), it's exited math mode. And then when you have \bar afterwards, you're outside of math mode, and: \bar allowed only in math mode If we correct that, then it compiles, however, \bar{E \cup F} is not going to work out very well, you probably want \overline{E \cup F} Might I also recommend something more like: \begin{flalign*} p(\bar{E} \cap \bar{F}) &= p(\,\overline{E \cup F}\,) \\[\parskip] &= 1 - p(E \cup F) \\[\parskip] &= 1 - p(E) - p(F) + p(E \cap F) \\[\parskip] &= 1 - p(E) - p(F) + p(E)p(F) \\[\parskip] &= (1-p(E))(1-p(F)) \\[\parskip] &= p(\bar{E})p(\bar{F}) \end{flalign*} share|improve this answer edited Apr 4 at 4:34 answered Apr 4 at 4:16 Au101 3,26711033
GoogleВойтиСкрытые поляПоиск групп или сообщений
be down. Please try the request again. Your cache administrator is webmaster. Generated Sun, 23 Oct 2016 23:59:40 GMT by s_wx1126 (squid/3.5.20)