Re: [NTG-context] format generation -- again!

2006-06-02 Thread Alan Bowen

On Jun 1, 2006, at 6:11 PM, Hans Hagen wrote:

 Alan Bowen wrote:
 On Jun 1, 2006, at 5:12 PM, Hans Hagen wrote:


 Alan Bowen wrote:

 Using the latest version of Gerben’s i-Installer (expert mode), I
 completely erased teTeX,
 re-installed the 2005 x86pc version, and then re-installed the  
 latest
 ConTeXt.

 cd /usr/local/teTeX/share/texmf.local/web2c/
 grep agr cont-en.log

 produces
encoding: coding agr is loaded
(/usr/local/teTeX/share/texmf.local/tex/context/base/enco-agr.tex)
language: patterns for agr not loaded
language: patterns for agr not loaded
 and no more, which means that the ancient Greek hyphenation  
 patterns
 are not available, though they presumably should be since the files
 lang-agr.hyp and
 lang-agr.pat are in the right place,
 /usr/local/teTeX/share/texmf.local/tex/context/patterns/.

 When I try to regenerate the formats using

 sudo ruby /usr/local/teTeX/share/texmf.local/scripts/context/ruby/
 texmfstart.rb texexec --make --all

 I get the error message

 language: patterns agr for agr loaded (n=24,e=agr,m=agr)
 (/usr/local/teTeX/share/texmf.local/tex/context/patterns/lang- 
 agr.pat
 ! Nonletter.
 \rawcharacter ...r\or   \or
 \or
  \or
 \or \or
\or \or \or \or
 \or \...
 l.37 α2Ϊ
1
 ?

 So no Greek hyphenation. I am baffled. And Thomas cannot reproduce
 the problem at his end.
 So, if anyone has any suggestions they will be gratefully received.

 By the way, if it is at all relevant, I am running Mac OS X  
 10.4.6 on
 a Power Mac G4 450 MHz.

 Alan


 it looks like tetex does not use the -8bit switch (to pdfetex) or
 loads the natural tcx file; (you may try texexec --make instead)

 [patterns are now in utf-8 so this is why it show up now, but in
 fact your installation has never been 8 bit clean upto now]

 Hans


 Thanks, Hans. I tried
  texexec --make --all
 but the regeneration fails as before, with the lines
  (/usr/local/teTeX/share/texmf.local/tex/context/patterns/lang- 
 agr.pat
  ! Nonletter.
  \rawcharacter ...r\or   \or
  \or
  \or
  \or \or
\or \or \or \or
 \or \...
  l.37 α2Ϊ
1
  ?

 Does the MacTeX distribution have the same problem?

 is there a natural.tcx file on your system? and is loading it  
 reported?

 in the worst case you can say:

 ctxtools --pat

 and move the generated pattern files to tex/context/patterns

 Hans

Hans—

There is a natural.tcx in
/usr/local/teTeX/share/texmf.local/web2c/
but this is not mentioned in cont-en.log. It is loaded when I compile  
a file:
This is pdfeTeX, Version 3.141592-1.30.4-2.2 (Web2C 7.5.5)  
(format=cont-en 2006.6.1)  1 JUN 2006 07:58
entering extended mode
(/usr/local/teTeX/share/texmf.local/web2c/natural.tcx)

**cont-en 2005-12-03_Lautner.tex
(./2005-12-03_Lautner.tex

ConTeXt  ver: 2006.05.28 13:28  fmt: 2006.6.1  int: english  mes:  
english

Where does ctxtools --pat generate the files?

Alan


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Font problems (Palatino)

2006-06-02 Thread Hans Hagen
Johan Blixt-Dackhammar wrote:
 I updated ConTeXt to the latest version available in i-Installer and
 the error dissapeared. Although, another thing started to mess upp. I
 write my documents in UTF-8 and was before upgrading using the
 \enableregime[utf] commande which worked perfect. After upgrading
 though, I only get blanks instead of special characters. Has the
 command changed?
   
no, utf-8 should work (unless others can confirm your problem) 

what does the log say? 

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
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Fwd: Math 120 textbook for Fall 2006

2006-06-02 Thread Mojca Miklavec
On 6/1/06, David Arnold wrote:

 All,

 I just received this from our disabled students' center.

 What is needed is a simple way to convert a Context document into a format
 that can be read by these MathML players.

 Are we anywhere close to such a conversion?

I doubt that you can convert a ConTeXt document into XML (MathML or
whatever) directly. I don't know how complex your documents are, but
some poeple do write in XML and process their documents with both
ConTeXt and whatever turns XML into HTML.

The nice part about ConTeXt is that you don't need any additional
effort to process XML or MathML, but you do need some more effort to
write equations in MathML or the whole text in XML. However, in such
cases it might be worth doing it and might need less work than
scanning the book, extracting text, retyping equations, etc. ...

http://pear.math.pitt.edu/mathzilla/itex2mmlFrag.html can convert TeX
math into MathML for example - if you need a simple way to write your
equations - and there are probably plenty of MathML editors as well.
(There are some links present on http://en.wikipedia.org/wiki/MathML
and on many other pages.)

Hans has also written support for OpenMath, but I'm not sure if
math-to-speech converters support that already.

Didn't try it out, but the link that Aditya pointed out seems
interesting as well.

Mojca
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Question about get commalist size

2006-06-02 Thread Aditya Mahajan
Hi,
  I tried an example from syst-gen.tex

\def\dosomething#1{(#1=\commalistsize) }
  \getcommalistsize [\hbox{$a,b,c,d,e,f$}] \dosomething 1
  \getcommalistsize [{a,b,c,d,e,f}]\dosomething 1
  \getcommalistsize [{a,b,c},d,e,f]\dosomething 4
  \getcommalistsize [a,b,{c,d,e},f]\dosomething 4
  \getcommalistsize [a{b,c},d,e,f] \dosomething 4
  \getcommalistsize [{a,b}c,d,e,f] \dosomething 4
  \getcommalistsize [] \dosomething 0
  \getcommalistsize [{[}]  \dosomething 1


And it gives me

(1=1) (1=6) (4=4) (4=4) (4=4) (4=4) (0=0) (1=1)

Notice that
\getcommalistsize[{a,b,c,d,e,f}] gives 6. Is this expected behaviour 
or a bug?

Aditya
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Treat last element in a commalist differently

2006-06-02 Thread Aditya Mahajan
Hi,
  I am trying to write a macro so that

\SEQ X[1,2,3] expands to $X_1, X_2, X_3$
\SEQ X[1-N] expands to $X_1, \dots, X_N$
and
\SEQ X expands to ${\bf X}$.

So far I have

\def\SEQ#1%
   {\dodoubleempty\doSEQ[#1]}

\def\doSEQ[#1][#2]%
{\ifsecondargument \mathematics{\processcommalist[#2]{\dodoSEQ{#1}}}
\else \mathematics{\bold{#1}}\fi}

\def\dodoSEQ#1#2%
   {#1_{#2},}

\starttext
\SEQ X[1,2,3] is part of \SEQ X.
\stoptext

There is an extra comma at the end. That is,

\SEQ X[1,2,3] expands to $X_1,X_2,X_3,$
 ^^^

How can I treat the last element of a commalist differently?

Thanks,
Aditya

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] format generation -- again!

2006-06-02 Thread Alan Bowen

On Jun 2, 2006, at 7:27 AM, Alan Bowen wrote:


 On Jun 1, 2006, at 6:11 PM, Hans Hagen wrote:

 Alan Bowen wrote:
 On Jun 1, 2006, at 5:12 PM, Hans Hagen wrote:


 Alan Bowen wrote:

 Using the latest version of Gerben’s i-Installer (expert  
 mode), I
 completely erased teTeX,
 re-installed the 2005 x86pc version, and then re-installed the
 latest
 ConTeXt.

 cd /usr/local/teTeX/share/texmf.local/web2c/
 grep agr cont-en.log

 produces
   encoding: coding agr is loaded
   (/usr/local/teTeX/share/texmf.local/tex/context/base/enco- 
 agr.tex)
   language: patterns for agr not loaded
   language: patterns for agr not loaded
 and no more, which means that the ancient Greek hyphenation
 patterns
 are not available, though they presumably should be since the  
 files
 lang-agr.hyp and
 lang-agr.pat are in the right place,
 /usr/local/teTeX/share/texmf.local/tex/context/patterns/.

 When I try to regenerate the formats using

 sudo ruby /usr/local/teTeX/share/texmf.local/scripts/context/ruby/
 texmfstart.rb texexec --make --all

 I get the error message

 language: patterns agr for agr loaded (n=24,e=agr,m=agr)
 (/usr/local/teTeX/share/texmf.local/tex/context/patterns/lang-
 agr.pat
 ! Nonletter.
 \rawcharacter ...r\or   \or
 \or
  \or
 \or \or
\or \or \or \or
 \or \...
 l.37 α2Ϊ
1
 ?

 So no Greek hyphenation. I am baffled. And Thomas cannot reproduce
 the problem at his end.
 So, if anyone has any suggestions they will be gratefully  
 received.

 By the way, if it is at all relevant, I am running Mac OS X
 10.4.6 on
 a Power Mac G4 450 MHz.

 Alan


 it looks like tetex does not use the -8bit switch (to pdfetex) or
 loads the natural tcx file; (you may try texexec --make instead)

 [patterns are now in utf-8 so this is why it show up now, but in
 fact your installation has never been 8 bit clean upto now]

 Hans


 Thanks, Hans. I tried
 texexec --make --all
 but the regeneration fails as before, with the lines
 (/usr/local/teTeX/share/texmf.local/tex/context/patterns/lang-
 agr.pat
 ! Nonletter.
 \rawcharacter ...r\or   \or
 \or
 \or
 \or \or
   \or \or \or \or
 \or \...
 l.37 α2Ϊ
   1
 ?

 Does the MacTeX distribution have the same problem?

 is there a natural.tcx file on your system? and is loading it
 reported?

 in the worst case you can say:

 ctxtools --pat

 and move the generated pattern files to tex/context/patterns

 Hans

Hans—

When I tried
ctxtools --pat
the response was
-bash: ctxtools: command not found

By the way, will the pattern file generated be different from the  
ones I already have in
/usr/local/teTeX/share/texmf.local/tex/context/patterns/?

Alan

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] format generation -- again!

2006-06-02 Thread Aditya Mahajan
On Fri, 2 Jun 2006, Alan Bowen wrote:


 On Jun 2, 2006, at 7:27 AM, Alan Bowen wrote:


 On Jun 1, 2006, at 6:11 PM, Hans Hagen wrote:

 Alan Bowen wrote:
 On Jun 1, 2006, at 5:12 PM, Hans Hagen wrote:


 Alan Bowen wrote:

 Using the latest version of Gerbenÿÿs i-Installer (expert
 mode), I
 completely erased teTeX,
 re-installed the 2005 x86pc version, and then re-installed the
 latest
 ConTeXt.

 cd /usr/local/teTeX/share/texmf.local/web2c/
 grep agr cont-en.log

 produces
  encoding: coding agr is loaded
  (/usr/local/teTeX/share/texmf.local/tex/context/base/enco-
 agr.tex)
  language: patterns for agr not loaded
  language: patterns for agr not loaded
 and no more, which means that the ancient Greek hyphenation
 patterns
 are not available, though they presumably should be since the
 files
 lang-agr.hyp and
 lang-agr.pat are in the right place,
 /usr/local/teTeX/share/texmf.local/tex/context/patterns/.

 When I try to regenerate the formats using

 sudo ruby /usr/local/teTeX/share/texmf.local/scripts/context/ruby/
 texmfstart.rb texexec --make --all

 I get the error message

 language: patterns agr for agr loaded (n=24,e=agr,m=agr)
 (/usr/local/teTeX/share/texmf.local/tex/context/patterns/lang-
 agr.pat
 ! Nonletter.
 \rawcharacter ...r\or   \or
 \or
  \or
 \or \or
\or \or \or \or
 \or \...
 l.37 ÿÿ2ÿÿ
1
 ?

 So no Greek hyphenation. I am baffled. And Thomas cannot reproduce
 the problem at his end.
 So, if anyone has any suggestions they will be gratefully
 received.

 By the way, if it is at all relevant, I am running Mac OS X
 10.4.6 on
 a Power Mac G4 450 MHz.

 Alan


 it looks like tetex does not use the -8bit switch (to pdfetex) or
 loads the natural tcx file; (you may try texexec --make instead)

 [patterns are now in utf-8 so this is why it show up now, but in
 fact your installation has never been 8 bit clean upto now]

 Hans


 Thanks, Hans. I tried
texexec --make --all
 but the regeneration fails as before, with the lines
(/usr/local/teTeX/share/texmf.local/tex/context/patterns/lang-
 agr.pat
! Nonletter.
\rawcharacter ...r\or   \or
\or
\or
\or \or
  \or \or \or \or
 \or \...
l.37 ÿÿ2ÿÿ
  1
?

 Does the MacTeX distribution have the same problem?

 is there a natural.tcx file on your system? and is loading it
 reported?

 in the worst case you can say:

 ctxtools --pat

 and move the generated pattern files to tex/context/patterns

 Hans

 Hansÿÿ

 When I tried
   ctxtools --pat
 the response was
 -bash: ctxtools: command not found

ctxtools is not in the path. Try
texmfstart ctxtools --pat


Aditya
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Treat last element in a commalist differently

2006-06-02 Thread Taco Hoekwater
Aditya Mahajan wrote:
 There is an extra comma at the end. That is,
 
 \SEQ X[1,2,3] expands to $X_1,X_2,X_3,$
  ^^^
 
 How can I treat the last element of a commalist differently?

It is much easier to treat the first element as special:

   \def\doSEQ[#1][#2]%
 {\ifsecondargument
   \donefalse
   \mathematics{\processcommalist[#2]{\dodoSEQ{#1}}}
 \else \mathematics{\bold{#1}}\fi}

   \def\dodoSEQ#1#2%
 {\ifdone ,\else \donetrue\fi#1_{#2}}


Cheers, Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] format generation -- again!

2006-06-02 Thread Alan Bowen

On Jun 2, 2006, at 4:45 PM, Aditya Mahajan wrote:

 On Fri, 2 Jun 2006, Alan Bowen wrote:


 On Jun 2, 2006, at 7:27 AM, Alan Bowen wrote:


 On Jun 1, 2006, at 6:11 PM, Hans Hagen wrote:

 Alan Bowen wrote:
 On Jun 1, 2006, at 5:12 PM, Hans Hagen wrote:


 Alan Bowen wrote:

 Using the latest version of Gerbenÿÿs i-Installer (expert
 mode), I
 completely erased teTeX,
 re-installed the 2005 x86pc version, and then re-installed the
 latest
 ConTeXt.

 cd /usr/local/teTeX/share/texmf.local/web2c/
 grep agr cont-en.log

 produces
 encoding: coding agr is loaded
 (/usr/local/teTeX/share/texmf.local/tex/context/base/enco-
 agr.tex)
 language: patterns for agr not loaded
 language: patterns for agr not loaded
 and no more, which means that the ancient Greek hyphenation
 patterns
 are not available, though they presumably should be since the
 files
 lang-agr.hyp and
 lang-agr.pat are in the right place,
 /usr/local/teTeX/share/texmf.local/tex/context/patterns/.

 When I try to regenerate the formats using

 sudo ruby /usr/local/teTeX/share/texmf.local/scripts/context/ 
 ruby/
 texmfstart.rb texexec --make --all

 I get the error message

 language: patterns agr for agr loaded (n=24,e=agr,m=agr)
 (/usr/local/teTeX/share/texmf.local/tex/context/patterns/lang-
 agr.pat
 ! Nonletter.
 \rawcharacter ...r\or   \or
 \or
  \or
 \or \or
\or \or  
 \or \or
 \or \...
 l.37 ÿÿ2ÿÿ
1
 ?

 So no Greek hyphenation. I am baffled. And Thomas cannot  
 reproduce
 the problem at his end.
 So, if anyone has any suggestions they will be gratefully
 received.

 By the way, if it is at all relevant, I am running Mac OS X
 10.4.6 on
 a Power Mac G4 450 MHz.

 Alan


 it looks like tetex does not use the -8bit switch (to pdfetex) or
 loads the natural tcx file; (you may try texexec --make instead)

 [patterns are now in utf-8 so this is why it show up now, but in
 fact your installation has never been 8 bit clean upto now]

 Hans


 Thanks, Hans. I tried
   texexec --make --all
 but the regeneration fails as before, with the lines
   (/usr/local/teTeX/share/texmf.local/tex/context/patterns/lang-
 agr.pat
   ! Nonletter.
   \rawcharacter ...r\or   \or
   \or
   \or
   \or \or
 \or \or \or \or
 \or \...
   l.37 ÿÿ2ÿÿ
 1
   ?

 Does the MacTeX distribution have the same problem?

 is there a natural.tcx file on your system? and is loading it
 reported?

 in the worst case you can say:

 ctxtools --pat

 and move the generated pattern files to tex/context/patterns

 Hans

 Hansÿÿ

 When I tried
  ctxtools --pat
 the response was
 -bash: ctxtools: command not found

 ctxtools is not in the path. Try
 texmfstart ctxtools --pat


 Aditya

Thanks, Aditya. That got it to work.

Alan
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Treat last element in a commalist differently

2006-06-02 Thread Aditya Mahajan
On Fri, 2 Jun 2006, Taco Hoekwater wrote:

 Aditya Mahajan wrote:
 There is an extra comma at the end. That is,

 \SEQ X[1,2,3] expands to $X_1,X_2,X_3,$
  ^^^

 How can I treat the last element of a commalist differently?

 It is much easier to treat the first element as special:

   \def\doSEQ[#1][#2]%
 {\ifsecondargument
   \donefalse
   \mathematics{\processcommalist[#2]{\dodoSEQ{#1}}}
 \else \mathematics{\bold{#1}}\fi}

   \def\dodoSEQ#1#2%
 {\ifdone ,\else \donetrue\fi#1_{#2}}


Thanks Taco,

  Works like ... er ... magic. Where is \done set to true?

Aditya
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Treat last element in a commalist differently

2006-06-02 Thread Taco Hoekwater
Aditya Mahajan wrote:

  \def\dodoSEQ#1#2%
{\ifdone ,\else \donetrue\fi#1_{#2}}
 
 Thanks Taco,
 
   Works like ... er ... magic. Where is \done set to true?

  Right above here, in \dodoSEQ.

Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Question about get commalist size

2006-06-02 Thread Taco Hoekwater
Aditya Mahajan wrote:
 Hi,
   I tried an example from syst-gen.tex
 
 \def\dosomething#1{(#1=\commalistsize) }
   \getcommalistsize [\hbox{$a,b,c,d,e,f$}] \dosomething 1
   \getcommalistsize [{a,b,c,d,e,f}]\dosomething 1
   \getcommalistsize [{a,b,c},d,e,f]\dosomething 4
   \getcommalistsize [a,b,{c,d,e},f]\dosomething 4
   \getcommalistsize [a{b,c},d,e,f] \dosomething 4
   \getcommalistsize [{a,b}c,d,e,f] \dosomething 4
   \getcommalistsize [] \dosomething 0
   \getcommalistsize [{[}]  \dosomething 1
 
 
 And it gives me
 
 (1=1) (1=6) (4=4) (4=4) (4=4) (4=4) (0=0) (1=1)
 
 Notice that
 \getcommalistsize[{a,b,c,d,e,f}] gives 6. Is this expected behaviour 
 or a bug?

Looks like a bug to me, unless Hans changed this on purpose?

Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Font problems (Palatino)

2006-06-02 Thread Johan Blixt-Dackhammar
Okay, perhaps it's a font related error. I can't say that I do
understand much of the log, but I saw something saying that there was
an error trying to load a font. Here's the full LOG:


 TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005

fixing engine variable : pdfetex
executable : pdfetex
format : cont-en
 inputfile : Temadag
output : pdftex
 interface : en
  current mode : none
   TeX run : 1

This is pdfeTeX, Version 3.141592-1.30.4-2.2 (Web2C 7.5.5)
 (/usr/local/teTeX/share/texmf.local/web2c/natural.tcx)
entering extended mode
(./Temadag.tex

ConTeXt  ver: 2006.05.28 13:28  fmt: 2006.6.1  int: english  mes: english

language: language en is active
protectionstate 0
system  : cont-new loaded
(/usr/local/teTeX/share/texmf.local/tex/context/base/cont-new.tex
systems : beware: some patches loaded from cont-new.tex
color   : palette rollover is available
)
system  : cont-old loaded
(/usr/local/teTeX/share/texmf.local/tex/context/base/cont-old.tex
loading : Context Old Macros
)
system  : cont-fil loaded
(/usr/local/teTeX/share/texmf.local/tex/context/base/cont-fil.tex
loading : Context File Synonyms
)
system  : cont-sys.rme loaded
(/usr/local/teTeX/share/texmf.local/tex/context/user/cont-sys.rme
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-exa.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-syn.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-enc.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-siz.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-map.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-spe.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/type-akb.tex))
bodyfont: 12pt rm is loaded
language: patterns en-ec:ec-1-2:3 uk-ec:ec-2-2:3 de-texnansi:tex
nansi-3-2:3 de-ec:ec-4-2:3 fr-texnansi:texnansi-5-2:3 fr-ec:ec-6-2:3
 es-ec:ec-7-2:3 pt-texnansi:texnansi-8-2:3 pt-ec:ec-9-2:3 it-texnansi
:texnansi-10-2:3 it-ec:ec-11-2:3 nl-texnansi:texnansi-12-2:3 nl-ec:ec-
13-2:3 cz-il2:il2-14-2:3 cz-ec:ec-15-2:3 sk-il2:il2-16-2:3 sk-ec:ec
-17-2:3 pl-pl0:pl0-18-2:3 pl-ec:ec-19-2:3 pl-qx:qx-20-2:3 loaded
specials: tex,postscript,rokicki loaded
system  : Temadag.top loaded
(./Temadag.top
specials: loading definition file tpd
(/usr/local/teTeX/share/texmf.local/tex/context/base/spec-tpd.tex
specials: loading definition file fdf
(/usr/local/teTeX/share/texmf.local/tex/context/base/spec-fdf.tex)
specials: fdf loaded
)
specials: fdf,tpd loaded
)
systems : system commands are disabled
system  : module chart loaded
(/usr/local/teTeX/share/texmf.local/tex/context/base/m-chart.tex
XML : loading flowchart support
)
system  : module units loaded
(/usr/local/teTeX/share/texmf.local/tex/context/base/m-units.tex
check   : unit Angstrom replaces a macro, use CAPITALS!
) (/usr/local/teTeX/share/texmf.local/tex/context/base/pdfr-ec.tex)
color   : system rgb is global activated
(./Temadag.tuo) (./Temadag.tuo) (./Temadag.tuo) (./Temadag.tuo) (./Temadag.tuo)
(./Temadag.tuo) (./Temadag.tuo) (./Temadag.tuo) (./Temadag.tuo) (./Temadag.tuo)
(/usr/local/teTeX/share/texmf.local/tex/context/base/sort-new.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/sort-def.tex)
(/usr/local/teTeX/share/texmf.local/tex/context/base/sort-lan.tex)
(./Temadag.tuo) (./Temadag.tuo)
systems : begin file Temadag at line 19
title   : - \bf Planering för temadagstävlingar
Temadag-flw-1.tmp (./Temadag-flw-1.tmp) (./Temadag-flw-1.tmp)
(./Temadag-flw-1.tmp) [MP to PDF] (./Temadag-mpgraph.4000)
(./Temadag-mpgraph.mpd) (./Temadag-flw-1.tmp) (./Temadag-flw-1.tmp)
fonts   : resetting map file list
fonts   : using map file: original-base
fonts   : using map file: ec-public-lm
fonts   : using map file: ec-base
fonts   : using map file: 8r-base
fonts   : using map file: t5-base
fonts   : using map file: original-ams-base
fonts   : using map file: original-ams-euler
fonts   : using map file: original-public-lm
[1.1{/usr/local/teTeX/share/texmf.local/fonts/map/dvipdfm/context/original-empt
y.map}{/usr/local/teTeX/share/texmf.local/fonts/map/dvipdfm/context/original-ba
se.map
Warning: pdfetex (file /usr/local/teTeX/share/texmf.local/fonts/map/dvipdfm/con
text/original-base.map): invalid entry for `fmvr8x': font file missing

Warning: pdfetex (file /usr/local/teTeX/share/texmf.local/fonts/map/dvipdfm/con
text/original-base.map): invalid entry for `xycmat11': font file missing

Warning: pdfetex (file /usr/local/teTeX/share/texmf.local/fonts/map/dvipdfm/con
text/original-base.map): invalid entry for `xycmbt11': font file missing

Warning: pdfetex (file /usr/local/teTeX/share/texmf.local/fonts/map/dvipdfm/con

Re: [NTG-context] Font problems (Palatino)

2006-06-02 Thread Taco Hoekwater
Johan Blixt-Dackhammar wrote:
 Okay, perhaps it's a font related error. I can't say that I do
 understand much of the log, but I saw something saying that there was
 an error trying to load a font. Here's the full LOG:
 

This is quickly becoming a FAQ:

 [1.1{/usr/local/teTeX/share/texmf.local/fonts/map/dvipdfm/context/original-empt
 y.map}{/usr/local/teTeX/share/texmf.local/fonts/map/dvipdfm/context/original-ba
 se.map
 Warning: pdfetex (file 
 /usr/local/teTeX/share/texmf.local/fonts/map/dvipdfm/con
 text/original-base.map): invalid entry for `fmvr8x': font file missing
 

please go to http://archives.contextgarden.net and search TEXFONTMAPS.

Cheers, Taco

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Treat last element in a commalist differently

2006-06-02 Thread Aditya Mahajan
On Fri, 2 Jun 2006, Taco Hoekwater wrote:

 Aditya Mahajan wrote:

  \def\dodoSEQ#1#2%
{\ifdone ,\else \donetrue\fi#1_{#2}}

 Thanks Taco,

   Works like ... er ... magic. Where is \done set to true?

  Right above here, in \dodoSEQ.

Duh... I need to read TeX code more carefully. Thanks.

Aditya
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Treat last element in a commalist differently

2006-06-02 Thread Aditya Mahajan
On Fri, 2 Jun 2006, Aditya Mahajan wrote:

 Hi,
  I am trying to write a macro so that

 \SEQ X[1,2,3] expands to $X_1, X_2, X_3$
 \SEQ X[1-N] expands to $X_1, \dots, X_N$
 and
 \SEQ X expands to ${\bf X}$.

 So far I have

On Fri, 2 Jun 2006, Taco Hoekwater wrote:

 It is much easier to treat the first element as special:

   \def\doSEQ[#1][#2]%
 {\ifsecondargument
   \donefalse
   \mathematics{\processcommalist[#2]{\dodoSEQ{#1}}}
 \else \mathematics{\bold{#1}}\fi}

   \def\dodoSEQ#1#2%
 {\ifdone ,\else \donetrue\fi#1_{#2}}


This is the final macro that I have, incase someone else is 
interested.

\def\SEQ#1%
   {\dodoubleempty\doSEQ[#1]}

\def\doSEQ[#1][#2]%
   {\ifsecondargument
 \donefalse
 \mathematics{\processcommalist[#2]{\dodoSEQ{#1}}}
   \else \mathematics{\bold{#1}}\fi}

\def\dodoSEQ#1#2%
   {\ifdone ,\else \donetrue\fi
 \doifelse{#2}{...}{\dots}{#1_{#2}}}

\starttext

\SEQ X[1,2] is part of \SEQ X[1,2,3,4] and \SEQ X[1,...,10]

\SEQ X[1,2,...,n-1,n,n+1,...,N]

\stoptext

Aditya
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context