Re: [NTG-context] font name has a space.

2011-03-06 Thread Taco Hoekwater

On 03/07/2011 12:58 AM, Jeong Dalyoung wrote:

Dear Hans,

After removing space in the name, LuaTeX locates the font.
However, I couldn't get an output.

There is a fatal error message as following:

  )  Fatal error occurred, no output PDF file produced!

There may be some problems in the font file.


Sounds like the backend font type discovery is wrong. If the font is
using truetype outlines (likely), then renaming it to .ttf will fix 
this. Please try that to see what happens. If that fixes it, then the

next luatex beta release will remove the necessity to rename the font.

Otherwise (if it really is a postscript/cff font), you will have to
wait for a next beta by Hans that will hopefully fix it.


But, it was working well in other editing programs.
I'd like to tell to font maker about this error. On the while,


It is almost certainly not an actual font error.


Is there a way to get a detailed information on the "Invalid character" error ?


No. This is a low-level error in the font inclusion code, at this point
there is no better error discovery than this.

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
___


Re: [NTG-context] slide steps again

2011-03-06 Thread Jeong Dalyoung

Hi,

If you want to reveal parts of a drawing sequentially, you may try MetaFun and 
AdobeReader.

There is a sample  in 13.6 Growing graphics, metafun manual(metafun-p).

It needs your time but the result is very nice.

I hope you enjoy it.

Best regards,

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] font name has a space.

2011-03-06 Thread Jeong Dalyoung
Dear Hans,

After removing space in the name, LuaTeX locates the font.
However, I couldn't get an output.

There is a fatal error message as following: 

 ) Fatal error occurred, no output PDF file produced!

There may be some problems in the font file. But, it was working well in other 
editing programs.
I'd like to tell to font maker about this error. On the while, Is there a way 
to get a detailed information on the "Invalid character" error ?

Thank you for your help.

Best regards,

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] slide steps again

2011-03-06 Thread Curiouslearn
Thanks Aditya! I will try this. But I suppose this will not work with
TikZ (revealing parts of a drawing sequentially). I think neither does
pre-stepwise (if I am wrong about this, that would be nice)



