Re: [NTG-context] Selecting fonts using the built-in simplefonts module

2015-03-29 Thread Jörg Weger



On 29.03.2015 21:31, Wolfgang Schuster wrote:



Am 29.03.2015 um 20:33 schrieb Jörg Weger mailto:joerg73@googlemail.com>>:


You need the familyname of the font, you use the font manager of your OS
to get the name.

\definefontfamily [junction] [rm] [Junction]
\definefontfamily [junction] [mm] [Latin Modern Math]

\definefontfamily [junction-light] [rm] [Junction]
[tf=style:light,bf=style:regular]


I just had it made working this way:

\definefontfamily[mainface]
[ss]
[EgalobhierFarinUrlaubodersonstwasoderwersteht]
[tf=Junction Light, bf=Junction Regular]


\definefontfamily [mainface] [ss] [Junction] [tf=* Light,bf=* Regular]


It seems that as soon as you define your own weights (which you can
mix from different font families) in the fourth pair of brackets,
there can be anything in the third pair of brackets (family name).

\definefontfamily[mainface]
[sans]
[Anything]
[regularfont=Junction Light, boldfont=Junction Regular]

works as well and is more self-explaining.


This will only work when you set a upright font or you will get problems.



What problems do you mean?

The following seems to work, only that there is a fallback to the fonts 
defined as upright fonts (which are in fact italic fonts) for the \em 
parts which seems to be the default behaviour if no italic fonts are 
defined in the fourth bracket pair:


%%% MWE 

\definefontfamily[mainface][ss][EgalobhierFarinUrlaubodersonstwassteht][tf=Roboto 
Light Italic, bf=Roboto Black Italic]


\setupbodyfont[mainface,9pt]


\starttext

\ss \input lorem

\ss \bf \input lorem

\ss \tf \em \input lorem

\ss \bf \em \input lorem

\stoptext


%% End of MWE %


Of course these font definitions do not make much sense but they work as 
I had expected from previous observations. And of course you should 
define all styles (\rm, \ss, \mm).




An advantage of your way

> \definefontfamily [junction-light] [rm] [Junction]
> [tf=style:light,bf=style:regular]

is that you have to type the family name only once if you re-define
weights from the same family.


When you use the keywords for the style you don’t have to look for the
right names and simpelfonts has fallbacks when the requested style isn’t
available.


That is a nice option.




Are there any reasons why one should not use any of all those synonyms?


What do you mean?


I mean that for example inside the second bracket pair “rm” equals 
“serif”, ”ss“ equals “sans” etc., in the fourth bracket pair 
“regularfont” equals “tf” etc.


Are there recommendations to not use some of those apart from personal 
taste? Or is “rm” simply a shorter plain TeX heritage while “serif” is 
more self-explaining?




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
___


___
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] Selecting fonts using the built-in simplefonts module

2015-03-29 Thread Jörg Weger



On 29.03.2015 19:47, Wolfgang Schuster wrote:



Am 29.03.2015 um 14:40 schrieb Pavneet Arora mailto:pavneet_ar...@waroc.com>>:

Hello everyone,

After a long time I have some typesetting work in front of me...yippeee!

I am struggling with adapting my templates to the new integrated
simplefonts module, and hope that someone can help.

The three issues I am having are:

