I am new to LaTeX and am trying to get used to the features of the language. I have typed   \indent Like all languages mathematics has a few basic rules upon which its complexity is built. The first, and most important rule is this:         \centering{No statement may be ambigous. That is, it must be either true or false. These statements are known as \underline{predicates}.}   SO I want the standard alignment except for the sentence I put in the centering brackets. Why is the whole paragraph ending up centered?
120953
In normal text, how do I center part of a sentence (it happens to be the end of a sentence) but leave the text in the rest of the paragraph unaltered? Also, no vertical space should be added before or after the centered text.  In a word processor, I would add a new line just before the text to be centered and then "center" the text on the next line.  I tried doing things similar to this with various LaTeX commands, but nothing worked.  This is what I want it to look like:  This is a really long sentence as an example.  The second half of this                                sentence should be centered.
738
I have an equation like this:     \begin{align}       P(A \cup B) = \sum_{\omega \in A \cup B} P(\omega) = \sum_{\omega \in A} P(\omega) + \sum_{\omega \in B} P(\omega)       = P(A) + P(B)     \end{align}   For some reason, LaTeX is automatically labeling the equation. How do I turn that off? Secondly how do I write something in LaTeX on this site. I tried enclosing in '$' but it doesn't work.
100298
Is there a way to typeset the symbol ":⇔" correctly in LaTeX (i.e. with the right alignment and spacing)?  I know that using :\Leftrightarrow or :\Longleftrightarrow gets me the symbol I'm looking for (more or less), but the spacing doesn't look right to me. Constructions using \iff or \colon didn't really seem to do the trick, either.   Do I have to define such a symbol myself (if so: how?), or is there a package proving this? Unfortunately, I did not find anything myself (especially because I don't know what to search for exactly; I got the description "defined to be logically equivalent" from Wikipedia, since I didn't even know the correct name).
122336
I have nested gather and align according to  \begin{gather}        \sum\limits_{i=1}^n i + \text{expression} = \dfrac{n(n-1)}{2} \label{l1}\\        \begin{align}             a+\text{expression}&amp;=b \\ %\label{l2} doesnt work             c&amp;=d+\text{expression} \\             e+\text{long expression}&amp;=f-\text{expression}        \end{align}  \end{gather}   to get an output looking like this:   The problem is that it is not possible to label all equations separately. The problem is identical to that discussed in , except  that in my problem the first line needs to be centered.  Thanks for any help.
35158
Consider this:  \left( x-1 \right) \underbrace{ \left( ? \right) }_{ \text{what is this?} }   The label is longer than the braced portion, which causes unwanted space between the parentheses.  Is there a way around that, so that the parentheses "touch" as they would normally?  Please note that I just started on LaTeX, and I'm using TexMaths inside LibreOffice Writer.
104083
Is there a standard TeX or LaTeX code for a symbol that bears the same relation to  \prec\prec that \ll bears to &lt;&lt; ?  (And how do I get TeX code to get rendered in a question posted here?  I'm accustomed to writing things like $\sum_{n=0}^\infty \frac{x^n}{n!}$ on math.stackexchange.com and having it look the way you'd expect it to.)
109738
In this code as :     \begin{enumerate}[label=\bfseries Exercise \arabic*:]    \item 5 + 7 = 12    \item 9 + 1 = 10    \item 2 * 2 = 4 \end{enumerate}   I want the text Exercise (with its number) to be center-align and the content after that to be below and left-align. Anybody can help. Thanks.
21627
I don't like how there is often a slight misalignment between assignment statements in an algorithmic environment. For example, the first version of the algorithm given below looks strange to me. I would like to be able to align the two statements, but the commented version in my example fails to even compile. I could always manually add some space to make things line up (see the last version below), but this is obviously not a good way to go about doing things for a number of reasons. Does anyone have a good way of making the assignment statements to line up?  \documentclass{article}     \usepackage{algorithm}     \usepackage{algorithmicx}     \usepackage{amsmath}  \begin{document}  \begin{algorithm}     \caption{Compute some stuff}     \begin{algorithmic}         \State \( x \gets 1 \)         \State \( m \gets 2 \)     \end{algorithmic} \end{algorithm}  %\begin{algorithm} %   \caption{Compute some stuff} %   \begin{algorithmic} %       \begin{align*} %           x &amp; \gets 1 \\ %           m &amp; \gets 2 %       \end{align*} %   \end{algorithmic} %\end{algorithm}  \begin{algorithm}     \caption{Compute some stuff}     \begin{algorithmic}         \State \( \hspace{3pt} x \gets 1 \)         \State \( m \gets 2 \)     \end{algorithmic} \end{algorithm}  \end{document}
96370
I am trying to center align the content of a figure that has verbatim text in it. But the verbatim text is always right-aligned:  \begin{figure}   \centering   \begin{verbatim}   some   text   here   \end{verbatim}   \caption{I wish this were centered} \end{figure}
105092
I've been trying to create the 7 I'm used to writing by hand in LaTeX with a horizontal line through the middle. This seems like it should be a simple thing to do, but I don't see any native support for this. This is the look I am trying to get:
100280
I used the ‎\documentclass[11pt,twoside,fleqn]{book}‎ for set formulas left, but I want to put formulas to center in some cases like original type without [fleqn]. What command do I use? %%%%%%%%%%%%%% ‎  \documentclass[11pt,twoside,fleqn]{book}‎‎ ‎‎\usepackage{amsmath,amsfonts,amssymb,amsthm}‎ \begin{document} ‎\begin{align*}‎‎%This is in left  ‎y=f(x) ‎\end{align*}‎‎ \begin{align*}‎‎%This should be at the center \centering ‎y=g(x) ‎\end{align*}‎ \end{document}
92450
Do any one know how to type a very big parenthesis in LaTeX. Since the formula is very big, I used multline environment, in one line, there are many pair of parenthesis by using \left and \right which make them already very big. Between lines, I need some parenthesis bigger than the one given by \Bigg. My intention is to show the following big formula in multline environment:  $$ \frac{       e^{-\frac{t \lambda +4}{4 \lambda \nu }}       \left(             e^{\frac{t}{4 \nu }}             \left(                   4 \sqrt{\pi } \sqrt{\nu }+1             \right)             \nu \Phi             \left(                   \frac{t-\frac{2}{\lambda }}{\sqrt{2} \sqrt{t \nu }}             \right)             \lambda^3             -e^{\frac{t \lambda +8}{4 \lambda \nu }}             \left(                   4 \sqrt{\pi } \sqrt{\nu }-1             \right)             \nu             \left(                   \Phi                   \left(                         \frac{t+\frac{2}{\lambda }}{\sqrt{2} \sqrt{t \nu }}                   \right)                   -1             \right)             \lambda^3             +e^{\frac{1}{\lambda \nu }}             \left(                   4 \sqrt{\pi } \lambda^3 \nu^{3/2}                   \left(                         2 \Phi                         \left(                               \frac{1}{\sqrt{2} \lambda \sqrt{t \nu }}                         \right)                         -1                   \right)                   -e^{\frac{t}{4 \nu }}                   \left(                         \left(                               \lambda                               \left(                                     4 \sqrt{\pi } \sqrt{\nu }-1                               \right)                               \nu +2                         \right)                         \lambda^2+2                         (\lambda \nu -2)                         \Phi                         \left(                               \frac{\sqrt{\frac{t}{\nu }}}{\sqrt{2}}                         \right)                         \lambda^2-2                    \right)              \right)        \right)      }{4 \lambda } $$
79301
Consider the following code example:  \setuppapersize[A8,landscape][A8,landscape] \starttext \startformula     \startalign         \NC 1 \NC= 1\NR         \NC 2 \NC= 1\NR         \NC 3 \NC= 1\NR         \NC 4 \NC= 1\NR         \NC 5 \NC= 1\NR         \NC 6 \NC= 1\NR         \NC 7 \NC= 1\NR         \NC 8 \NC= 1\NR     \stopalign \stopformula \stoptext   Coming from a LaTeX background I would expect align to break over pages and  tells me     Somewhere between March and Arpril, \startalign lost the ability to break equations across pages. Hopefully, it will be added back soon.   So basically it is intended to have page breaks, isn't it? Question: How to enable them for align?
96638
I'm new to LaTeX and I'm trying to figure out how to correctly format a proof. Can someone show me a basic template for how to do this?   The part I am having the most trouble with is creating new columns and customizing alignment... for instance, how do I add a right-aligned annotation (i.e. by distributive property) to a line of this sample proof? Should I use eqnarray* or is there a better option?  \begin{proof}   Let $t,u \in \mathbb{R}$ where $t=xy$ and $u=zw$. So,   \begin{eqnarray*}     4xyzw &amp;=&amp; 2\cdot2tu \\     &amp;\le&amp; 2\cdot(t^2+u^2) \\     &amp;=&amp; 2\cdot((xy)^2+(zw)^2) \\     &amp;=&amp; 2\cdot(x^2y^2+z^2w^2) \\     &amp;=&amp; 2x^2y^2+2z^2w^2 \\     &amp;\le&amp; ((x^2)^2+(y^2)^2)+((z^2)^2)+(w^2)^2) \\     &amp;=&amp; x^4+y^4+z^4+w^4   \end{eqnarray*} \end{proof}
5904
Should numbers inside the text be placed inside a math environment?   For example, if I am writing ...indent code by 4 spaces..., should I write it this way or ...indent code by $4$ spaces...?  Perhaps the output is the same but semantically they are not and maybe LaTeX can treat them differently in some cases. Which is the right one?   For instance, how does LaTeX treat the numbers in the counters it uses for numbering the sections or pages, etc? Does it treat them as numbers in a  Math environment or as numbers inside text?  Of course, if the output can never be different in any situation, then well, it just doesn't matter.
65770
I've been using the align environment to line up equations in proofs/explanations/etc and I like to place parenthetical commentary for each step, similar to the code below:  \documentclass{article} \usepackage{amsmath} \begin{document}  \begin{align*}   f(ax + by) &amp; = f(ax) + f(by) &amp; (By Property 1) \\              &amp; = af(x) + bf(y) &amp; (By Property 2) \\ \end{align*}  \end{document}   The problem I have with this is that the commentary completely distorts the overall alignment of the equation area; far too much space is allocated to the column containing the commentary.  I would like, insofar as it is possible, for the equations themselves to be aligned in the center of the page and for the commentary to simply appear on the right without affecting the overall justification of the equations. What's the best way to achieve this?
118891
How can I create an equation which is centered, and then comment on it on the same line in a right-justified way? I'm looking for something sort of like this    But that I basically rigged by putting a bunch of \qquads in there to place it just right. And even there the equation isn't quite centered.  I imagine if the comment was too long I would put it in a parbox. But in the one above, I couldn't get the comment to go any farther to the right than that without it skipping a line.