On Sun, Mar 6, 2011 at 6:21 PM, Aditya Mahajan  wrote:
> On Sun, 6 Mar 2011, Curiouslearn wrote:
>
>> I am making some slides using the Swoosh style in simpleslides module.
>> I wanted to reveal some content sequentially.
>
> simpleslides does not support stepwise presentation of material.
>
> I occasionally use the following macros for quick and dirty stepwise
> effects. This is for really simple material (no counters, no glues ...)
>
> \usemodule[simpleslides][style=Swoosh]
> \def\StartSteps#1#2\StopSteps%
>   {\dorecurse{#1}{\long\setvalue{\recurselevel}{\gobble}}
>    \dorecurse{#1}{\long\setvalue{\recurselevel}{\oneofone} #2}}
>
> \long\def\gobble#1{}
> \long\def\oneofone#1{#1}
>
> \starttext
> \StartSteps{3}
> \SlideTitle{Context can be used for \dots}
>
> \null
>
> \startitemize[n]
>  \2{\item Writing your articles}
>
>  \3{ \item Making slides for presentations }
> \stopitemize
>
> \StopSteps
>
> \stoptext
>
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] slide steps again

2011-03-06 Thread Aditya Mahajan

On Sun, 6 Mar 2011, Curiouslearn wrote:


I am making some slides using the Swoosh style in simpleslides module.
I wanted to reveal some content sequentially.


simpleslides does not support stepwise presentation of material.

I occasionally use the following macros for quick and dirty stepwise 
effects. This is for really simple material (no counters, no glues ...)


\usemodule[simpleslides][style=Swoosh]
\def\StartSteps#1#2\StopSteps%
   {\dorecurse{#1}{\long\setvalue{\recurselevel}{\gobble}}
\dorecurse{#1}{\long\setvalue{\recurselevel}{\oneofone} #2}}

\long\def\gobble#1{}
\long\def\oneofone#1{#1}

\starttext
\StartSteps{3}
\SlideTitle{Context can be used for \dots}

\null

\startitemize[n]
  \2{\item Writing your articles}

  \3{ \item Making slides for presentations }
\stopitemize

\StopSteps

\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] slide steps again

2011-03-06 Thread Curiouslearn
Hi All,

I am making some slides using the Swoosh style in simpleslides module.
I wanted to reveal some content sequentially. I read the messages here
and learn about pre-stepwise.

I tried the following. It does not, however, work.

  \usemodule[simpleslides][style=Swoosh]
  \usemodule[pre-stepwise]

  \starttext
  \SlideTitle{Context can be used for \dots}

 \StartSteps

 \startitemize[n]
  \item
  Writing your articles \FlushStep
  \item
  Making slides for presentations \FlushStep
 \stopitemize

\StopSteps

   \SlideTitle{Context Wish List}

  Can someone please enhance simpleslides so that one can
do as many things with it as with Beamer?

 \stoptext

The material on first slide does not appear. When one clicks next, one
goes directly to the next slide. I am using

ConTeXt  ver: 2010.12.15 13:04 MKIV  fmt: 2010.12.15  int: english/english

Thanks,
Bharat
___
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] structure head alignment nullifies spaceskip

2011-03-06 Thread Philipp Gesang
On 2011-03-06 <23:34:00>, Wolfgang Schuster wrote:
> 
> Am 06.03.2011 um 23:25 schrieb Philipp Gesang:
> 
> > On 2011-03-06 <23:03:17>, Wolfgang Schuster wrote:
> >> 
> >> Am 06.03.2011 um 22:41 schrieb Philipp Gesang:
> >> 
> >>> Thanks a lot, Wolfgang, I hadn’t thought of “textcommand”.
> >>> Headings work (and look) like a charm now.
> >> 
> >> This can also be of interest for you (copied from the source):
> >> 
> >> \setuphead[section][style=\sca,textstyle={\kerncharacters[.5]}] 
> >> \section{Section}
> > 
> > Thanks, but I already had capital spacing (factor .05 with my
> > bodoni font) defined in my section font command.
> 
> How?

The long way (across a couple of definition files):

··8<·

\definecharacterkerning[capitals]
\setupcharacterkerning [capitals] [factor=.05]

\unexpanded\def\cap{\setcharacterkerning[capitals]}

\def\broadspacing{\dontleavehmode\spaceskip .33em plus.25em minus.05em
\xspaceskip .66em plus.25em minus.05em}

\unexpanded\def\fontsection{\setupbodyfont[bodoni-of,12pt]\cap\WORDS\broadspacing}

\setuphead[section][
  …
  textstyle=\fontsection,
  …
]

··8<·

(I just typed this from another laptop screen so beware of
typos.)

Alternatively I have a definition commented out that would rely
on the cpsp font feature instead -- but I don’t really notice an
effect when I turn it on.

Regards, Philipp


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

-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments


pgpVHMbFPC2yF.pgp
Description: PGP signature
___
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] structure head alignment nullifies spaceskip

2011-03-06 Thread Wolfgang Schuster

Am 06.03.2011 um 23:25 schrieb Philipp Gesang:

> On 2011-03-06 <23:03:17>, Wolfgang Schuster wrote:
>> 
>> Am 06.03.2011 um 22:41 schrieb Philipp Gesang:
>> 
>>> Thanks a lot, Wolfgang, I hadn’t thought of “textcommand”.
>>> Headings work (and look) like a charm now.
>> 
>> This can also be of interest for you (copied from the source):
>> 
>> \setuphead[section][style=\sca,textstyle={\kerncharacters[.5]}] 
>> \section{Section}
> 
> Thanks, but I already had capital spacing (factor .05 with my
> bodoni font) defined in my section font command.

How?

Wolfgang

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] structure head alignment nullifies spaceskip

2011-03-06 Thread Philipp Gesang
On 2011-03-06 <23:03:17>, Wolfgang Schuster wrote:
> 
> Am 06.03.2011 um 22:41 schrieb Philipp Gesang:
> 
> > Thanks a lot, Wolfgang, I hadn’t thought of “textcommand”.
> > Headings work (and look) like a charm now.
> 
> This can also be of interest for you (copied from the source):
> 
> \setuphead[section][style=\sca,textstyle={\kerncharacters[.5]}] 
> \section{Section}

Thanks, but I already had capital spacing (factor .05 with my
bodoni font) defined in my section font command.

Regards, Philipp


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

-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments


pgphBtyLtSsY9.pgp
Description: PGP signature
___
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] structure head alignment nullifies spaceskip

2011-03-06 Thread Wolfgang Schuster

Am 06.03.2011 um 22:41 schrieb Philipp Gesang:

> Thanks a lot, Wolfgang, I hadn’t thought of “textcommand”.
> Headings work (and look) like a charm now.

This can also be of interest for you (copied from the source):

\setuphead[section][style=\sca,textstyle={\kerncharacters[.5]}] 
\section{Section}

