[NTG-context] apa like bibliography: entries not indexed correctly

2012-11-07 Thread Andreas Mang
Dear all,

I am experiencing problems with the bibliography. My bibliographystyle is apa 
like. In the minimal example given below the maybe year is not set up 
correctly. That is I would expect to have

(Firstauthor et al., 2012a,2011,2012b)

but I get

(Firstauthor et al., 2012,2011,2012). 

It took me some time to reproduce this error. My description of the error is 
probably quite difficult to follow. I hope the example is more intuitive:

The reason for this problem to occur is that the entries in the bbl file are 
probably processed according to the alphabetic order of the last name of the 
authors. If one refers to an author publishing several articles in a single 
year (in my example 2012) and there is an additional publication that is 
published in another year (in my example 2011), the ordering is essentially 
determined by the first letter of the last name of the second author (if it was 
a different second author, otherwise third author and so on). 

If the letter of the second author in the publication published in the year in 
which there was only a single publication (in my example 2011) happens to be 
inbetween the letter of the second author on the two publications published in 
the year in which there have been two publications (in my example the 
publications in 2012), the publication (in my example 2011) will appear 
inbetween those that appeared in the same year (in my example 2012). This 
results in the maybeyear to be screwed up.


The listing will be

Firstauthor et al., 2012

Firstauthor et al., 2011

Firstauthor et al. 2012


instead of

Firstauthor et al., 2012a

Firstauthor et al., 2011

Firstauthor et al., 2012b

Cheers,
Andreas


2012.11.06 09:56 MKIV  fmt: 2012.11.7  int: english/english

\setuppublications[
alternative=apa-de,
sorttype=bbl
]
\setuppublicationlist[]

%bibtex support
\setupbibtex[database={references-example},sort=author]
%\setupbibtex[database={references},sort=author]


 MINIMAL EXAMPLE  
\starttext
\cite[Firstauthor:2012b,Firstauthor:2011a,Firstauthor:2012a]

\placepublications[criterium=text]

\stoptext
 MINIMAL EXAMPLE  


references-example.bib
Description: references-example.bib


___
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] Spacing around integrals

2012-11-07 Thread Jeong Dal
Dear Otared,

Thank you for the sample files.
I may miss the follow-ups.

I'll check your samples and choose a good one for me.

Thank you again.

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] RFC: path relative to current file.

2012-11-07 Thread Andre Caldas
Hello!

 local function toppath()
 [...]
 resolvers.toppath = topath

There is a bug here. It should be
resolvers.toppath = toppath
(double p in the right side)


André Caldas.
-- 
- Por que altera a ordem natural da conversação!
- Por que não?
- Eu não gosto, não.
- Você gosta quando copiam a mensagem original ao final do e-mail?
___
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] RFC: path relative to current file.

2012-11-07 Thread Hans Hagen

On 11/7/2012 8:34 PM, Andre Caldas wrote:

Hello!


local function toppath()
[...]
resolvers.toppath = topath


There is a bug here. It should be
resolvers.toppath = toppath
(double p in the right side)


In your local copy I presume, not here.

-
  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] Spacing around integrals

2012-11-07 Thread Hans Hagen

On 11/6/2012 5:22 PM, Otared Kavian wrote:

Dear Dalyoung,

I can confirm that there is still a serious issue with the way mkiv handles the 
bounds of integral signs, and this has been reported several times by Aditya, 
myself and others.
In particular the latest beta (version 2012.11.06 09:56) handles the bounds 
somwhat inconsistently, depending on the fonts used:
• with the default LM fonts, the bounds of the integral sign are 
correct in displayed maths, but are too close whith inline maths;
• with the default xits fonts, the bounds of the integral sign are too 
far away in displayed maths, but are a little bit far whith inline maths.

Here are the source file for my testing and the resulting PDF file. PLease 
typeset the file both with mkii and mkiv to see the differences.
Hans did some changes recently, which resulted in a better behaviour of the 
bug, but still the problem is not completely solved.


The problem with integrals is that we need to support new fonts as well 
as old ones. One issue is that the width of an integral sign is not the 
real with but has some interference with italic corrections. Also, older 
versions of luatex has issues with this and for that context has some 
mechanisms that could deal with it. The current version of luatex has 
improved math so those hacks can go away. Also, math fonts have been 
adapted to the latest interpretations of the open type math 
specification (and those that don't ... well, lets forget about using 
them). In due time all math fonts will be real otf fonts, but I like to 
keep the virtual variant(s) around (as I've too much time invested in 
it, they server as example of defining virtual fonts, and as benchmark 
for traditional fonts).


At the same time we need to deal with italic corrections, in text, where 
open type does not have such a property, as well as in math, where fonts 
can have italic corrections but (as with more cases) the implementation 
of them can be limited.


Anyhow, I now trust luatex do some of that better than before (let's 
assume recent engines and fonts). However, some automagic italic 
correction between italic shapes and non italic shapes as well as math / 
text boundaries are still dealt with.


Yet another issue is that we have double and triple integrals so from 
now on that's also done differently for the virtual fonts (read: more 
mkiv like) as we had already the mechanisms for that in place.


So ... another attempt.

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] Highlight current chapter in list

2012-11-07 Thread Marco Patzer
Hi!

How do I highlight the current chapter in the table of contents? The
TOC is displayed on each page. For illustration I misused the
interaction colour, which of course only works for the first page of
a chapter.

  \setupheadertexts
[\setups{headlist}]

  \startsetups [headlist]
\framed[align=normal, frame=off]
  {\placelist [chapter] [alternative=f, criterium=all]}
  \stopsetups

  \setupinteraction
[state=start,
 color=lightgray,
 contrastcolor=darkgreen]

  \starttext
\startchapter [title=alpha]   \stopchapter
\startchapter [title=beta]  \page\input knuth \stopchapter
\startchapter [title=gamma]   \stopchapter
  \stoptext


Marco

___
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] [OT] Spacing research

2012-11-07 Thread Nicola
Hi,
people in this list may be interested in reading this:

http://aldusleaf.org/rhea.php

Nicola

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