1.  How does one find the proper expanded long name of the desired font.
   For this project, I am using some fonts from The League of Moveable
   Type (https://www.theleagueofmoveabletype.com/).

   I have reloaded the fonts, and can list them, in the traditional
   manner.  What I don't know is how to find the proper name for---say
   Junction Light---to use as the third argument in
   '\definefontfamily[mainface][ss][Junction Light]'

   The use of 'Junction Light' doesn't work, and neither does
   'Junction-Light', nor 'junctionlight', nor even 'Junction, Light'
   which I retrieve from Font Viewer under Linux.  MWE follows at the
   end of this email.  I reference Wolfgang's response stating that the
   expanded name must be used
   (http://www.ntg.nl/pipermail/ntg-context/2014/077321.html).


You need the familyname of the font, you use the font manager of your OS
to get the name.

\definefontfamily [junction] [rm] [Junction]
\definefontfamily [junction] [mm] [Latin Modern Math]

\definefontfamily [junction-light] [rm] [Junction]
[tf=style:light,bf=style:regular]


I just had it made working this way:

\definefontfamily[mainface]
[ss]
[EgalobhierFarinUrlaubodersonstwasoderwersteht] 
[tf=Junction Light, bf=Junction Regular]

It seems that as soon as you define your own weights (which you can mix 
from different font families) in the fourth pair of brackets, there can 
be anything in the third pair of brackets (family name).


\definefontfamily[mainface]
[sans]
[Anything]  
[regularfont=Junction Light, boldfont=Junction Regular]

works as well and is more self-explaining.

An advantage of your way

> \definefontfamily [junction-light] [rm] [Junction]
> [tf=style:light,bf=style:regular]

is that you have to type the family name only once if you re-define 
weights from the same family.


Are there any reasons why one should not use any of all those synonyms?


Greetings Jörg


\definefontfamily [junction-light] [mm] [Latin Modern Math]

\setupbodyfont[junction]

\starttext

\input ward \bf \input ward

\blank \switchtobodyfont[junction-light]

\tf \input ward \bf \input ward

\stoptext



2.  How does one switch fonts in-line for small snippets of text?  I
   used to use '{\simplefont[heydingsicons] q}123.345.67890', but this
   now results in an error.

   tex error   > error on line 7 in file
virtual://buffer.noname.1: ! Undefined control sequence

   l.7 {\simplefont [heydingsicons] q}~123.456.7890
{\simplefont[heydingsicons..


When you use a symbol font define a command for it with \definesymbol
and access it with \symbol.

The example below uses the Font Awesome [1] font for the symbols (the
symbols are defined in the attached file).

\usesymbols[fontawesome]

\defineframed
   [SymbolFrame]
   [strut=no,
width=1em,
height=1em,
background=color,
backgroundcolor=black,
corner=round,
radius=.5ex,
foregroundcolor=white]

\definesymbol
   [mysymbol]
   [\SymbolFrame{\directsymbol{fontawesome}{question}}]

\starttext

\startlines
\symbol[fontawesome][question]
\symbol[fontawesome][question-circle]
\framed[strut=no,width=1em,height=1em,background=color,backgroundcolor=black,corner=round,radius=.5ex,foregroundcolor=white]{\symbol[fontawesome][question]}
\symbol[mysymbol]
\stoplines

\stoptext



3.  This may be a more generic typescript mapping issue, but I still
   struggle with understanding font mappings.  I don't quite get how
   the default mappings are done.

   Look, for example, at Junction above.  'junction' is mapped to
   'junctionbold' rather than 'junctionregular'.  Is this just done by
   taking the first in the list in alphabetic order?

   Or how the League Gothic font is processed below.  How is it that
   leaguegothic is mapped to leaguegothiccondenseditalic by default?
   What is the recommended way in this new simplefont scheme to set the
   mappings for a document?

   $ mtxrun --script fonts --list --all --pattern=leaguegothic

   resolvers   | trees | analyzing 'home:texmf'
   resolvers   | caching | skipping 'files' for 'home:texmf' from
   
'/opt/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/trees/54be04d87dd160089f572b19cb5c97e9'
(version mismatch)
   leaguegothic   leaguegothiccondenseditalic
   
/home/pavneet/.fonts/opentype/TheLeagueOfMoveableType/theleagueof-league-gothic-64c3ede/LeagueGothic-CondensedItalic.otf
   leaguegothiccondenseditalicleaguegothiccondenseditalic
   
/home/pavneet/.fonts/opentype/TheLeagueOfMoveableType/theleague

Re: [NTG-context] Selecting fonts using the built-in simplefonts module

2015-03-29 Thread Jörg Weger
Your mistake was that you did not use the correct font family name in 
the third pair of square brackets. It is simply “Junction”.


I have yet to find out if ConTeXt itself can show a font’s true family name.

On Linux I am either  using a command line tool called otfinfo (that 
also shows me what opentype features are there) or I open the font with 
fontforge (if I want to find out more about the details of opentype 
features) or I open it with mate-font-viewer (fork of 
gnome-font-viewer). In the latter the family name is shown in the first 
line on the right.


Name: Junction

What desktop environment are you using?


As far as I have understood by default the built in font-selection 
module uses the “family members” named “Regular” and “Bold” of a 
selected font family, e.g. in


\definefontfamily[mainface][ss][Junction]

\ss gives Junction Regular and \ss \bf gives Junction Bold

If you want to use different font weights you have to define them 
yourself in a fourth pair of square brackets.


The League of Movable Type’s Junction font family offers three weights: 
Light, Regular and Bold.


Assuming that you want to use Junction Light as your “regular sans 
serif” font and Junction Regular as your “bold sans serif” you define 
for sans serif:


\definefontfamily[mainface][ss][Junction]
[regularfont=Junction Light, boldfont=Junction Regular]

Now \ss should give Junction Light and \ss \bf should give Junction Regular.

You can define italics as well, as the following definition for Google’s 
Roboto shows where I am using light and black instead of regular and 
bold. (Junction does not offer italic or slanted, that is why I use 
Roboto as an example of a family with many weights and styles. 
https://developer.android.com/design/style/typography.html should have 
the reworked 2014 version for download.)


\definefontfamily[mainface][ss][Roboto]
[regularfont=Roboto Light, italicfont=Roboto Light Italic,
 boldfont=Roboto Black, bolditalicfont=Roboto Black Italic]

(You could even mix weights and styles from different font families.)


Hope that helps.


Greetings Jörg


On 29.03.2015 14:40, Pavneet Arora wrote:

Hello everyone,

After a long time I have some typesetting work in front of me...yippeee!

I am struggling with adapting my templates to the new integrated
simplefonts module, and hope that someone can help.

The three issues I am having are:

1.  How does one find the proper expanded long name of the desired font.
 For this project, I am using some fonts from The League of Moveable
 Type (https://www.theleagueofmoveabletype.com/).

 I have reloaded the fonts, and can list them, in the traditional
 manner.  What I don't know is how to find the proper name for---say
 Junction Light---to use as the third argument in
 '\definefontfamily[mainface][ss][Junction Light]'

 The use of 'Junction Light' doesn't work, and neither does
 'Junction-Light', nor 'junctionlight', nor even 'Junction, Light'
 which I retrieve from Font Viewer under Linux.  MWE follows at the
 end of this email.  I reference Wolfgang's response stating that the
 expanded name must be used
 (http://www.ntg.nl/pipermail/ntg-context/2014/077321.html).

 $ mtxrun --script fonts --list --all --pattern=junction

 resolvers   | trees | analyzing 'home:texmf'
 resolvers   | caching | skipping 'files' for 'home:texmf' from
 
'/opt/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/trees/54be04d87dd160089f572b19cb5c97e9'
 (version mismatch)
 junction  junctionbold  
/home/pavneet/.fonts/opentype/TheLeagueOfMoveableType/junction-master/Junction-bold.otf
 junctionbold  junctionbold  
/home/pavneet/.fonts/opentype/TheLeagueOfMoveableType/junction-master/Junction-bold.otf
 junctionlight junctionlight 
/home/pavneet/.fonts/opentype/TheLeagueOfMoveableType/junction-master/Junction-light.otf
 junctionregular   junctionregular   
/home/pavneet/.fonts/opentype/TheLeagueOfMoveableType/junction-master/Junction-regular.otf
2.  How does one switch fonts in-line for small snippets of text?  I
 used to use '{\simplefont[heydingsicons] q}123.345.67890', but this
 now results in an error.

 tex error   > error on line 7 in file virtual://buffer.noname.1: ! 
Undefined control sequence

 l.7 {\simplefont [heydingsicons] q}~123.456.7890 
{\simplefont[heydingsicons..
3.  This may be a more generic typescript mapping issue, but I still
 struggle with understanding font mappings.  I don't quite get how
 the default mappings are done.

 Look, for example, at Junction above.  'junction' is mapped to
 'junctionbold' rather than 'junctionregular'.  Is this just done by
 taking the first in the list in alphabetic order?

 Or how the League Gothic font is processed below.  How is it that
 leaguegothic is mapped to leaguegothiccondenseditalic by 

Re: [NTG-context] Problem with MkIV and TikZ picture remembering

2015-03-13 Thread Jörg Weger
After putting the definition you proposed last in front of my minimal 
example in mkiv beta 2015.02.03 it worked once and then not any more. I 
also tried to remove all auxiliary files after a new pass.


But today I installed beta 2015.03.10 (complete fresh install as I keep 
the older version in a renamed folder) and now the MWE with your extra 
code renders repeatedly correct.


So this seems to be a workaround until you rewrite “write” as you said.

I will experiment further with tikz’ ‘remember’ picture mode.


Greetings Jörg

 START MWE %

%D %%% Hans’ redefinition of write function: %%%

\def\syst_write#1#2%
  {\ctxcommand{write(\number#1,\!!bs\normalunexpanded{#2}\!!es)}}

\unexpanded\def\writeviatex#1#2%
  {\ifx\normalwrite\relax\else
 \normalwrite#1{#2}%
   \fi}

%%

\usemodule[tikz]

\usetikzlibrary[shapes.misc,arrows]

\starttext

\tikz[baseline,remember picture] \node[rounded 
rectangle,draw,anchor=text] (n1) {this};

belongs to
\tikz[baseline,remember picture] \node[rounded 
rectangle,draw,anchor=text] (n2) {that};


\starttikzpicture
[remember picture,overlay]
\draw[->] (n1.north) to [bend left] (n2.north);
\stoptikzpicture

\stoptext

 STOP MWE %%



On 08.03.2015 23:17, Hans Hagen wrote:

On 3/8/2015 7:07 PM, Wolfgang Schuster wrote:



Am 08.03.2015 um 18:39 schrieb Hans Hagen :

On 3/8/2015 1:04 PM, Wolfgang Schuster wrote:



Am 08.03.2015 um 12:55 schrieb Hans Hagen mailto:pra...@wxs.nl>>:

On 3/8/2015 12:26 PM, Wolfgang Schuster wrote:



Am 08.03.2015 um 11:11 schrieb Hans Hagen mailto:pra...@wxs.nl>
>:

this should help:

\unexpanded\def\writeviatex#1#2%
{\ifx\normalwrite\relax\else
  % the \detokenize makes sure we don't expand \noexpanded macros
   \normalwrite#1{\detokenize{#2}}%
\fi}

(in future version i might replace write completely)


Only partially because the saved positions from \pdfsavepos are
wrong.


in what sense wrong?


Content of the external file from MkIV (the entries on the first
page show 0
and the values on page 2 and 3 are always the same):

1:0:0
2:0:0
3:4661756:45255023
4:4661756:45255023
5:4661756:45255023
6:4661756:45255023

Content of the external file from MkII (different values for the first
and second position on each page):

1:6526435:46204089
2:4661756:45256000
3:6526435:46204089
4:4661756:45256000
5:6526435:46204089
6:4661756:45256000


ypositions can differ a bit because we use different fonts and so
does the interlinespace


But the values for both positions should be different which isn’t the
case for MkIV
and the first page saves 0 for the x and y positions.


It's a side effect of expansion at the wrong time (where such primitives
can return wrong values but at least they return something) but
something like this works:

\def\syst_write#1#2%
   {\ctxcommand{write(\number#1,\!!bs\normalunexpanded{#2}\!!es)}}

\unexpanded\def\writeviatex#1#2%
   {\ifx\normalwrite\relax\else
  \normalwrite#1{#2}%
\fi}





___
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] Does a "half-space" or small space exist in ConTeXt?

2015-03-08 Thread Jörg Weger

Thank you very much for that list.

Greetings Jörg


On 08.03.2015 13:58, Wolfgang Schuster wrote:



Am 08.03.2015 um 13:45 schrieb Jörg Weger :


You can use \thinspace or \, which is the short form of \thinspace.



But \thinspace aka \, is a non-breaking space, isn’t it?

Is there a way to let it break a line if needed in certain circumstances or is 
there something else like a “non-non-breaking thinspace”?



Are these enough?

\starttext %\hsize\zeropoint
\startlines
a\enskip b
a\quad   b
a\qquad  b
a\twoperemspace  b
a\threeperemspaceb
a\fourperemspace b
a\sixperemspace  b
a\figurespaceb
a\punctuationspace   b
a\breakablethinspace b
a\hairspace  b
a\zerowidthspace b
\stoplines
\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
___


___
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] Does a "half-space" or small space exist in ConTeXt?

2015-03-08 Thread Jörg Weger

> You can use \thinspace or \, which is the short form of \thinspace.
>

But \thinspace aka \, is a non-breaking space, isn’t it?

Is there a way to let it break a line if needed in certain circumstances 
or is there something else like a “non-non-breaking thinspace”?



Greetings Jörg



On 08.03.2015 12:35, Wolfgang Schuster wrote:



Am 08.03.2015 um 12:24 schrieb Robert Blackstone :

Hi all,

I would like to use something like a "half-space" or small space in a situation 
where neither no space, nor a normal space is ideal.
See the ME:
-
\usemodule[simplefonts]
\setmainfont[Verdana]
\setupbodyfont[10pt]
\starttext
On the third beat a 6th between bass and tenor, {\em \lohi{B}{g}}, moves to the 
octave {\em \lohi{A}{a} .
\medskip
On the third beat a 6th between bass and tenor, {\em \lohi{B}{g}} , moves to 
the octave {\em \lohi{A}{a}} .
\stoptext


Without a space after {\em \lohi{B}{g}}, the normal situation, the comma is too 
close to the B, (and the period too close to the A), suggesting some 
superscript.
A normal space does not look nice (but if necessary I could live with it)

Is there an intermediate size for a space somehow?


You can use \thinspace or \, which is the short form of \thinspace.

BTW. The context version of \medskip is \blank[medium].

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
___


___
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] Problem with MkIV and TikZ picture remembering

2015-03-07 Thread Jörg Weger

> Is that really an mkiv issue? If I understood well tikz has its own way
> of keeping track of positions independent of context.

Normally yes.

But there is TikZ’ “remember picture” mode. You can produce several 
independent TikZ pictures on a ConTeXt/LaTeX/plain text page. TikZ tells 
ConTeXt (or LaTeX or plain TeX) to give back the coordinates of those 
pictures on the page after the page has been typeset. TikZ can then draw 
interconnections between those images which are rendered in an extra run.


In my example the rounded rectangles with the words inside are TikZ 
images which are put inline into the ConteXt text by the command


\tikz[baseline] \node[, draw, anchor=text] {}

When I use

\tikz[baseline, remember picture] …

instead I activate the mode explained above and the arrows can be drawn 
according to the “remembered” coordinates after ConTeXt’s first 
typesetting run.


According to Wolfgang Schuster in the first reply in this thread when 
using ConTeXt mkiv – other than mkii – file the coordinates given back 
after the first typesetting run look strange in TikZ’ auxiliary so there 
seems to be a mistake somnewhere between ConTeXt and TikZ in this regard.



Greetings Jörg


On 07.03.2015 15:52, Hans Hagen wrote:

On 3/7/2015 1:08 PM, Jörg Weger wrote:


Metapost’s learnig curve seems to be a lot steeper to me. It is really a
pity that ConTeXt mkiv does not save the node coordinates correctly as
Wolfgang found out.


Is that really an mkiv issue? If I understood well tikz has its own way
of keeping track of positions independent of context.

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] Problem with MkIV and TikZ picture remembering

2015-03-07 Thread Jörg Weger
Thank you very much Hans and Aditya for your efforts and sorry for only 
replying now — momentarily I am writing a paper (of course typeset with 
ConTeXt :-) ) that has to get finished.


For now I have dropped the idea of using that certain type of 
illustration in the paper as your METAPOST examples are working, but I 
had forgotten to say that I need effectively two arrows from one part of 
a sentence two two others (I am trying to illustrate a linguistic 
ambiguity problem) and I did not manage to get that working starting 
from your examples. Then I need a shape other than a tight frame to 
surround the words, TikZ’ rounded rectangles were too nice for that. In 
the moment I don’t have the time to dive deeper into METAPOST which 
seems to be a mighty beast from what I see in the Metafun manual, but in 
future I shurely will.


The nice thing about TikZ are that you can use the self explaining 
commands rather intuitively (at least having some experience in Lilypond 
and now ConTeXt), that there are many different building blocks 
predefined that you can use and that there are hundreds of examples in 
the internet that you can use as starting point. So I managed to get 
some things working after a self-tought one day crash course – 
Metapost’s learnig curve seems to be a lot steeper to me. It is really a 
pity that ConTeXt mkiv does not save the node coordinates correctly as 
Wolfgang found out.


Greetings Jörg

On 03.03.2015 20:28, Aditya Mahajan wrote:

On Tue, 3 Mar 2015, Hans Hagen wrote:


On 3/3/2015 6:12 PM, Aditya Mahajan wrote:

2. The metafun alternative is a bit inconvenient. Suppose you want to
draw a bunch of such graphics (words connected by arrows). Then, you
will need to ensure that node names are unique. (Is there a way to get
around that?)


\newcounter\connectedwordcounter

\starttexdefinition unexpanded fromword [#1]#2
\expandafter\pushmacro\csname cwc>#1\endcsname % nesting hack
\doglobal\increment\connectedwordcounter
\setxvalue{cwc>#1}{\connectedwordcounter}%
\startpositionoverlay{highlightoverlay}
\setMPpositiongraphic
  {\getvalue{cwc>#1}>f}
  {highlightgraphic}
  {from=\getvalue{cwc>#1}>f,to=\getvalue{cwc>#1}>t}
\stoppositionoverlay
\hpos{\getvalue{cwc>#1}>f}{#2}%
\stoptexdefinition

\starttexdefinition unexpanded toword [#1]#2
\hpos{\getvalue{cwc>#1}>t}{#2}
\expandafter\popmacro\csname cwc>#1\endcsname % nesting hack
\stoptexdefinition


Thanks.

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
___

___
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] Problem with MkIV and TikZ picture remembering

2015-03-02 Thread Jörg Weger

In the minimal working example below inside of a text two words should
be printed inside of rounded TikZ rectangles and should be connected by
an TikZ arrow pointing from the first word to the other.

TikZ offers the remember picture/overlay option for that.

The MWE works in MkII (command “texexec”) which I am not using, but not
in the latest MkIV (command “context”).

The problem might be that according to the PGF/TikZ manual “You need to
use a driver that supports picture remembering and you need to run TEX
twice” (16.13.1 Referencing a Node in a Different Picture).

So my questions are:

1.) Does LuaTeX support TikZ picture remembering?

2.) If so, how can I get ConTeXt MkIV to “run TeX twice”?

3.) If all of the above worked, would that work also if the inline TikZ
pictures to be remembered are on another file referenced via \input?

I have seen a solution similar to what I want to achieve in the METAFUN
manual but I don’t have a clue how to get that METAPOST alternative working.


Greetings Jörg


 START MWE %

\usemodule[tikz]

\usetikzlibrary[shapes.misc,arrows]

\starttext

\tikz[baseline,remember picture] \node[rounded
rectangle,draw,anchor=text] (n1) {this};
belongs to
\tikz[baseline,remember picture] \node[rounded
rectangle,draw,anchor=text] (n2) {that};

\starttikzpicture
[remember picture,overlay]
\draw[->] (n1.north) to [bend left] (n2.north);
\stoptikzpicture

\stoptext

 STOP MWE %%


___
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] Problem with MkIV and TikZ picture remembering

2015-03-02 Thread Jörg Weger
In the minimal working example below inside of a text two words should 
be printed inside of rounded TikZ rectangles and should be connected by 
an TikZ arrow pointing from the first word to the other.


TikZ offers the remember picture/overlay option for that.

The MWE works in MkII (command “texexec”) which I am not using, but not 
in the latest MkIV (command “context”).


The problem might be that according to the PGF/TikZ manual “You need to 
use a driver that supports picture remembering and you need to run TEX 
twice” (16.13.1 Referencing a Node in a Different Picture).


So my questions are:

1.) Does LuaTeX support TikZ picture remembering?

2.) If so, how can I get ConTeXt MkIV to “run TeX twice”?

3.) If all of the above worked, would that work also if the inline TikZ 
pictures to be remembered are on another file referenced via \input?


I have seen a solution similar to what I want to achieve in the METAFUN 
manual but I don’t have a clue how to get that METAPOST alternative working.



Greetings Jörg


 START MWE %

\usemodule[tikz]

\usetikzlibrary[shapes.misc,arrows]

\starttext

\tikz[baseline,remember picture] \node[rounded 
rectangle,draw,anchor=text] (n1) {this};

belongs to
\tikz[baseline,remember picture] \node[rounded 
rectangle,draw,anchor=text] (n2) {that};


\starttikzpicture
[remember picture,overlay]
\draw[->] (n1.north) to [bend left] (n2.north);
\stoptikzpicture

\stoptext

 STOP MWE %%
___
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] superior numbers for footnote numbers?

2015-02-05 Thread Jörg Weger

Hello Hans,


Those are nice self-explanatory commands which also mean I don’t have to 
define them myself.


From my short opentype feature experience I would add the following 
combinations (defined names could be shortened, long names here only for 
better explanation):



Tabular oldstyle numbers (oldstyle numbers aligning correctly in tables 
through fixed spacing):


\definefontfeature[f:tabular_oldstyle][onum=yes,tnum=yes]

\unexpanded\def\settaboldstyle{\doaddfeature{f:tabular_oldstyle}}

\settaboldstyle


Proportional oldstyle numbers (oldstyle numbers for in-text use 
spaced/kerned according to their forms):


\definefontfeature[f:proportional_oldstyle][onum=yes,pnum=yes]

\unexpanded\def\setpropoldstyle{\doaddfeature{f:proportional_oldstyle}}

\setpropoldstyle


Tabular lining numbers (lining numbers aligning correctly in tables 
through fixed spacing):


\definefontfeature[f:tabular_lining][lnum=yes,tnum=yes]

\unexpanded\def\settablining{\doaddfeature{f:tabular_lining}}

\settablining


Proportional lining numbers (lining numbers spaced/kerned according to 
their forms):


\definefontfeature[f:proportional_lining][lnum=yes,pnum=yes]

\unexpanded\def\setproplining{\doaddfeature{f:proportional_lining}}

\setproplining


plus

Scientific inferiors (numbers for subscript, e.g. in chemical formulas):

\definefontfeature[f:inferiors][sinf=yes]

\unexpanded\def\setinferiors{\doaddfeature{f:inferiors}}

\setinferiors


Of course all this works only if the font offers the according opentype 
features.



Greetings Jörg



On 05.02.2015 23:46, Hans Hagen wrote:

On 2/5/2015 2:10 PM, Jörg Weger wrote:

Thank you very much! I had not thought it was that easy!

Jörg

On 05.02.2015 13:14, Wolfgang Schuster wrote:

\definefontfamily [mainface][rm][Linux Libertine O]
\definefontfamily [mainface][mm][TeX Gyre Pagella Math]

\definefontfeature[f:sups][sups=yes]

\setupbodyfont[mainface]

\setupnote[footnote][textcommand=,textstyle=\addff{f:sups}]
\setupnotation[footnote][numbercommand=,headstyle=\addff{f:sups}]

\starttext

\input knuth\footnote{Knuth sample text}

\input ward\footnote{Ward sample text}

\stoptext


i'll add:

\definefontfeature[f:superiors][sups=yes]

\unexpanded\def\setsuperiors{\doaddfeature{f:superiors}}

(we already have \setsmallcaps, \settabular and \setoldstyle)

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] superior numbers for footnote numbers?

2015-02-05 Thread Jörg Weger

Thank you very much! I had not thought it was that easy!

Jörg

On 05.02.2015 13:14, Wolfgang Schuster wrote:

\definefontfamily [mainface][rm][Linux Libertine O]
\definefontfamily [mainface][mm][TeX Gyre Pagella Math]

\definefontfeature[f:sups][sups=yes]

\setupbodyfont[mainface]

\setupnote[footnote][textcommand=,textstyle=\addff{f:sups}]
\setupnotation[footnote][numbercommand=,headstyle=\addff{f:sups}]

\starttext

\input knuth\footnote{Knuth sample text}

\input ward\footnote{Ward sample text}

\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] superior numbers for footnote numbers?

2015-02-05 Thread Jörg Weger


Better equipped opentype fonts offer so called superior numbers as an 
opentype feature. Those are special smaller figures for “superscript” 
(opentype feature “sups”) that are not simply scaled down versions of 
the normal figures (be they oldstyle or lining) you are normally using.


Scaling down is as far as I understood the default way context is using 
to generate the numbers for footnotes. Is there a way to define the use 
of unscaled superiors according to the fontsizes of body text and 
footnote text instead?


Greetings Jörg

PS: I am using for serif the “Linux Libertine O” family (installed as 
OTF and invoked by the included mkiv simplefont mechanism) which has the 
“sups” feature.


___
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] using context wiki offline?

2015-02-05 Thread Jörg Weger
The recent crash of the context wiki reminded me that for wikipedia it 
is possible to download the whole wiki and use it offline.


https://en.wikipedia.org/wiki/Wikipedia:Database_download

It would be great if you could do that with contextgarden as well.

(Maybe you can do that already but I don’t know how :) )

Greetings Jörg

On 03.02.2015 16:45, Taco Hoekwater wrote:

Hi guys,

The harddisk of the server that (amongst other things) runs the ConTeXt wiki and
various luatex.org websites has apparently crashed. We are trying to get the 
server
running again, but it could take some time before everything is back online.

Best wishes,
Taco

___
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] PDF document statistics (character count incl. spaces)?

2015-02-02 Thread Jörg Weger
So I hope you might get bored once in a while before I have to write my 
bachelor thesis :)


Greetings Jörg

On 02.02.2015 00:56, Hans Hagen wrote:

On 2/1/2015 10:06 PM, Jörg Weger wrote:

Is the character count “wc --char ” returns with or without
blank spaces? (Which is important for me.) “man wc” doesn’t talk about
that.

I had hoped there was a better way than to edit the result of
“pdftotext” in my text editor or in libreoffice writer (deleting
unnecessary carriage returns and spaces by searching for regular
expressions) which are able to do the count I need. In fact I had hoped
that ConTeXt was able to count the characters and spaces it renders to
PDF (is that theoretically possible?) …


it's not too hard so maybe when i'm bored or see a good reason ..

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] font search path and subfolders

2015-02-02 Thread Jörg Weger
Just did a complete reinstall and now the subfolders work. Also makes 
manual uninstall of fonts much more convenient.


Cheers Jörg

On 31.01.2015 21:07, Jörg Weger wrote:

I tried to put the subfolders into a folder ~/fonts/ instead of
~/.fonts/ – same result :-(

ls -la returns drwxr-xr-x  for ~/.fonts/ as well as for
~/.fonts/opentype/ and ~/.fonts/truetype/

Greetings Jörg

On 31.01.2015 19:26, Pablo Rodriguez wrote:

On 01/31/2015 05:35 PM, Jörg Weger wrote:

I still get (while using subfolders in ~/.fonts/opentype/)

  !LuaTeX error: cannot find OpenType font file for reading ()
 ==> Fatal error occurred, no output PDF file produced!

mtx-context | fatal error: return code: 1

after having run

  export OSFONTDIR="/usr/local/share/fonts//;$HOME/.fonts//"


Hi Jörg,

at least to avoid to run that again and again, I think you could add
that at last line of tex/setuptex.

BTW, do you have a  ~/.fonts/truetype/ directory? And does ConTeXt load
fonts from that directory without problems?

Could it be that you have an issue with permissions in the
~/.fonts/opentype/ directory?

What about creating a new directory with another name and moving your
fonts there?

I think it may be an issue with permissions.

Just in case it helps,


Pablo




___
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] PDF document statistics (character count incl. spaces)?

2015-02-01 Thread Jörg Weger
Is the character count “wc --char ” returns with or without 
blank spaces? (Which is important for me.) “man wc” doesn’t talk about that.


I had hoped there was a better way than to edit the result of 
“pdftotext” in my text editor or in libreoffice writer (deleting 
unnecessary carriage returns and spaces by searching for regular 
expressions) which are able to do the count I need. In fact I had hoped 
that ConTeXt was able to count the characters and spaces it renders to 
PDF (is that theoretically possible?) …


Greetings Jörg

On 01.02.2015 20:11, Aditya Mahajan wrote:

On Sun, 1 Feb 2015, Jörg Weger wrote:


Is there a way to report the “character count including spaces” of the
resulting PDF in ConTeXt?


Given that these counts are never accurate, how about

   pdftotext filename

followed by

wc filename

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
___


___
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] Font switching on title page

2015-02-01 Thread Jörg Weger

Thank you very much Pablo, indeed it helps :)

Meanwhile I had found a solution by putting as well title and subtitle 
(author name) into groups


\begingroup ... \endgroup

but your braces solution is less typing and less distraction from the text.


Greetings Jörg



On 01.02.2015 12:04, Pablo Rodriguez wrote:

On 02/01/2015 11:37 AM, Jörg Weger wrote:

I have started to design a title page for a paper.

First comes an information block at bodyfont size \tf (all in sans
serif), followed by the title of the paper in \bfd, then the author
(=me) in \bfa. The information block that follows then should be in
bodyfont size again, but it isn’t, it is too tall. What am I missing
about font switching? Is it maybe because it is a makeup page?


Hi Jörg,

"pagestate=stop" is the default in makeups, so you don’t need to add it.

\tf only changes the font to roman, but not the size. I don’t know
whether there is a switch that does that.

The best way avoid problems when using font switches is to enclose them
in braces.

Such as in (complete sample):

\definemakeup[titlepage][doublesided=no]

\starttext

\starttitlepagemakeup[top=,]

{\ss

information \crlf
about \crlf
university \crlf
and \crlf
course \par}

\blank[4*line]

{\bfd \ss

Paper \par}

\blank

{\bfa \ss

by me}

\blank[4*line]

{\ss

my \crlf
information, \crlf
adress \crlf
etc.}

\stoptitlepagemakeup

I hope it helps,


Pablo


___
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] Font switching on title page

2015-02-01 Thread Jörg Weger

I have started to design a title page for a paper.

First comes an information block at bodyfont size \tf (all in sans 
serif), followed by the title of the paper in \bfd, then the author 
(=me) in \bfa. The information block that follows then should be in 
bodyfont size again, but it isn’t, it is too tall. What am I missing 
about font switching? Is it maybe because it is a makeup page?


%% Here is a MWE %%

\definemakeup[titlepage][pagestate=stop,doublesided=no]

\starttext

\starttitlepagemakeup[top=,]

\tf \ss

information \crlf
about \crlf
university \crlf
and \crlf
course \par

\blank[4*line]

\bfd \ss

Paper \par

\blank

\bfa \ss

by me

\blank[4*line]

\tf \ss

my \crlf
information, \crlf
adress \crlf
etc.

\stoptitlepagemakeup

\stoptext

%% end of MWE  
___
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] PDF document statistics (character count incl. spaces)?