Wolfgang

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] structure head alignment nullifies spaceskip

2011-03-06 Thread Philipp Gesang
On 2011-03-06 <21:15:44>, Wolfgang Schuster wrote:
> 
> Am 06.03.2011 um 17:33 schrieb Philipp Gesang:
> 
> > Hi,
> > 
> > is there a way to have \spaceskip working in a centered section
> > head?
> > 
> > I have something similar to these exaggerated values:
> > 
> > ··8<·
> > 
> > \def\broadspacing{%
> >  \dontleavehmode%
> >  \spaceskip 1em plus .5em minus .5em%
> > }
> > \starttext
> > 
> > \setuphead[section][%
> >  style={\WORD\broadspacing},
> > ]
> > 
> > % This one is left aligned but correctly spaced.
> > \section{test test test}
> > 
> > \setuphead[section][%
> >  style={\WORD\broadspacing},
> >  align=middle,
> > ]
> > 
> > % This one is centered but spaced too tightly.
> > \section{test test test}
> > 
> > \stoptext
> > 
> > ··8<·
> > 
> > As you can see, adding “align=middle” to the section setup leads
> > to the \spaceskip setting being ignored. Any idea how to space my
> > capitalized words in section heads?
> 
> \setuphead
>   [section]
>   [  style=WORD,
>  align=middle,
>textcommand={\setuptolerance[space]}]
> 
> Maybe better is “textcommand=\SectionCommand” with
> 
> \define[1]\SectionCommand
>   {\setuptolerance[space]#1}
> 
> Wolfgang

Thanks a lot, Wolfgang, I hadn’t thought of “textcommand”.
Headings work (and look) like a charm now.

Best regards, Philipp



-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments


pgpy1v5A9wEBy.pgp
Description: PGP signature
___
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] Where is bibmod searching for bibliography style files?

2011-03-06 Thread Florian Wobbe
> Try \placepublications[criterium=text]

Much obliged!
Florian

___
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] Where is bibmod searching for bibliography style files?

2011-03-06 Thread Thomas Schmitz

On Sun, 06 Mar 2011 21:31:12 +0100
 Florian Wobbe  wrote:



Unfortunately I cannot reproduce this behaviour with a 
minimal example. Still I have the problem with the empty 
list (in section "Cited references"):


\setupbibtex[database=sample]
\setuppublications[alternative=apa]

\starttext

\cite[hh2010a]
\cite[hh2010a]
\cite[Eijkhout1991]

\section{Cited references}
\placepublications
\placepublications[criterium=cite]

\section{All references}
\placepublications[criterium=all]

\stoptext

A problem related to \placepublications[criterium=cite] 
was reported 
by Mojca on 2010-11-27. But then the issue was inverted: 
complete list instead of only the cited references.


Try \placepublications[criterium=text]

@Hans: can you make criterium=cite a synonym of 
criterium=text, please?


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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Where is bibmod searching for bibliography style files?

2011-03-06 Thread Florian Wobbe
> This is strange: When I setup a list with
> 
>  \setuppublications[alternative=apa]
> 
> I get a blank reference list.
> 
> When I use this (non existent file) line instead
> 
>  \setuppublications[alternative=not-existing]
> 
> context complains about not finding bibl-not-existing but I get a reference 
> list! I'll try with a minimal example.

Unfortunately I cannot reproduce this behaviour with a minimal example. Still I 
have the problem with the empty list (in section "Cited references"):

\setupbibtex[database=sample]
\setuppublications[alternative=apa]

\starttext

\cite[hh2010a]
\cite[hh2010a]
\cite[Eijkhout1991]

\section{Cited references}
\placepublications
\placepublications[criterium=cite]

\section{All references}
\placepublications[criterium=all]

\stoptext

A problem related to \placepublications[criterium=cite] was reported 
by Mojca on 2010-11-27. But then the issue was inverted: complete list instead 
of only the cited references.

Best,
Florian

___
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] structure head alignment nullifies spaceskip

2011-03-06 Thread Wolfgang Schuster

Am 06.03.2011 um 17:33 schrieb Philipp Gesang:

> Hi,
> 
> is there a way to have \spaceskip working in a centered section
> head?
> 
> I have something similar to these exaggerated values:
> 
> ··8<·
> 
> \def\broadspacing{%
>  \dontleavehmode%
>  \spaceskip 1em plus .5em minus .5em%
> }
> \starttext
> 
> \setuphead[section][%
>  style={\WORD\broadspacing},
> ]
> 
> % This one is left aligned but correctly spaced.
> \section{test test test}
> 
> \setuphead[section][%
>  style={\WORD\broadspacing},
>  align=middle,
> ]
> 
> % This one is centered but spaced too tightly.
> \section{test test test}
> 
> \stoptext
> 
> ··8<·
> 
> As you can see, adding “align=middle” to the section setup leads
> to the \spaceskip setting being ignored. Any idea how to space my
> capitalized words in section heads?

