Re: [NTG-context] bibliography - maybeyear

2013-11-29 Thread Thomas A. Schmitz

On 11/28/2013 06:37 PM, Hans Hagen wrote:

Hello,

Using
   \setuppublications [alternative=num]
for example, should not append letters to the publication years when
encountering multiple publications by the same author(s) per year.

So, in the use of bibliographies, I have not understood how to control
\maybeyear.

In the bibl-xxx.tex files, it is defined as
   \def\maybeyear#1{#1}
or
   \def\maybeyear#1{}
as needed. Perhaps this is for mkii.

In bibl-bib.mkiv, one has
   \appendtoks
  \doifelse{\bibtexpublicationsparameter\c!maybeyear}\v!off
{\let\maybeyear\gobbleoneargument}
{\let\maybeyear\firstofoneargument}%
   \to \everysetupbibtexlistplacement
which seems to then use the keyword maybeyear.

I guess that
   \setupbibtexpublications [maybeyear=off]
in my source would turn off the appended letters, but this is not
correct. I have tried many variants (\setuppublications, \setupbibtex).
What am I misunderstanding? Or is this a bug?


\setuppublicationlist
   [maybeyear=off]


maybeyear is one of the areas that need fixing. The simple on/off 
mechanism is not sufficient, because the behavior needs to be more complex:


1. If the citation style does not use the year as a key, do not append 
letters.


2. If the citation style uses year as key and only one publication/year 
of an author is quoted and listed (even if there are several in the bib 
file) do not append letter.


3. Append letter if citation style uses year AND more than one 
publication/year for given author is quoted and listed.


I assume that in order for this to work, Hans will have to rewrite the 
code which produces the .bbl file from the bib. Right now, AFAICS, the 
.bbl contains the entire .bib database. It should only contain the 
entries which are cited.


Alan, does that make sense to you?

Thomas
___
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] sagemath in context (like sagetex)

2013-11-29 Thread Xan
Hi,

Is there any kind of package for embedded sagemath in ConTeXt (like sagetex in 
latex). I found the same question previosly asked 
(http://www.ntg.nl/pipermail/ntg-context/2009/040483.html), but more things are 
changed until 2009... so perhaps there is now a solution

By the other hand, I see lua lunatic code: 
http://wiki.contextgarden.net/User:Luigi.scarso/luatex_lunatic#SageMath but 
this is very programmer centric code, in my opinion. Is there any easy way to 
do that?

I use MKIV

Thanks,
Xan.
___
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] a way to implement \testcolumn in mixedcolumns

2013-11-29 Thread Lars Huttar (SIL gmail)
On 11/28/2013 1:34 PM, Hans Hagen wrote:

 That macro was never meant for mixed columns. I made a variant that
 works ok in mixed columns which will be in the next beta.


Excellent. I will give it a try.
I see a context-setup-win64 dated 2013-11-28 19:45. Is that beta? I may
wait for the next one anyway just to be sure... today is a holiday for us.

Lars

___
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] a way to implement \testcolumn in mixedcolumns

2013-11-29 Thread Hans Hagen

On 11/29/2013 12:26 PM, Lars Huttar (SIL gmail) wrote:

On 11/28/2013 1:34 PM, Hans Hagen wrote:


That macro was never meant for mixed columns. I made a variant that
works ok in mixed columns which will be in the next beta.



Excellent. I will give it a try.
I see a context-setup-win64 dated 2013-11-28 19:45. Is that beta? I may
wait for the next one anyway just to be sure... today is a holiday for us.


you can just update with the already installed first-setup script (no 
need to do a new install)


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] Persian numbers for page numbering

2013-11-29 Thread Mingranina Gingranina
Dear All,
Hello,

How can I force ConTeXt to use Persian numbers for page numbering?

Thanks
Mingranina
___
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] Palatino patch for the current ConTeXt version

