[NTG-context] Bug in currentdate

2011-10-15 Thread Otared Kavian
On 14 oct. 2011, at 23:26, Hans Hagen wrote:

 Hi,
 
 A new beta has been uploaded. Nothing new apart from some experimental code 
 and a few bugfixes. I also uploaded
 
 http://www.pragma-ade.com/preliminaries/hybrid-italics.pdf
 
 Files in that path will come and go.
 
 Hans


Hi Hans,

Thanks for the new beta.
I wanted just to report that \currentdate has still a bug in French: in French 
it gives
day+ octobre 2011

Minimal example follows.
Best regards: OK

\starttext
English: \currentdate

French: \mainlanguage[fr]
\currentdate
\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
___


Re: [NTG-context] Exporting verbatim text

2011-10-15 Thread Hans Hagen

On 15-10-2011 05:29, Aditya Mahajan wrote:

Hi,

In the vim module, I use vim to generate TeX code that looks roughly as

~~~
\SYN[Type]{public} \SYN[Type]{static} \SYN[Type]{void}
main\SYN[javaParen]{(}String args\SYN[javaParen]{)} \{
System.out.println\SYN[javaParen]{(}\SYN[Constant]{Hello
World}\SYN[javaParen]{)} ;
\}
~~~

When generating pdf output, I simply set appropriate catcodes so that
the line breaks and leading white spaces are significant. However, when
exporting to xml, leading white space is ignored while line break is
translated to break/. How can I export in such a way that leading
white spaces are preserved (and ideally no break/ is generated, but I
can deal with that using CSS).


brrr .. catcodes ... can't you wrap lines in a macro and tag spaces too? 
in principle you should be able to use some of of the regular typing 
wrapping code for that but anything other than catcoded characters will 
do (also, keep in mind that people might want to pass the generated code 
around as arguments in which case catcodes can create a mess


\setupbackend[export=yes]

\starttext

\startlines
\zwnj \char32\char32\char32 test \char32 test test
\zwnj \char32\char32 test \char32 test test
\zwnj \char32 test \char32 test test
test \char32 test test
\stoplines

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


Re: [NTG-context] Difference in doifinset in MkII and MkIV

2011-10-15 Thread Hans Hagen

On 15-10-2011 03:13, Aditya Mahajan wrote:

On Wed, 21 Sep 2011, Wolfgang Schuster wrote:

Am 21.09.2011 um 05:20 schrieb Aditya Mahajan:


The following works in MkIV but fails in MkIV:

\unprotect
\def\!!yesandon{yes,on}
\doifinsetelse{yes}\!!yesandon


\ExpandSecondAfter\doifinsetelse{yes}\!!yesandon

It’s awkward but this how it works in MkII.


\ExpandSecondAfter is MkII only, so I cannot use it for code that is to
be used in both MkII and MkIV. So, I re-request my original proposal:

in core-gen.mkii

\def\p!doifinsetelse#1#2#3#4%
{\donefalse
\edef\!!stringa{#3}%
\ifx\!!stringa\empty
\else
- \processcommalist[#4]\p!docheckiteminset
+ \processcommacommand[#4]\p!docheckiteminset
\fi
\ifdone\expandafter#1\else\expandafter#2\fi}


I cannot oversee the consequences of that.

Can't you wrap your call in

\expanded{\doifinsetelse{...}{...}} {} {}

this should work in both mk's

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] Item-referencing broken in latest beta

2011-10-15 Thread Andreas Harder
Hi,

here is a test file:

\startcomponent test
  \startitemize[n]
  \item[itm:1] test
  \stopitemize
  In \in{item}[itm:1]
\stopcomponent

and the relevant log excerpt:

references   itm:1={
 {
  [error]=unknown inner,
  [inner]=itm:1,
  [reference]=itm:1,
 },
 [n]=1,
 [prefix]=test,
 [reference]=itm:1,
}
references   unknown reference [test][itm:1]


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


[NTG-context] luatex math font

2011-10-15 Thread Andreas Richter

Hello,

compiling the following with 'context'

\starttext
\startformula
J:\blackboard{R}^\infty \rightarrow \blackboard{R},f \mapsto J[f]
\stopformula
\stoptext

produces a blackboard 'J' character in J[f] instead of a $J$.

The log file contains:
system   beware: some patches loaded from cont-new.mkiv
fontslatin modern fonts are not preloaded
fontslatin modern fonts are not preloaded
fontsvirtual math  unable to resolve name mapsfromchar
fontsfallback modern rm 12pt is loaded
mkiv lua stats   luatex banner - this is luatex,
version beta-0.70.1-2011052008
if this is of any help.

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] luatex math font

2011-10-15 Thread Khaled Hosny
On Sat, Oct 15, 2011 at 02:02:28PM +0200, Andreas Richter wrote:
 Hello,
 
 compiling the following with 'context'
 
 \starttext
 \startformula
 J:\blackboard{R}^\infty \rightarrow \blackboard{R},f \mapsto J[f]
 \stopformula
 \stoptext
 
 produces a blackboard 'J' character in J[f] instead of a $J$.

I think it should be {\blackboard R} not \blackboard{R} (i.e. it is,
traditionally at least, a font switch).

Regards,
 Khaled
___
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] No \colon with pxmath

2011-10-15 Thread Andreas Harder
Hi,

the colon sign disappears if one uses pxmath fonts (latest beta MkIV).

\setupbodyfont[palatino] % not OK
% \setupbodyfont[asana] % OK

\startTEXpage
  $a:b$\par
  $a\colon b$
\stopTEXpage


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] luatex math font

2011-10-15 Thread Wolfgang Schuster

Am 15.10.2011 um 14:36 schrieb Khaled Hosny:

 On Sat, Oct 15, 2011 at 02:02:28PM +0200, Andreas Richter wrote:
 Hello,
 
 compiling the following with 'context'
 
 \starttext
 \startformula
 J:\blackboard{R}^\infty \rightarrow \blackboard{R},f \mapsto J[f]
 \stopformula
 \stoptext
 
 produces a blackboard 'J' character in J[f] instead of a $J$.
 
 I think it should be {\blackboard R} not \blackboard{R} (i.e. it is,
 traditionally at least, a font switch).

No, the font switch is \bbd.

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] luatex math font

