Text FormattingA too long line

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
helllo
Posts: 44
Joined: Sat Jun 05, 2010 5:20 pm

A too long line

Post by helllo »

Hi,
So here is today's problem :D :

Code: Select all

\begin{align*}
a=b &\Rightarrow c=d\\
    &\Rightarrow f=g \text{ because a is positive, b is negative and also f is positive using the previous lemma}\\
    &\Rightarrow cs = de
\end{align*}
The problem is in line 2 (where f=g), the explanation sentence is too long and it is cut (I basically get in my document only the first half).
Any help with this ?
Thanks :)
Last edited by helllo on Fri Aug 27, 2010 1:35 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

CrazyHorse
Posts: 351
Joined: Sat Aug 02, 2008 8:47 am

A too long line

Post by CrazyHorse »

helllo wrote:

Code: Select all

\begin{align*}
a=b &\Rightarrow c=d\\
    &\Rightarrow f=g \text{ because a is positive, b is negative and also f is positive using the previous lemma}\\
    &\Rightarrow cs = de
\end{align*}
The problem is in line 2 (where f=g), the explanation sentence is too long and it is cut (I basically get in my document only the first half).
Any help with this ?
put the text into a parbox or alternetively use \intertext{...}
instead.

Herbert
CrazyHorse
Posts: 351
Joined: Sat Aug 02, 2008 8:47 am

A too long line

Post by CrazyHorse »

helllo wrote:

Code: Select all

\begin{align*}
a=b &\Rightarrow c=d\\
    &\Rightarrow f=g \text{ because a is positive, b is negative and also f is positive using the previous lemma}\\
    &\Rightarrow cs = de
\end{align*}
The problem is in line 2 (where f=g), the explanation sentence is too long and it is cut (I basically get in my document only the first half).
Any help with this ?
put the text into a parbox or alternetively use \intertext{...}
instead.

Herbert
rajini
Posts: 64
Joined: Mon Mar 22, 2010 2:27 pm

A too long line

Post by rajini »

Hi,

In addition to Herbert's
use also \quad

Code: Select all

\begin{align*}
a=b &\Rightarrow c=d\\
    &\Rightarrow f=g\quad{\parbox{11cm}{\textrm because a is positive, b is negative and also f is positive using the previous lemma}}\\
    &\Rightarrow cs = de\\
\end{align*}
hope this helps!
CrazyHorse
Posts: 351
Joined: Sat Aug 02, 2008 8:47 am

A too long line

Post by CrazyHorse »

rajini wrote:Hi,

In addition to Herbert's
use also \quad

Code: Select all

\begin{align*}
a=b &\Rightarrow c=d\\
    &\Rightarrow f=g\quad{\parbox{11cm}{\textrm because a is positive, b is negative and also f is positive using the previous lemma}}\\
    &\Rightarrow cs = de\\
\end{align*}
hope this helps!
should be \text{ \parbox{11cm}{...}}
your \textrm is senseless.

Herbert
helllo
Posts: 44
Joined: Sat Jun 05, 2010 5:20 pm

Re: A too long line

Post by helllo »

Thanks CrazyHorse and rajini. It's very helpful! :D
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

A too long line

Post by localghost »

Now that the problem is solved, please mark the topic accordingly as described in Section 3 of the Board Rules. In the meantime you should know that.


Best regards
Thorsten
helllo
Posts: 44
Joined: Sat Jun 05, 2010 5:20 pm

A too long line

Post by helllo »

localghost wrote:Now that the problem is solved, please mark the topic accordingly as described in Section 3 of the Board Rules. In the meantime you should know that.


Best regards
Thorsten
yeah I know, I usually always mark them as solved (when they are). I just forgot this time.
Post Reply