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

2014-10-08 Thread Wolfgang Schuster

Am 08.10.2014 um 05:19 schrieb Jeong Dal hak...@me.com:

 
 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?

I mixed up the order of arguments, the text goes into the second argument and 
the figure
etc. is put into the first argument, e.g.

\useMPlibrary[dum]

\starttext

\placelegend{\externalfigure[dummy][width=8cm]}{\input ward }

\blank

\placelegend[width=\textwidth]{\externalfigure[dummy][width=8cm]}{\input ward }

\stoptext

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] (MKIV beta) APA citations: et al. incorrectly written

2014-10-08 Thread Robert Blackstone

On 6 Oct 2014, at 23:33 , Sander Maijers s.n.maij...@gmail.com
 wrote:

 Who can offer a short-term solution to this problem? All I want is to
 reference a work, listing all of the authors' names, in APA6 format. If
 necessary I'll prescribe the output format manually.
 
 Best,
 
 Sander Maijers
 
 
 \setupbibtex[database={references/bibliographic_database},sort=author]
 \setuppublications[alternative=apa]
 
 \starttext
\cite[extras={, p.~3}][Zhou2012]
\cite[Zhou2012]
 \stoptext
 
 
 Incorrectly produces:
 
 (Zhou et al., 2012, p. 3) (Zhou et al., 2012)
 
 
 Instead of:
 
 (Zhou, Lyu,  King, 2012, p. 3) (Zhou, Lyu,  King, 2012)
 
 

What I would do is, for the final processing, not to load the .bib-file but the 
.bbl that was generated in the previous run. You can open that file in any text 
processor (I mostly use TeXShop) and manually change the Author for this 
particular entry. In the .bbl the field Author has this form: \author[]{}[]{}{} 
.

You should be able to solve your problem by putting inside the last pair of 
brackets exactly how you would like your authors et. al. to appear in your 
output. Place the whole lot again between brackets:  \author[]{}[]{}{{Zhou, Tom 
Chao and Lyu, Michael R. and King, Irwin}} or whatever you want.

But again,  don’t input the bib-file. Every time you do that the old .bbl is 
overwritten and your correction will be lost. ConTeXt uses the .bbl, not the 
.bib.

I hope this helps.
Best regards,

Robert Blackstone

___
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] (MKIV beta) APA citations: et al. incorrectly written

2014-10-08 Thread Sander Maijers
Thank you Robert! I was planning to respond to your private message as
well. Am I correct in that you would enforce a single concrete
citation format throughout the document that way? In that case, I' m
sorry to report that does not help me. You were asking for comments
about your solution, I hope the following remarks are informative to
you.

My .bib file is being autogenerated by Mendeley, a reference manager,
and changes often in terms of contents. That workflow seems
incompatible with your solution. Furthermore, I may not let the
authors appear in citations with all their names every time, it should
be limited to the first time (the APA 6 rules, that I referred to).
With your solution, 1 out of n citations would be correct, while in
the current situation (without manual intervention) n-1 out of n would
be correct (all but the first).

So, am I out of luck? Should I maybe have an 'invisible' citation with
the first citation, spelling out that citation myself, while still
recording that the work was cited and is to be listed in the
bibliography.

Who can tell me please how to hide \cite output in the neatest way
possible, while keeping the semantics in tact (i.e. establish that a
reference was made)?

Best,

Sander Maijers


On Wed, Oct 8, 2014 at 10:29 AM, Robert Blackstone
blackstone.rob...@gmail.com wrote:

 On 6 Oct 2014, at 23:33 , Sander Maijers s.n.maij...@gmail.com
  wrote:

 Who can offer a short-term solution to this problem? All I want is to
 reference a work, listing all of the authors' names, in APA6 format. If
 necessary I'll prescribe the output format manually.

 Best,

 Sander Maijers


 \setupbibtex[database={references/bibliographic_database},sort=author]

 \setuppublications[alternative=apa]

 \starttext
\cite[extras={, p.~3}][Zhou2012]
\cite[Zhou2012]
 \stoptext


 Incorrectly produces:

 (Zhou et al., 2012, p. 3) (Zhou et al., 2012)


 Instead of:

 (Zhou, Lyu,  King, 2012, p. 3) (Zhou, Lyu,  King, 2012)




 What I would do is, for the final processing, not to load the .bib-file but
 the .bbl that was generated in the previous run. You can open that file in
 any text processor (I mostly use TeXShop) and manually change the Author for
 this particular entry. In the .bbl the field Author has this form:
 \author[]{}[]{}{} .

 You should be able to solve your problem by putting inside the last pair of
 brackets exactly how you would like your authors et. al. to appear in your
 output. Place the whole lot again between brackets:  \author[]{}[]{}{{Zhou,
 Tom Chao and Lyu, Michael R. and King, Irwin}} or whatever you want.

 But again,  don’t input the bib-file. Every time you do that the old .bbl is
 overwritten and your correction will be lost. ConTeXt uses the .bbl, not the
 .bib.

 I hope this helps.
 Best regards,

 Robert Blackstone


 ___
 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] Animation captions (was: error in animation)

