ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Otared Kavian <otared@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Animation captions (was: error in animation)
Date: Mon, 6 Oct 2014 10:29:43 +0200	[thread overview]
Message-ID: <9005772D-647D-4FA9-ACC8-A0A2B5140D37@gmail.com> (raw)
In-Reply-To: <52FD9E6E-0EE1-46B3-A969-B0BDDF0642C0@me.com>

Indeed a very nice feature in ConTeXt. 
I tested Wolfgang’s example with math formulas and the result is very good: however it seems that one has to fix the width of the caption by saying
	\definepairedbox[animationtext][location=top,align=middle,width=\textwidth]
Otherwise the formulas are cut.

Here is the example:

\usemodule[animation]

\setuppapersize[S6][S6]

\setupinteraction[state=start]

\definepairedbox[animationtext][location=top,align=middle,width=\textwidth]

\starttext

\startanimation
 {\placeanimationtext{Sine norm, and}{\startformula \int_{0}^{2\pi}\sin^2(x)dx = \stopformula}}
 {\placeanimationtext{Cosine norm}{\startformula\int_{0}^{2\pi}\cos^2(x)dx = \stopformula}}
 {\placeanimationtext{are equal}{\startformula = \pi. \stopformula}}
\stopanimation

\stoptext

Best regards: OK

On 06 Oct 2014, at 04:33, Jeong Dal <haksan@me.com> wrote:

> Dear Wolfgang,
> 
> I tested after inserting figures instead of letters in your sample code and it also works fine.
> It is so nice to know the way of using caption in the animation module.
> 
> Thank you for your help.
> 
> Best regards,
> 
> Dalyoung
> 
> 
> %%%%%%%%%
> 
> \usemodule[animation]
> \useMPlibrary[dum]
> \setupinteraction[state=start]
> 
> \definepairedbox[animationtext][location=top,align=middle]
> 
> \starttext
> 
> \startanimation
> {\placeanimationtext{The letter a}{\externalfigure[dummy]}}
> {\placeanimationtext{The letter b}{\externalfigure[dummy]}}
> {\placeanimationtext{The letter c}{\externalfigure[dummy]}}
> {\placeanimationtext{The letter d}{\externalfigure[dummy]}}
> \stopanimation
> 
> \stoptext
> 
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  parent reply	other threads:[~2014-10-06  8:29 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.42.1412544508.2277.ntg-context@ntg.nl>
2014-10-06  2:33 ` Jeong Dal
2014-10-06  7:08   ` Win fonts lookup: ** (was: Animation captions (was: error in animation)) Procházka Lukáš Ing. - Pontex s. r. o.
2014-10-06  7:14     ` Win fonts lookup: ** (was: Animation captions Hans Hagen
2014-10-06  7:51   ` Animation captions (was: error in animation) Henning Hraban Ramm
2014-10-06  8:29   ` Otared Kavian [this message]
     [not found] <mailman.56.1412631186.2277.ntg-context@ntg.nl>
2014-10-08 14:37 ` Jeong Dal
2014-10-08 14:37 ` Jeong Dal
     [not found] <mailman.44.1412584190.2277.ntg-context@ntg.nl>
2014-10-06 12:36 ` Jeong Dal
2014-10-08  3:19 ` Jeong Dal
2014-10-08  7:37   ` Wolfgang Schuster
     [not found] <mailman.18.1412241525.2277.ntg-context@ntg.nl>
2014-10-03 14:06 ` error in animation Jeong Dal
2014-10-05 12:06   ` Jeong Dal
2014-10-05 16:47     ` Animation captions (was: error in animation) Wolfgang Schuster

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=9005772D-647D-4FA9-ACC8-A0A2B5140D37@gmail.com \
    --to=otared@gmail.com \
    --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).