\setuphead
  [section]
  [  style=WORD,
 align=middle,
   textcommand={\setuptolerance[space]}]

Maybe better is “textcommand=\SectionCommand” with

\define[1]\SectionCommand
  {\setuptolerance[space]#1}

Wolfgang

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Where is bibmod searching for bibliography style files?

2011-03-06 Thread Florian Wobbe
>> Hi,
>> 
>> I created a custom bibliography style file (bibl-mybst.tex) and like to use 
>> it with
>> 
>> \setuppublications[alternative=mystyle]
> 
> There is a mismatch in names: bibl-mybst.tex vs alternative=mystyle. Either 
> the file should be called bibl-mystyle.tex or use alternative=mybst.

Thanks Aditya,

this is a typo in the email only.

>> For obvious reasons I want to move the file from 
>> texmf-context/tex/context/bib to some directory in texmf-local. 
>> Unfortunately, the file is not found in the texmf-local tree. I have tried 
>> several subdirectories using MkIV.
> 
> What happens when you run
> 
>mtxrun --locate bibl-mybst.tex

This works when I regenerate the file database (which I forgot before).

> Does everything work if you keep the file in the current directory?

I tried this and then I had a blank reference list. I thought the reason was 
that context did not find the file but now I realise this is not the case. I'm 
trying to figure out what happens.

This is strange: When I setup a list with

  \setuppublications[alternative=apa]

I get a blank reference list.

When I use this (non existent file) line instead

  \setuppublications[alternative=not-existing]

context complains about not finding bibl-not-existing but I get a reference 
list! I'll try with a minimal example.

Florian

___
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] Where is bibmod searching for bibliography style files?

2011-03-06 Thread Aditya Mahajan

On Sun, 6 Mar 2011, Florian Wobbe wrote:


Hi,

I created a custom bibliography style file (bibl-mybst.tex) and like to use it 
with

\setuppublications[alternative=mystyle]


There is a mismatch in names: bibl-mybst.tex vs alternative=mystyle. 
Either the file should be called bibl-mystyle.tex or use 
alternative=mybst.


For obvious reasons I want to move the file from 
texmf-context/tex/context/bib to some directory in texmf-local. 
Unfortunately, the file is not found in the texmf-local tree. I have 
tried several subdirectories using MkIV.


What happens when you run

mtxrun --locate bibl-mybst.tex

Does everything work if you keep the file in the current directory?

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Where is bibmod searching for bibliography style files?

2011-03-06 Thread Florian Wobbe
Hi,

I created a custom bibliography style file (bibl-mybst.tex) and like to use it 
with

 \setuppublications[alternative=mystyle]

For obvious reasons I want to move the file from texmf-context/tex/context/bib 
to some directory in texmf-local. Unfortunately, the file is not found in the 
texmf-local tree. I have tried several subdirectories using MkIV.

Where should the file go so that bibmod finds it?

Thanks,
Florian

___
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] $n\choose k$-issue with OpenType math fonts

2011-03-06 Thread Hans Hagen

On 6-3-2011 6:03, Aditya Mahajan wrote:

On Sun, 6 Mar 2011, Hans Hagen wrote:


On 6-3-2011 1:25, Andreas Harder wrote:


Am 04.03.2011 um 15:28 schrieb Hans Hagen:


On 4-3-2011 2:09, Andreas Harder wrote:

Hi all,

I'm (re)tying to draw some attention to the $n\choose k$-issue with
OpenType math fonts.

I've made some test files:
http://dl.dropbox.com/u/151837/OpenType-Math.7z

The best output is generated by LuaLaTeX (at least for Asana and
Cambria). Would it be possible to correct the ConTeXt output as well?


It depends what correction boils down to. Normally it's the opentype
font parameters that control the threshold to the next step in a
larger delimiter


This subject is also discussed on the LuaLaTeX mailing list.
http://tug.org/pipermail/lualatex-dev/2011-March/thread.html#1118


hm, i actually decided to limit the number of mailing lists to follow
so best provide a summary of conclusions instead of a link -)

anyhow, I wonder if we really need to keep supporting this

x \operator y