2015-02-01 Thread Jörg Weger
Is there a way to report the “character count including spaces” of the 
resulting PDF in ConTeXt?


Greetings Jörg
___
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] font search path and subfolders

2015-01-31 Thread Jörg Weger
I tried to put the subfolders into a folder ~/fonts/ instead of 
~/.fonts/ – same result :-(


ls -la returns drwxr-xr-x  for ~/.fonts/ as well as for 
~/.fonts/opentype/ and ~/.fonts/truetype/


Greetings Jörg

On 31.01.2015 19:26, Pablo Rodriguez wrote:

On 01/31/2015 05:35 PM, Jörg Weger wrote:

I still get (while using subfolders in ~/.fonts/opentype/)

!LuaTeX error: cannot find OpenType font file for reading ()
 ==> Fatal error occurred, no output PDF file produced!

mtx-context | fatal error: return code: 1

after having run

export OSFONTDIR="/usr/local/share/fonts//;$HOME/.fonts//"


Hi Jörg,

at least to avoid to run that again and again, I think you could add
that at last line of tex/setuptex.

BTW, do you have a  ~/.fonts/truetype/ directory? And does ConTeXt load
fonts from that directory without problems?

Could it be that you have an issue with permissions in the
~/.fonts/opentype/ directory?

What about creating a new directory with another name and moving your
fonts there?

I think it may be an issue with permissions.

Just in case it helps,


Pablo


___
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] font search path and subfolders

2015-01-31 Thread Jörg Weger

I still get (while using subfolders in ~/.fonts/opentype/)


!LuaTeX error: cannot find OpenType font file for reading ()
 ==> Fatal error occurred, no output PDF file produced!

mtx-context | fatal error: return code: 1


after having run


export OSFONTDIR="/usr/local/share/fonts//;$HOME/.fonts//"


and Pablo’s proposal


mtxrun --script fonts --reload --force


although a lot happens after latter command.

Running


mtxrun --script fonts --list --all


lists much more fonts now than before, but the PDF rendering still fails.

After I move the OTF files from the subfolders to the parentfolder 
~/.fonts/ and run



mtxrun --script fonts --reload --force


again, the PDF just renders fine.

Any ideas?


Greetings Jörg


On 31.01.2015 16:05, Pablo Rodriguez wrote:

On 01/31/2015 01:40 PM, Jörg Weger wrote:

In my Linux home folder I have the usual “~/.fonts/” folder in which I
have put subfolders “~/.fonts/opentype/” and “~/.fonts/truetype/”.
Inside those subfolders I would like font families to have their own
subfolders.
[...]
What am I missing? (Typo maybe?)


Hi Jörg,

it seems that // makes the search recursive.

And you have to force the font cache generation:

 mtxrun —script font —reload —force

I hope ith works,


Pablo


___
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] font search path and subfolders

2015-01-31 Thread Jörg Weger

Do you mean reported by

mtxrun --expand-var OSFONTDIR

?

Jörg


On 31.01.2015 13:54, Hans Hagen wrote:

On 1/31/2015 1:40 PM, Jörg Weger wrote:


Being able to put opentype font families into subfolders as well would
be a great help to keep a clear view of all my fonts.


what OSFONTDIR paths get reported (the reported paths should show what
gets scanned for what)

does

$HOME/.fonts//

work

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
___

[NTG-context] font search path and subfolders

2015-01-31 Thread Jörg Weger
In my Linux home folder I have the usual “~/.fonts/” folder in which I 
have put subfolders “~/.fonts/opentype/” and “~/.fonts/truetype/”. 
Inside those subfolders I would like font families to have their own 
subfolders. When I set the font search path by running


export 
OSFONTDIR="/usr/local/share/fonts;$HOME/.fonts/opentype;$HOME/.fonts/truetype"


from the command line

followed by

mtxrun --script fonts --reload

only the fonts in the /truetype/ subfolders are recognised. This means I 
have to put all my opentype fonts directly into the /opentype/ folder. 
On Stackexchange I found a solution


http://tex.stackexchange.com/questions/209705/context-system-font-search-path 



which says that putting “//” after the folder made the search recursive,

but neither

export 
OSFONTDIR="/usr/local/share/fonts//;$HOME/.fonts/opentype//;$HOME/.fonts/truetype//"


nor

export OSFONTDIR="/usr/local/share/fonts//;$HOME/.fonts//"

works for me.

What am I missing? (Typo maybe?)

Being able to put opentype font families into subfolders as well would 
be a great help to keep a clear view of all my fonts.


Greetings Jörg
___
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] publications in footnotes (new bibliography mkiv)

2015-01-31 Thread Jörg Weger


That \citation[entry] method works fine so far.

But now two practical problems come up:

1. If I put an article from an “incollection” BibTeX entry into the 
publications list the full page range of that article inside the 
collection should be shown, e.g. “S. 250–262” (in German) or something 
like that. If I quote a passage of said article in my text and reference 
it on the same page by a footnote I want only the page number(s) to be 
shown where the exact text passage can be found, let’s say e.g. “S. 
253”. So the footnote cannot be exactly the same as the list try.


2. There might be other cases where the footnote reference and the list 
entry might have to be different: e.g. full given names in the list vs. 
only initials in the footnote, complete listing of all authors in the 
list vs. et al. in the footnote etc. etc.


Is there (will there be) a way to define maybe an “entry variant” for 
that purpose which in above given case would e.g. exclude the page range 
so you could add the page in the footnote manually?


Meanwhile I am fine with my workaround, but future papers I will have to 
write will be much more extensive, which might mean a much larger 
bibliography :).


Greetings Jörg



On 31.01.2015 12:29, Hans Hagen wrote:

On 1/30/2015 10:39 AM, Jörg Weger wrote:

At least I have found a workaround for that problem:

I will render my complete publications list for the paper by using

\placebtxrendering[method=dataset]

and copy the entry from the resulting PDF into the footnote of my
ConTeXt file. There I can edit (= shorten) and format it.

For the future it be great to have a variant like

“\cite[publfootnote][]”

that would render a predefined style of the publication (optionally
different from the list entry) into a footnote.


An in-tex rendering can be done with

\definebtxcitevariant[entry] % this definition is missing in the beta

\starttext

 \citation[entry][something-5]

 \placebtxrendering

\stoptext


-
   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] publications in footnotes (new bibliography mkiv)

2015-01-30 Thread Jörg Weger

At least I have found a workaround for that problem:

I will render my complete publications list for the paper by using

\placebtxrendering[method=dataset]

and copy the entry from the resulting PDF into the footnote of my 
ConTeXt file. There I can edit (= shorten) and format it.


For the future it be great to have a variant like

“\cite[publfootnote][]”

that would render a predefined style of the publication (optionally 
different from the list entry) into a footnote.


Greetings Jörg


On 29.01.2015 13:41, Jörg Weger wrote:

I have to prepare a paper in literary science. I need to be able to
quote a reference in a footnote instead of a in-text reference. Such a
footnote should look the same or similar as the entry in the
publications list.

I guess that I have to do \setupbtxcitevariant and \definebtxcitevariant
but then I am stuck.

It would be great if one could put a separate page number/range for
every footnote.

Is there maybe already a mechanism for that?


Greetings Jörg


___
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] publications in footnotes (new bibliography mkiv)

2015-01-29 Thread Jörg Weger
I have to prepare a paper in literary science. I need to be able to 
quote a reference in a footnote instead of a in-text reference. Such a 
footnote should look the same or similar as the entry in the 
publications list.


I guess that I have to do \setupbtxcitevariant and \definebtxcitevariant 
but then I am stuck.


It would be great if one could put a separate page number/range for 
every footnote.


Is there maybe already a mechanism for that?


Greetings Jörg
___
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: alignment of first hanging lines in publications list, hyphenation

2015-01-28 Thread Jörg Weger

I looked in the wiki for “descriptions” and found this:

http://wiki.contextgarden.net/Command/setupdescriptions

I played around a lot with the parameters from there in \setupbtxlist, 
but the problem remains. The only way to get hanging indentation is 
\setupbtxlist[alternative=hanging] and no matter what else I change the 
respectively first lines of every publications list entry are not 
aligned to the very left of the full text width :(


Maybe it has something to do with the numbering?

If I use \setupbtxrendering[numbering=yes] the numbers are aligned 
properly to the very left while the following beginnings of the entries 
are not. Maybe the problem is that the numbers are only “hidden”, but 
not really “deleted”? (Excuse my probably incorrect use of terminology.)


For comparison I tried the old mechanism again:


\setupbibtex[database={},sort=author]

\setuppublications[alternative=apa]

\starttext

\title{Literaturverzeichnis}

\placepublications[criterium=all]

\stoptext


Here the hanging first lines of each entry align with the title at the 
very left.


I can live with the actual state of the new mkiv mechanism for now as my 
lecturers’ eyes will be blinded by the remaining perfect ConTeXt layout :)


But in future it would be great to have a real hanging indentation in 
the publications list according to the definition that in hanging 
indentation in contrary to normal indentation all but the very first 
line (which starts as a normal line at the very left) are indented.


Greetings Jörg

PS: By the way, Did I thank you for making this great software freely 
available and for the great quick support on the mailing list?




On 28.01.2015 14:39, Jörg Weger wrote:

But with

 > \setupbtxlist[alternative=left,margin=0cm,align={hanging,hz}]

there is no hanging indentation.

Isn’t it possible for the first “hanging” line of an hanging indentation
layout to start exactly on the very left, while the next lines are
exactly indented?

 > just the settings of descriptions

To be honest, i don’t know exactly what you mean by „descriptions“.


Greetings Jörg



On 28.01.2015 10:00, Hans Hagen wrote:

On 1/28/2015 8:42 AM, Jörg Weger wrote:

Attached are a MWE using plain APA and the corresponding BibTeX file.
(Don’t mind the mistakes regarding series/volumes, I got that working in
my personal setup that overrides plain APA.)

APA style defaults with hanging indents in the publications list.

The respectively hanging first lines of each entry in the publications
list are not properly aligned on the left. (The indented lines are). I
would like all of those first lines to start on the very left of the
textfield.

If I use \hyphenation to prevent e.g. names from being hyphenated those
words might be driven into the right margin.

Hanging punctuation doesn’t seem to work as well.


Is there anything that can be done about that? Or how can the
justification be switched to flush left/ragged right with hanging
indents on the left?


\setupbtxlist[alternative=left,margin=0cm,align={hanging,hz}]

just the settings of descriptions


Greetings Jörg


PS: And by the way, “\placebtxrendering[criterium=all]” is not working
anymore. I think I had it working before to place all entries from the
BibTeX file into the publications list regardless of their actual
appearance in the text as citations–which was a good way to test only
the publications list’s layout.


\placebtxrendering[method=dataset]

-
   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] bibliography: alignment of first hanging lines in publications list, hyphenation

2015-01-28 Thread Jörg Weger

But with

> \setupbtxlist[alternative=left,margin=0cm,align={hanging,hz}]

there is no hanging indentation.

Isn’t it possible for the first “hanging” line of an hanging indentation 
layout to start exactly on the very left, while the next lines are 
exactly indented?


> just the settings of descriptions

To be honest, i don’t know exactly what you mean by „descriptions“.


Greetings Jörg



On 28.01.2015 10:00, Hans Hagen wrote:

On 1/28/2015 8:42 AM, Jörg Weger wrote:

Attached are a MWE using plain APA and the corresponding BibTeX file.
(Don’t mind the mistakes regarding series/volumes, I got that working in
my personal setup that overrides plain APA.)

APA style defaults with hanging indents in the publications list.

The respectively hanging first lines of each entry in the publications
list are not properly aligned on the left. (The indented lines are). I
would like all of those first lines to start on the very left of the
textfield.

If I use \hyphenation to prevent e.g. names from being hyphenated those
words might be driven into the right margin.

Hanging punctuation doesn’t seem to work as well.


Is there anything that can be done about that? Or how can the
justification be switched to flush left/ragged right with hanging
indents on the left?


\setupbtxlist[alternative=left,margin=0cm,align={hanging,hz}]

just the settings of descriptions


Greetings Jörg


PS: And by the way, “\placebtxrendering[criterium=all]” is not working
anymore. I think I had it working before to place all entries from the
BibTeX file into the publications list regardless of their actual
appearance in the text as citations–which was a good way to test only
the publications list’s layout.


\placebtxrendering[method=dataset]

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

[NTG-context] bibliography: alignment of first hanging lines in publications list, hyphenation

2015-01-27 Thread Jörg Weger
Attached are a MWE using plain APA and the corresponding BibTeX file. 
(Don’t mind the mistakes regarding series/volumes, I got that working in 
my personal setup that overrides plain APA.)


APA style defaults with hanging indents in the publications list.

The respectively hanging first lines of each entry in the publications 
list are not properly aligned on the left. (The indented lines are). I 
would like all of those first lines to start on the very left of the 
textfield.


If I use \hyphenation to prevent e.g. names from being hyphenated those 
words might be driven into the right margin.


Hanging punctuation doesn’t seem to work as well.


Is there anything that can be done about that? Or how can the 
justification be switched to flush left/ragged right with hanging 
indents on the left?



Greetings Jörg


PS: And by the way, “\placebtxrendering[criterium=all]” is not working 
anymore. I think I had it working before to place all entries from the 
BibTeX file into the publications list regardless of their actual 
appearance in the text as citations–which was a good way to test only 
the publications list’s layout.
\setuplanguage [de]
\mainlanguage [de] 	

\usebtxdataset[testbib_daf.bib]

\showframe

\setbreakpoints[compound]

\setupalign [hyphenated,justified,hanging,hz,]

\definefontfeature[default][default][expansion=quality,protrusion=quality,] 

\hyphenation{Helbig Deutscher Heraus-geber}


\starttext

\cite[authoryears][weinrich:2006] 

\cite[authoryear][goethe:2008]

\cite[authoryears][hoelscher:2006]

\cite[authoryear][martinez:1999]

\cite[authoryears][stedje:2007]

\cite[authoryear][wrobel:2007]

\cite[authoryears][baur:2001] 

\cite[authoryear][hoffmann:2000]

\cite[authoryears][sereno:1994] \\

\blank

\startsection[title=Literaturverzeichnis, number=no]

\placebtxrendering[criterium=text]

\stopsection

\stoptext

@Book{		  goethe:2008,
  author	= {{Johann Wolfgang von} Goethe},
  title		= {{Die Leiden des jungen Werthers}},
  publisher	= {Deutscher Taschenbuchverlag},
  year		= 2008,
  address	= {München},
  note		= {Original von 1774},
}

@Book{		  hoelscher:2006,
  author	= {Petra Hölscher and Eberhard Piepho and Jörg Roche},
  title		= {{Handlungsorientierter Unterricht mit Lernszenarien –
		  Kernfragen zum Spracherwerb}},
  publisher	= {Finken},
  year		= 2006,
  address	= {Oberursel},
}

@Book{		  martinez:1999,
  author	= {Matias Martinez and Michael Scheffel},
  title		= {{Einführung in die Erzähltheorie}},
  publisher	= {Beck},
  year		= 1999,
  address	= {München},
}

@Book{		  stedje:2007,
  author	= {Astrid Stedje},
  title		= {{Deutsche Sprache gestern und heute}},
  publisher	= {Fink},
  year		= 2007,
  address	= {München},
  edition	= {6.~neubearb.},
}

@Book{		  weinrich:2006,
  author	= {Harald Weinrich},
  title		= {{Sprache, das heißt Sprachen}},
  publisher	= {Narr},
  year		= 2006,
  address	= {Tübingen},
}

@Book{		  wrobel:2007,
  author	= {Ulrike Wrobel},
  title		= {{Raum als kommunikative Ressource: eine
		  handlungstheoretische Analyse visueller Sprachen}},
  publisher	= {Peter Lang},
  year		= 2007,
  volume	= 47,
  series	= {{Arbeiten zur Sprachanalyse}},
  address	= {Frankfurt am Main u.|~|a.},
}

@InCollection{	  sereno:1994,
  author	= {Joan A. Sereno},
  title		= {{Phonosyntactics}},
  booktitle	= {{Sound Symbolism}},
  publisher	= {Cambridge University Press},
  year		= 1994,
  editor	= {Leanne Hinton and Joanna Nichols and John Ohala},
  pages		= {263–275},
  address	= {New York},
}

@InCollection{	  baur:2001,
  author	= {Rupprecht Baur},
  title		= {{Deutsch als Fremdsprache – Deutsch als Zweitsprache}},
  booktitle	= {{Deutsch als Fremdsprache}},
  publisher	= {de Gruyter},
  year		= 2001,
  editor	= {Gerhard Helbig and Lutz Götze and Gert Henrici and Hans-Jürgen Krumm},
  volume	= {19.1},
  series	= {{HSK}},
  pages		= {617–628},
  address	= {Berlin},
}

@Book{	  hoffmann:2000,
  title		= {{Sprachwissenschaft: Ein Reader}},
  publisher	= {Walter de Gruyter},
  year		= 2000,
  editor	= {Ludger Hoffmann},
  address	= {Berlin, New York},
}
___
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 again: “von” and “van”

2015-01-27 Thread Jörg Weger
As I have already replied to Hans’ post, I don’t mind using the “double 
braces solution” as an easy workaround to distinguish German “vons” and 
Dutch “vans”. But I am not sure if that solution solves the problems 
with French and Spanish name attributes as well.


Greetings Jörg

On 28.01.2015 04:10, Alan BRASLAU wrote:

I have been arguing with Hans over the proper treatment of "particles",
in general. The rules vary greatly - here we are looking at a
comparison between Dutch and German practice. In French, the use often
depends on history differing before and after the revolution. In
Spanish, we have other practice.

One solution is to make the rendering depend on the "language=" bibtex
field. But this does not work universally. With Hans, we have extended
the bibtex standard so that names can be explicitly separated, as in:
author = {particle, lastname, suffix, firstname}
This allows the author to use a free form for each component without
resorting to any bibtex trickery (like capitalization or not). How
these components are handled or rendered is not entirely worked out.
Indeed, the German practice differs from others. Thus my suggestion of
the use of the language field (or setting).

Alan


On Tue, 27 Jan 2015 21:50:44 +0100
Hans Hagen  wrote:


On 1/27/2015 8:16 PM, Keith Schultz wrote:

Hi Jörg,

Though, generally, the von, as well as a few others, are nobility
particles in Germany, but not necessarily always noblility
particles, but at times signify the place where a persons ancestor
came from!

Now, in the case Goethe you are right that he was ennobled.
Therefore the von is not truly part of his name. He should be
listed as you rightly mentioned under Goethe and not "von Goethe“.

It is impossible for a bibliographic system to handle this, so
there is no switch for it!


you can try to wrap thing that belong together in { } ... it might
work


So, it is up to the author of a text to set up his entries
properly, by putting the von in the right part of the name field.


indeed, not all can be catched in a poorly specified format

btw, context loads the bib data in memory and fields of type author
get split into multiple authors and each is split into parts; most
magic is under our own control so we can always add variants if
needed (maybe some prefix that indicates a german name or so) but
anyway this whole von business is on our agenda

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] bibliography again: “von” and “van”

2015-01-27 Thread Jörg Weger

Thank you very much, Hans.

I think I had tried something with double braces before (I use them also 
for German booktitles to keep upper and lowercase intact) but only now I 
got it working:


Writing both

“author = {{Johann Wolfgang von} Goethe}”

and

“author = {Goethe, {Johann Wolfgang von}}”

in the BibTeX are easy workarounds for the problem I was describing. I 
can happily live with that. In case a problem like that arises I will 
anyway first take a look at the according BibTeX entry.


Greetings Jörg

On 27.01.2015 21:50, Hans Hagen wrote:

On 1/27/2015 8:16 PM, Keith Schultz wrote:

Hi Jörg,

Though, generally, the von, as well as a few others, are nobility
particles in Germany, but not necessarily always
noblility particles, but at times signify the place where a persons
ancestor came from!

Now, in the case Goethe you are right that he was ennobled. Therefore
the von is not truly part of his name.
He should be listed as you rightly mentioned under Goethe and not "von
Goethe“.

It is impossible for a bibliographic system to handle this, so there
is no switch for it!


you can try to wrap thing that belong together in { } ... it might work


So, it is up to the author of a text to set up his entries properly,
by putting the von in the right part of the name field.


indeed, not all can be catched in a poorly specified format

btw, context loads the bib data in memory and fields of type author get
split into multiple authors and each is split into parts; most magic is
under our own control so we can always add variants if needed (maybe
some prefix that indicates a german name or so) but anyway this whole
von business is on our agenda

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] bibliography again: “von” and “van”

2015-01-27 Thread Jörg Weger

Hi Keith,

how would you “set up an entry properly” in a BibTeX file where you have 
only one field for author/editor (serious question!)? I normally put the 
names uninverted but inverting Goethe’s name in the BibTeX file didn’t 
change anything. As far as I understood ConTeXt can handle inverted and 
uninverted names in BibTeX name fields equally well. There is something 
in the default mechanism that interpretes the “von” as part of the 
surname. What I was proposing was a way to manually switch to another 
mode where the “von” is treated as an attribute on a by-case-base–just 
like you can switch between “authoryear” and “authoryears” as I learned 
today.


Greetings Jörg




On 27.01.2015 20:16, Keith Schultz wrote:

Hi Jörg,

Though, generally, the von, as well as a few others, are nobility particles in 
Germany, but not necessarily always
noblility particles, but at times signify the place where a persons ancestor 
came from!

Now, in the case Goethe you are right that he was ennobled. Therefore the von 
is not truly part of his name.
He should be listed as you rightly mentioned under Goethe and not "von Goethe“.

It is impossible for a bibliographic system to handle this, so there is no 
switch for it!

So, it is up to the author of a text to set up his entries properly, by putting 
the von in the right part of the name field.

regards
Keith

Am 27.01.2015 um 19:20 schrieb Jörg Weger :

The default way to diplay (inverted) names with “von” and “van” is “von Goethe” 
and “van Halen” in in-text references and “von Goethe, Johann Wolfgang” and 
“van Halen, Edward”. The problem with this is that while AFAIK the Dutch “van 
Halen” means that one of his ancestors came ”from” a place/city called “Halen” 
in German names the “von” is always a sign of nobility. Even long before 
monarchy and nobility was abolished in Germany by the revolution of 1919 you 
would not have talked about “von Goethe” but simply “Goethe”–so in a reference 
it would be “(Goethe 1774)” and “Goethe, Johann Wolfgang von” in the 
publications list, but still “(van Halen 1984)” and “van Halen, Edward”. It 
would be nice if you could switch between two modes while invoking the 
citation. I have not yet discovered where this order is defined.



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

[NTG-context] bibliography again: “von” and “van”

2015-01-27 Thread Jörg Weger
The default way to diplay (inverted) names with “von” and “van” is “von 
Goethe” and “van Halen” in in-text references and “von Goethe, Johann 
Wolfgang” and “van Halen, Edward”. The problem with this is that while 
AFAIK the Dutch “van Halen” means that one of his ancestors came ”from” 
a place/city called “Halen” in German names the “von” is always a sign 
of nobility. Even long before monarchy and nobility was abolished in 
Germany by the revolution of 1919 you would not have talked about “von 
Goethe” but simply “Goethe”–so in a reference it would be “(Goethe 
1774)” and “Goethe, Johann Wolfgang von” in the publications list, but 
still “(van Halen 1984)” and “van Halen, Edward”. It would be nice if 
you could switch between two modes while invoking the citation. I have 
not yet discovered where this order is defined.


Greetings Jörg
___
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] Formatting bibliographic inline references and publications list

2015-01-27 Thread Jörg Weger

Now I got it and I got it working :)

Thanks a lot!

By the way, is there a difference between \cite and \citation?

On 27.01.2015 04:59, Alan BRASLAU wrote:

On Sun, 25 Jan 2015 20:13:09 +0100
Jörg Weger  wrote:


* normal reference in brackets: author  year, no comma: e.g.
“(Einstein 1904)”


\cite[authoryears][Einstein1904]


* author is named in the text, only year in brackets: e.g. “As it has
been proven by Einstein (1904) …”


\cite[authoryear][Einstein1904]


* if page numbers are to be given in the citation: colon after year,
followed directly (without space) by page number(s)/range: e.g.
“(Einstein 1904:351)” or “(Einstein 1904:251 f.)” or “(Einstein
1904:251 ff.)” or “(Einstein 1904:226–231)”.


This feature is currently *broken* (and we need to fix it).

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] New mkiv bibliographic engine: bug with “Editor”/“Editors” differentiation (?)

2015-01-26 Thread Jörg Weger

Thanks for the quick reply, so I will update.

Greetings Jörg

On 26.01.2015 11:52, Hans Hagen wrote:

On 1/26/2015 11:07 AM, Jörg Weger wrote:

new bibliographic engine: bug with “Editor”/“Editors” differentiation (?)


There seems to be a bug in the new MkIV bibliographic engine regarding
the differentiation of the “editor” variable into “Editor” (singular)
and “Editors” (plural) from BibTeX.

I have attached a BibTeX file with only two books, one is a “book”
naming one “editor” instead of an “author”, the other is of the
“incollection” type and issued by several editors. In the BibTeX file I
have used the uninverted names combined with “and”. The same bug applies
if you delete all but one editors from the “incollection” example.

In the following MWE I have changed the language to English and the
style to the pure default APA. In English there should be the
differentiation between “(Ed.)” and “(Eds.)” after the name(s) but only
the latter applies.

% === start of MWE =

\setuplanguage [en]

\mainlanguage [en]

\setupbtx[specification=apa]

\definebtxdataset[apa]

\usebtxdataset[apa][150126_testbib_short.bib]

\setbtxdataset[apa]

\definebtxrendering[apa][dataset=apa]

\setupbtxrendering[sorttype=authoryear,numbering=no]


\starttext

\cite[hoffmann:2000]

\cite[sereno:1994] \\

\blank

\placebtxrendering[criterium=text]

\stoptext

% === end of MWE ===

(My ConTeXt version is “2015.01.13 15:54”.)


there has been a singular/plural fix last week


Greetings Jörg


___

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
___

[NTG-context] New mkiv bibliographic engine: bug with “Editor”/“Editors” differentiation (?)

2015-01-26 Thread Jörg Weger

new bibliographic engine: bug with “Editor”/“Editors” differentiation (?)


There seems to be a bug in the new MkIV bibliographic engine regarding 
the differentiation of the “editor” variable into “Editor” (singular) 
and “Editors” (plural) from BibTeX.


I have attached a BibTeX file with only two books, one is a “book” 
naming one “editor” instead of an “author”, the other is of the 
“incollection” type and issued by several editors. In the BibTeX file I 
have used the uninverted names combined with “and”. The same bug applies 
if you delete all but one editors from the “incollection” example.


In the following MWE I have changed the language to English and the 
style to the pure default APA. In English there should be the 
differentiation between “(Ed.)” and “(Eds.)” after the name(s) but only 
the latter applies.


% === start of MWE =

\setuplanguage [en]

\mainlanguage [en]  

\setupbtx[specification=apa]

\definebtxdataset[apa]

\usebtxdataset[apa][150126_testbib_short.bib]

\setbtxdataset[apa]

\definebtxrendering[apa][dataset=apa]

\setupbtxrendering[sorttype=authoryear,numbering=no]


\starttext

\cite[hoffmann:2000]

\cite[sereno:1994] \\

\blank

\placebtxrendering[criterium=text]

\stoptext

% === end of MWE ===

(My ConTeXt version is “2015.01.13 15:54”.)


Greetings Jörg

@InCollection{	  sereno:1994,
  author	= {Joan A. Sereno},
  title		= {{Phonosyntactics}},
  booktitle	= {{Sound Symbolism}},
  publisher	= {Cambridge University Press},
  year		= 1994,
  editor	= {Leanne Hinton and Joanna Nichols and John Ohala},
  pages		= {263–275},
  address	= {New York},
}

@Book{	  hoffmann:2000,
  title	= {{Sprachwissenschaft: Ein Reader}},
  publisher	= {Walter de Gruyter},
  year		= 2000,
  editor	= {Ludger Hoffmann},
  address	= {Berlin, New York},
}
___
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] Formatting bibliographic inline references and publications list

2015-01-26 Thread Jörg Weger

Thank You Alan and Hans for your efforts regarding my questions so far.

After I had played a while with the examples Hans had attached, I have 
had a little success bei renaming copies of 
~/context/tex/texmf-context/tex/context/base/publ-imp-apa.lua and 
~/context/tex/texmf-context/tex/context/base/publ-imp-apa.mkiv to 
publ-imp-daf.lua and publ-imp-daf.mkiv (DaF stands for “Deutsch als 
Fremdsprache” = “German as a foreign language”, my subject of study) and 
putting those renamed copies into the same folder as a test file that 
should contain only in-text references and a publications list.


I have started to set up a “real world” BibTeXt example from the 
examples in the style sheet we were given by the university. So far I 
have different examples for “book” and “incollection”.


 Inside the two new configuration files I replaced every occurrence of 
“apa” by “daf”. Then I edited publ-imp-daf.mkiv by trial and error. I 
managed to change punctuation/delimiters in the publications list, but 
did not fully succeed with the in-text reference. I understand now that 
it is not trivial to set up a style as there are many decisions to be 
taken. The problem I have regarding the publications list is that the 
order I need differs in some ways from apa which means I have to split 
some of the macros defined for apa. E.g. for “book” my order is


author(s), year, title, (optional: edition), adress, publisher, 
(optional: series, volume)


and for incollection

author(s), year, title, editor(s), booktitle, publisher’s city adress, 
publisher, (optional: series, volume), page(s)


I think I have yet to translate the other real world examples (mainly 
electronic media) into BibTeX before I start to ask further questions 
regarding the order in the publications list.


For now I have an important question regarding in-text references:

Is there a way to switch between the following citation modes?

I have to manage:

* normal reference in brackets: author  year, no comma: e.g. 
“(Einstein 1904)”


* author is named in the text, only year in brackets: e.g. “As it has 
been proven by Einstein (1904) …”


* if page numbers are to be given in the citation: colon after year, 
followed directly (without space) by page number(s)/range: e.g. 
“(Einstein 1904:351)” or “(Einstein 1904:251 f.)” or “(Einstein 1904:251 
ff.)” or “(Einstein 1904:226–231)”.


(“f.” and “ff.” are the German abreviations for “et seq.” respectively 
“et seqq.”)


Is it possible to switch between those three modes? If not it would be 
great to implement that.


“\cite[extras={}][]” doesn’t seem to work anymore, so 
I cannot put page numbers manually.



Greetings from Munich

Jörg


PS: Regarding the small caps from my original question: Those would be 
nice, but they are not obligatory—it is just my idea to let the 
references stick out more from the surrounding text and giving the whole 
thing more the impression of sophisticated typesetting :)


For me it is much more important to get the information in the 
publications list into the right order first.







On 23.01.2015 07:26, Alan BRASLAU wrote:

 From what I can see, the only *significant* style difference that you
seek is the use of \letterspace and \sc for names (authors or editors).
The use of old numbers is trivial as they will be used if specified for
the rest of the document.

How else does your university's standard differ from the APA?

All of the details of the layout are programmable using setups.

By the way, the APA sort order is: authors(or editors), year,
title (and possibly journal, volume, number, page).


Alan



On Mon, 19 Jan 2015 19:44:56 +0100
Hans Hagen  wrote:


On 1/17/2015 7:23 AM, Jörg Weger wrote:

Hi Alan


What I am trying to achieve is the following (of which typesetting
the author’s name is only a detail): setting up an environment that
I can use for all papers and works that I have to write during my
academic studies. With the basic layout I am almost done. The main
remaining problem is to get the bibliographic information details
in the publications list into the right order for every possible
type of publication according to the standards demanded by my
university department which differ from APA style.

You ask what I am looking for:

It would be great to be able at the same time to format every
detail of information while defining said order.

Defining that order could be done by giving a kind of “maximum case”
with the exact order of the desired variables and the punctuation
and blanks between them for every particular type of publication
cited. Out of that “maximum case” the underlying mechanism would
ignore everything not needed in the particular case of a certain
publication.

In the case of publication type “book” it could be something like:

\setpublicationstyleforlist [type:book]
[{invertedauthor1}{/}{invertedauthor2}{/}{invertedauthor3}{et al.}{
(}{year}{): }{title}{. }{address}{: }{publisher}{.}]


... that not good enough: fields c

Re: [NTG-context] Formatting bibliographic inline references and publications list

2015-01-25 Thread Jörg Weger




Thank You Alan and Hans for your efforts regarding my questions so far.

After I had played a while with the examples Hans had attached, I have
had a little success bei renaming copies of
~/context/tex/texmf-context/tex/context/base/publ-imp-apa.lua and
~/context/tex/texmf-context/tex/context/base/publ-imp-apa.mkiv to
publ-imp-daf.lua and publ-imp-daf.mkiv (DaF stands for “Deutsch als
Fremdsprache” = “German as a foreign language”, my subject of study) and
putting those renamed copies into the same folder as a test file that
should contain only in-text references and a publications list.

I have started to set up a “real world” BibTeXt example from the
examples in the style sheet we were given by the university. So far I
have different examples for “book” and “incollection”.

 Inside the two new configuration files I replaced every occurrence of
“apa” by “daf”. Then I edited publ-imp-daf.mkiv by trial and error. I
managed to change punctuation/delimiters in the publications list, but
did not fully succeed with the in-text reference. I understand now that
it is not trivial to set up a style as there are many decisions to be
taken. The problem I have regarding the publications list is that the
order I need differs in some ways from apa which means I have to split
some of the macros defined for apa. E.g. for “book” my order is

author(s), year, title, (optional: edition), adress, publisher,
(optional: series, volume)

and for incollection

author(s), year, title, editor(s), booktitle, publisher’s city adress,
publisher, (optional: series, volume), page(s)

I think I have yet to translate the other real world examples (mainly
electronic media) into BibTeX before I start to ask further questions
regarding the order in the publications list.

For now I have an important question regarding in-text references:

Is there a way to switch between the following citation modes?

I have to manage:

* normal reference in brackets: author  year, no comma: e.g.
“(Einstein 1904)”

* author is named in the text, only year in brackets: e.g. “As it has
been proven by Einstein (1904) …”

* if page numbers are to be given in the citation: colon after year,
followed directly (without space) by page number(s)/range: e.g.
“(Einstein 1904:351)” or “(Einstein 1904:251 f.)” or “(Einstein 1904:251
ff.)” or “(Einstein 1904:226–231)”.

(“f.” and “ff.” are the German abreviations for “et seq.” respectively
“et seqq.”)

Is it possible to switch between those three modes? If not it would be
great to implement that.

“\cite[extras={}][]” doesn’t seem to work anymore, so
I cannot put page numbers manually.


Greetings from Munich

Jörg


PS: Regarding the small caps from my original question: Those would be
nice, but they are not obligatory—it is just my idea to let the
references stick out more from the surrounding text and giving the whole
thing more the impression of sophisticated typesetting :)

For me it is much more important to get the information in the
publications list into the right order first.






On 23.01.2015 07:26, Alan BRASLAU wrote:

 From what I can see, the only *significant* style difference that you
seek is the use of \letterspace and \sc for names (authors or editors).
The use of old numbers is trivial as they will be used if specified for
the rest of the document.

How else does your university's standard differ from the APA?

All of the details of the layout are programmable using setups.

By the way, the APA sort order is: authors(or editors), year,
title (and possibly journal, volume, number, page).


Alan



On Mon, 19 Jan 2015 19:44:56 +0100
Hans Hagen  wrote:


On 1/17/2015 7:23 AM, Jörg Weger wrote:

Hi Alan


What I am trying to achieve is the following (of which typesetting
the author’s name is only a detail): setting up an environment that
I can use for all papers and works that I have to write during my
academic studies. With the basic layout I am almost done. The main
remaining problem is to get the bibliographic information details
in the publications list into the right order for every possible
type of publication according to the standards demanded by my
university department which differ from APA style.

You ask what I am looking for:

It would be great to be able at the same time to format every
detail of information while defining said order.

Defining that order could be done by giving a kind of “maximum case”
with the exact order of the desired variables and the punctuation
and blanks between them for every particular type of publication
cited. Out of that “maximum case” the underlying mechanism would
ignore everything not needed in the particular case of a certain
publication.

In the case of publication type “book” it could be something like:

\setpublicationstyleforlist [type:book]
[{invertedauthor1}{/}{invertedauthor2}{/}{invertedauthor3}{et al.}{
(}{year}{): }{title}{. }{address}{: }{publisher}{.}]


... that not good enough: fields can be absent, there is no way to
distinguish au

Re: [NTG-context] Formatting bibliographic inline references and publications list

2015-01-19 Thread Jörg Weger

Hello again,


After looking once more for all files within ConTeXt with “apa” in their 
name, I found out that I can start to write my own citation style by 
changing things in the file 
“~/context/tex/texmf-context/tex/context/bib/bibl-apa.tex”. It’s not as 
convenient as I had described in my previous post, but not to far from 
that and I think I will manage to get everything working. Anyway it is 
much easier for me than learning to edit XML in CSL files which I looked 
at today.


What I still do not understand: How can I make the edited file work as 
an alternative style to APA in \setuppublications in my environment? I 
tried to rename the file to “bibl-abc.tex“ and change \setuppublications 
in my ConTeXt environment to \setuppublications[alternative=abc] but 
that did not work. Do I have to rename something else? And supposed I 
have succeeded to create my own style, will those selfmade style files 
survive an update?


And what are that localized files for like “bibl-apa-de.tex”, 
“bibl-apa-fr.tex” etc.? They seem to be older than “bibl-apa.tex”.



\Greetings

Jörg
___
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] Formatting bibliographic inline references and publications list

2015-01-16 Thread Jörg Weger

Hi Alan


What I am trying to achieve is the following (of which typesetting the 
author’s name is only a detail): setting up an environment that I can 
use for all papers and works that I have to write during my academic 
studies. With the basic layout I am almost done. The main remaining 
problem is to get the bibliographic information details in the 
publications list into the right order for every possible type of 
publication according to the standards demanded by my university 
department which differ from APA style.


You ask what I am looking for:

It would be great to be able at the same time to format every detail of 
information while defining said order.


Defining that order could be done by giving a kind of “maximum case” 
with the exact order of the desired variables and the punctuation and 
blanks between them for every particular type of publication cited. Out 
of that “maximum case” the underlying mechanism would ignore everything 
not needed in the particular case of a certain publication.


In the case of publication type “book” it could be something like:

\setpublicationstyleforlist [type:book] 
[{invertedauthor1}{/}{invertedauthor2}{/}{invertedauthor3}{et al.}{ 
(}{year}{): }{title}{. }{address}{: }{publisher}{.}]


The underlying mechanism would ignore author 2 and 3 if there was only 
one single author. In case of more than 3 authors given the “et al.” 
would be used after naming the first 3 authors.


That system would be perfect, if you could do do the desired typographic 
formatting directly inside that definition:


\setpublicationstyleforlist [type:book] [{\letterspace{\sc 
{invertedauthor}{/}{invertedauthor}{/}{invertedauthor}}{et al.}}{ 
(}{\oldstyle{year}}{): }{\it{title}}{. }{adress}{: }{publisher}{.}]


Accordingly for the inline references:

\setupcitestyle[{\letterspace{\sc{authorlastname}{ et al.}}}{ 
}{\oldstyle{year}}]


There should be a possibility to invoke a certain citation style you 
have defined from a text file so you would not have to type 
(respectively copy/paste) everything again every time.


The advantage of such a system would be that everybody could define 
exactly what he/she needs.


Would that be very difficult to implement?

Then there are the cases where the definition work has already be done 
in the form of special XML files: Over 7,000 CSL (= citation style 
language) files are listed for download at the citationstyles.org 
website. Pandoc seems to have a way to use CSL files to filter, order 
and format the information from BibTeX files. It would be great if you 
could do that directly inside ConTeXt as well.



\ConTeXtualGreetings :)

Jörg


PS: I have (as I wrote) defaulted oldstyle numbers for my whole 
environment, so I am not mixing old and normal style.


On 16.01.2015 14:18, Alan BRASLAU wrote:

We have completely rewritten the bibliography subsystem of ConTeXt
which is not quite production-ready. It should become easier to create
custom renderings of bibliography references and publication lists.

Do you wish to mix old style numbers for the years with normal style
numbers for volume, number, chapter, page, etc.? If so, would such a mix
look strange?

Do you want only the author names in small capitals, or also the
editor? What about the title, journal, publisher, ... ?
I suppose all names, but not other text.

I do not have any suggestion with the use of the "old" bibliography
module, and the new system is, as I said, not quite ready. But please
clarify what you are looking for so that we can make this somehow
possible.

Alan

On Fri, 16 Jan 2015 06:08:36 +0100
Jörg Weger  wrote:


Hello everybody,


I am rather new to ConTeXt and I am momentarily stuck with the
following:

How can I further format the way an inline reference and a
bibliographic reference in the publications list are displayed? For
example I would like to display the author(s) in spaced-out small
caps (I am using the “letterspace” module). The year should be in
oldstyle numbers both in the inline reference and in the publications
list. An inline-reference should like this (simulated without BibTeX,
letterspacing slightly exaggerated):


% == MWE ===

\usemodule[t][letterspace]  
\defineletterspace [LSsmcp] 
\setupletterspace [LSsmcp][factor=.08, spaceskip=.4em,
suppresskern=no,]

\starttext

\input knuth ({\LSsmcp {\sc Knuth}} {\os 1991})

\input zapf

\stoptext

% ==

I have defaulted oldstyle numbers my environment but I would like to
get the the small caps working for the author(s) name(s).

I messed around with \setuppublications and \setupcite without
success. Is there a way to invoke such formatting in those setups?


Greetings

Joerg



___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg

[NTG-context] Formatting bibliographic inline references and publications list

2015-01-15 Thread Jörg Weger

Hello everybody,


I am rather new to ConTeXt and I am momentarily stuck with the following:

How can I further format the way an inline reference and a bibliographic 
reference in the publications list are displayed? For example I would 
like to display the author(s) in spaced-out small caps (I am using the 
“letterspace” module). The year should be in oldstyle numbers both in 
the inline reference and in the publications list. An inline-reference 
should like this (simulated without BibTeX, letterspacing slightly 
exaggerated):



% == MWE ===

\usemodule[t][letterspace]  
\defineletterspace [LSsmcp] 
\setupletterspace [LSsmcp][factor=.08, spaceskip=.4em, suppresskern=no,]

\starttext

\input knuth ({\LSsmcp {\sc Knuth}} {\os 1991})

\input zapf

\stoptext

% ==

I have defaulted oldstyle numbers my environment but I would like to get 
the the small caps working for the author(s) name(s).


I messed around with \setuppublications and \setupcite without success. 
Is there a way to invoke such formatting in those setups?



Greetings

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