[NTG-context] Bibliography: spacing in cite, lettering of repeated years

2013-05-27 Thread Steve Frank
I am just starting with the bibliography module and ran the following test:

\cite[authoryear,left=(yes: ,right=; Rk)][frank98foundations] here, 
\cite[author][frank98foundations], then \cite[year][frank98foundations], then 
\cite{otrosina88isozyme,frank91ecological,frank98foundations,abraham82dynamics:}
 said and then { \cite[otrosina88isozyme]} commented and then 
\cite{abraham82dynamics:}

With my setup, that gave:

(yes: Frank 1998; Rk) here, Frank, then 1998, then (Otrosina et al. 1988; Frank 
1991c,1998; Abraham and Shaw 1982) said and then (Otrosina et al. 1988) 
commented and then (Abraham and Shaw 1982)

I give more on setup below.

My three issues:

1. The space after the period in "et al." stretches, which does not look right. 
 I tried modifying the "otherstext" field in various ways, but could not get a 
working solution.  Any advice?

2. With the "compress" option on for authoryears, the dates 1991c,1998 are 
correctly combined in the second set, but I would like a space as "1991c, 1998" 
instead of "1991c,1998".

3. The citations listed here are all of the ones in the current document.  The 
date 1991c should be 1991, without a letter, because there is neither 1991a nor 
1991b.  Is there a way to get consistent letter of repeated years, such that no 
letter is present without repeat, and the letters are given in the order in 
which they appear in the text?

---

I am new to ConTeXt, and started by copying someone else' environment.  Here 
are the relevant parts:

\usemodule[bib]

\setupbibtex[database={main}]

\setuppublications
[alternative=apa,
 sorttype=bbl,
 refcommand=authoryears,
 criterium=text,
 numbering=no]

\setupcite
   [year]
   [pubsep={, },
lastpubsep={ and },
compress=yes,
inbetween={},
left={},
right={}]

\setupcite
   [author]
   [pubsep={, },
lastpubsep={ and },
compress=yes,
inbetween={},
left={},
right={}]

\setupcite
   [authoryears]
   [pubsep={; },
% otherstext={ et al. }, % cannot get that to work
% \c!otherstext={ et al.},
lastpubsep={; },
compress=yes,
inbetween={ },
left={(},
right={)}]


Steve




___
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] Adjust font size to cell height in natural table

2013-05-27 Thread H. Özoguz

Hello together,

I use this as a natural table

\def\esl[#1][#2][#3][#4][#5][#6][#7]{%
\page
\startframed[frame=off,width=fit,offset=overlay,align=middle,background=eslami]%
  \bTABLE[width=4.55cm,align={middle,lohi}]
\bTR\bTD[height=2cm] ~\blank[-3.4mm]#1 \eTD\eTR
\bTR\bTD[height=3cm] #2\\#3\\#4\\#5\\#6 \eTD\eTR
\bTR\bTD[height=2.4cm] #7 \eTD\eTR
  \eTABLE
\stopframed}

Now it can happen, that the text of #7 is too long for the third cell, 
which is 4.55cm x 2.4cm. Is it possible to automatically adjust the fonz 
size (of this text in this sepcific cell only), s.t. it fits in the cell?


For testing:
%***
\defineoverlay[eslami][{\externalfigure[eslamivorlage.pdf]}]
\def\esl[#1][#2][#3][#4][#5][#6][#7]{%
\page
\startframed[frame=off,width=fit,offset=overlay,align=middle]%
  \bTABLE[width=4.55cm,align={middle,lohi}]
\bTR\bTD[height=2cm] ~\blank[-3.4mm]#1 \eTD\eTR
\bTR\bTD[height=3cm] #2\\#3\\#4\\#5\\#6 \eTD\eTR
\bTR\bTD[height=2.4cm] #7 \eTD\eTR
  \eTABLE
\stopframed}
\setuppagenumbering[location=]
\definepapersize[sheet][width=45.5mm,height=74mm]
\definepapersize[bigsheet][width=\dimexpr\paperwidth+2mm\relax,height=\dimexpr\paperheight+2mm\relax]
\setuplayout
  [location=middle,
   topspace=0mm,
   header=0mm,
   footer=0mm,
   bottomspace=0mm,
   width=middle,
   cutspace=0mm,
   backspace=0mm, %BCOR 5mm inkl.
   height=fit,
   grid=no]
\setuppapersize[sheet][bigsheet]
\setupbackgrounds[page][frame=off,frameoffset=0mm]
\starttext
\esl[Begriff][VB 1][VB 2][VB 3][VB 4][VB 5][Too small, too small, too 
small, too small, too small, too small, too small, too small. What to do?]