kind of syntax (at least that's what crossed my mind when i saw that
this atopwithdelims primitive was used in your example) .. maybe we
should simply define a few extra commands and relax these primitives


At the macro package level, I agree with this. The \over, \choose, \atop
etc macros can be made \undefined; We already have a high level
interface for them.

Do you also want to remove them from the engine? That will simplify the
\mathstyle macros, but then luatex will not be backward compatible with
tex. (I don't care about that, but others would).


no, we can keep them there as we want that compatibility (for plain etc)


aditya: shouldn't we merge the m-newmath code into the core?


Definitely.


ok, will do

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] $n\choose k$-issue with OpenType math fonts

2011-03-06 Thread Aditya Mahajan

On Sun, 6 Mar 2011, Hans Hagen wrote:


On 6-3-2011 1:25, Andreas Harder wrote:


Am 04.03.2011 um 15:28 schrieb Hans Hagen:


On 4-3-2011 2:09, Andreas Harder wrote:

Hi all,

I'm (re)tying to draw some attention to the $n\choose k$-issue with 
OpenType math fonts.


I've made some test files:
http://dl.dropbox.com/u/151837/OpenType-Math.7z

The best output is generated by LuaLaTeX (at least for Asana and 
Cambria). Would it be possible to correct the ConTeXt output as well?


It depends what correction boils down to. Normally it's the opentype font 
parameters that control the threshold to the next step in a larger 
delimiter


This subject is also discussed on the LuaLaTeX mailing list.
http://tug.org/pipermail/lualatex-dev/2011-March/thread.html#1118


hm, i actually decided to limit the number of mailing lists to follow so best 
provide a summary of conclusions instead of a link -)


anyhow, I wonder if we really need to keep supporting this

 x \operator y

kind of syntax (at least that's what crossed my mind when i saw that this 
atopwithdelims primitive was used in your example) .. maybe we should simply 
define a few extra commands and relax these primitives


At the macro package level, I agree with this. The \over, \choose, \atop 
etc macros can be made \undefined; We already have a high level interface 
for them.


Do you also want to remove them from the engine? That will simplify the 
\mathstyle macros, but then luatex will not be backward compatible with 
tex. (I don't care about that, but others would).



aditya: shouldn't we merge the m-newmath code into the core?


Definitely.

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
___


Re: [NTG-context] Underscore catcode in MkII (was Re: One-off theorem titles)

2011-03-06 Thread Aditya Mahajan

On Sun, 6 Mar 2011, Hans Hagen wrote:


@Hans: does it make sense to change the catcode of underscore to letter
in ptrcatcodes in MkII? Or would that just open a pandora's box?


i have no clue ... in mkiv we have a pseudo active _ in math mode that 
handles it there (these "8000 codes) .. so doing it will take quite some 
testing so best postpone it till after the tex live code freeze as mkii is 
the context on tex live


OK. I will use a private catcode table in my module, so that it works wit 
both MkII and MkIV.


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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] structure head alignment nullifies spaceskip

2011-03-06 Thread Philipp Gesang
Hi,

is there a way to have \spaceskip working in a centered section
head?

I have something similar to these exaggerated values:

··8<·

\def\broadspacing{%
  \dontleavehmode%
  \spaceskip 1em plus .5em minus .5em%
}
\starttext

\setuphead[section][%
  style={\WORD\broadspacing},
]

% This one is left aligned but correctly spaced.
\section{test test test}

\setuphead[section][%
  style={\WORD\broadspacing},
  align=middle,
]

% This one is centered but spaced too tightly.
\section{test test test}

\stoptext

··8<·

As you can see, adding “align=middle” to the section setup leads
to the \spaceskip setting being ignored. Any idea how to space my
capitalized words in section heads?

Thanks very much, Philipp


pgpzNrkY1B8hy.pgp
Description: PGP signature
___
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] automatic filename extension with \externalfigure

2011-03-06 Thread Florian Wobbe
Hi,

I have an image file with two dots: file.xy.pdf

I can embed this file with

  \externalfigure[file.xy.pdf][][width=\textwidth]

When leaving out the extension, the image is not found, e.g.:

  \externalfigure[file.xy][][width=\textwidth]

For the time being, I renamed the files but it would be great if multiple dots 
in filenames were supported.

Thanks,
Florian

___
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 name has a space.

2011-03-06 Thread Hans Hagen

On 6-3-2011 1:52, Jeong Dalyoung wrote:

Dear all,

I tried define a font whose name contains a space, but not succeed.

font name: smMokPan Medium
font file name: smMokPan Medium.otf

