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

2014-10-06 Thread Mikael P. Sundqvist
On Mon, Oct 6, 2014 at 11:32 PM, Wolfgang Schuster
 wrote:
> \setupmathradical[alternative=default]

Very good!

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

Best regards, Mikael
___
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] frac and tfrac with sqrt

2014-10-06 Thread Wolfgang Schuster

Am 06.10.2014 um 16:12 schrieb Aditya Mahajan :

> On Mon, 6 Oct 2014, Mikael P. Sundqvist wrote:
> 
>> On Fri, Oct 3, 2014 at 1:30 PM, Mikael P. Sundqvist  wrote:
>>> Hi!
>>> 
>>> Is this (see frac.pdf) the expected output of \frac and \tfrac in
>>> combination with \sqrt? To me the \sqrt{3} looks too big in \tfrac.
>>> 
>>> I attach also the output from the corresponding latex document, having
>>> the result I expect.
>>> 
>>> Best regards, Mikael
>>> 
>>> PS Compilation done with latest standalone
>> 
>> Sorry to bump. No one? Is it a feature?
> 
> No, definitely a bug.
> 
> I don't know how to fix it though.

\setupmathradical[alternative=default]

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-06 Thread Sander Maijers
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

On Tue, Sep 30, 2014 at 8:32 PM, Alan BRASLAU  wrote:

> Hello,
>
> These are the sort of details that we are trying to address with the
> new bibliography subsystem. The APA rules (reference: Publication
> Manual of the APA, 6th edition) give many special cases, some of which
> can be a bit tricky.
>
> The mkii/mkiv bibliography module that you are using does a good job but
> is not so sophisticated. The new mkiv rewrite is (unfortunately) still
> work in progress and is not quite "production" ready. The new subsystem
> was one topic of the recent ConTeXt meeting.
>
> You can continue to address bibliography questions to the list, or to me
> directly as I am presently working on this with Hans "in my spare
> time" (Luigi and Thomas are also actively involved). This does not
> solve your immediate problem, however.
>
> Alan
>
>
> On Tue, 30 Sep 2014 16:19:36 +0200
> Sander Maijers  wrote:
>
> > Hi all,
> >
> > I use
> >
> > > This is LuaTeX, Version beta-0.79.1 (TeX Live 2014/dev) (rev 4972)
> > >
> > > ConTeXt  ver: 2014.09.27 14:46 MKIV beta  fmt: 2014.9.30  int:
> > > english/english
> > >
> >
> > I want citations to respect APA rules, as described here:
> >
> http://blog.apastyle.org/apastyle/2011/11/the-proper-use-of-et-al-in-apa-style.htm
> > l
> >
> > *Problem*: when I cite a work with three authors, "et al."  appears
> > in the first citation.
> >
> > *Example*:
> >
> > \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)
> >
> >
> > Where the BibTeX entry is
> >
> > > @inproceedings{Zhou2012,
> > > address = {New York, New York, USA},
> > > annote = {2/5},
> > > author = {Zhou, Tom Chao and Lyu, Michael R. and King, Irwin},
> > > booktitle = {Proceedings of the 21st international conference
> > > companion on World Wide Web - WWW '12 Companion},
> > > doi = {10.1145/2187980.2188201},
> > > isbn = {9781450312301},
> > > keywords = {classification,community question answering,question
> > > routing}, month = apr,
> > > pages = {783},
> > > publisher = {ACM Press},
> > > title = {{A classification-based approach to question routing in
> > > community question answering}},
> > > url = {http://dl.acm.org/citation.cfm?id=2187980.2188201},
> > > year = {2012}
> > > }
> > >
> >
> > I hope someone can help me with this.
> >
> > Best regards,
> > Sander Maijers
>
>
>
> --
> Alan Braslau
> CEA DSM-IRAMIS-SPEC
> CNRS URA 2464
> Orme des Merisiers
> 91191 Gif-sur-Yvette cedex FRANCE
> tel: +33 1 69 08 73 15
> fax: +33 1 69 08 87 86
> mailto:alan.bras...@cea.fr
>
___
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] frac and tfrac with sqrt

2014-10-06 Thread Aditya Mahajan

On Mon, 6 Oct 2014, Mikael P. Sundqvist wrote:


On Fri, Oct 3, 2014 at 1:30 PM, Mikael P. Sundqvist  wrote:

Hi!

Is this (see frac.pdf) the expected output of \frac and \tfrac in
combination with \sqrt? To me the \sqrt{3} looks too big in \tfrac.

I attach also the output from the corresponding latex document, having
the result I expect.

Best regards, Mikael

PS Compilation done with latest standalone


Sorry to bump. No one? Is it a feature?


No, definitely a bug.

I don't know how to fix it though.

Aditya
___
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] viewer magnification in full screen (/OpenAction)

2014-10-06 Thread Peter Rolf
Hi,

I want to open a document in 'full screen', showing the complete page at
maximal magnification. Couldn't find a proper way to set the
magnification though.


Peter


Example:

\setupinteraction[state=start]% openaction, focus
\setupinteractionscreen[option=max,height=fit]

\starttext
Full screen, all visible and at maximal possible magnification...
\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] frac and tfrac with sqrt

2014-10-06 Thread Mikael P. Sundqvist
On Fri, Oct 3, 2014 at 1:30 PM, Mikael P. Sundqvist  wrote:
> Hi!
>
> Is this (see frac.pdf) the expected output of \frac and \tfrac in
> combination with \sqrt? To me the \sqrt{3} looks too big in \tfrac.
>
> I attach also the output from the corresponding latex document, having
> the result I expect.
>
> Best regards, Mikael
>
> PS Compilation done with latest standalone

Sorry to bump. No one? Is it a feature?

Best regards, Mikael
___
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-06 Thread Jeong Dal
Deat Hraban and Otared,

> 
> I wikified that, but didn’t test:
> http://wiki.contextgarden.net/Animation
> 

I read the wiki page and it is explained well about the animation.
Also, thank you for introducing  cites for making movies. 
It looks very nice but it would be a painful job, I think.

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

Thank you for mentioning the option \textwidth also. For graphic animation, it 
is good to resize the width according to the width of the figure so that the 
caption is located within the width of the figure. 

Thank Wolfgang and Hans for this nice feature and ConTeXt!
It makes my class materials fancy.

Best regards,

Dalyoung



___
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-06 Thread Otared Kavian
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  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
___

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

2014-10-06 Thread Henning Hraban Ramm

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)

___
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] Win fonts lookup: ** (was: Animation captions

2014-10-06 Thread Hans Hagen

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

2014-10-06 Thread Procházka Lukáš Ing . - Pontex s . r . o .

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  wrote:


\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:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

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