[NTG-context] XeTeX & ConTeXt running on Linux!!!

2006-04-30 Thread Mojca Miklavec
After a couple of hours (read as: beers) of sticking their heads
together, the most prominent minds of the World found a way to make it
work: XeTeX finally works with XeTeX, even with MetaFun graphics!

Tested on SuSe 10.0 with rpm packages downloaded from SIL + the newest
tfm + some patches that Hans applied and will probably make it into
the distribution soon.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Table of contents and List of figures

2006-04-30 Thread nico
On Sun, 30 Apr 2006 19:13:34 +0200, WN <[EMAIL PROTECTED]> wrote:

> Question 1) :
>
> In my document I am using
> \setupcombinedlist[content][alternative=c,aligntitle=no,width=4em]
> and now I want to use the same layout for the list of figures but there
> is not something equivalent like
> \setupcombinedlist[figure][alternative=c,aligntitle=no,width=4em]

The TOC is a combination of several lists (chapter, section, etc.), but a  
LOF is a single list.
Try:

\setuplist[figure][alternative=c,aligntitle=no,width=4em]

or:

\placelist[figure][alternative=c,aligntitle=no,width=4em]

> Question 2):
>
> In my document I am also using \part and in the TOC the part number
> prefixes the pagenumber like
>
> I want to get rid of the partnumbers which are prefixed to the  
> pagenumbers
> so my TOC looks like
>
> Deel I Klassieke Elektrodynamica . . . . . . . . . . . . . . . . . . 1

Try this:

\completecontent[partnumber=no]

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


Re: [NTG-context] error with \hyphenation after update

2006-04-30 Thread Volker RW Schaa
Peter Münster wrote:
> Hello Hans, Taco and Mojca,
> thanks for your fast efforts for me! I just wanted to send a zip-file...
> 
> Just still one small problem: where should I apply this patch? Wherever I
> try (in cont-new.tex, enco-ini.tex or in the document), I get
> "Undefined control sequence: \everypathypsettings"
for Hans, who's learning Polish right now by attending the Polish membershio
meeting, see below for the line
   >>\the\everypathypsettings