I tired as follows, but ConTeXt couldn't locate the font file.

\definefont[testfont][name:"smMokPan Medium"]


just remove the spaces

smmokpanmedium

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] $n\choose k$-issue with OpenType math fonts

2011-03-06 Thread Andreas Harder

Am 06.03.2011 um 15:33 schrieb Hans Hagen:

> On 6-3-2011 1:22, Andreas Harder wrote:
> 
>> I don't know the best value either, but et least one could manipulate it.
> 
> the next beta will support parameter overload in the goodies
> 
>parameters = { -- test values
>FactorA = 123.456,
>FactorB = false,
>FactorC = function(value,target,original) return 7.89 * 
> target.factor end,
>FactorD = "Hi There!",
>},

Many thanks, Hans! I'm looking forward to try it.

Regards
Andreas
___
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] $n\choose k$-issue with OpenType math fonts

2011-03-06 Thread Hans Hagen

On 6-3-2011 1:22, Andreas Harder wrote:


I don't know the best value either, but et least one could manipulate it.


the next beta will support parameter overload in the goodies

parameters = { -- test values
FactorA = 123.456,
FactorB = false,
FactorC = function(value,target,original) return 7.89 * 
target.factor end,

FactorD = "Hi There!",
},


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] font name has a space.

2011-03-06 Thread Jeong Dalyoung
Dear all,

I tried define a font whose name contains a space, but not succeed.

font name: smMokPan Medium
font file name: smMokPan Medium.otf

I tired as follows, but ConTeXt couldn't locate the font file.

\definefont[testfont][name:"smMokPan Medium"] 
\definefont[testfont][name:(smMokPan\space Medium)]
\definefont[testfont][name:smMokPan\space Medium]
in log file 
fonts   > latin modern fonts are not preloaded
languages   > language en is active
fonts   > beware: no fonts are loaded yet, using 'lm 
mono' in box



\definefont[testfont][file:smMokPan Medium.otf]
\definefont[testfont][file:smMokPan\space Medium.otf]

fonts   > virtual math > the mapping is incomplete for 'txmath' at 5pt
system  > begin file testmp.tex at line 25
fonts   > defining > font with asked name 'smMokPan' is not found using 
lookup 'file'
fonts   > defining > unknown font smMokPan, loading aborted
fonts   > defining > unable to define smMokPan as \**testfont**

How to defint a font whose name contains a space?

Thank you.

best regards,

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] $n\choose k$-issue with OpenType math fonts

2011-03-06 Thread Andreas Harder

Am 06.03.2011 um 12:54 schrieb Hans Hagen:

> On 6-3-2011 1:25, Andreas Harder wrote:
>> 
>> Am 04.03.2011 um 15:28 schrieb Hans Hagen:
>> 
>>> On 4-3-2011 2:09, Andreas Harder wrote:
 Hi all,
 
 I'm (re)tying to draw some attention to the $n\choose k$-issue with 
 OpenType math fonts.
 
 I've made some test files:
 http://dl.dropbox.com/u/151837/OpenType-Math.7z
 
 The best output is generated by LuaLaTeX (at least for Asana and Cambria). 
 Would it be possible to correct the ConTeXt output as well?
>>> 
>>> It depends what correction boils down to. Normally it's the opentype font 
>>> parameters that control the threshold to the next step in a larger delimiter
>> 
>> This subject is also discussed on the LuaLaTeX mailing list.
>> http://tug.org/pipermail/lualatex-dev/2011-March/thread.html#1118
> 
> hm, i actually decided to limit the number of mailing lists to follow so best 
> provide a summary of conclusions instead of a link -)

OK

> anyhow, I wonder if we really need to keep supporting this
> 
>  x \operator y
> 
> kind of syntax (at least that's what crossed my mind when i saw that this 
> atopwithdelims primitive was used in your example) .. maybe we should simply 
> define a few extra commands and relax these primitives

I'm fine with \binom{x}{y} etc.

> aditya: shouldn't we merge the m-newmath code into the core?

+1

> I can add some configurability to lfg files so that one can tune fonts but 
> even then the value are debatable

I don't know the best value either, but et least one could manipulate it.

Thank you for your efforts!

Andreas
___
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] $n\choose k$-issue with OpenType math fonts

2011-03-06 Thread Hans Hagen

On 6-3-2011 1:25, Andreas Harder wrote:


Am 04.03.2011 um 15:28 schrieb Hans Hagen:


On 4-3-2011 2:09, Andreas Harder wrote:

Hi all,

I'm (re)tying to draw some attention to the $n\choose k$-issue with OpenType 
math fonts.

