* amsl: startcases/stopcases
@ 2004-05-20 20:13 David Munger
2004-05-25 13:01 ` Giuseppe Bilotta
0 siblings, 1 reply; 8+ messages in thread
From: David Munger @ 2004-05-20 20:13 UTC (permalink / raw)
Hello Giuseppe,
I'm having a little trouble with the cases in amsl.
Compiling this:
\[
f(x) =
\startcases
0 & \text{if $x < -\epsilon$} \\
\frac12 & \text{if $x > \epsilon$}
\stopcases
\]
results in an error around the \frac. Changing it to \dfrac makes the
input compile ok, but typesets the cases in an ugly manner with really
narrow spacing.
Is there some way of telling startcases/stopcases to behave in display
mode?
Thanks in advance,
David
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: amsl: startcases/stopcases
2004-05-20 20:13 amsl: startcases/stopcases David Munger
@ 2004-05-25 13:01 ` Giuseppe Bilotta
2004-05-25 15:07 ` Re : " David Munger
0 siblings, 1 reply; 8+ messages in thread
From: Giuseppe Bilotta @ 2004-05-25 13:01 UTC (permalink / raw)
Thursday, May 20, 2004 David Munger wrote:
> Hello Giuseppe,
> I'm having a little trouble with the cases in amsl.
> Compiling this:
> \[
> f(x) =
> \startcases
> 0 & \text{if $x < -\epsilon$} \\
> \frac12 & \text{if $x > \epsilon$}
> \stopcases
> \]
> results in an error around the \frac.
Hello David, sorry for the delay.
The problem is caused by \frac being defined in the newmat
module as
%D Better:
\def\frac#1#2{\mathematics{\genfrac{}{}{}\donothing{#1}{#2}}}
If you comment that line, it will compile flawlessly.
Hans, why would you want to allow \frac in text mode?
> Changing it to \dfrac makes the input compile ok, but
> typesets the cases in an ugly manner with really narrow
> spacing.
(Yes.)
> Is there some way of telling startcases/stopcases to behave in display
> mode?
Yup, I just changed a couple of things and now we have a
\startbigcases ... \stopbigcases for this. Will upload new
version soon.
--
Giuseppe "Oblomov" Bilotta
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re : amsl: startcases/stopcases
2004-05-25 13:01 ` Giuseppe Bilotta
@ 2004-05-25 15:07 ` David Munger
2004-05-27 10:27 ` Re : [NTG-context] " Giuseppe Bilotta
0 siblings, 1 reply; 8+ messages in thread
From: David Munger @ 2004-05-25 15:07 UTC (permalink / raw)
> > Is there some way of telling startcases/stopcases to behave in
> display
> > mode?
>
> Yup, I just changed a couple of things and now we have a
> \startbigcases ... \stopbigcases for this. Will upload new
> version soon.
Oh, great! I'm really looking forward to get this new version. By the
way, would you be so kind to include some multiline equation
environment? Something like (or better than)
\[
first part of very long equation
\eqbreak
second part of very long equation
\eqbreak
third part of very long equation
\]
which I achieve at the moment by doing
\[
\startalign
first part of very long equation
\hskip 1.5em
\\ \hfill
second part of very long equation
\\ \hfill
third and part of very long equation
\stopalign
\]
But this does not work as well I wish. I'd like to substitute the
'\hskip 1.5 em' after the first line for a '\hfill' so that it always
be the leftmost line, but the latter does nothing at all. So I have to
put a '\hskip' and tweak the distance by hand.
Thanks for you help,
David
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Re : [NTG-context] amsl: startcases/stopcases
2004-05-25 15:07 ` Re : " David Munger
@ 2004-05-27 10:27 ` Giuseppe Bilotta
2004-05-27 16:28 ` Re : [NTG-context] Re: Re : " David Munger
0 siblings, 1 reply; 8+ messages in thread
From: Giuseppe Bilotta @ 2004-05-27 10:27 UTC (permalink / raw)
Tuesday, May 25, 2004 David Munger wrote:
>> > Is there some way of telling startcases/stopcases to behave in
>> display
>> > mode?
>>
>> Yup, I just changed a couple of things and now we have a
>> \startbigcases ... \stopbigcases for this. Will upload new
>> version soon.
> Oh, great! I'm really looking forward to get this new version. By the
> way, would you be so kind to include some multiline equation
> environment? Something like (or better than)
> \[
> first part of very long equation
> \eqbreak
> second part of very long equation
> \eqbreak
> third part of very long equation
> \]
You want to use the nath module: all equations are multiline:
\[ a= b + \\
c + d + \\
e +
\]
You may want to look at the documentation for the nath package
in LaTeX about the use of \wall and \return for alignments
within multiline equations.
--
Giuseppe "Oblomov" Bilotta
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2004-05-28 8:14 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-20 20:13 amsl: startcases/stopcases David Munger
2004-05-25 13:01 ` Giuseppe Bilotta
2004-05-25 15:07 ` Re : " David Munger
2004-05-27 10:27 ` Re : [NTG-context] " Giuseppe Bilotta
2004-05-27 16:28 ` Re : [NTG-context] Re: Re : " David Munger
2004-05-27 21:00 ` Re : [NTG-context] Re: Re : [NTG-context] " Giuseppe Bilotta
2004-05-28 2:55 ` Re : [NTG-context] Re: Re : [NTG-context] Re: Re : " David Munger
2004-05-28 8:14 ` Re : [NTG-context] Re: Re : [NTG-context] Re: Re : [NTG-context] " Giuseppe Bilotta
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).