2011-10-15 Thread Khaled Hosny
On Sat, Oct 15, 2011 at 02:44:18PM +0200, Wolfgang Schuster wrote:
 
 Am 15.10.2011 um 14:36 schrieb Khaled Hosny:
 
  On Sat, Oct 15, 2011 at 02:02:28PM +0200, Andreas Richter wrote:
  Hello,
  
  compiling the following with 'context'
  
  \starttext
  \startformula
  J:\blackboard{R}^\infty \rightarrow \blackboard{R},f \mapsto J[f]
  \stopformula
  \stoptext
  
  produces a blackboard 'J' character in J[f] instead of a $J$.
  
  I think it should be {\blackboard R} not \blackboard{R} (i.e. it is,
  traditionally at least, a font switch).
 
 No, the font switch is \bbd.

So what is the correct syntax then, as I notice other issues in his
example (the f is roman not italic) that disappear if \blackboard is
grouped.

Regards,
 Khaled
___
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] luatex math font

2011-10-15 Thread Wolfgang Schuster

Am 15.10.2011 um 14:48 schrieb Khaled Hosny:

 On Sat, Oct 15, 2011 at 02:44:18PM +0200, Wolfgang Schuster wrote:
 
 Am 15.10.2011 um 14:36 schrieb Khaled Hosny:
 
 On Sat, Oct 15, 2011 at 02:02:28PM +0200, Andreas Richter wrote:
 Hello,
 
 compiling the following with 'context'
 
 \starttext
 \startformula
 J:\blackboard{R}^\infty \rightarrow \blackboard{R},f \mapsto J[f]
 \stopformula
 \stoptext
 
 produces a blackboard 'J' character in J[f] instead of a $J$.
 
 I think it should be {\blackboard R} not \blackboard{R} (i.e. it is,
 traditionally at least, a font switch).
 
 No, the font switch is \bbd.
 
 So what is the correct syntax then, as I notice other issues in his
 example (the f is roman not italic) that disappear if \blackboard is
 grouped.

I’m sorry but you’re right. For MkII \blackboard has a argument but
in MkIV it is a font switch like \fraktur, \gothic etc.

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] luatex math font