2014-10-08 Thread Jeong Dal
Dear Wolfgang,


After changing the order, it works fine.

Also, \startcontent … \stopcontent and \startcaption … \stopcaption are working 
too.

Thank you for your help.

Best regards,

Dalyoung

\useMPlibrary[dum]
\usemodule[animation]
\setupinteraction[state=start]
\starttext
\definepairedbox
[mylegend]
[location={bottom}] % width=10cm
\startanimation
{\startplacemylegend
\startcontent
{\externalfigure[dummy][]}
\stopcontent
\startcaption
\input ward
\stopcaption
\stopplacemylegend}
{\startplacemylegend
{\externalfigure[dummy][]}
{ caption caption}
\stopplacemylegend}
{\startplacemylegend
\startcontent
{\externalfigure[dummy][]}
\stopcontent
\startcaption
\input ward
\stopcaption
\stopplacemylegend}
\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
___

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

2014-10-08 Thread Jeong Dal
Dear Wolfgang,


After changing the order, it works fine.

Also, \startcontent … \stopcontent and \startcaption … \stopcaption are working 
too.

Thank you for your help.

Best regards,

Dalyoung

\useMPlibrary[dum]
\usemodule[animation]
\setupinteraction[state=start]
\starttext
\definepairedbox
[mylegend]
[location={bottom}] % width=10cm
\startanimation
{\startplacemylegend
\startcontent
{\externalfigure[dummy][]}
\stopcontent
\startcaption
\input ward
\stopcaption
\stopplacemylegend}
{\startplacemylegend
{\externalfigure[dummy][]}
{ caption caption}
\stopplacemylegend}
{\startplacemylegend
\startcontent
{\externalfigure[dummy][]}
\stopcontent
\startcaption
\input ward
\stopcaption
\stopplacemylegend}
\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
___

[NTG-context] LuaTeX Crashes

2014-10-08 Thread Thangalin
Hi,

It seems tostring is calling itself indefinitely, causing it to crash:

C stack overflow
stack traceback:
[C]: in function 'tostring'
...14.10.07/tex/texmf-context/tex/context/base/lpdf-ini.lua:388:
in function ...14.10.07/tex/texmf-context/tex/context/base/lpdf-ini.lua:371
[C]: in function 'tostring'
...14.10.07/tex/texmf-context/tex/context/base/lpdf-ini.lua:347:
in function ...14.10.07/tex/texmf-context/tex/context/base/lpdf-ini.lua:332
[C]: in function 'tostring'
...14.10.07/tex/texmf-context/tex/context/base/lpdf-ini.lua:347:
in function ...14.10.07/tex/texmf-context/tex/context/base/lpdf-ini.lua:332
[C]: in function 'tostring'
...14.10.07/tex/texmf-context/tex/context/base/lpdf-ini.lua:347:
in function ...14.10.07/tex/texmf-context/tex/context/base/lpdf-ini.lua:332
[C]: in function 'tostring'
...
...14.10.07/tex/texmf-context/tex/context/base/lpdf-ini.lua:347:
in function ...14.10.07/tex/texmf-context/tex/context/base/lpdf-ini.lua:332
[C]: in function 'tostring'
...14.10.07/tex/texmf-context/tex/context/base/lpdf-ini.lua:347:
in function ...14.10.07/tex/texmf-context/tex/context/base/lpdf-ini.lua:332
[C]: in function 'tostring'
...14.10.07/tex/texmf-context/tex/context/base/lpdf-ini.lua:347:
in function ...14.10.07/tex/texmf-context/tex/context/base/lpdf-ini.lua:332
[C]: in function 'tostring'
...14.10.07/tex/texmf-context/tex/context/base/lpdf-ini.lua:711:
in function 'pdfshareobjectreference'
...14.10.07/tex/texmf-context/tex/context/base/lpdf-ano.lua:574:
in function 'prerollreference'
...14.10.07/tex/texmf-context/tex/context/base/node-ref.lua:409:
in function 'setreference'
...14.10.07/tex/texmf-context/tex/context/base/node-ref.lua:597:
in function 'injectcurrentreference'
[\directlua]:1: in main chunk
___
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
___