\stoptext
%***

Thanks!
Huseyin

___
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] \definehighlight with style=command problem

2013-05-27 Thread Alan Bowen
I an trying to use \definehighlight to define a macro that will color and
overstrike selected text.
Thus far,

\definehighlight[Delete][color=red,style={\overstrike}]
\starttext
test  \Delete{test} test
\stoptext

reports

! Too many }'s.

system  > tex > error on line 4 in file ...TEST.tex: Too many }'s
...

If I replace “\overstrike” with “bold”, “\Delete” works. “\overstrike”
works otherwise, so am I trying the impossible here?

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] \definehighlight with style=command problem

2013-05-27 Thread Hans Hagen

On 5/27/2013 3:36 PM, Alan Bowen wrote:

I an trying to use \definehighlight to define a macro that will color
and overstrike selected text.
Thus far,

\definehighlight[Delete][color=red,style={\overstrike}]
\starttext
test  \Delete{test} test
\stoptext

reports

! Too many }'s.

system  > tex > error on line 4 in file ...TEST.tex: Too many
}'s ...


If I replace “\overstrike” with “bold”, “\Delete” works. “\overstrike”
works otherwise, so am I trying the impossible here?


The next beta will have \setbar for that purpose, used as:

\setuphead[section][textstyle={\setbar[overstrike]},textcolor=blue]

\definehighlight[Whatever][color=darkyellow]
\definehighlight[Delete]  [color=red,style={\setbar[overstrike]}]
\definehighlight[Keep][color=green]

\starttext

\setupbar[overstrike][foregroundcolor=cyan,color=blue]

\startsection[title={{\green green} foo {\green green}}]

foo \startbar[overstrike]bar\stopbar

test  \Delete{test} test \Keep{test} test \Whatever{test} test

\color[red]{test  \Delete{test} test \Keep{test} test}

\stopsection

\stoptext

for the source watchers: watch the subtle change in

\mult_interfaces_install_style_and_color_handler

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] \definehighlight with style=command problem

2013-05-27 Thread Alan Bowen
Wonderful, Hans! Many thanks.

Alan


On Mon, May 27, 2013 at 1:14 PM, Hans Hagen  wrote:

> On 5/27/2013 3:36 PM, Alan Bowen wrote:
>
>> I an trying to use \definehighlight to define a macro that will color
>> and overstrike selected text.
>> Thus far,
>>
>> \definehighlight[Delete][**color=red,style={\overstrike}]
>> \starttext
>> test  \Delete{test} test
>> \stoptext
>>
>> reports
>>
>> ! Too many }'s.
>>
>> system  > tex > error on line 4 in file ...TEST.tex: Too many
>> }'s ...
>>
>>
>> If I replace “\overstrike” with “bold”, “\Delete” works. “\overstrike”
>> works otherwise, so am I trying the impossible here?
>>
>
> The next beta will have \setbar for that purpose, used as:
>
> \setuphead[section][textstyle=**{\setbar[overstrike]},**textcolor=blue]
>
> \definehighlight[Whatever][**color=darkyellow]
> \definehighlight[Delete]  [color=red,style={\setbar[**overstrike]}]
> \definehighlight[Keep][color=green]
>
> \starttext
>
> \setupbar[overstrike][**foregroundcolor=cyan,color=**blue]
>
> \startsection[title={{\green green} foo {\green green}}]
>
> foo \startbar[overstrike]bar\**stopbar
>
> test  \Delete{test} test \Keep{test} test \Whatever{test} test
>
> \color[red]{test  \Delete{test} test \Keep{test} test}
>
> \stopsection
>
> \stoptext
>
> for the source watchers: watch the subtle change in
>
> \mult_interfaces_install_**style_and_color_handler
>
> 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
> __**__**
> ___
>
___
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] \definehighlight with style=command problem

2013-05-27 Thread Wolfgang Schuster

Am 27.05.2013 um 15:36 schrieb Alan Bowen :

> I an trying to use \definehighlight to define a macro that will color and 
> overstrike selected text.
> Thus far,
> 
> \definehighlight[Delete][color=red,style={\overstrike}]
> \starttext
> test  \Delete{test} test
> \stoptext
> 
> reports
> 
> ! Too many }'s.
> system  > tex > error on line 4 in file ...TEST.tex: Too many }'s ...
> 
> If I replace “\overstrike” with “bold”, “\Delete” works. “\overstrike” works 
> otherwise, so am I trying the impossible here?

\usemodule[annotation]

\defineannotation[Delete][color=red,textcommand=\overstrike]

\starttext
test  \Delete{test} test
\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
___