> On Sun, 30 Apr 2006, Hans Hagen wrote:
> 
>> ? wrote:
>>> Hello,
>>> this used to work about 3 weeks ago. With version 2006.04.27, I get an
>>> error:
>>>
>>> \enableregime[il1]
>>> \hyphenation{Di-sul-fid-br?cken}
>>> \starttext
>>> Error: \type{Improper \hyphenation will be flushed.}
>>> \stoptext
>>>   
>> with the help of mojca (who was able to recover your funny char) and 
>> taco (who was willing to enter tracingmode):
>>
>> \def\pathypsettings
>>   {\ifx \enablepatterntokens\undefined
>>  \defineactivecharacter [ {\handlepatterntoken}%
>>\else
>>  \enablepatterntokens
>>\fi
>>\the\everypathypsettings
please remove this line

>>\let\dochar\thechr
>>\lccode16=16 % brrr, extra quote in ec (turkish)
>>\lccode17=17 % brrr, extra quote in ec (turkish)
>>\lccode`\-=`\-
>>\lccode`\'=`\'
>>\lccode`\"=`\"
>>\relax}
> 
> 
> Cheers, Peter
> 
Cheers,
  Volker

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


Re: [NTG-context] \typefile with a file in \usepath fails

2006-04-30 Thread nico
On Sun, 30 Apr 2006 18:59:53 +0200, Hans Hagen <[EMAIL PROTECTED]> wrote:

> nico wrote:
>> On Sun, 30 Apr 2006 15:22:49 +0200, Hans Hagen <[EMAIL PROTECTED]> wrote:
>>
>>
> what version of context do you run? i though that i added support for
> that some time ago
>
 Version 2006.04.27.

 \dodotypefile checks where the file is, but a following call to
 \makelocreadfilename seems to set improperly \readfilename, but I'm  
 not
 sure to understand correctly the code.
> it's
>
> \makelocreadfilename{#3}%
>
> that does the search

With the following patch it works: the \filepath found is used to expand  
the filename. \makelocreadfilename is still used, but i don't understand  
its role.

\def\dodotypefile[#1][#2]#3%
   {\bgroup
\let\currenttypingclass\??tp
\edef\currenttyping{#1}%
\typingparameter\c!before
\doiflocfileelse{#3}
  \donetrue % sets \readfilename
  {\doifinputfileelse{#3}
 {\donetrue\def\readfilename{\pathplusfile{\filepath}{#3}}} % here  
the filename is absolute
 \donefalse}%
\ifdone
  \startpacked % includes \bgroup
   \dosetuptypelinenumbering{#2}%
   \doifinset{\typingparameter\c!option}{\v!commands,\v!slanted,\v!normal}
 {\setuptyping[#1][\c!option=\v!none]}%
   \doif{\typingparameter\c!option}\v!color
 {\expandafter\aftersplitstring#3\at.\to\prettyidentifier
  \settypingparameter\c!option{\prettyidentifier}}%
   \initializetyping
   \startverbatimcolor
   % still use this macro, but applied to \readfilename instead of #3
   \makelocreadfilename{\readfilename}%
   \doifundefinedelse{\currenttypingclass#3\v!global\c!start}
   ...

Now it can wait a real fix :-)

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


Re: [NTG-context] \typefile with a file in \usepath fails

2006-04-30 Thread nico
On Sun, 30 Apr 2006 18:59:53 +0200, Hans Hagen <[EMAIL PROTECTED]> wrote:

> nico wrote:
>> On Sun, 30 Apr 2006 15:22:49 +0200, Hans Hagen <[EMAIL PROTECTED]> wrote:
>>
>>
> what version of context do you run? i though that i added support for
> that some time ago
>
 Version 2006.04.27.

 \dodotypefile checks where the file is, but a following call to
 \makelocreadfilename seems to set improperly \readfilename, but I'm  
 not
 sure to understand correctly the code.


>>> \tracefilestrue
>>>
>>>
>> Hm, verbatim seems not using the file interface: there's no trace about
>> file found or not related to typefile. Another thing I did is to patch
>> \processfileverbatim to trace what is actually the file used:
>>
>> \def\processfileverbatim#1%
>>{\par
>> \bgroup
>> \writestatus{jo}{file=#1}
>> ...
>>
>> And doing:
>>
>> \typefile{list1.tex} % file in the current directory (ok)
>> \typefile{test-001.tex} % file in the \usepath directory (nok)
>> \typefile{joke} % file that does not exist (ok, an error is printed)
>> \typefile{pos2.tex} % again a local existing file (ok)
>>
>> Gives the traces:
>>
>> systems : begin file typefile at line 79
>> jo  : file=list1.tex
>> systems : searching for pdfr-ec on tex path
>> systems : pdfr-ec located
>> (/usr/local/share/texmf-local/tex/context/base/pdfr-ec.tex)
>> jo  : file=test-001.tex
>> verbatim: file joke does not exist
>> jo  : file=pos2.tex
>>
>> So, the actual file path is not used, but it is the argument passed that
>> is always used.
>>
> it's
>
> \makelocreadfilename{#3}%
>
> that does the search

Really? As far as I understand the code, it sets \readfilename and  
\locreadfilename in a clean way, and that's all:

\def\makelocreadfilename#1%
   {\sanitizefilename#1\to\readfilename
\checkfilename\readfilename
\ifcase\kindoffile
  \edef\locreadfilename{\pathplusfile\f!currentpath{#1}}%
\fi}

Anyway, if it's that call that should expand the filename, it does not  
work. In \dodotypefile the search is done previously by a call to  
\doifinputfileelse that sets \filepath (set again to \readfilename but I  
don't know why), but this result is not used since \readfilename is re-set  
to #3 by \makelocreadfilename. But you know this far better than I :-)

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


Re: [NTG-context] error with \hyphenation after update

2006-04-30 Thread Peter Münster
On Sun, 30 Apr 2006, Hans Hagen wrote:

> ? wrote:
> > Hello,
> > this used to work about 3 weeks ago. With version 2006.04.27, I get an
> > error:
> >
> > \enableregime[il1]
> > \hyphenation{Di-sul-fid-br?cken}
> > \starttext
> > Error: \type{Improper \hyphenation will be flushed.}
> > \stoptext
> >   
> with the help of mojca (who was able to recover your funny char) and 
> taco (who was willing to enter tracingmode):
> 
> \def\pathypsettings
>   {\ifx \enablepatterntokens\undefined
>  \defineactivecharacter [ {\handlepatterntoken}%
>\else
>  \enablepatterntokens
>\fi
>\the\everypathypsettings
>\let\dochar\thechr
>\lccode16=16 % brrr, extra quote in ec (turkish)
>\lccode17=17 % brrr, extra quote in ec (turkish)
>\lccode`\-=`\-
>\lccode`\'=`\'
>\lccode`\"=`\"
>\relax}

Hello Hans, Taco and Mojca,
thanks for your fast efforts for me! I just wanted to send a zip-file...

Just still one small problem: where should I apply this patch? Wherever I
try (in cont-new.tex, enco-ini.tex or in the document), I get
"Undefined control sequence: \everypathypsettings"

Cheers, Peter

-- 
http://pmrb.free.fr/contact/
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Table of contents and List of figures

2006-04-30 Thread WN

Question 1) :

In my document I am using 
\setupcombinedlist[content][alternative=c,aligntitle=no,width=4em]
and now I want to use the same layout for the list of figures but there 
is not something equivalent like
\setupcombinedlist[figure][alternative=c,aligntitle=no,width=4em]

Question 2):

In my document I am also using \part and in the TOC the part number 
prefixes the pagenumber like

Deel I Klassieke Elektrodynamica . . . . . . . . . . . . . . . . . . . . 
. . . . . . . . . . . . . . . . . . 1–1
1 De Maxwell vergelijkingen in vacuüm . . . . . . . . . . . . . . . . . . 
. . . . . . . . . . . . . 1–3
1.1 Inleiding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 
. . . . . . . . . . . . . . . . . . . . . . . . . . . 1–10
1.2 Behoud van lading . . . . . . . . . . . . . . . . . . . . . . . . . 
. . . . . . . . . . . . . . . . . . . . . . 1–20
1.3 Energie en impuls van het elektromagnetische veld . . . . . . . . . 
. . . . . . . . . . 1–35

I want to get rid of the partnumbers which are prefixed to the pagenumbers
so my TOC looks like

Deel I Klassieke Elektrodynamica . . . . . . . . . . . . . . . . . . . . 
. . . . . . . . . . . . . . . . . . 1
1 De Maxwell vergelijkingen in vacuüm . . . . . . . . . . . . . . . . . . 
. . . . . . . . . . . . . 3
1.1 Inleiding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 
. . . . . . . . . . . . . . . . . . . . . . . . . . . 10
1.2 Behoud van lading . . . . . . . . . . . . . . . . . . . . . . . . . 
. . . . . . . . . . . . . . . . . . . . . . 20
1.3 Energie en impuls van het elektromagnetische veld . . . . . . . . . 
. . . . . . . . . . 35

How can one achieve this in Context ?

Kind regards
Wim









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


Re: [NTG-context] \typefile with a file in \usepath fails

2006-04-30 Thread Hans Hagen
nico wrote:
> On Sun, 30 Apr 2006 15:22:49 +0200, Hans Hagen <[EMAIL PROTECTED]> wrote:
>
>   
 what version of context do you run? i though that i added support for
 that some time ago
 
>>> Version 2006.04.27.
>>>
>>> \dodotypefile checks where the file is, but a following call to
>>> \makelocreadfilename seems to set improperly \readfilename, but I'm not
>>> sure to understand correctly the code.
>>>
>>>   
>> \tracefilestrue
>>
>> 
> Hm, verbatim seems not using the file interface: there's no trace about  
> file found or not related to typefile. Another thing I did is to patch  
> \processfileverbatim to trace what is actually the file used:
>
> \def\processfileverbatim#1%
>{\par
> \bgroup
> \writestatus{jo}{file=#1}
> ...
>
> And doing:
>
> \typefile{list1.tex} % file in the current directory (ok)
> \typefile{test-001.tex} % file in the \usepath directory (nok)
> \typefile{joke} % file that does not exist (ok, an error is printed)
> \typefile{pos2.tex} % again a local existing file (ok)
>
> Gives the traces:
>
> systems : begin file typefile at line 79
> jo  : file=list1.tex
> systems : searching for pdfr-ec on tex path
> systems : pdfr-ec located
> (/usr/local/share/texmf-local/tex/context/base/pdfr-ec.tex)
> jo  : file=test-001.tex
> verbatim: file joke does not exist
> jo  : file=pos2.tex
>
> So, the actual file path is not used, but it is the argument passed that  
> is always used.
>
>   
it's

\makelocreadfilename{#3}%

that does the search 

-
  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] \typefile with a file in \usepath fails

2006-04-30 Thread nico
On Sun, 30 Apr 2006 15:22:49 +0200, Hans Hagen <[EMAIL PROTECTED]> wrote:

>>> what version of context do you run? i though that i added support for
>>> that some time ago
>>
>> Version 2006.04.27.
>>
>> \dodotypefile checks where the file is, but a following call to
>> \makelocreadfilename seems to set improperly \readfilename, but I'm not
>> sure to understand correctly the code.
>>
> \tracefilestrue
>
Hm, verbatim seems not using the file interface: there's no trace about  
file found or not related to typefile. Another thing I did is to patch  
\processfileverbatim to trace what is actually the file used:

\def\processfileverbatim#1%
   {\par
\bgroup
\writestatus{jo}{file=#1}
...

And doing:

\typefile{list1.tex} % file in the current directory (ok)
\typefile{test-001.tex} % file in the \usepath directory (nok)
\typefile{joke} % file that does not exist (ok, an error is printed)
\typefile{pos2.tex} % again a local existing file (ok)

Gives the traces:

systems : begin file typefile at line 79
jo  : file=list1.tex
systems : searching for pdfr-ec on tex path
systems : pdfr-ec located
(/usr/local/share/texmf-local/tex/context/base/pdfr-ec.tex)
jo  : file=test-001.tex
verbatim: file joke does not exist
jo  : file=pos2.tex

So, the actual file path is not used, but it is the argument passed that  
is always used.

Regards,
BG


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


Re: [NTG-context] error with \hyphenation after update

2006-04-30 Thread Hans Hagen
� wrote:
> Hello,
> this used to work about 3 weeks ago. With version 2006.04.27, I get an
> error:
>
> \enableregime[il1]
> \hyphenation{Di-sul-fid-br�cken}
> \starttext
> Error: \type{Improper \hyphenation will be flushed.}
> \stoptext
>   
with the help of mojca (who was able to recover your funny char) and 
taco (who was willing to enter tracingmode):

\def\pathypsettings
  {\ifx \enablepatterntokens\undefined
 \defineactivecharacter [ {\handlepatterntoken}%
   \else
 \enablepatterntokens
   \fi
   \the\everypathypsettings
   \let\dochar\thechr
   \lccode16=16 % brrr, extra quote in ec (turkish)
   \lccode17=17 % brrr, extra quote in ec (turkish)
   \lccode`\-=`\-
   \lccode`\'=`\'
   \lccode`\"=`\"
   \relax}

-
  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] error with \hyphenation after update

2006-04-30 Thread Hans Hagen
� wrote:
> Hello,
> this used to work about 3 weeks ago. With version 2006.04.27, I get an
> error:
>
> \enableregime[il1]
> \hyphenation{Di-sul-fid-br�cken}
> \starttext
> Error: \type{Improper \hyphenation will be flushed.}
> \stoptext
>
> Could you help please?
>   
is regi- iso-8859-1.tex loaded? 

-
  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] \typefile with a file in \usepath fails

2006-04-30 Thread Hans Hagen
nico wrote:
> On Sun, 30 Apr 2006 12:33:20 +0200, Hans Hagen <[EMAIL PROTECTED]> wrote:
>
>   
>> nico wrote:
>> 
>>> Hello,
>>>
>>> \typefile does not output a file not in the current directory but
>>> available from a path defined by \usepath. It sounds like a bug since  
>>> the
>>> file is actually found; if not, a message telling that the file does not
>>> exist would be printed.
>>>
>>> Example:
>>> \usepath[/path/to/my/file]
>>> \typefile{filebasename}
>>>
>>>
>>>   
>> what version of context do you run? i though that i added support for  
>> that some time ago
>> 
>
> Version 2006.04.27.
>
> \dodotypefile checks where the file is, but a following call to  
> \makelocreadfilename seems to set improperly \readfilename, but I'm not  
> sure to understand correctly the code.
>   
\tracefilestrue

-- 

-
  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] error with \hyphenation after update

2006-04-30 Thread Hans Hagen
� wrote:
> Hello,
> this used to work about 3 weeks ago. With version 2006.04.27, I get an
> error:
>
> \enableregime[il1]
> \hyphenation{Di-sul-fid-br�cken}
> \starttext
> Error: \type{Improper \hyphenation will be flushed.}
> \stoptext
>   
can you send a zipped file (no 8 bit chrin the mail) 

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] \typefile with a file in \usepath fails

2006-04-30 Thread nico
On Sun, 30 Apr 2006 12:33:20 +0200, Hans Hagen <[EMAIL PROTECTED]> wrote:

> nico wrote:
>> Hello,
>>
>> \typefile does not output a file not in the current directory but
>> available from a path defined by \usepath. It sounds like a bug since  
>> the
>> file is actually found; if not, a message telling that the file does not
>> exist would be printed.
>>
>> Example:
>> \usepath[/path/to/my/file]
>> \typefile{filebasename}
>>
>>
> what version of context do you run? i though that i added support for  
> that some time ago

Version 2006.04.27.

\dodotypefile checks where the file is, but a following call to  
\makelocreadfilename seems to set improperly \readfilename, but I'm not  
sure to understand correctly the code.

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


Re: [NTG-context] Conforming xml

2006-04-30 Thread Hans Hagen
David Arnold wrote:
> All, does this look right? Seems like I ought to have some closing  
> stuff, but it compiles with texexec just nicely.
>
> 
>
> 
>
> 
>
> 
> College of the Redwoods Mathematics Department organization>
> Intermediate Algebra Text
> Chapter 2
> Figures for Section 1
> 
>
> 
> section2figs-mpgraph.1
> sec1onea
> College of the Redwoods Mathematics Department
> 
> 
>
> 
>   
no closing stuff needed, texexec will wrap it into a 

\starttext 
\processXMLfilegrouped{...}
\stoptext 

fo ryou 

-
  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


[NTG-context] error with \hyphenation after update

2006-04-30 Thread Peter Münster
Hello,
this used to work about 3 weeks ago. With version 2006.04.27, I get an
error:

\enableregime[il1]
\hyphenation{Di-sul-fid-brücken}
\starttext
Error: \type{Improper \hyphenation will be flushed.}
\stoptext

Could you help please?
Cheers, Peter

-- 
http://pmrb.free.fr/contact/
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] defineenumeration and setupenumeration

2006-04-30 Thread WN




Hi,

I have a question (probably a dumb question) relating to some of the
define/setup commands. One in 
particular, but it may relate to the other define/setup commands as
well.
Looking at the defineenumeration and setupenumerations command
in the Context manual page 223 and page 224 an example is given how to
use
these commands.

I am a bit confused, the example setups the enumaration remark
and specifies the location=top

\defineenumeration
[remark]
[location=top,
text=Remark,
between=\blank,
before=\blank,
after=\blank]

But on page 224 the command \setupenumerations is shown where one can
also 
specify the location among others. 

What is the difference, reason or usage for doing this ? 
What is the proper Context way, should I define the location with
\defineenumeration or with \setupenumerations ? 

Kind regards

Wim





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


Re: [NTG-context] \typefile with a file in \usepath fails

2006-04-30 Thread Hans Hagen
nico wrote:
> Hello,
>
> \typefile does not output a file not in the current directory but  
> available from a path defined by \usepath. It sounds like a bug since the  
> file is actually found; if not, a message telling that the file does not  
> exist would be printed.
>
> Example:
> \usepath[/path/to/my/file]
> \typefile{filebasename}
>
>   
what version of context do you run? i though that i added support for that some 
time ago 

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