From: David Munger <mungerd@users.sourceforge.net>
Subject: Re: \presentationstep
Date: Wed, 10 Nov 2004 12:08:22 -0500 [thread overview]
Message-ID: <1100106502.29504.16.camel@tempete.lac.qc.ca> (raw)
In-Reply-To: <p06110407bdb7c051852b@[10.0.1.9]>
Otared Kavian wrote :
> Hi David and all ConTeXters,
>
> I was away from my e-mail so I am late in answering.
> Thank you for the file you put on your site. Indeed everything works
> as intended (the \placeformula no longer advances with each step),
> and I think one may suggest to Hans to include this in future
> distributions.
>
> However, in the spirit of ConTeXters who are always asking for a
> step(!) towards perfectness, I let you know the following drawbacks
> of the macros:
>
> 1) Somehow the \FromStep[n][reserve] changes the internal mechanism
> of glue or spaces in displayed formulas. So one needs (as you do in
> your example) to add \; around operators such as +, -, =. Can one
> avoid this?
I'm sorry, I'm no TeX/ConTeXt guru and I really have no idea of how to
achieve this. I think now we need Hans' help.
I have indeed noticed that enclosing an operator between braces breaks
the spacing system. Try, for instance:
\startformula
\vec\nabla\cdot\vec u = 0
\stopformula
\startformula
\vec\nabla\cdot\vec u {=} 0
\stopformula
Unfortunately, using \phatom{=} results in the same broken spacing as
second formula.
> 2) When one refers (see example below) with the command (\in[eq:NS])
> to an equation which has been introduced with \placeformula[eq:NS]
> the interaction makes appear the first instance of that formula,
> which may be incomplete. Could one have a control over this, that is
> for instance, in this particular case, make appear the completed
> equation at the end of the slide made with \StartSteps[Navier||Stokes
> equation]?
Good point! Here's the fix (file updated on my website):
37c37
< \dodoubleempty\doplaceformula[##1]}
---
> \dodoubleempty\doplaceformula}
50c50,54
< \dodoubleempty\doplaceformula[####1]}
---
> \ifnum\steps@counter=\steps@number%
> \def\steps@fnext{\dodoubleempty\doplaceformula[####1]}%
> \else
> \def\steps@fnext{\dodoubleempty\doplaceformula}%
> \fi\steps@fnext}
Now we got rid of the duplicate label warnings. I also added your
contribution to the usage example. Thank you.
Regards,
David
next prev parent reply other threads:[~2004-11-10 17:08 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-03 8:35 \presentationstep Otared Kavian
2004-11-03 16:42 ` \presentationstep David Munger
2004-11-03 17:25 ` \presentationstep Otared Kavian
2004-11-06 8:07 ` \presentationstep David Munger
2004-11-07 22:10 ` \presentationstep Otared Kavian
2004-11-08 0:57 ` \presentationstep David Munger
2004-11-08 12:59 ` \presentationstep Otared Kavian
2004-11-08 18:01 ` \presentationstep David Munger
2004-11-08 20:02 ` \presentationstep Otared Kavian
2004-11-08 21:10 ` \presentationstep David Munger
2004-11-10 14:51 ` \presentationstep Otared Kavian
2004-11-10 17:08 ` David Munger [this message]
2004-11-10 17:39 ` \presentationstep Hans Hagen
2004-11-10 18:08 ` \presentationstep David Munger
2004-11-10 18:44 ` \presentationstep Otared Kavian
2004-11-10 18:25 ` \presentationstep Vit Zyka
2004-11-10 19:05 ` \presentationstep Otared Kavian
-- strict thread matches above, loose matches on Subject: below --
2004-11-02 6:04 \presentationstep David Munger
2004-11-02 7:45 ` \presentationstep Henning Hraban Ramm
2004-11-02 9:58 ` \presentationstep Hans Hagen
2004-11-02 22:22 ` \presentationstep David Munger
2004-11-02 22:55 ` \presentationstep h h extern
2004-11-02 23:38 ` \presentationstep David Munger
2004-11-03 9:39 ` \presentationstep Hans Hagen
2004-11-09 10:18 ` \presentationstep Eckhart Guthöhrlein
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1100106502.29504.16.camel@tempete.lac.qc.ca \
--to=mungerd@users.sourceforge.net \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).