I've made some test files:
http://dl.dropbox.com/u/151837/OpenType-Math.7z

The best output is generated by LuaLaTeX (at least for Asana and Cambria). 
Would it be possible to correct the ConTeXt output as well?


It depends what correction boils down to. Normally it's the opentype font 
parameters that control the threshold to the next step in a larger delimiter


This subject is also discussed on the LuaLaTeX mailing list.
http://tug.org/pipermail/lualatex-dev/2011-March/thread.html#1118


hm, i actually decided to limit the number of mailing lists to follow so 
best provide a summary of conclusions instead of a link -)


anyhow, I wonder if we really need to keep supporting this

  x \operator y

kind of syntax (at least that's what crossed my mind when i saw that 
this atopwithdelims primitive was used in your example) .. maybe we 
should simply define a few extra commands and relax these primitives


aditya: shouldn't we merge the m-newmath code into the core?

I can add some configurability to lfg files so that one can tune fonts 
but even then the value are debatable


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Underscore catcode in MkII (was Re: One-off theorem titles)

2011-03-06 Thread Hans Hagen

On 6-3-2011 6:39, Aditya Mahajan wrote:

On Sat, 5 Mar 2011, Aditya Mahajan wrote:


On Fri, 4 Mar 2011, Hans Hagen wrote:


On 4-3-2011 7:05, Wolfgang Schuster wrote:


In which are these alternatives are better than my module__command,
you replace only the _ by !


because an ! stands out; anyway, we should avoid multiple _ in a row

(i'll put a few mkvi modules in the core to get a feeling .. using _
does not always look better btw)


Here is an experiment with @ and _. I would prefer to change @ to ::
(but for that we would need to change the ptrcatcodes).

https://github.com/adityam/filter/raw/dev/t-filter.tex


@Hans: does it make sense to change the catcode of underscore to letter
in ptrcatcodes in MkII? Or would that just open a pandora's box?


i have no clue ... in mkiv we have a pseudo active _ in math mode that 
handles it there (these "8000 codes) .. so doing it will take quite some 
testing so best postpone it till after the tex live code freeze as mkii 
is the context on tex live


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] [texworks] ConTeXt version & calling convention

2011-03-06 Thread Hans Hagen

On 6-3-2011 11:59, Stefan Müller wrote:

Hi list,

there were some ConTeXt-related questions on the TeXworks mailing list.
I tried to answer some of them but I'm pretty sure someone with more
experience should take a look at this.


there is a texworks directory in /context/data (and one can run texworks 
with "mtxrun --script texworks --start" to get a mkiv aware texworks


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] special character in filename

2011-03-06 Thread Hans Hagen

On 6-3-2011 9:36, Vnpenguin wrote:


"/dev/null" as folder name ? Wow, what a crazy idea !


well, \input /dev/null/thesis-chapter-1.tex

does miracles (in germany)

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] [texworks] ConTeXt version & calling convention

2011-03-06 Thread Stefan Müller

Hi list,

there were some ConTeXt-related questions on the TeXworks mailing list. 
I tried to answer some of them but I'm pretty sure someone with more 
experience should take a look at this.


The message from Stefan Löffler can be found here:
http://tug.org/pipermail/texworks/2011q1/003878.html

Best wishes,
Stefan.
___
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] Left and centered text on the same line

2011-03-06 Thread C.
Thank you Wolfgang and Aditya, both solutions work.



___
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] header entries semi-wrong

2011-03-06 Thread Steffen Wolfrum
Hi,

please run the minimal example attached:

--on page 1 there is 
section "1.1 one" and you get the header entry "1.1 one"
- on page 3 there is still 
section "1.1 one" and you get the header entry "1.2 one" (<- ?!)
- on page 5 there is 
section "1.2 two" and you get the header entry "1.2 two"

you see the problem? the "getmarking" behaves correctly (one/one/two)
while the "headnumber" is confused (1.1/1.2/1.2))!


Is this a bug or am I doing something wrong?

Steffen
---


% ConTeXt  ver: 2011.02.25 22:03 MKIV

\showframe
\setupbodyfont[postscript, 10pt]\setupinterlinespace[line=12pt]

\definepapersize[Pape][width=14.7cm,height=22.3cm]
\setuppapersize[Pape][Pape]
\setuplayout
[width=113mm,height=572pt\relax,
backspace=17mm,topspace=17mm,
header=12pt,headerdistance=6pt,
footer=36pt,footerdistance=0pt,
location=middle,marking=off]
\setupwhitespace[halfline]
\setuppagenumbering [alternative=doublesided,location=]
\setupheader[align=middle]