2011-10-15 Thread Khaled Hosny
On Sat, Oct 15, 2011 at 02:44:18PM +0200, Wolfgang Schuster wrote:
 
 Am 15.10.2011 um 14:36 schrieb Khaled Hosny:
 
  On Sat, Oct 15, 2011 at 02:02:28PM +0200, Andreas Richter wrote:
  Hello,
  
  compiling the following with 'context'
  
  \starttext
  \startformula
  J:\blackboard{R}^\infty \rightarrow \blackboard{R},f \mapsto J[f]
  \stopformula
  \stoptext
  
  produces a blackboard 'J' character in J[f] instead of a $J$.
  
  I think it should be {\blackboard R} not \blackboard{R} (i.e. it is,
  traditionally at least, a font switch).
 
 No, the font switch is \bbd.

In math-ini.mkiv, both \blackboard and \bbd have exactly the same
definition:

\unexpanded\def\bbd   {\ifmmode\expandafter\mathblackboard\fi}
\unexpanded\def\blackboard{\ifmmode\expandafter\mathblackboard\fi}

Regards,
 Khaled
___
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] hybrid-italics.pdf: Small corrections (was: beta)

2011-10-15 Thread Paul Menzel
Dear Hans,


Am Freitag, den 14.10.2011, 23:26 +0200 schrieb Hans Hagen:

 A new beta has been uploaded. Nothing new apart from some experimental 
 code and a few bugfixes. I also uploaded
 
 http://www.pragma-ade.com/preliminaries/hybrid-italics.pdf

I read your document and not being able to contribute anything having to
do with programming below you can find the thing which should be
corrected in my opinion. Not being a native English speaker they could
be wrong though.

1. s/motto’s/mottos/
2. s/cambria/Cambria/
3. `\par` not used everywhere
4. … *at* a boundary …
5. … by not passing the italic information *to* the font machinery …
6. For math italics I do not see a difference in the output when the
value is `2` and `3`.

 Files in that path will come and go.


Thanks,

Paul


signature.asc
Description: This is a digitally signed message part
___
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] Lucida \colon, \lll, \ggg

2011-10-15 Thread Hans van der Meer
I see dat in Lucida (I am using \setupbodyfont[lucida,sans,10pt]) various math 
symbols are recognized (no error) but their glyphs stay empty in the typeset 
product.
I know there has been some discussion on Lucida and talk of forgetting pfb's 
and waiting for an opentype version.

But can this be remedied fairly simply? I am somewhat attached to Lucida and 
would like to keep using it.

Otherwise, is there some good (free) font selection to replace it, even if for 
the time being? Especially the fit with monotye and math I deem important.

Thanks in advance,
Hans van der Meer

___
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] Include section number in reference

2011-10-15 Thread Wolfgang Schuster

Am 14.10.2011 um 13:28 schrieb Wolfgang Schuster:

 
 Am 14.10.2011 um 13:18 schrieb Marco:
 
 On 2011-10-13 Wolfgang Schuster schuster.wolfg...@googlemail.com wrote:
 
 \setupreferencestructureprefix[default][prefixsegments=2:*]
 
 Thanks.
 
 Wikified. (Although without explanations, just an example)
 
 
 I can also provide the entry from my command reference (no yet in the PDF):
 
 \setupreferencestructureprefix[.1.][.2.][..,.3.,..]
 optional
 
 1. IDENTIFIER (float, formula, figure, SECTION (e.g. section, subsection, …), 
 …)
 2. number, page, title, text or default
 3. prefix  = yes (default), no
   prefixseparatorset  = IDENTIFIER
   prefixconversionset = IDENTIFIER
   prefixset   = IDENTIFIER
   prefixsegments  = SEGMENTS
   prefixconnector = TEXT

Below I describe the values of the three arguments.


The first (and optional) argument can be used to specify the element,
where you want to customize the reference. When you use “float” the setting
affects all kind of floats which are created with \definefloat but you
also change only certain float type when you use the name of the float,
e.g. figure or table. When you want to change the layout for a heading you
need the name of it, e.g. chapter or section (not sure about this because
I haven’t checked this).


The second argument specifies the reference type, you can the values
of these types in the following example. When you refer to a section
or float with \in context uses the “default” type and when you use
\at it uses the “page” type.

\startsetups[reference:table]

\starttabulate
\NC \bf key  \EQ \bf value \NC\NR
\NC number   \EQ \currentreferencenumber   \NC\NR
\NC page \EQ \currentreferencepage \NC\NR
\NC title\EQ \currentreferencetitle\NC\NR
\NC text \EQ\currentreferencetext  \NC\NR
\NC default  \EQ \currentreferencedefault  \NC\NR
\NC realpage \EQ \currentreferencerealpage \NC\NR
\stoptabulate

\stopsetups

\definereferenceformat[referencetable][setups=reference:table]

\starttext

\section[sec:table]{Values for the reference command}

\starttyping
\startsection[reference=sec:table,title={Values for the reference command}]
\stoptyping

\referencetable[sec:table]

\startbuffer
\reference[ref:test]{Is this the text or the title?}
\stopbuffer

\getbuffer \typebuffer

\referencetable[ref:test]

\stoptext


With the third argument you can control which prefixes (section numbers
which are shown in front of a floats own counter value) are shown and
how they should be formatted.

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] Exporting verbatim text

2011-10-15 Thread Aditya Mahajan

On Sat, 15 Oct 2011, Hans Hagen wrote:


On 15-10-2011 05:29, Aditya Mahajan wrote:

Hi,

In the vim module, I use vim to generate TeX code that looks roughly as

~~~
\SYN[Type]{public} \SYN[Type]{static} \SYN[Type]{void}
main\SYN[javaParen]{(}String args\SYN[javaParen]{)} \{
System.out.println\SYN[javaParen]{(}\SYN[Constant]{Hello
World}\SYN[javaParen]{)} ;
\}
~~~

When generating pdf output, I simply set appropriate catcodes so that
the line breaks and leading white spaces are significant. However, when
exporting to xml, leading white space is ignored while line break is
translated to break/. How can I export in such a way that leading
white spaces are preserved (and ideally no break/ is generated, but I
can deal with that using CSS).


brrr .. catcodes ... can't you wrap lines in a macro and tag spaces too?


I can, but I went out of the way to ensure that I do not have to do that. 
I dislike formatters that add macros for newlines and spaces:


http://randomdeterminism.wordpress.com/2011/06/06/clean-tex-output/

in principle you should be able to use some of of the regular typing 
wrapping code for that but anything other than catcoded characters will 
do (also, keep in mind that people might want to pass the generated code 
around as arguments in which case catcodes can create a mess


Agreed. But this is for syntax highlighting, so I have to mess with 
catcodes anyways. My code wail fail if it is passed as an argument to some 
other macro, but so does \starttyping ... \stoptyping. (Maybe I will 
provice a \process...buffer to take care of that).



\setupbackend[export=yes]

\starttext

\startlines
\zwnj \char32\char32\char32 test \char32 test test
\zwnj \char32\char32 test \char32 test test
\zwnj \char32 test \char32 test test
test \char32 test test
\stoplines

\stoptext


I really do not want to produce such output. I'll see if I can abuse the 
visualizer code and create a null grammer that just adds new line and 
space tags.


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] OT: Neo keyboard layout for entering math characters (was: luatex math font)

2011-10-15 Thread Paul Menzel
Dear Andreas,


Am Samstag, den 15.10.2011, 14:02 +0200 schrieb Andreas Richter:

 \starttext
 \startformula
 J:\blackboard{R}^\infty \rightarrow \blackboard{R},f \mapsto J[f]
 \stopformula
 \stoptext

since you seem to be a German native speaker, this is just a shameless
plug to recommend to you the Neo2 layout [1] with which you easily can
type the following.

\startformula
J \colon ℝ^∞ → ℝ, f ↦ J[f]
\stopformula

[…]


Thanks,

Paul


[1] http://neo-layout.org/


bb.pdf
Description: Adobe PDF document
\starttext
\startformula
J:\blackboard{R}^\infty \rightarrow \blackboard{R},f \mapsto J[f]
\stopformula

Correct use of `\blackboard`
\startformula
J:{\blackboard R}^\infty \rightarrow {\blackboard R},f \mapsto J[f]
\stopformula

Neo is great.
\startformula
J \colon ℝ^∞ → ℝ, f ↦ J[f]
\stopformula
\stoptext


signature.asc
Description: This is a digitally signed message part
___
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] [solved] MetaFun: hlintext: `! Missing `)' has been inserted.`, `formatstr: ! Not implemented: (pair)-(unknown numeric).`

2011-10-15 Thread Paul Menzel
Dear Hans,


Am Freitag, den 14.10.2011, 15:16 +0200 schrieb Hans Hagen:
 On 14-10-2011 08:02, Paul Menzel wrote:

  trying to draw a grid and label it, I get an error when using the (alsa
  attached) example from the MetaFun manual [1].
 
 Fixed in next beta

as always thank you very much for this fast fix. I confirm that this is
fixed in current ConTeXt Standalone or latest Beta.

ConTeXt  ver: 2011.10.14 22:47 MKIV  fmt: 2011.10.15  int: 
english/english

 (however, instead of mp formatting lua formatting is used, a prelude
 to the graph rewrite that Alan and I have in mind).

Not that I know the syntax of it. I hope the article FormattingNumbers
[2] in the lua-users Wiki is the correct place to look. Reading other
sources [3] it seems to be the same syntax as the `printf()`
implementation of the respective system.


Thanks,

Paul


[2] http://lua-users.org/wiki/FormattingNumbers
[3] 
http://stackoverflow.com/questions/1133639/how-can-i-print-a-huge-number-in-lua-without-using-scientific-notation


test.pdf
Description: Adobe PDF document
\starttext
\startMPcode
drawoptions(withpen pencircle scaled .25pt withcolor .5white) ;
draw hlingrid(0, 20, .2, 20cm, 10cm) ;
draw vloggrid(0, 10, .5, 10cm, 20cm) ;
drawoptions(withpen pencircle scaled .50pt) ;
draw hlingrid(0, 20,1, 20cm, 10cm) ;
draw vloggrid(0, 10,1, 10cm, 20cm) ;

fmt_pictures := false ; % use TeX as formatting engine
textextoffset := ExHeight ; % a variable set by ConTeXt
draw hlintext.lft(0, 20,5, 20cm, @3e) ;
draw vlogtext.bot(0, 10,9, 10cm, @3e) ;
\stopMPcode
\stoptext


signature.asc
Description: This is a digitally signed message part
___
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] Lucida \colon, \lll, \ggg

2011-10-15 Thread Meer, H. van der
Changing to the [mathtimes] font did help with the \lll and \ggg math symbols, 
present in mathtimes but not in lucida. 
But now the \oplus is absent in mathtimes whereas it is present in lucida. 

I am thus stuck with having two fonts missing different math symbols. Is Math 
Times suffering from the same problems as Lucida? By the way, I have the fonts 
pfb's which were bought quite some time ago.


On 15 okt. 2011, at 16:48, Hans van der Meer wrote:

 I see dat in Lucida (I am using \setupbodyfont[lucida,sans,10pt]) various 
 math symbols are recognized (no error) but their glyphs stay empty in the 
 typeset product.
 I know there has been some discussion on Lucida and talk of forgetting 
 pfb's and waiting for an opentype version.
 
 But can this be remedied fairly simply? I am somewhat attached to Lucida and 
 would like to keep using it.
 
 Otherwise, is there some good (free) font selection to replace it, even if 
 for the time being? Especially the fit with monotye and math I deem important.
 

Thanks in advance,
Hans van der Meer

___
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] Difference in doifinset in MkII and MkIV

2011-10-15 Thread Aditya Mahajan

On Sat, 15 Oct 2011, Hans Hagen wrote:


On 15-10-2011 03:13, Aditya Mahajan wrote:

On Wed, 21 Sep 2011, Wolfgang Schuster wrote:

Am 21.09.2011 um 05:20 schrieb Aditya Mahajan:


The following works in MkIV but fails in MkIV:

\unprotect
\def\!!yesandon{yes,on}
\doifinsetelse{yes}\!!yesandon


\ExpandSecondAfter\doifinsetelse{yes}\!!yesandon

It’s awkward but this how it works in MkII.


\ExpandSecondAfter is MkII only, so I cannot use it for code that is to
be used in both MkII and MkIV. So, I re-request my original proposal:

in core-gen.mkii

\def\p!doifinsetelse#1#2#3#4%
{\donefalse
\edef\!!stringa{#3}%
\ifx\!!stringa\empty
\else
- \processcommalist[#4]\p!docheckiteminset
+ \processcommacommand[#4]\p!docheckiteminset
\fi
\ifdone\expandafter#1\else\expandafter#2\fi}


I cannot oversee the consequences of that.

Can't you wrap your call in

\expanded{\doifinsetelse{...}{...}} {} {}

this should work in both mk's


No. Not without a lot of \noexpand. I'll add a macro that expands to 
\ExpandSecond after in MkII and \relax in 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
___