Discussion:
Breaking long lines in equations
(too old to reply)
Peter Percival
2017-07-17 14:08:57 UTC
Permalink
How do I get a long line in

\begin{equation}
...
\end{equation}

to break sensibly?
--
Do, as a concession to my poor wits, Lord Darlington, just explain
to me what you really mean.
I think I had better not, Duchess. Nowadays to be intelligible is
to be found out. -- Oscar Wilde, Lady Windermere's Fan
Axel Berger
2017-07-17 15:03:58 UTC
Permalink
Post by Peter Percival
How do I get a long line in
\begin{equation}
to break sensibly?
Not at all. Use equnarray (or one of its improved successors) and the
examples from its documentation.
--
/¯\ No | Dipl.-Ing. F. Axel Berger Tel: +49/ 221/ 7771 8067
\ / HTML | Roald-Amundsen-Straße 2a Fax: +49/ 221/ 7771 8069
 X in | D-50829 Köln-Ossendorf http://berger-odenthal.de
/ \ Mail | -- No unannounced, large, binary attachments, please! --
Ulrike Fischer
2017-07-17 15:10:21 UTC
Permalink
Post by Axel Berger
Post by Peter Percival
How do I get a long line in
\begin{equation}
to break sensibly?
Not at all. Use equnarray (or one of its improved successors) and the
examples from its documentation.
Don't use eqnarray.

https://tex.stackexchange.com/a/197/2388
--
Ulrike Fischer
http://www.troubleshooting-tex.de/
Axel Berger
2017-07-18 06:05:29 UTC
Permalink
Post by Ulrike Fischer
Don't use eqnarray.
Nooooo! Avoid eqnarray!
What about my "or one of its improved successors" do you two find so
offensive? Eqnarray is the minimal solution to solve the problem posed.

Improvements are possible and indeed desirable, but require extra
packages like amsmath that may conceivably clash with something else. I
wanted to start with the simplest, most basic and most general solution
for the problem at hand.

The main point here is, "For more than one line use a multiline
environment, a single line one won't work." Details and fine points go
on top.

Axel
--
/¯\ No | Dipl.-Ing. F. Axel Berger Tel: +49/ 221/ 7771 8067
\ / HTML | Roald-Amundsen-Straße 2a Fax: +49/ 221/ 7771 8069
 X in | D-50829 Köln-Ossendorf http://berger-odenthal.de
/ \ Mail | -- No unannounced, large, binary attachments, please! --
Ulrike Fischer
2017-07-18 08:53:00 UTC
Permalink
Post by Axel Berger
Post by Ulrike Fischer
Don't use eqnarray.
Nooooo! Avoid eqnarray!
What about my "or one of its improved successors" do you two find so
offensive?
Neither of use complained about the "one of its improved
successors".
Post by Axel Berger
Eqnarray is the minimal solution to solve the problem posed.
eqnarray is the *bad* solution to solve the problem. Didn't you read
the article Uwe linked too?

If you want to a minimal solution without amsmath, then use a
handcrafted array.
--
Ulrike Fischer
http://www.troubleshooting-tex.de/
Axel Berger
2017-07-18 09:40:02 UTC
Permalink
Post by Ulrike Fischer
Neither of use complained about the "one of its improved
successors".
No you ignored and disregarded it, which was my point.
Post by Ulrike Fischer
Didn't you read the article Uwe linked too?
I did and found this:
--------------------------------------------------------------
http://texblog.net/latex-archive/maths/eqnarray-align-environment/

Bob says September 4, 2009 at 11:40 pm
One problem with the align environment is it appears that the pause
command in Beamer does not work in align as it does in eqnarray. This
may seem minor, but it’s important in my lectures

David Schaich says October 2, 2009 at 10:25 pm
Bob,
Beamer’s pause doesn’t actually work inside any amsmath environment,
“since these do really wicked things” according to the Beamer manual
--------------------------------------------------------------

I feel vindicated in beginning with the simplest and most reliable basic
solution to the primary problem. Noone ever claimed it to be perfect or
not needing improvement. In fact I said so in my first post.

