Re: [NTG-context] frac and tfrac with sqrt

2014-10-07 Thread Hans Hagen

On 10/7/2014 7:33 AM, Mikael P. Sundqvist wrote:

On Mon, Oct 6, 2014 at 11:32 PM, Wolfgang Schuster
schuster.wolfg...@gmail.com wrote:

\setupmathradical[alternative=default]


Very good!

Hans, will the default be default in next beta? :)


no, but there will be different settings ... the problem with fractions 
and radicals and their mixing is that we have to (somehow) deal with 
unpredictable math styles (and esp in radicals there are fuzzy concepts 
like 'the surrounding style is used' while inside a different one is 
used (all a side effect of parsing first and generating next)


anyway, the next release will have a split setup for display and inline 
and (hopefully) work as intended (the major bottleneck is not the 
radical but \text and it's kind o ftricky to get both of them okay at 
the same time)


and of course we also want the plugins (mp) and coloring and so working

Hans

-
  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
-
___
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
___

[NTG-context] multi-line equations with \left( and \right.

2014-10-07 Thread Xan
Hi,

I try to do that

\startformula
\startalign[left={\left(\,},right={\,\right.}]
\NC x - 2y + 2z \NC = 1 \NR
\NC 2 x + y - z \NC = 2 \NR
\NC 4 x - 3y + 6z \NC = 7 \NR
\stopalign
\stopformula


but it does not work.
Can anyone help me?

Thanks,
Xan

PS: Please CCme
___
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
___

[NTG-context] Possibly bug: misalignment with matrix

2014-10-07 Thread Xan
Hi,

Minimal example:


\definemathmatrix[pmatrix]
[left={\left(\,},right={\,\right)}]


\starttext
Digueu quines de les matrius següents són regulars. Quan ho siguin, trobeu la 
inversa

\startitemize[a,columns,four]
\item \startpmatrix[n=2]
\NC 2 \NC 3 \NR
\NC 6 \NC 7 \NR
\stoppmatrix

\item \startpmatrix[n=3]
\NC 3 \NC 2 \NC 1 \NR
\NC 4 \NC 5 \NC 3 \NR
\NC 5 \NC 0 \NC -2 \NR
\stoppmatrix

\item \startpmatrix[n=3]
\NC 5 \NC 4 \NC 2 \NR
\NC 2 \NC 2 \NC 3 \NR
\NC 7 \NC 6 \NC 5 \NR
\stoppmatrix

\item \startpmatrix[n=4]
\NC a \NC 0 \NC 0 \NC 0 \NR
\NC 0 \NC b \NC 0 \NC 0 \NR
\NC 0 \NC 0 \NC c \NC 0 \NR
\NC 0 \NC 0 \NC 0 \NC d \NR
\stoppmatrix

\stopitemize

\stoptext

produces misalignment in last item (I attach pdf)

Can anyone confirm that?

Thanks,
Xan


matrix.pdf
Description: Adobe PDF document
___
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
___

Re: [NTG-context] multi-line equations with \left( and \right.

2014-10-07 Thread Wolfgang Schuster

Am 07.10.2014 um 10:59 schrieb Xan dxpubl...@telefonica.net:

 Hi,
 
 I try to do that
 
 \startformula
 \startalign[left={\left(\,},right={\,\right.}]
 \NC x - 2y + 2z \NC = 1 \NR
 \NC 2 x + y - z \NC = 2 \NR
 \NC 4 x - 3y + 6z \NC = 7 \NR
 \stopalign
 \stopformula
 
 but it does not work.
 Can anyone help me?

You have to use the \startmatrix environment.

- http://wiki.contextgarden.net/%5Cstartcases
- http://dl.contextgarden.net/myway/mathalign.pdf

Wolfgang
___
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
___

Re: [NTG-context] multi-line equations with \left( and \right.

2014-10-07 Thread Xan
Mm... I thought I could use mathalign instead.

Thanks,


On Tue, 7 Oct 2014 11:23:13 +0200
Wolfgang Schuster schuster.wolfg...@gmail.com ha escrit:

 
 Am 07.10.2014 um 10:59 schrieb Xan dxpubl...@telefonica.net:
 
  Hi,
  
  I try to do that
  
  \startformula
  \startalign[left={\left(\,},right={\,\right.}]
  \NC x - 2y + 2z \NC = 1 \NR
  \NC 2 x + y - z \NC = 2 \NR
  \NC 4 x - 3y + 6z \NC = 7 \NR
  \stopalign
  \stopformula
  
  but it does not work.
  Can anyone help me?
 
 You have to use the \startmatrix environment.
 
 - http://wiki.contextgarden.net/%5Cstartcases
 - http://dl.contextgarden.net/myway/mathalign.pdf
 
 Wolfgang
___
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
___

Re: [NTG-context] multi-line equations with \left( and \right.

2014-10-07 Thread Otared Kavian
Hi Xan,

I think Wolfgang meant that one should something like the following 
construction:

% define here a new math-aligned structure:
\definemathmatrix[alignedcases]
[align={right,left,left},
distance=3pt,
left={\left\{},
right={\right.},
style=\displaystyle]

\starttext

\startformula
\startalignedcases
\NC x - 2y + 2z \NC = 1 \NR
\NC 2 x + y - z \NC = 2 \NR
\NC 4 x - 3y + 6z \NC = 7 \NR
\stopalignedcases
\stopformula
\stoptext

Best regards: OK


On 07 Oct 2014, at 12:22, Xan dxpubl...@telefonica.net wrote:

 Mm... I thought I could use mathalign instead.
 
 Thanks,
 
 
 On Tue, 7 Oct 2014 11:23:13 +0200
 Wolfgang Schuster schuster.wolfg...@gmail.com ha escrit:
 
 
 Am 07.10.2014 um 10:59 schrieb Xan dxpubl...@telefonica.net:
 
 Hi,
 
 I try to do that
 
 \startformula
 \startalign[left={\left(\,},right={\,\right.}]
 \NC x - 2y + 2z \NC = 1 \NR
 \NC 2 x + y - z \NC = 2 \NR
 \NC 4 x - 3y + 6z \NC = 7 \NR
 \stopalign
 \stopformula
 
 but it does not work.
 Can anyone help me?
 
 You have to use the \startmatrix environment.
 
 - http://wiki.contextgarden.net/%5Cstartcases
 - http://dl.contextgarden.net/myway/mathalign.pdf
 
 Wolfgang
 ___
 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
___

[NTG-context] setuphead bug?

2014-10-07 Thread Meer, H. van der

There seems to be a problem in \setuphead, it produces a spurious else from the 
alternative=middle.

In the reference manual I see the possibilities: alternative = normal inmargin 
middle TEXT. Of these middle is the only one giving the else.

minimal example:

\setuphead[chapter][alternative=middle]
\starttext
\startchapter[title=TITLE]
\stopchapter
\stoptext

Is there a quick repair?

ConTeXt  ver: 2014.10.06 00:29 MKIV beta  fmt: 2014.10.6  int: english/english


Hans van der Meer





else-bug.pdf
Description: else-bug.pdf
___
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
___

Re: [NTG-context] hyphenating urls and \tex

2014-10-07 Thread Pablo Rodriguez
On 10/06/2014 12:28 AM, Hans Hagen wrote:
 [...]
 \unexpanded\def\WhateverB#1%
{\dontleavehmode
 \begingroup
 \tttf
 \prehyphenchar\minusone
   % \localrightbox{\llap{_}}%
 \localrightbox{\llap{\smash{\lower1.5ex\hbox{\char2192%
 \setbox\scratchbox\hbox{#1}%
 \prehyphenchar`-\relax
 \unhbox\scratchbox
 \endgroup}

Many thanks for your reply, Hans.

Playing with your suggestion, I came to the following sample:

\definetype[TeXcode][option=TEX]

\unexpanded\def\underscorehyphenation#1%
   {\dontleavehmode
\begingroup
\prehyphenchar\minusone
\localrightbox{\llap{\smash{\lower.1ex\hbox{_%
\setbox\scratchbox\hbox{#1}%
\prehyphenchar`-\relax
\unhbox\scratchbox
\endgroup}

\unexpanded\def\mex#1{\normalexpanded{\TeXcode{\letterbackslash#1}}}
\def\tex#1{\underscorehyphenation{\mex{#1}}}

\define[1]\url{{\tt\goto{\hyphenatedurl{#1}}}[url(#1)]}}

\starttext
\startTEXpage[offset=1em]
 \begingroup \hsize1cm
 \tex{thisisaboringandverylong[command}\par

 \url{thisisaboringandverylongcommand}\par
 \endgroup
\stopTEXpage
\stoptext

Is there a way to automatically detect (and apply it to the underscore)
the regular, bold font and its color?

Is there a way to apply both \hyphenatedurl and \underscorehyphenation
to an url?

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___
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
___

Re: [NTG-context] setuphead bug?

2014-10-07 Thread Otared Kavian
Don’t you mean rather
\setuphead[chapter][align=middle]
instead of « alternative »?

Best regards: OK

On 07 Oct 2014, at 17:28, Meer, H. van der h.vanderm...@uva.nl wrote:

 
 There seems to be a problem in \setuphead, it produces a spurious else from 
 the alternative=middle. 
 
 In the reference manual I see the possibilities: alternative = normal 
 inmargin middle TEXT. Of these middle is the only one giving the else.
 
 minimal example:
 
 \setuphead[chapter][alternative=middle]
 \starttext
 \startchapter[title=TITLE]
 \stopchapter
 \stoptext
 
 Is there a quick repair?
 
 ConTeXt  ver: 2014.10.06 00:29 MKIV beta  fmt: 2014.10.6  int: english/english
 
 
 Hans van der Meer
 
 
 
 else-bug.pdf___
 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
___

Re: [NTG-context] setuphead bug?

2014-10-07 Thread Meer, H. van der
\setuphead[chapter][align=middle] works out ok for me. Thanks!

But then, \setuphead[chapter][alternative=middle] seems quite correct, 
following the manual. The else seems strange then.

Hans van der Meer



On 07 Oct 2014, at 17:59, Otared Kavian 
ota...@gmail.commailto:ota...@gmail.com wrote:

Don’t you mean rather
\setuphead[chapter][align=middle]
instead of « alternative »?

Best regards: OK

On 07 Oct 2014, at 17:28, Meer, H. van der 
h.vanderm...@uva.nlmailto:h.vanderm...@uva.nl wrote:


There seems to be a problem in \setuphead, it produces a spurious else from the 
alternative=middle.

In the reference manual I see the possibilities: alternative = normal inmargin 
middle TEXT. Of these middle is the only one giving the else.

minimal example:

\setuphead[chapter][alternative=middle]
\starttext
\startchapter[title=TITLE]
\stopchapter
\stoptext

Is there a quick repair?

ConTeXt  ver: 2014.10.06 00:29 MKIV beta  fmt: 2014.10.6  int: english/english


Hans van der Meer



else-bug.pdf___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

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

maillist : ntg-context@ntg.nlmailto: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
___

Re: [NTG-context] Possibly bug: misalignment with matrix

2014-10-07 Thread Thangalin
Looks like a bug; adding blank rows works around the problem (but
looks terrible):

\definemathmatrix[pmatrix] [left={\left(\,},right={\,\right)}]

\starttext
Digueu quines de les matrius següents són regulars. Quan ho siguin,
trobeu la inversa

\startitemize[a,columns,four]
\item \startpmatrix[n=4]
\NC \NR
\NC 2 \NC 3 \NR
\NC 6 \NC 7 \NR
\NC \NR
\stoppmatrix

\item \startpmatrix[n=4]
\NC 3 \NC 2 \NC 1 \NR
\NC 4 \NC 5 \NC 3 \NR
\NC 5 \NC 0 \NC -2 \NR
\NC
\stoppmatrix

\item \startpmatrix[n=4]
\NC 5 \NC 4 \NC 2 \NR
\NC 2 \NC 2 \NC 3 \NR
\NC 7 \NC 6 \NC 5 \NR
\NC
\stoppmatrix

\item \startpmatrix[n=4]
\NC a \NC 0 \NC 0 \NC 0 \NR
\NC 0 \NC b \NC 0 \NC 0 \NR
\NC 0 \NC 0 \NC c \NC 0 \NR
\NC 0 \NC 0 \NC 0 \NC d \NR
\stoppmatrix

\stopitemize

\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
___

Re: [NTG-context] setuphead bug?

2014-10-07 Thread Otared Kavian
Hi,

You are right, it seems that there is a trailing « else » somewhere in the 
sources… 
Actually the possible keys for « alternative= » are

 alternative=paragraph normal inmargin margin middle top bottom 
IDENTIFIER

and the following works fine also:

\setuphead[chapter] [number=no, alternative=middle] 
\starttext
 \startchapter[title=TITLE] 
\input knuth.tex
 \stopchapter
\stoptext

However, saying

\setuphead[chapter] [alternative=middle] 

gives the wrong result you mentioned, suggesting that there is somewhere an « 
else » which shouldn’t be there.
Maybe Hans H. with the above informations can nail it down?

Best regards: OK

On 07 Oct 2014, at 18:40, Meer, H. van der h.vanderm...@uva.nl wrote:

 \setuphead[chapter][align=middle] works out ok for me. Thanks!
 
 But then, \setuphead[chapter][alternative=middle] seems quite correct, 
 following the manual. The else seems strange then.
 
 Hans van der Meer
 
 
 
 On 07 Oct 2014, at 17:59, Otared Kavian ota...@gmail.com wrote:
 
 Don’t you mean rather
 \setuphead[chapter][align=middle]
 instead of « alternative »?
 
 Best regards: OK
 
 On 07 Oct 2014, at 17:28, Meer, H. van der h.vanderm...@uva.nl wrote:
 
 
 There seems to be a problem in \setuphead, it produces a spurious else from 
 the alternative=middle. 
 
 In the reference manual I see the possibilities: alternative = normal 
 inmargin middle TEXT. Of these middle is the only one giving the else.
 
 minimal example:
 
 \setuphead[chapter][alternative=middle]
 \starttext
 \startchapter[title=TITLE]
 \stopchapter
 \stoptext
 
 Is there a quick repair?
 
 ConTeXt  ver: 2014.10.06 00:29 MKIV beta  fmt: 2014.10.6  int: 
 english/english
 
 
 Hans van der Meer
 
 
 
 else-bug.pdf___
 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
 ___
 
 ___
 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
___

Re: [NTG-context] setuphead bug?

2014-10-07 Thread Wolfgang Schuster

Am 07.10.2014 um 21:22 schrieb Otared Kavian ota...@gmail.com:

 Hi,
 
 You are right, it seems that there is a trailing « else » somewhere in the 
 sources… 
 Actually the possible keys for « alternative= » are
   
alternative=paragraph normal inmargin margin middle top bottom 
 IDENTIFIER
 
 and the following works fine also:
 
 \setuphead[chapter] [number=no, alternative=middle] 
 \starttext
  \startchapter[title=TITLE] 
 \input knuth.tex
  \stopchapter
 \stoptext
 
 However, saying
   
   \setuphead[chapter] [alternative=middle] 
 
 gives the wrong result you mentioned, suggesting that there is somewhere an « 
 else » which shouldn’t be there.
 Maybe Hans H. with the above informations can nail it down?

strc-ren.mkiv

\startsetups[\??headrenderings:\v!middle]
\vbox {
\headsetupspacing
\veryraggedcenter
\let\\\endgraf
\let\crlf\endgraf
\ifconditional\headshownumber
\strut
\headnumbercontent
\par
-   else
+   \else
\fakeheadnumbercontent % will also be done in the other ones (force 
consistency with numbered)
\fi
\begstrut
\headtextcontent
\endstrut
}
\stopsetups

Wolfgang

___
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
___

Re: [NTG-context] setuphead bug?

2014-10-07 Thread Wolfgang Schuster

Am 07.10.2014 um 21:22 schrieb Otared Kavian ota...@gmail.com:

 Hi,
 
 You are right, it seems that there is a trailing « else » somewhere in the 
 sources… 
 Actually the possible keys for « alternative= » are
   
alternative=paragraph normal inmargin margin middle top bottom 
 IDENTIFIER
 
 and the following works fine also:
 
 \setuphead[chapter] [number=no, alternative=middle] 
 \starttext
  \startchapter[title=TITLE] 
 \input knuth.tex
  \stopchapter
 \stoptext
 
 However, saying
   
   \setuphead[chapter] [alternative=middle] 
 
 gives the wrong result you mentioned, suggesting that there is somewhere an « 
 else » which shouldn’t be there.
 Maybe Hans H. with the above informations can nail it down?

strc-ren.mkiv

\startsetups[\??headrenderings:\v!middle]
\vbox {
\headsetupspacing
\veryraggedcenter
\let\\\endgraf
\let\crlf\endgraf
\ifconditional\headshownumber
\strut
\headnumbercontent
\par
-   else
+   \else
\fakeheadnumbercontent % will also be done in the other ones (force 
consistency with numbered)
\fi
\begstrut
\headtextcontent
\endstrut
}
\stopsetups

Wolfgang

___
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
___

Re: [NTG-context] setuphead bug?

2014-10-07 Thread Hans Hagen

On 10/7/2014 10:32 PM, Wolfgang Schuster wrote:


-   else
+   \else
 \fakeheadnumbercontent % will also be done in the other ones 
(force consistency with numbered)
 \fi


yes, a new thingie

Hans

-
  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
-
___
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
___

Re: [NTG-context] Animation captions (was: error in animation)

2014-10-07 Thread Jeong Dal

Dear Woldgang,


I searched \definepairedbox and found several discussions as following:

http://www.ntg.nl/pipermail/ntg-context/2005/014315.html
https://www.mail-archive.com/ntg-context@ntg.nl/msg71401.html

In the above examples, it took a long sentences as a caption while my example 
don’t allow multiple lines.
I inserted \crlf but it is not working.

The difference is that “side by side”(example above)  and “top and 
bottom”(example below).

Is there a way of allowing multiple lines?

Thank you.

Best regards,

Dalyoung


\usemodule[animation]
\useMPlibrary[dum]
\setupinteraction[state=start]

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

\starttext

\startanimation
{\placeanimationtext{A long long long long long long long long long \crlf long 
long long long long long long long long long long long long long long long long 
long long long long caption}{\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
___