Re: [NTG-context] Animation captions (was: error in animation)
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
Hello,
when trying Jeong's example, Ctx prints:
"
fonts > names > globbing path 'c:/windows/fonts/**.otf'
fonts > names > identifying system font files with suffix 'OTF'
fonts > names > globbing path 'c:/windows/fonts/**.OTF'
fonts > names > 0 system files identified, 0 skipped, 0 duplicates, 0 hash entries added, runtime 0.094 seconds
fonts > names > identifying system font files with suffix 'ttf'
fonts > names > globbing path 'c:/windows/fonts/**.ttf'
fonts > names > identifying system font files with suffix 'TTF'
fonts > names > globbing path 'c:/windows/fonts/**.TTF'
fonts > names > 453 system files identified, 2 skipped, 2 duplicates, 451 hash entries added, runtime 6.719 seconds
fonts > names > identifying system font files with suffix 'ttc'
fonts > names > globbing path 'c:/windows/fonts/**.ttc'
fonts > names > identifying system font files with suffix 'TTC'
fonts > names > globbing path 'c:/windows/fonts/**.TTC'
fonts > names > 3 system files identified, 0 skipped, 0 duplicates, 3 hash entries added, runtime 0.094 seconds
fonts > names > identifying system font files with suffix 'dfont'
fonts > names > globbing path 'c:/windows/fonts/**.dfont'
fonts > names > identifying system font files with suffix 'DFONT'
fonts > names > globbing path 'c:/windows/fonts/**.DFONT'
fonts > names > 0 system files identified, 0 skipped, 0 duplicates, 0 hash entries added, runtime 0.047 seconds
fonts > names > identifying system font files with suffix 'afm'
fonts > names > globbing path 'c:/windows/fonts/**.afm'
fonts > names > identifying system font files with suffix 'AFM'
fonts > names > globbing path 'c:/windows/fonts/**.AFM'
"
So just to point there are two asterisks "**" in the file name masks (c:/windows/fonts/**.otf, ... c:/windows/fonts/**.AFM), which probably produces no error, but it may have been intended to have just one asterisk, like "c:/windows/fonts/*.otf" etc.
Best regards,
Lukas
On Mon, 06 Oct 2014 04:33:28 +0200, Jeong Dal
\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
-- Ing. Lukáš Procházka | mailto:LPr@pontex.cz Pontex s. r. o. | mailto:pontex@pontex.cz | http://www.pontex.cz Bezová 1658 147 14 Praha 4 Tel: +420 241 096 751 Fax: +420 244 461 038
On 10/6/2014 9:08 AM, Procházka Lukáš Ing. - Pontex s. r. o. wrote:
Hello,
when trying Jeong's example, Ctx prints:
" fonts > names > globbing path 'c:/windows/fonts/**.otf' fonts > names > identifying system font files with suffix 'OTF' fonts > names > globbing path 'c:/windows/fonts/**.OTF' fonts > names > 0 system files identified, 0 skipped, 0 duplicates, 0 hash entries added, runtime 0.094 seconds fonts > names > identifying system font files with suffix 'ttf' fonts > names > globbing path 'c:/windows/fonts/**.ttf' fonts > names > identifying system font files with suffix 'TTF' fonts > names > globbing path 'c:/windows/fonts/**.TTF' fonts > names > 453 system files identified, 2 skipped, 2 duplicates, 451 hash entries added, runtime 6.719 seconds fonts > names > identifying system font files with suffix 'ttc' fonts > names > globbing path 'c:/windows/fonts/**.ttc' fonts > names > identifying system font files with suffix 'TTC' fonts > names > globbing path 'c:/windows/fonts/**.TTC' fonts > names > 3 system files identified, 0 skipped, 0 duplicates, 3 hash entries added, runtime 0.094 seconds fonts > names > identifying system font files with suffix 'dfont' fonts > names > globbing path 'c:/windows/fonts/**.dfont' fonts > names > identifying system font files with suffix 'DFONT' fonts > names > globbing path 'c:/windows/fonts/**.DFONT' fonts > names > 0 system files identified, 0 skipped, 0 duplicates, 0 hash entries added, runtime 0.047 seconds fonts > names > identifying system font files with suffix 'afm' fonts > names > globbing path 'c:/windows/fonts/**.afm' fonts > names > identifying system font files with suffix 'AFM' fonts > names > globbing path 'c:/windows/fonts/**.AFM' "
So just to point there are two asterisks "**" in the file name masks (c:/windows/fonts/**.otf, ... c:/windows/fonts/**.AFM), which probably produces no error, but it may have been intended to have just one asterisk, like "c:/windows/fonts/*.otf" etc.
** means recursive -- ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Am 2014-10-06 um 08:33 schrieb Jeong Dal
\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
I wikified that, but didn’t test: http://wiki.contextgarden.net/Animation Greetlings, Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer)
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
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 ___________________________________________________________________________________
participants (5)
-
Hans Hagen
-
Henning Hraban Ramm
-
Jeong Dal
-
Otared Kavian
-
Procházka Lukáš Ing. - Pontex s. r. o.