\def\HeadL{Part 
{\convertnumber{Numbers}{\namedheadnumber{chapter}}}\enskip\getmarking[EbeneEins]}
\def\HeadR{\headnumber[section]\enskip\getmarking[section]}

\setupheadertexts
[\vtop{\startalignment[center]\HeadR\stopalignment}] [pagenumber]
[pagenumber] [\vtop{\startalignment[center]\HeadL\stopalignment}]


\starttext
\chapter{X}
\section{One}
\page x \page
\dorecurse{5}{\input ward \par}
\dorecurse{2}{\input tufte \par}
\section{Two}
\dorecurse{11}{\input ward \par}
\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] xml - handling of figures

2011-03-06 Thread R. Ermers, Midden Oosten Perspectief
Dear all,

I converted a latex file to xml docbook by means of pandoc. In intend to 
process the file with context. The first results are very promising.

I have some questions on processing graphics.

The source file looks like this:



  

  



  

 caption to this wonderful cow
 




  

  

(see also http://www.docbook.org/tdg5/en/html/imageobject.html)

I defined the setups as follows:

\startxmlsetups xml:inlinemediaobject:imageobject:imagedata
\placeedgefigure{}{\framed[frame=off]{\setlayer[graphics]{\externalfigure[\xmlatt{#1}{fileref}]}}}
\stopxmlsetups

Context places the figures nicely in the file. So far so good!

Now I would like to use:

1. the scaling information in the scale attribute
2. in some instances the image is not scaled, but needs to be enlarged 
according to a fixed height and width.

3. I would like to print the caption.

I looked into Hans' documents on xml, but the examples are different from those 
that I have. At least, I seem not to understand them.

Does anyone have an advice?


___
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] One-off theorem titles

2011-03-06 Thread Wolfgang Schuster

Am 06.03.2011 um 00:03 schrieb Aditya Mahajan:

> On Fri, 4 Mar 2011, Hans Hagen wrote:
> 
>> On 4-3-2011 7:05, Wolfgang Schuster wrote:
>> 
>>> In which are these alternatives are better than my module__command, you 
>>> replace only the _ by !
>> 
>> because an ! stands out; anyway, we should avoid multiple _ in a row
>> 
>> (i'll put a few mkvi modules in the core to get a feeling .. using _ does 
>> not always look better btw)
> 
> Here is an experiment with @ and _. I would prefer to change @ to :: (but for 
> that we would need to change the ptrcatcodes).


+1 for “:”

I can then change this

\unexpanded\def\annotation_placement_define
  {\dodoubleargument\annotation_placement__define}

\def\annotation_placement__define[#name][#command]%
  {\setvalue{annotation:#name}{#command}}

to (took the “o” from latex3 :)

\unexpanded\def\annotation_placement_define
  {\dodoubleargument\annotation_placement_define:oo}

\def\annotation_placement_define:oo[#name][#command]%
  {\setvalue{annotation:#name}{#command}}

Wolfgang

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] special character in filename

2011-03-06 Thread Vnpenguin
On Sat, Mar 5, 2011 at 21:26, Thomas Schmitz  wrote:
> On Sat, 5 Mar 2011 20:09:12 +
>  "Reviczky, Adam"  wrote:
>
>>
>> It works with the "+" character though.
>> The same problem goes for the directory names; directories with "~" in the
>> name drops and error, even if the filename has no special characters in it.
>>
>> Can this be fixed?
>>
> Yeah, please fix this ASAP. I keep all my context files in a directory which
> I call /dev/null, and for some reason, this doesn't really work. But I am
> not going to change the name of my directory, no, you have to rewrite your
> software!
>

"/dev/null" as folder name ? Wow, what a crazy idea !
___
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] One-off theorem titles

2011-03-06 Thread Wolfgang Schuster

Am 04.03.2011 um 19:56 schrieb Hans Hagen:

> On 4-3-2011 7:05, Wolfgang Schuster wrote:
> 
>> In which are these alternatives are better than my module__command, you 
>> replace only the _ by !
> 
> because an ! stands out; anyway, we should avoid multiple _ in a row

It may stand out but it looks even worse. I replaces now multiple _ except in a 
two cases where i found no solution which looks satisfying to me, this is one:

\unexpanded\def\annotation_placement_define
  {\dodoubleargument\annotation_placement__define}

\def\annotation_placement__define[#name][#command]%
  {\setvalue{annotation:#name}{#command}}

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
___