11

How can I have a indented new line in math mode? The line after \newindentedline should be indented and start in a new line.

\[
    X \subset Y \Rightarrow \forall x \in X: x \in Y \newindentedline
        \Rightwarrow X \subset Y
\]

1 Answer 1

11

You should read the mathmode document.

To allow linebreaks inside mathmode you need an environment like align (provided by amsmath):

\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{align}
    X \subset Y &\Rightarrow \forall x \in X: x \in Y \\
        &\Rightarrow X \subset Y
\end{align}
\end{document}

For manual (or more accurate) positioning of the alignment (rather than having it line up with some content in the row above), using the following instead:

\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{align}
    &X \subset Y \Rightarrow \forall x \in X: x \in Y \\
    & \hspace{4em} \Rightarrow X \subset Y
\end{align}
\end{document}

where you specify the indent as the argument to \hspace{...}.

To get a unnumbered equation you can use the align* (see the comment of egreg)

2
  • @Werner: Feel free to edit the post ;-) Oct 9, 2011 at 18:36
  • 1
    I'd suggest split or align*, to be consistent with Sebastian's question.
    – egreg
    Oct 9, 2011 at 19:06

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .