Re: [NTG-context] Fonts readily available in Context

2009-01-13 Thread Mikael Persson
 There is also support for fourier, euler, and kurier, but no you have to
 invoke them explicitly, useing \definetypeface.

Is there really support for fourier? I've not been able to get it
working since long time ago. I get utopia text working, but not
fourier math. See the previous threads:
http://archive.contextgarden.net/message/20070830.154143.005528b8.en.html
and
http://archive.contextgarden.net/message/20080928.193441.874bb515.en.html

If there is anything I can do, please tell me.

/Mikael
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Check your posts

2009-01-13 Thread Taco Hoekwater

Hi all,

Since yesterday evening localtime the ntg mail server switched to an
external service for spam filtering. It is already clear that the
mail server indeed handles much less spam now, so it looks like a
great success.

Still, it is a rigorous change, and for the new few days I want
to ask everybody to keep an eye out for disappearing posts.

This message is crossposted. If you want to reply, please do so
to me personally, not to the lists.

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Fonts readily available in Context

2009-01-13 Thread Mojca Miklavec
On Tue, Jan 13, 2009 at 7:10 AM, Aditya Mahajan wrote:

 Mojca, why is there no built in typescirpt for kurier in type-otf?

Not so long ago Hans sent ok, just figure it out with wolfgang and
send me what is needed to the mailing list ([NTG-context] kurier
font?) and then I went for unexpected holidays without computer twice
since then.

We just need to revise the three files (type-[one,otf,tmf]) and send
them to Hans - feel free to jump in.

Mojca
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Fonts readily available in Context

2009-01-13 Thread Mojca Miklavec
On Tue, Jan 13, 2009 at 5:17 AM, Curious wrote:
 Hello All:

 There are quite a few fonts available in Latex with matching math fonts. The 
 way
 a user like me who understands nothing about fonts can use them is to simply
 load a package. For example, for charter I can simply use the command

 \usepackage[charter]{mathdesign}

Aditya has just suggested to create a bunch of definitions equal to
those in mathdesign. Mathdesign include three typefaces that have not
been implemented in ConTeXt yet, and I agree that they could (should)
be.

 Or, to use Palatino for text and some maching math fonts, I can use the 
 command

 \usepackage{mathpazo}

ConTeXt currently has no support for mathpazo (one can always write
it), but it uses pxfonts. I don't know if that's better or worse, but
at least it works out of the box.

 Are there fonts in Context with matching Math fonts other than Computer modern
 that can be used in an as simple manner,i.e., by just issuing few commands.

As others have already written:
- Palatino, Times (TeX Gyre, actually)
- Lucida (if you have the fonts)
- Iwona, Kurier, Antykwa Torunska
- Euler, Fourier, Concrete Math - never tried it myself

 If
 yes, can you please guide me to a resource which lists at least some of these
 fonts (again they should have matching math fonts) and the simple commands
 necessary to load them. I would find that really helpful

For palatino, times, iwona, kurier (not yet, but should be fixed),
antykwa-torunska, see Yue's and Aditya's answer. In Unicode (xetex,
luatex) you should use
   \usetpescript[name]
   \setupbodyfont[name,sizeorstyleifneeded]
and in pdfTeX you need
   \usetpescript[name][ec]
   \setupbodyfont[name,sizeorstyleifneeded]

You can take a look at type-tmf.tex, type-one.tex, type-otf.tex and
math-*.tex in ConTeXt sources.

Mojca
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Fonts readily available in Context

2009-01-13 Thread Hans Hagen

Mojca Miklavec wrote:


Aditya has just suggested to create a bunch of definitions equal to
those in mathdesign. Mathdesign include three typefaces that have not
been implemented in ConTeXt yet, and I agree that they could (should)
be.


keep in mind that this will only work for mkii (unless the default tex 
encoding is used); mkiv will operate in unicode math mode and if we want 
to support older math fonts there we should make a setup for virtual 
unicode math fonts (no big deal but i have no time for it now)



Or, to use Palatino for text and some maching math fonts, I can use the command

\usepackage{mathpazo}


ConTeXt currently has no support for mathpazo (one can always write
it), but it uses pxfonts. I don't know if that's better or worse, but
at least it works out of the box.


so what is the advantage over what we have then? currently we use px too 
and eventuallt it will be replaced by gyre



- Euler, Fourier, Concrete Math - never tried it myself


concrete is fun by there are no outlines (at least no good free ones 
that i know of)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Fonts readily available in Context

2009-01-13 Thread Curious
Mojca Miklavec mojca.miklavec.lists at gmail.com writes:
 Aditya has just suggested to create a bunch of definitions equal to
 those in mathdesign. Mathdesign include three typefaces that have not
 been implemented in ConTeXt yet, and I agree that they could (should)
 be.

 ConTeXt currently has no support for mathpazo (one can always write
 it), but it uses pxfonts. I don't know if that's better or worse, but
 at least it works out of the box.
 

 As others have already written:
 - Palatino, Times (TeX Gyre, actually)
 - Lucida (if you have the fonts)
 - Iwona, Kurier, Antykwa Torunska
 - Euler, Fourier, Concrete Math - never tried it myself
 

 For palatino, times, iwona, kurier (not yet, but should be fixed),
 antykwa-torunska, see Yue's and Aditya's answer. In Unicode (xetex,
 luatex) you should use
\usetpescript[name]
\setupbodyfont[name,sizeorstyleifneeded]
 and in pdfTeX you need
\usetpescript[name][ec]
\setupbodyfont[name,sizeorstyleifneeded]
 
 You can take a look at type-tmf.tex, type-one.tex, type-otf.tex and
 math-*.tex in ConTeXt sources.
 
 Mojca

Thank you so much to all of you who replied. I suppose that the commands of the
type

\usetypescript[name][ec]
\setupbodyfont[name,sizeorstyleifneeded]

that you suggested will also load the matching math fonts. I will also take a
look at the documents Mojca has referred to. As Aditya and Mojca suggested, it
would be great to have the fonts that are supported in Mathdesign...those are
beautiful.

Thanks again. I will try these definitions out and let you know if I run into
any trouble. 




___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Fonts readily available in Context - Did not work

2009-01-13 Thread Curious
Hello,

Somehow the commands do not work. I added the following two lines

\usetypescript[palatino]
\setupbodyfont[palatino,rm,12pt]  

and the output is exactly the same as before. That is there is no change in the
font even in the text. I am using TeXlive.

Thanks for your help.



___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Fonts readily available in Context - Did not work

2009-01-13 Thread Yue Wang
work in luatex. pdftex should specify the encoding.

On Tue, Jan 13, 2009 at 9:53 PM, Curious curiousle...@gmail.com wrote:
 Hello,

 Somehow the commands do not work. I added the following two lines

 \usetypescript[palatino]
 \setupbodyfont[palatino,rm,12pt]

 and the output is exactly the same as before. That is there is no change in 
 the
 font even in the text. I am using TeXlive.

 Thanks for your help.



 ___
 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  : https://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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Fonts readily available in Context - Did not work

2009-01-13 Thread Wolfgang Schuster


Am 13.01.2009 um 14:53 schrieb Curious:


Hello,

Somehow the commands do not work. I added the following two lines

\usetypescript[palatino]
\setupbodyfont[palatino,rm,12pt]

and the output is exactly the same as before. That is there is no  
change in the

font even in the text. I am using TeXlive.


We need more information to help you.

Do you use MkII, then write

\usetypescript[palatino][ec]

If you use MkIV or a newer ConTeXt version, then install the TeX Gyre  
fonts.


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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Fonts readily available in Context - Did not work

2009-01-13 Thread Curious
Curious curiouslearn at gmail.com writes:

 
 Hello,
 
 Somehow the commands do not work. I added the following two lines
 
 \usetypescript[palatino]
 \setupbodyfont[palatino,rm,12pt]  
 
 and the output is exactly the same as before. That is there is no change in 
 the
 font even in the text. I am using TeXlive.
 
 Thanks for your help.



Sorry about not specifying the error. I get an error saying that I can't find
file pxr



___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Fonts readily available in Context - Did not work

2009-01-13 Thread Wolfgang Schuster


Am 13.01.2009 um 15:00 schrieb Curious:


Hello,

Somehow the commands do not work. I added the following two lines

\usetypescript[palatino]
\setupbodyfont[palatino,rm,12pt]

and the output is exactly the same as before. That is there is no  
change in the

font even in the text. I am using TeXlive.


Sorry about not specifying the error. I get an error saying that I  
can't find

file pxr


The math fonts are missing, you need to install the pxfonts package.

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] beta

2009-01-13 Thread Mojca Miklavec
On Tue, Jan 13, 2009 at 11:35 AM, Hans Hagen wrote:
 Hi,

 Taco and I have decided to release a beta now. Officially there should have
 been a current end of december but there were too many things going on at
 the mkiv/luatex end to make that happen. Most changes concern mkiv anyway as
 we've kind of frozen mkii. Also, due to the number of changes in the lua
 code making a diff now would take too much time and not gain much.

 The next current will be in the second half of februari. Before that we will
 have a series of alphas that use the new structure related code. They're
 alpha because for a while there might be some compatibility issues (solving
 them depends in testers noticing them).

 This is also the first big deviation between mkii and mkiv, since it opens
 up the way to new functionality.

OK, I have removed the lock in minimals, so the beta in minimals
reflects the state on your site again. The current version is the old
patched beta since the official current version doesn't work with the
latest luatex.

In theory one should not need to use luatools --selfupdate any more
when switching to older or newer versions of ConTeXt with mtx-update
(first-setup), but I would like to fix that in a slightly different
way one day.

Three less common platforms still lack tha latest luatex. (If that
includes your platform and you would like to use it, you can send me a
new binary.)

Mojca
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] beta

2009-01-13 Thread Yue Wang
Hi, Hans:

what about math font? I am eager to use Asana Math, and cambria in my document:)
btw, is it really difficult to write a fontforge script to convert all
the math tfm/pfb into opentype MATH table?

Yue Wang

On Tue, Jan 13, 2009 at 6:35 PM, Hans Hagen pra...@wxs.nl wrote:
 Hi,

 Taco and I have decided to release a beta now. Officially there should have
 been a current end of december but there were too many things going on at
 the mkiv/luatex end to make that happen. Most changes concern mkiv anyway as
 we've kind of frozen mkii. Also, due to the number of changes in the lua
 code making a diff now would take too much time and not gain much.

 The next current will be in the second half of februari. Before that we will
 have a series of alphas that use the new structure related code. They're
 alpha because for a while there might be some compatibility issues (solving
 them depends in testers noticing them).

 This is also the first big deviation between mkii and mkiv, since it opens
 up the way to new functionality.

 Hans

 -
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 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  : https://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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] beta

2009-01-13 Thread Hans Hagen

Yue Wang wrote:

Hi, Hans:

what about math font? I am eager to use Asana Math, and cambria in my document:)
btw, is it really difficult to write a fontforge script to convert all
the math tfm/pfb into opentype MATH table?


currently the math part of luatex is being opened up so in a few month 
you will see support for cambria showing up


concerning the ff script ... well, you can give it a try (if for the 
moment we forget about extendible symbols it should be doable)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Undefined control sequence: \_

2009-01-13 Thread Peter Münster
Hello,

With the following test file, I get an undefined control sequence error:

\starttext
cc\_KNX

\starttable[|c|]
\NC cc\_KNX \NC\AR % here is the error
\stoptable
\stoptext

But only with MKIV, no problem with MKII.

Cheers, Peter

-- 
http://pmrb.free.fr/contact/

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Undefined control sequence: \_

2009-01-13 Thread Hans Hagen

Peter Münster wrote:

Hello,

With the following test file, I get an undefined control sequence error:

\starttext
cc\_KNX

\starttable[|c|]
\NC cc\_KNX \NC\AR % here is the error
\stoptable
\stoptext

But only with MKIV, no problem with MKII.


ok, i fixed the beta

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Catcode tables

2009-01-13 Thread Wolfgang Schuster


Am 12.01.2009 um 10:39 schrieb Taco Hoekwater:


The example text is flawed in itself: \newcatcodetable gives you an
empty table, and \startcatcodetable upgrades that to 'initex' level
itself. But initex *does not* set the catcodes of { and }. Nor
does it set the catcode of $,  and %, so the catcode assignments
that are needed are not there, and the ones that are there are
superfluous.

 \startcatcodetable \mycatcodetable
   \catcode`\{ = 1
   \catcode`\} = 2
 \stopcatcodetable

is enough.



No in a real macro, here is a problem I posted a long time ago where
I was now able to replace my low level catcodes changes with catcode
tables, I hope this will help other users if they have the same problem.

\unprotect

\newcatcodetable \diacatcodes

\startcatcodetable \diacatcodes
\catcode`\^^M =  5
\catcode`\= 10
\catcode`\\   =  0
\catcode`\{   =  1
\catcode`\}   =  2
\catcode`\%   = 11
\catcode`\!   = 11
\catcode`\?   = 11
\stopcatcodetable

\def\ax{ax}

\def\setupaxis
 {\pushcatcodetable
  \setcatcodetable\diacatcodes
  \dodoubleargument\dosetupaxis}

\def\dosetupaxis[#1][#2]%
 {\def\docommand##1{\getparameters[\ax##1][#2]}%
  \popcatcodetable
  \processcommalist[#1]\docommand}

\setupaxis
 [\c!x,\c!y]
 [\c!format=%d]

\protect

\starttext
\getvalue{axxformat}
\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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Fonts readily available in Context - Did not work

2009-01-13 Thread Mojca Miklavec
On Tue, Jan 13, 2009 at 2:53 PM, Curious wrote:
 Hello,

 Somehow the commands do not work. I added the following two lines

 \usetypescript[palatino]
 \setupbodyfont[palatino,rm,12pt]

 and the output is exactly the same as before. That is there is no change in 
 the
 font even in the text. I am using TeXlive.

Hello,

apart from what others have written you (to install pxfonts, to use
\usetypescript[palatino][ec] if you are using pdfTeX and not xetex or
luatex), you can also try to update ConTeXt if you know what you are
doing*. Or at least a warning should be in place: the latest ConTeXt
uses TeX Gyre + pxfonts exclusively, while the older ConTeXt uses URW
fonts. The difference is tiny, but there is some.

Mojca

* If you don't know what you are doing, then using the version that
comes with TeX Live might be safer, but you won't be able to test any
improvements that might arise on your request
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] for the brave

2009-01-13 Thread Hans Hagen

Hi,

I uploaded beta zip with a prelude to the new structure related code. I 
hope that I didn't forget files.


  context --make xp

will generate the experimental format (you really need a luatools 
--generate because there are many new files).


With

  context --interface=xp yourfile

will use that format. Eventually the xp format will go away but this is 
a nice intermediate step for those who are willing to help debugging the 
code.


Those who look into the source ... it all happens in strc-*.tex|lua and 
when you look in the tua/tuc file you see what is carried around (this 
will be optimized). Much code still needs a rewrite.


The format file is slightly smaller and less hash space is used, in 
spite of more functionality. This is a side effect of a more dynamic 
inheritance model (slower, but not so much an issue noaways and 
compensated by speedups in other areas like one time multipass data 
reading).


For xml users: although somewhat experimental, we now have roundtrip xml 
 in lists (and some other constructs, more to come).


\setuphead[chapter][expansion=xml]

This only works for mkiv xml, as we also keep track of the document root 
in order to apply the right setups.


For Aditya: numbering of math is redone and soon we have to split up 
strc-mat into pieces (when we start doing unicode math) but you can 
already have a look at it.


Don't worry too much if your documents crash. I simply cannot test 
everything so it might be a good opportunity for volunteers to help 
documenting behaviour and making tests.


The main incompatibilities are in the numbering: we now use sets for 
numbering, seperators, converters etc as well as processors for specific 
layout of these thingies. This info is carried around so that 
intermediate style changes are reflected in tables of contents and 
references (of course they can be overloaded). It's the price we pay fro 
more flexibility.


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Change the font to Charter

2009-01-13 Thread Mojca Miklavec
On Sat, Jan 10, 2009 at 1:33 PM, Curious wrote:

 Thanks Mojca. Appreciate your response, though as you said I do not really
 understand what I have to do, or if I could do anything. But a few things,

 (1) Regarding the visual examples, I could post the PDF file generated with
 Latex and Context. Is there a way to do that on this list?

The list only accepts very small files. So there are some options:
- send the file to anyone interested (= the ones who replied to your thread)
- upload to your own server temporary
- (contextgarden.net needs a place to upload samples, but there's not
much you can do about it apart from writing the scripts)
- there are some public places that allow uploading files

 I noticed another
 difference, which is that the line spacing is slightly more in the Context
 document (compared to that compiled with Latex). In latex I chose
 \singlespacing. In Context, I did not change the default spacing. Is the 
 default
 spacing different than singlespacing?

 (2) I was going to ask about the math support. You mentioned that it would 
 have
 to be added to the typescript. How difficult is that? Does anyone know the
 commands that can be used for adding such support.

See type-*.tex and math-*.tex in ConTeXt sources. Mathdesign seems
rather sophisticated, so it depends to what extent one wants to
reimplement the functionality in ConTeXt.

Mojca
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] for the brave

2009-01-13 Thread Diego Depaoli
On Tue, Jan 13, 2009 at 7:08 PM, Hans Hagen pra...@wxs.nl wrote:
 Hi,

 I uploaded beta zip with a prelude to the new structure related code. I hope
 that I didn't forget files.

  context --make xp

 will generate the experimental format (you really need a luatools --generate
 because there are many new files).
short question
experimental and 'old' format can coexist?

Regards

-- 
Diego Depaoli
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] for the brave

2009-01-13 Thread luigi scarso
On Tue, Jan 13, 2009 at 7:08 PM, Hans Hagen pra...@wxs.nl wrote:

 Hi,

 I uploaded beta zip with a prelude to the new structure related code. I
 hope that I didn't forget files.

  context --make xp


$/opt/luatex/minimals-beta/tex# context --make xp
MtxRun | running command: luatools --make --compile cont-xp
LuaTools | no tex file with name: cont-xp.tex
LuaTools |
LuaTools | runtime: 0.049 seconds

MtxRun | total runtime: 0.094

:(


minimals-beta
Linux luigicasa-laptop 2.6.24-23-generic #1 SMP Thu Nov 27 18:44:42 UTC 2008
i686 GNU/Linux
This is LuaTeX, Version snapshot-0.31.3-2008122919, build unknown
ConTeXt MtxRun | current version: 2009.01.13 16:53


-- 
luigi
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] for the brave

2009-01-13 Thread Wolfgang Schuster


Am 13.01.2009 um 19:29 schrieb luigi scarso:




On Tue, Jan 13, 2009 at 7:08 PM, Hans Hagen pra...@wxs.nl wrote:
Hi,

I uploaded beta zip with a prelude to the new structure related  
code. I hope that I didn't forget files.


 context --make xp

$/opt/luatex/minimals-beta/tex# context --make xp
MtxRun | running command: luatools --make --compile cont-xp
LuaTools | no tex file with name: cont-xp.tex
LuaTools |
LuaTools | runtime: 0.049 seconds

MtxRun | total runtime: 0.094

:(


minimals-beta
Linux luigicasa-laptop 2.6.24-23-generic #1 SMP Thu Nov 27 18:44:42  
UTC 2008 i686 GNU/Linux

This is LuaTeX, Version snapshot-0.31.3-2008122919, build unknown
ConTeXt MtxRun | current version: 2009.01.13 16:53


You need a newer ConTeXt version.

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] for the brave

2009-01-13 Thread luigi scarso
On Tue, Jan 13, 2009 at 7:39 PM, Wolfgang Schuster 
schuster.wolfg...@googlemail.com wrote:


 You need a newer ConTeXt version.

Ah  -- I suppose it was already in minimals-beta


-- 
luigi
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] for the brave

2009-01-13 Thread Wolfgang Schuster


Am 13.01.2009 um 19:08 schrieb Hans Hagen:

Don't worry too much if your documents crash. I simply cannot test  
everything so it might be a good opportunity for volunteers to help  
documenting behaviour and making tests.


Here is the first bug in your new code.

\starttext

\startitemize[fit]
\item item
\stopitemize

\stoptext


! Undefined control sequence.
\dolistitem ...itembox }\fi \splititemtwopassdata
  \currentnoflists  
\ifdim \i...

\complexdoitemgroupitem ...obreak \fi \dolistitem
  \relax  
\ifconditional \pac...

to be read again
   i
l.4 \item i
   tem


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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] for the brave

2009-01-13 Thread Mojca Miklavec
On Tue, Jan 13, 2009 at 7:53 PM, luigi scarso wrote:


 On Tue, Jan 13, 2009 at 7:39 PM, Wolfgang Schuster
 schuster.wolfg...@googlemail.com wrote:

 You need a newer ConTeXt version.

 Ah  -- I suppose it was already in minimals-beta

Be patient. There's always some delay (ConTeXt is being synchronized
every full hour, and apparently this version has been uploaded after
19:00). You may retry now. You can always download straight from
PRAGMA.

Mojca
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] for the brave

2009-01-13 Thread luigi scarso
On Tue, Jan 13, 2009 at 8:07 PM, Mojca Miklavec 
mojca.miklavec.li...@gmail.com wrote:

 On Tue, Jan 13, 2009 at 7:53 PM, luigi scarso wrote:
 
 
  On Tue, Jan 13, 2009 at 7:39 PM, Wolfgang Schuster
  schuster.wolfg...@googlemail.com wrote:
 
  You need a newer ConTeXt version.
 
  Ah  -- I suppose it was already in minimals-beta

 Be patient. There's always some delay (ConTeXt is being synchronized
 every full hour, and apparently this version has been uploaded after
 19:00). You may retry now. You can always download straight from
 PRAGMA.

no problem --I  just read what I want to read , not what it  was written .
Already update from  pragma .

-- 
luigi
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] for the brave

2009-01-13 Thread Hans Hagen

Diego Depaoli wrote:

On Tue, Jan 13, 2009 at 7:08 PM, Hans Hagen pra...@wxs.nl wrote:

Hi,

I uploaded beta zip with a prelude to the new structure related code. I hope
that I didn't forget files.

 context --make xp

will generate the experimental format (you really need a luatools --generate
because there are many new files).

short question
experimental and 'old' format can coexist?


sure, it's cont-xp (only mkiv), not cont-en (mkii and mkiv)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] for the brave

2009-01-13 Thread Wolfgang Schuster


Am 13.01.2009 um 19:08 schrieb Hans Hagen:

Those who look into the source ... it all happens in strc-*.tex|lua  
and when you look in the tua/tuc file you see what is carried around  
(this will be optimized). Much code still needs a rewrite.


References to items did not work with the new code.

\starttext

\startitemize[n]
\item[one] first item
\item[two] second item
\stopitemize

see \in{item}[one] and \in{item}[two]

\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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] for the brave

2009-01-13 Thread Wolfgang Schuster


Am 13.01.2009 um 19:08 schrieb Hans Hagen:


Hi,

I uploaded beta zip with a prelude to the new structure related  
code. I hope that I didn't forget files.


The new code rotates text by a wrong value.

\starttext
\framed[orientation=90]{text}
\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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] for the brave

2009-01-13 Thread Wolfgang Schuster


Am 13.01.2009 um 19:08 schrieb Hans Hagen:

The main incompatibilities are in the numbering: we now use sets for  
numbering, seperators, converters etc as well as processors for  
specific layout of these thingies. This info is carried around so  
that intermediate style changes are reflected in tables of contents  
and references (of course they can be overloaded). It's the price we  
pay fro more flexibility.



The numbering of subpages did not work correct.

\setupheadertexts[\subpagenumber\ -- \nofsubpages]

\setupsubpagenumber[way=bytext,state=start]

\starttext

\dorecurse{10}{\input knuth\par}

\page

\resetsubpagenumber

\dorecurse{14}{\input knuth\par}

\stoptext


I miss also the function to use the subpagenumber value in number
tests like \ifnum and \ifodd. The following example worked with the
old numbering mechanism but not with the new.

\setupheadertexts[\ifnum\subpagenumber=\plusone\else\subpagenumber\fi]

\setupsubpagenumber[way=bytext,state=start]

\starttext

\dorecurse{10}{\input knuth\par}

\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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Fonts readily available in Context - Did not work

2009-01-13 Thread Curious

 Hello,
 
 apart from what others have written you (to install pxfonts, to use
 \usetypescript[palatino][ec] if you are using pdfTeX and not xetex or
 luatex), you can also try to update ConTeXt if you know what you are
 doing*. Or at least a warning should be in place: the latest ConTeXt
 uses TeX Gyre + pxfonts exclusively, while the older ConTeXt uses URW
 fonts. The difference is tiny, but there is some.
 
 Mojca
 
 * If you don't know what you are doing, then using the version that
 comes with TeX Live might be safer, but you won't be able to test any
 improvements that might arise on your request
 

Thanks you all once again for your help. I installed pxfonts and the command now
works great and I do get the Palatino output. I am very new to Context and this
last week was mainly a kind of trial to see how I like it. So far I love what I
see. Also, I think the fact that there are so many helpful people here in this
forum has convinced me that if I get stuck with something, which I will, there
are experts whom I could ask for help. Hence, I have decided to use it for most
of my documents. Things are very busy now, and hence for the next month or so I
plan to continue using the version that comes with TeXlive, but after that I
will try to update and get the latest stable version. I hope that in future
Context makes more fonts available. For now it seems I will be using Palatino,
which is good too.

Thanks again. 



___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] mkiv and MetaPost

2009-01-13 Thread Otared Kavian

Hi all,

I have a file which contains the lines below: I can typeset it and  
obtain a correct result with mkii, but not with mkiv (the second  
buffer named axes-1 does not result in a MetaPost graphic when one  
says \processMPbuffer[axes-1]).

The file and the resulting PDF can be found on
http://www.kavian.fr/tex/bug-mkiv
Thanks in advance for any help.

Best regards: OK



%% begin bug-metapost.tex

\setupcolors[state=start]

\starttext

\startbuffer[axes-1]
textextoffset := ExHeight ;
numeric u ; u := .5cm ;
vardef arrowheadonpath (expr p, s) =
save autoarrows ; boolean autoarrows ; autoarrows := true ;
set_ahlength(scaled ahfactor) ; %
arrowhead p if s1 : cutafter (point (s*arclength(p)+.5ahlength) on p)  
fi

enddef ;
path xox ; xox := (-u,0)--(8u,0) ;
path yoy ; yoy := (0,-u)--(0,7u) ;
draw xox withcolor blue ;
draw yoy withcolor blue ;
ahfactor := 4 ; % default is 2.5
fill arrowheadonpath(xox,1) withcolor .625blue ; % try .25
fill arrowheadonpath(yoy,1) withcolor .625blue ; % try .25
\stopbuffer

\startbuffer[chemin-1]
textextoffset := ExHeight ;
numeric u ; u := .5cm ;
z1 = (5u,0) ;
z2 = z1 rotated 60 ;
z11 = z1 rotated 15 ;
z12 = z1 rotated 30 ;
z13 = z1 rotated 45 ;
z0 = (2u,0) rotated 30 ;
path gamma ; gamma := (0,0)--(5u,0) ;
draw  gamma withpen pencircle scaled .4mm withcolor .625yellow ;
path gammaR ; gammaR := z1..z11..z12..z13..z2 ;
draw  gammaR withpen pencircle scaled .4mm withcolor .625yellow ;
dotlabel.bot (btex \switchtobodyfont[10pt] \strut $R$ etex, z1) ;
path gammaRR ; gammaRR := z2--(0,0) ;
draw  gammaRR withpen pencircle scaled .4mm withcolor .625yellow ;
dotlabel.top (btex \switchtobodyfont[10pt] \strut $R{\rm e}^{2{\rm i} 
\pi/n}$ etex , z2) ;
dotlabel.rt (btex \switchtobodyfont[10pt] \strut ${\rm e}^{{\rm i}\pi/ 
n}$ etex , z0) ;

label.rt (btex \switchtobodyfont[10pt] \strut $\Gamma_{R}$ etex , z11) ;
fill arrowheadonpath(gamma,.4) withcolor .625yellow ;
fill arrowheadonpath(gammaR,.4) withcolor .625yellow ;
fill arrowheadonpath(gammaRR,.4) withcolor .625yellow ;
\stopbuffer


This file has been typeset
on \currentdate{}
at \currenttime,
with
\doifmodeelse{mkiv}
{mkiv,
LuaTeX revision \luatexrevision,
(LuaTeX date stamp \luatexdatestamp)}
{mkii,
using the command:
\type{texexec basic-test.tex}},
ConTeXt version \contextversion.
% LuaTeX version \luatexversion,


This MetaPost graphic is shown with mkiv:
\placefigure[middle][-]{}{\processMPbuffer[chemin-1]} {}
\blank

but not this one
\placefigure[middle][-]{}{\processMPbuffer[axes-1]} {}

\blank
nor this one
\placefigure[middle][-]{}{\processMPbuffer[axes-1,chemin-1]} {}

\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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] mkiv and MetaPost

2009-01-13 Thread Aditya Mahajan

On Wed, 14 Jan 2009, Otared Kavian wrote:


Hi all,

I have a file which contains the lines below: I can typeset it and obtain a 
correct result with mkii, but not with mkiv (the second buffer named axes-1 
does not result in a MetaPost graphic when one says 
\processMPbuffer[axes-1]).

The file and the resulting PDF can be found on
http://www.kavian.fr/tex/bug-mkiv
Thanks in advance for any help.

Best regards: OK


I did not run the file, just guessing. In MKIV, by default buffers are not 
written to disk, so \processMPbuffer does not find any. You can force 
\startbuffer to write stuff to disk, but a better way would be to modify 
\processMPbuffer to also search for memory buffers.


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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] mkiv and MetaPost

2009-01-13 Thread Otared Kavian


On 14 janv. 09, at 06:51, Aditya Mahajan wrote:


On Wed, 14 Jan 2009, Otared Kavian wrote:


Hi all,

I have a file which contains the lines below: I can typeset it and  
obtain a correct result with mkii, but not with mkiv (the second  
buffer named axes-1 does not result in a MetaPost graphic when  
one says \processMPbuffer[axes-1]).

The file and the resulting PDF can be found on
http://www.kavian.fr/tex/bug-mkiv
Thanks in advance for any help.

Best regards: OK


I did not run the file, just guessing. In MKIV, by default buffers  
are not written to disk, so \processMPbuffer does not find any. You  
can force \startbuffer to write stuff to disk, but a better way  
would be to modify \processMPbuffer to also search for memory buffers.


Aditya


Thanks Aditya for your explanation, but I must say that it is not  
convincing because with mkiv one of the buffers is processed with  
\processMPbuffer, while the other is not… So there must be some other  
hidden behaviour which has changed between mkii and mkiv.


Best regards: OK
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] mkiv and MetaPost

2009-01-13 Thread Taco Hoekwater

Otared Kavian wrote:


Thanks Aditya for your explanation, but I must say that it is not 
convincing because with mkiv one of the buffers is processed with 
\processMPbuffer, while the other is not… So there must be some other 
hidden behaviour which has changed between mkii and mkiv.


I will leave it for Hans to figure what exactly goes wrong, but the 
problem is caused by the comment characters in the axes-1 buffer.


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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___