2013-11-29 Thread Jan Tosovsky
On 2013-11-27 Hans Hagen wrote:
 On 11/27/2013 9:16 PM, Jan Tosovsky wrote:
  On 2013-11-27 Hans Hagen wrote:
  On 11/27/2013 12:40 AM, Jan Tosovsky wrote:
  On 2013-11-17 Hans Hagen wrote:
  On 11/17/2013 12:23 PM, honyk wrote:
  Hello Everyone,
 
  I am trying to fix a Palatino small caps issue using the
  procedure explained here:
  http://wiki.contextgarden.net/Palatino_Linotype_under_MKIV
 
  That fix seems to be obsolete nowadays and returning errors.
 
  This LFG core settings:
  unicodes = {
  [a.sc] = 97, (1)
  [b.sc] = 983261, (2)
  },
 
  (1) replaces all small 'a' into small caps variants - just for
  testing purposes
  (2) doesn't replace small caps 'i' to small caps 'b', but when small
  caps text is selected, b is copied into the clipboard - so some
  replacement is performed, but incomplete.
 
 
 this mechanism assumes that the shapes match the one that unicode
 expects so the (default) tounicode is used ... originally this features
 was meant for fonts with a faulty mapping (some dingbat fonts have
 that)
 

So a different approach is needed. In another thread we've found out that
there are two glyphs of the same name:

glyph index | glyph name
1110| i.sc/ small caps dotlessi
1170| i.sc/ small caps i 

Currently when 'i' is to be rendered as small caps, 1170 is used, but I'd
like to use 1110 instead.

Can this be specified using a LFG file?

Thanks, Jan

___
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] bibliography - maybeyear

2013-11-29 Thread Alan Braslau
On Fri, 29 Nov 2013 12:22:54 +0100
Thomas A. Schmitz thomas.schm...@uni-bonn.de wrote:

 maybeyear is one of the areas that need fixing. The simple on/off 
 mechanism is not sufficient, because the behavior needs to be more
 complex:
 
 1. If the citation style does not use the year as a key, do not
 append letters.
 
 2. If the citation style uses year as key and only one
 publication/year of an author is quoted and listed (even if there are
 several in the bib file) do not append letter.
 
 3. Append letter if citation style uses year AND more than one 
 publication/year for given author is quoted and listed.
 
 I assume that in order for this to work, Hans will have to rewrite
 the code which produces the .bbl file from the bib. Right now,
 AFAICS, the .bbl contains the entire .bib database. It should only
 contain the entries which are cited.
 
 Alan, does that make sense to you?

Yes

Perhaps the .bbl could contain the entire .bib database with the
filtering taking place then in lua/ConTeXt. How this is handled
internally is a programming, not a user issue.

I do agree with your assessment of when to and when not to append a
letter to the year as listed.

Alan
___
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] Eliminating orpans in the Index

2013-11-29 Thread Jan Tosovsky
On 2013-11-27 Hans Hagen wrote:
 On 11/26/2013 10:09 PM, Jan Tosovsky wrote:
  On 2013-11-23 Jan Tosovsky wrote:
 
  in my two-column index there are several cases when the last
  entry in the given letter group overflows to the next column/page.
  In the extreme case it is just the last page reference.
  ...
  Additionaly, columns are not balanced properly in all cases. When
  the first is longer, it is not a big problem. But the opposite 
  case looks weird.
 
  As the registers are rendered programatically, I cannot intervene
  into this process. But can I influence it e.g. using 'processors' 
  applied to problematic index entries?
 
  Processors can be used for setting the font-weight or color of
  particular
  entry. Can the same method used for manual setting of
  'keep-with-previous/next' ?
 
 I can think of a hack but it will always be for last minute work.

I am also investigating grids. Switching this feature on has introduced
orphan/widows in the standard body text. I've applied setups according to:
http://www.mail-archive.com/ntg-context@ntg.nl/msg66393.html

and it now fixes also problematic index entries :-)

Like orphan/widow settings weren't specified by default...

But I suspect the correct result to be rather coincidence... Some higher
number of lines kept together still produce orphans... But it is overall
much better now.

One extra observation. Regardless the number of lines in the setups max. two
lines seem to be kept together in the index...

Jan

___
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] [***SPAM***] Provide showgrid as a PDF layer

2013-11-29 Thread Jan Tosovsky
Dear All,

it would be nice to have a possibility to interactively disable/enable a
grid rendered via \showgrid command. Whereas this grid is helpful for
debugging, it disturbs when the page is evaluated as the whole. Using layers
could make this process more efficient (not requiring to generate both
variants).

I've noticed something like this is already implemented for the body area
(visualizer vbox layer).

Or is there any option for this already?

Thanks, Jan

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