Axel
--
/¯\ No | Dipl.-Ing. F. Axel Berger Tel: +49/ 221/ 7771 8067
\ / HTML | Roald-Amundsen-Straße 2a Fax: +49/ 221/ 7771 8069
 X in | D-50829 Köln-Ossendorf http://berger-odenthal.de
/ \ Mail | -- No unannounced, large, binary attachments, please! --
Ulrike Fischer
2017-07-18 10:01:52 UTC
Permalink
Post by Axel Berger
Post by Ulrike Fischer
Neither of use complained about the "one of its improved
successors".
No you ignored and disregarded it, which was my point.
Sure. Like always on usenet I removed the parts I didn't want to
comment. You recommended eqnarray and with this part (and only this)
I disagreed.
Post by Axel Berger
Post by Ulrike Fischer
Didn't you read the article Uwe linked too?
--------------------------------------------------------------
http://texblog.net/latex-archive/maths/eqnarray-align-environment/
Bob says September 4, 2009 at 11:40 pm
One problem with the align environment is it appears that the pause
command in Beamer does not work in align as it does in eqnarray. This
may seem minor, but it’s important in my lectures
The fact that align has its problems too doesn't make eqnarray
better. And if the OP needs a solution working also in beamer he
could read documentation. It contains work-arounds for align. And
one can always use a handcrafted array here too.
--
Ulrike Fischer
http://www.troubleshooting-tex.de/
Uwe Siart
2017-07-17 15:13:48 UTC
Permalink
Post by Axel Berger
Post by Peter Percival
How do I get a long line in
\begin{equation}
to break sensibly?
Not at all. Use equnarray (or one of its improved successors) and the
examples from its documentation.
Nooooo! Why on earth is this resurfaced over and over again? Avoid
eqnarray!

<http://tug.org/pracjourn/2006-4/madsen/madsen.pdf>
--
Uwe
Uwe Siart
2017-07-17 15:10:21 UTC
Permalink
Post by Peter Percival
How do I get a long line in
\begin{equation}
...
\end{equation}
to break sensibly?
Sensible line breaking in displayed equations still requires human
brainpower. It cannot be automated in a satisfactory manner, IMO.

Check out the 'amsmath' package and its various environments for
multiline equations, like {multline}, {align}, {gather}, and {split}.

There's also the 'mathtools' package which provides interesting
extensions to 'amsmath', e.g. the {multlined} environment.
--
Uwe
ivan_terzo
2017-07-18 06:45:55 UTC
Permalink
Post by Peter Percival
How do I get a long line in
\begin{equation}
...
\end{equation}
to break sensibly?
package "autobreak"
Peter Percival
2017-07-18 13:55:09 UTC
Permalink
Post by Peter Percival
How do I get a long line in
\begin{equation}
...
\end{equation}
to break sensibly?
Thank you for all replies.

"requires human brainpower", how shocking! What are computers for? :-)
--
Do, as a concession to my poor wits, Lord Darlington, just explain
to me what you really mean.
I think I had better not, Duchess. Nowadays to be intelligible is
to be found out. -- Oscar Wilde, Lady Windermere's Fan
Peter Percival
2017-07-18 19:55:52 UTC
Permalink
Post by Peter Percival
How do I get a long line in
\begin{equation}
...
\end{equation}
to break sensibly?
In connection with this problem, in Knuth's 'Computers and typesetting /
A The TeXbook' there is mention of \eqalign (p190f). Does this no
longer exist?
--
Do, as a concession to my poor wits, Lord Darlington, just explain
to me what you really mean.
I think I had better not, Duchess. Nowadays to be intelligible is
to be found out. -- Oscar Wilde, Lady Windermere's Fan
Dan Luecking
2017-08-11 18:48:20 UTC
Permalink
On Tue, 18 Jul 2017 20:55:52 +0100, Peter Percival
Post by Peter Percival
Post by Peter Percival
How do I get a long line in
\begin{equation}
...
\end{equation}
to break sensibly?
In connection with this problem, in Knuth's 'Computers and typesetting /
A The TeXbook' there is mention of \eqalign (p190f). Does this no
longer exist?
It is still there in plain TeX but not defined in LaTeX.


Dan
To reply by email, change LookInSig to luecking

Loading...