[NTG-context] missing *8t.tfm files

2007-08-26 Thread Giorgos Keramidas
Hi all,

I've recently started reading about typefaces in ConTeXt, and trying out
the examples of `showfont.pdf', but stumbled upon errors for almost all
the fonts.

My installation uses teTeX-3.0 on FreeBSD:

[EMAIL PROTECTED]:/home/keramida$ pkg_info | fgrep -i tetex
dvipsk-tetex-5.95a_2 Convert a TeX DVI file to PostScript
teTeX-3.0_2 A meta port for teTeX suite
teTeX-base-3.0_11   Thomas Esser's distribution of TeX  friends (binaries)
teTeX-texmf-3.0_5   Thomas Esser's distribution of TeX  friends (texmf tree)
xdvik-tetex-22.84.10_1 DVI Previewer(kpathsearch) for X
[EMAIL PROTECTED]:/home/keramida$

When I try typesetting:

\definetypeface [zapf] [cg] [calligraphy] [chancery]
\switchtotypeface [zapf] [12pt,cg]

\starttext
Foo bar.
\stoptext

All I get is an error like:

% (/usr/local/share/texmf-dist/tex/context/base/type-akb.tex)kpathsea: Running 
mktextfm uzcmi8t
% mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; 
input uzcmi8t
% This is METAFONT, Version 2.71828 (Web2C 7.5.4)
%
% kpathsea: Running mktexmf uzcmi8t
% ! I can't find file `uzcmi8t'.
% * ...=ljfour; mag:=1; nonstopmode; input uzcmi8t
%
% Please type another input file name
% ! Emergency stop.

When I try using the Palatino font, as shown in `showfont.pdf':

\definetypeface [palatino] [rm] [serif]
  [palatino] [default] [encoding=ec]
\switchtotypeface [palatino] [12pt,rm]

\starttext
Foo bar.
\stoptext

I get very similar errors:

% (/usr/local/share/texmf-dist/tex/context/base/type-akb.tex)kpathsea: Running 
mktextfm uplr8t
% mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; 
input uplr8t
% This is METAFONT, Version 2.71828 (Web2C 7.5.4)
%
% kpathsea: Running mktexmf uplr8t
% ! I can't find file `uplr8t'.
% * ...:=ljfour; mag:=1; nonstopmode; input uplr8t
%
% Please type another input file name
% ! Emergency stop.

Am I missing something, is there anything I can do to download these
files, or generate them in my teTeX installation?

Thanks in advance for any help,
Giorgos

___
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] Buffers (gone) in MK IV (was: MK IV Lilypond)

2007-08-26 Thread Mojca Miklavec
On 8/25/07, David Wooten wrote:
 Greetings,

 Did we end up with a working solution for t-lilypond?

I'm sorry. The file is attached. The only line added is
\ifx\savebuffer\undefined \else \savebuffer[lilypond-\the\lily!figures]\fi
and one probably needs the latest ConTeXt.

Mojca



\def\PDF{texmfstart --ifchanged=\lily!filename.eps pstopdf
\lily!filename.eps}
+%D The following line is needed for LuaTeX, where buffers are kept in memory
+%D in contrast to other (older) flavours of TeX where they're written to a
+%D file automatically. We have to require writing to a file explicitely
+%D with \type{\savebuffer}.
+   \ifx\savebuffer\undefined \else
\savebuffer[lilypond-\the\lily!figures]\fi
\ifeof18


t-lilypond.tex
Description: TeX document
___
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] String in Luatex

2007-08-26 Thread luigi scarso
The following macro is wrong:
\def\TestC{%
\directlua0{%
\obeyspaces \obeylines
code =[[
class Test(object):
  def __init__(self):
self.a=[0,3,81,2,-1]
self.b=self.a[:]
self.a.sort()

  def get(self):
return self.a,self.b
]]
}}

! LuaTeX error [string luas[0]]:1: unexpected symbol near '\'.
\TestC ...def get(self): return self.a,self.b ]] }


I must preserve spaces and newlines.

Any idea ?
Thanks in advance

--
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
___
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] new upload

2007-08-26 Thread Henning Hraban Ramm
Am 2007-08-25 um 23:24 schrieb David Wooten:
 At the moment I'm not planning to switch - need my old LilyPond
 module working and simply no time to cope with an maybe working
 installation...

 Can you please try if the attached patch works OK with MK IV? (You
 need the latest ConTeXt and you may delete some commented lines at  
 the
 beginning of t-lilypond.tex. And perhaps one needs some more comments
 about the patch if it works.)

 Mojcat-lilypond.tex

 I've run a couple of quick tests and the patch works perfectly so far.

Thank you both!
I don't dare to install MkIV at the moment.


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
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] Wanting Lilipond

2007-08-26 Thread Vyatcheslav Yatskovsky
Hello,

I see t-lilipond being sent to members. How can I get working module? 
(and some usage guides, if any)

-- 
Best regards,
Vyatcheslav Yatskovsky

___
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] new upload

2007-08-26 Thread Hans Hagen
Henning Hraban Ramm wrote:
 Am 2007-08-25 um 23:24 schrieb David Wooten:
 At the moment I'm not planning to switch - need my old LilyPond
 module working and simply no time to cope with an maybe working
 installation...
 Can you please try if the attached patch works OK with MK IV? (You
 need the latest ConTeXt and you may delete some commented lines at  
 the
 beginning of t-lilypond.tex. And perhaps one needs some more comments
 about the patch if it works.)

 Mojcat-lilypond.tex
 
 I've run a couple of quick tests and the patch works perfectly so far.
 
 Thank you both!
 I don't dare to install MkIV at the moment.

you can run mkii and mkiv alongside,

texexec  somefile.tex
texexec --luatex somefile.tex

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] String in Luatex

2007-08-26 Thread Hans Hagen
luigi scarso wrote:
 The following macro is wrong:
 \def\TestC{%
 \directlua0{%
 \obeyspaces \obeylines

hm, you want to expand this kin dof stuff inside the directlua?

 code =[[
 class Test(object):
   def __init__(self):
 self.a=[0,3,81,2,-1]
 self.b=self.a[:]
 self.a.sort()
 
   def get(self):
 return self.a,self.b
 ]]
 }}
 
 ! LuaTeX error [string luas[0]]:1: unexpected symbol near '\'.
 \TestC ...def get(self): return self.a,self.b ]] }
 
 
 I must preserve spaces and newlines.
 
 Any idea ?

just use

\startluacode

\stopluacode

-
   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] missing *8t.tfm files

2007-08-26 Thread Hans Hagen
Giorgos Keramidas wrote:
 Hi all,
 
 I've recently started reading about typefaces in ConTeXt, and trying out
 the examples of `showfont.pdf', but stumbled upon errors for almost all
 the fonts.

don't use tetex, use tex live or take one of the more recent packages 
(see wiki)

you've probably chosen an encoding that has no matching tfm files in the 
distribition

(\setupencoding[default=ec] may help)

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] new upload

2007-08-26 Thread Hans Hagen
Henning Hraban Ramm wrote:
 Am 2007-08-24 um 20:26 schrieb Aditya Mahajan:
 
 I do not really understand unicode. I will try to figure out which
 unicode characters need special consideration, and then make up the
 specs. I would really help if someone who knows about different
 joining characters in unicode could give a pointer or two.
 
 BTW if you're at it: MkII ConTeXt chokes on decomposed UTF-8 (as used  
 by MacOS X's file system).
 Is MkIV able to handle that?

in mkiv i collapse utf sequences

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] new upload

2007-08-26 Thread Hans Hagen
Steffen Wolfrum wrote:
 Am 24.08.2007 um 19:11 schrieb Hans Hagen:
 
 Aditya Mahajan wrote:
 I have not gone through all the details, but with this new  
 feature, is
 it possible to use - instead of |-| and get normal hypenation for  
 both
 words?

 hm, not that hard to implement if we can cook up specs, i.e. we have

 bla-bla
 bla/bla
 
 
 
 Does this also cover the following: The Problem of a word with |\-|  
 moving at the and of a line and thus loosing the hyphen (see below).

\- is meant to work that way -)

try |-|

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] Wanting Lilipond

2007-08-26 Thread Arthur Reutenauer
 I see t-lilipond being sent to members. How can I get working module? 
 (and some usage guides, if any)

  On the wiki:

http://wiki.contextgarden.net/LilyPond

  If you're using Mark II, don't take the file Mojca sent for the
moment but the original module by Hraban, available on the garden as
well (http://modules.contextgarden.net/t-lilypond).

Arthur
___
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] Math align question

2007-08-26 Thread WN
Aditya,

This confuses me, I thought when using 3 columns I have to set n=3 
otherwise I get errors about extra tab found etc.
However doing as you suggested, seems to work.

Then another question, the formula numbering is not aligned with the 
other formula's in my text
like in the code below. How can I force the sub formula numbering to be 
right aligned ?

Thanks
Wim

\def\ms{\,}
\starttext

\placeformula[calcb-chapter4-eqn2]
\startformula
f(x) = \sum_{n = - \infty}^{+\infty} c_{n} e^{\displaystyle i n \frac{\pi}{L} 
x} \quad \text{,} \quad c_{n} = \frac{1}{2L} \int\limits_{-L}^{L} f(x) \ms e^{- 
\displaystyle in\frac{\pi}{L} x } dx
\stopformula

Formula number is not right aligned with the previous formula
\placesubformula
\startformula
\startalign[n=2,m=2,distance=2em]
%\startalign[n=3]
\NC f(x) \NC = \frac{1}{2\pi} \int\limits_{-\infty}^{+\infty} g(y) \ms 
e^{i y x} \ms dy \NC (x \in \reals) \NR[calcb-chapter4-eqn5:i][i]
\NC g(y) \NC = \int\limits_{-\infty}^{+\infty} f(x) \ms e^{-i y x} d x 
\NC ( y \in \reals) \NR[calcb-chapter4-eqn5:ii][ii]
\NC \int\limits_{-\infty}^{+\infty} |f(x)|^{2} dx \NC =  \frac{1}{2\pi} 
\int\limits_{-\infty}^{+\infty} \Big| g(y) \Big|^{2} \ms d y \NC \quad  
\NR[calcb-chapter4-eqn5:iii][iii]
\stopalign
\stopformula
\stoptext


 How about

\startalign[n=2,m=2,distance=2em]


 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
 ___

   

___
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] Wanting Lilipond

2007-08-26 Thread Vyatcheslav Yatskovsky
Thank you,  Arthur.

But I do use MarkIV. I cannot take Mojca file because don't know where. :)

-- 
Best regards,
Vyatcheslav Yatskovsky___
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] Using mswincontext from the command line

2007-08-26 Thread Idris Samawi Hamid
On Sun, 26 Aug 2007 10:23:13 -0600, Idris Samawi Hamid  
[EMAIL PROTECTED] wrote:

 Please see the instructions for the notepad++ package, which I announced
 on this list some days ago. Following that you should be able to get
 whatever application you want to work as you want, including the command
 line.

More simply, save npp.bat to, say, cmd.bat; and then just change the  
following line

start notepad++ %TEMP%\test.tex

to something like

start cmd.exe

Then open the command line using the batch file. That should work.

Best
Idris

-- 
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
___
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] Using mswincontext from the command line

2007-08-26 Thread Vyatcheslav Yatskovsky
Hello,

I'm back with my old problem of using stand-alone windows context within 
command line.

I was told that it is possible, but I still cannot figure out how. I have 
mswincontext extracted into drive I:


Directory of I:\context
26.08.2007  18:53DIR  .
26.08.2007  18:53DIR  ..
08.08.2007  15:03   206 cscite
08.08.2007  15:03 2 014 cscite.bat
08.08.2007  15:0324 702 cscite.ico
08.08.2007  17:31DIR  demo
08.08.2007  17:32DIR  docroot
08.08.2007  17:31DIR  goodies
08.08.2007  17:31DIR  gs
08.08.2007  17:31DIR  perl
08.08.2007  17:31DIR  ruby
08.08.2007  17:32DIR  scite
12.08.2007  04:04DIR  tex
08.08.2007  17:31DIR  xmllib


When I run cscite.bat it sets some env. vars, and everything within the sci-te 
editor works, but nothing is accessible from external command line. For 
example, 


C:\texexec
'texexec' is not recognized as an internal or external command, operable 
program or batch file.


How to get it work, scince I want to experiment with some nice text editor. (It 
is Code Browser, unique and free, and the author implemented ConText support 
for my request, now I'm making the lang file).

Best regards,
Vaytcheslav Yatskovsky


___
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] Wanting Lilipond

2007-08-26 Thread Arthur Reutenauer
 But I do use MarkIV. I cannot take Mojca file because don't know where. :)

  It's t-lilypond.tex you mentioned. Sent by Mojca to the list at 10:35:17 CET
today, and it works fine with Mark IV (thanks, Mojca :-).

Arthur
___
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] new upload

2007-08-26 Thread Steffen Wolfrum

Am 26.08.2007 um 16:01 schrieb Hans Hagen:

 Does this also cover the following: The Problem of a word with |\-|
 moving at the and of a line and thus loosing the hyphen (see below).

 \- is meant to work that way -)

 try |-|

 Hans



That doesn't help here.
I meant those trick situations which were discussed in that thread  
below:


 Von: Hans Hagen [EMAIL PROTECTED]
 Datum: 20. März 2007 07:24:20 MEZ
 An: mailing list for ConTeXt users ntg-context@ntg.nl
 Betreff: Re: [NTG-context] broken: noligature AND hyphenation
 Antwort an: mailing list for ConTeXt users ntg-context@ntg.nl

 Steffen Wolfrum wrote:
 Just for the records:

 One has to be careful with this kind of avoiding ligatures.
 In most cases it works perfect, but when the word moves towards  
 the end of the line and should be broken
 then the hyphen misses!

 But I guess there is no solution that fits *both* situations:  
 regularly on a line and cross lines?

 not yet, luatex will be more clever

 Hans



Is Mark IV already that clever?

Mark II wasn't. Run the following test please.


\starttext

\showframe

\switchtobodyfont[rm,24pt]

test test test test test test test test Auflage Auflage% ligature is  
wrong here

test test test test test test test test Auf|\-|lage Auf|\-|lage% no- 
ligature is right, but missing at the line end

test test test test test test test test Auf|-|lage Auf|-|lage% right  
behaviour at the line end, but a mess otherwise

\stoptext


What should be done?

Steffen




___
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] Math align question

2007-08-26 Thread Aditya Mahajan
On Sun, 26 Aug 2007, WN wrote:

 Aditya,

 This confuses me, I thought when using 3 columns I have to set n=3 otherwise 
 I get errors about extra tab found etc.
 However doing as you suggested, seems to work.

This is due to the m key. m=2 tells context that there are two blocks
of equations. n=2 says that each block has two columns. So, in all 
there should be n*m = 4 \NC in the equation (I had only put three, 
which led to the wrong equation number alignment).

 Then another question, the formula numbering is not aligned with the other 
 formula's in my text
 like in the code below. How can I force the sub formula numbering to be right 
 aligned ?

See above: This was due to mistake in my code. This works. (Though it 
will be nice if such mistakes do not cause these kinds of errors)

\def\ms{\,}
\starttext

\placeformula[calcb-chapter4-eqn2]
\startformula
f(x) = \sum_{n = - \infty}^{+\infty} c_{n} e^{\displaystyle i n
\frac{\pi}{L} x} \quad \text{,} \quad c_{n} = \frac{1}{2L}
\int\limits_{-L}^{L} f(x) \ms e^{- \displaystyle in\frac{\pi}{L} x } 
dx
\stopformula

Formula number is not right aligned with the previous formula
\placesubformula
\startformula
\startalign[n=2,m=2,distance=2em]
%\startalign[n=3]
\NC f(x) \NC = \frac{1}{2\pi} \int\limits_{-\infty}^{+\infty} g(y) \ms
e^{i y x} \ms dy \NC\NC (x \in \reals) \NR[calcb-chapter4-eqn5:i][i]
\NC g(y) \NC = \int\limits_{-\infty}^{+\infty} f(x) \ms e^{-i y x} d x
\NC\NC ( y \in \reals) \NR[calcb-chapter4-eqn5:ii][ii]
\NC \int\limits_{-\infty}^{+\infty} |f(x)|^{2} dx \NC = 
\frac{1}{2\pi}
\int\limits_{-\infty}^{+\infty} \Big| g(y) \Big|^{2} \ms d y \NC\NC
\quad
\NR[calcb-chapter4-eqn5:iii][iii]
\stopalign
\stopformula
\stoptext


Do you know about subformulas? For example,

\setupsubformulas[conversion=romannumerals]
\def\ms{\,}

\starttext

\startsubformulas[calcb-chapter-4-eqn5]
   \placeformula
   \startformula \startalign[n=2,m=2,distance=2em]
   \NC f(x) \EQ \frac{1}{2\pi} \int\limits_{-\infty}^{+\infty} g(y) \ms
   e^{i y x} \ms dy
   \NC\NC (x \in \reals)
   \NR[calcb-chapter4-eqn5:i]
   \NC g(y) \EQ \int\limits_{-\infty}^{+\infty} f(x) \ms e^{-i y x} d x
   \NC\NC ( y \in \reals)
   \NR[calcb-chapter4-eqn5:ii]
   \NC \int\limits_{-\infty}^{+\infty} |f(x)|^{2} dx
   \EQ \frac{1}{2\pi} \int\limits_{-\infty}^{+\infty}
   \Big| g(y) \Big|^{2} \ms d y
   \NC\NC
   \NR[calcb-chapter4-eqn5:iii]
   \stopalign \stopformula
\stopsubformulas

You can also refer to the whole equation~\in[calcb-chapter-4-eqn5], or 
an individual number~\in[calcb-chapter4-eqn5:iii].

\stoptext

BTW, why no \ms before dx, and a \ms before dy?

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] new upload

2007-08-26 Thread Hans Hagen
Steffen Wolfrum wrote:
 Am 26.08.2007 um 16:01 schrieb Hans Hagen:
 Does this also cover the following: The Problem of a word with |\-|
 moving at the and of a line and thus loosing the hyphen (see below).
 \- is meant to work that way -)

 try |-|

 Hans
 
 
 
 That doesn't help here.
 I meant those trick situations which were discussed in that thread  
 below:

that's work in progress...



-
   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] new upload

2007-08-26 Thread Hans Hagen
Mojca Miklavec wrote:
  Hello Hans,
 
  On 8/24/07, Hans Hagen wrote:
  Hi,
 
  I uploaded a new version of mkiv (regular zip).
 
  Thanks a lot!
 
  - case changing using attributes and node processing
 
  simple test file for spacing and casing:
 
  I'm attaching a not-so-trivial test file for casing, just to see how
  well it works for Croatian.
 
  A few observations:
 
  - LM doesn't have any lj, nj, dz, dž, ... (probably another request
  for the Polish guys)

hm, just write a small proposal ...

however, dealing with non present chars is to be dealt with anyway

  - It would be great if MK IV did the trasformation from digraphs to
  normal letters in case those digraphs are not present in the font
  itself (for ij, lj, nj, dz, dž, ... just as it would be great if
  ccaron was automatically composed out of c and caron if the letter
  wasn't present in that font).

\definefontfeature 
[test][mode=node,language=dflt,script=latn,complement=yes]

{\font\test = lmtypewriter8-regular*test at 12.3pt \test ljubljana 
Ljubljana  LJUBLJANA }

currently the complement only replaces LATIN/compat combinations (see 
char-def.lua)

  Visually there is probably no difference in plain text, except in
  exactly the cases for which you're sending the tests (that's casing
  and spacing). See http://en.wikipedia.org/wiki/Gaj's_Latin_alphabet
  how the word MJENJACNICA is split into letters.
  Normal people still type n+j in text, not the digraph ? (nj), but in
  case you get some text with those digraphs which are valid Unicode
  letters, it would be nice if they were processed ...

dealing with n+j in text is too dangerous to catch, unless we start 
implementing complex language depenent replacements, and even then it's 
messy (what to do when one really wants a nj (two char)) ... so, thos 
old docs can best be converted to proper utf then

  \starttext
 
  test: oeps {\setcharacterspacing[frenchpunctuation] x: xx \bfd x: xx}
  oeps: test
 
  test \WORD{test TEST \TeX} test
 
  test \word{test TEST \TeX} test
 
  test \Word{test TEST \TeX} test
 
  Another few observations:
  - \word doesn't work in XeTeX

no, neither in pdftex i think; new

  - What exactly is \Words supposed to do (with non-first letters in a 
word)?

make first chars uppercase but only when the next is a char; (i changed 
it a bit, defs were not seen (overloaded later by macros)

  - ConTeXt with XeTeX outputs dozens of empty lines to the console.

indeed, has to do with the fact that i need to test if a font is present 
on the system (file vs name stuff) and the empty lines are a side effect
of entering/exiting batchmode

  An extra challenge would be to get this work (but unless some Croats
  ask you for that or unless you have too much time left, don't bother
  about that - it needs slightly more than only lccode and uccode of a
  letter since there are three forms: one for lowercase [ljubljana -
  lj], one for all-uppercase words [LJUBLJANA - LJ] and one for the
  first letter of a word starting with an uppercase [Ljubljana - Lj]):
 
  In Unicode:
 
  \word{?ub?ana} - ?ub?ana
  \Word{?ub?ana} - ?ub?ana
  \WORD{?ub?ana} - ?UB?ANA
 
  \word{?ub?ana} - ?ub?ana
  \Word{?ub?ana} - ?ub?ana
  \WORD{?ub?ana} - ?UB?ANA
 
  \word{?UB?ANA} - ?ub?ana
  \Word{?UB?ANA} - ?ub?ana
  \WORD{?UB?ANA} - ?UB?ANA

as long as we have utf it's already taken care of

  In Latin transcript (in case you have problems seing some Unicode 
letters):
 
  \word{ljubljana} - ljubljana
  \Word{ljubljana} - Ljubljana
  \WORD{ljubljana} - LJUBLJANA
 
  \word{Ljubljana} - ljubljana
  \Word{Ljubljana} - Ljubljana
  \WORD{Ljubljana} - LJUBLJANA
 
  \word{LJUBLJANA} - ljubljana
  \Word{LJUBLJANA} - Ljubljana
  \WORD{LJUBLJANA} - LJUBLJANA
 
  See also:
 
  http://unicode.org/cldr/data/common/collation/hr.xml
  http://en.wikipedia.org/wiki/Gaj's_Latin_alphabet
 
  {\setcharacterkerning[extrakerning]\input zapf\endgraf }
 
  (That could be backported to XeTeX. I think it enables a similar
  feature now, but I should check.)

hm, i'm not going to backport everything; keep in mind that i these 
features are not font related; actually future mkiv versions will also 
do dynamic feature change so ...

anyhow, ... new upload to play with


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  : 

Re: [NTG-context] Using mswincontext from the command line

2007-08-26 Thread Hans Hagen
Vyatcheslav Yatskovsky wrote:
 Hello,
 
 I'm back with my old problem of using stand-alone windows context within 
 command line.
 
 I was told that it is possible, but I still cannot figure out how. I have 
 mswincontext extracted into drive I:
 
 
 Directory of I:\context
 26.08.2007  18:53DIR  .
 26.08.2007  18:53DIR  ..
 08.08.2007  15:03   206 cscite
 08.08.2007  15:03 2 014 cscite.bat

copy that file, remover the scite startup and run it (in a dos box)

(here I have associated such initialization scripts with the cmd shortcut)


-
   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] Using mswincontext from the command line

2007-08-26 Thread Vyatcheslav Yatskovsky
Hello,

I found that setuptex.bat (like any bat file) sets env. vars only locally in 
WinXp , that is, for current process. Other windows don't see them. TeXLive 
took another approach, of setting  HKEY_CURRENT_USER\Environment  keys, which 
act globally, and that's why it always worked well.

By carefully studying the setuptex.bat, I came to the following registry entries

[screeshot attached]

But, in spite of endlesless remaking of format files, I always get the error 
whenever I compile anything:

TeXExec | processing document 'FMHelp.tex'
TeXExec | no ctx file found
TeXExec | tex processing method: context
TeXExec | TeX run 1
TeXExec | writing option file FMHelp.top
TeXExec | using randomseed 1139
TeXExec | tex engine: luatex
TeXExec | tex format: cont-en

LuaTools | using format name /cont-en.fmt
LuaTools | no luc/lua with name /cont-en
LuaTools | 
LuaTools | runtime: 0.031 secondsTeXUtil | parsing file FMHelp.tui
TeXUtil | shortcuts : 0
TeXUtil | expansions: 0
TeXUtil | reductions: 0
TeXUtil | divisions : 0
TeXUtil | loaded files: 1
TeXUtil | temporary files: 0
TeXUtil | commands: 18
TeXUtil | programs: 0
TeXUtil | tuo file saved
TeXExec | runtime: 0.218


I'm convincied that I captured all env vars, and that's was right direction, 
because I have some progress up to the final point where it all fails! Why?

Best,
Vyatcheslav
attachment: 2007-08-26_222822.png___
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] missing *8t.tfm files

2007-08-26 Thread Aditya Mahajan
On Sun, 26 Aug 2007, Hans Hagen wrote:

 Giorgos Keramidas wrote:
 Hi all,

 I've recently started reading about typefaces in ConTeXt, and trying out
 the examples of `showfont.pdf', but stumbled upon errors for almost all
 the fonts.

 don't use tetex, use tex live or take one of the more recent packages
 (see wiki)

 you've probably chosen an encoding that has no matching tfm files in the
 distribition

 (\setupencoding[default=ec] may help)

You can also try adding either

\usetypescript[berry][ec]
or
\usetypescript[adobekb][ec]

See http://pragma-ade.com/general/technotes/tfmetrics.pdf for the 
reasons for different font encodings.

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] Using mswincontext from the command line

2007-08-26 Thread Aditya Mahajan
On Sun, 26 Aug 2007, Vyatcheslav Yatskovsky wrote:

 Hello,

 I found that setuptex.bat (like any bat file) sets env. vars only locally in 
 WinXp , that is, for current process. Other windows don't see them. TeXLive 
 took another approach, of setting  HKEY_CURRENT_USER\Environment  keys, which 
 act globally, and that's why it always worked well.

 By carefully studying the setuptex.bat, I came to the following registry 
 entries

 [screeshot attached]

 But, in spite of endlesless remaking of format files, I always get the error 
 whenever I compile anything:

Did you run

luatools --generate

and then

texexec --make --all --lua


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
___


[NTG-context] lilypond

2007-08-26 Thread Hans Hagen
Mojca,

cn you check this module for things like

\leavevmode%
\newdimen\FigWidth
\FigWidth=\figurewidth
\ifdim\FigWidth\localhsize
\!!dimena=\localhsize
\advance\!!dimena by-\FigWidth
\noindent\hskip\!!dimena
\fi

(1) defining dimens this way will create new ones every time since 
registers are defined global

(2) there is no need for the intermediate dimen anyway

(3) use dontleavehmode instead of leavevmode

(4) things can be simplified to:


\ifdim\figurewidth\localhsize
   \dontleavehmode\hskip\dimexpr\localhsize-\figurewidth\relax
\fi

-
   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] Wanting Lilipond

2007-08-26 Thread Mojca Miklavec
On 8/26/07, Arthur Reutenauer wrote:
  But I do use MarkIV. I cannot take Mojca file because don't know where. :)

On http://wiki.contextgarden.net/LilyPond you can find some
information. You need to place t-lilypond.tex to a curent folder or to
[place where your tex installation resides]/tex/context/third/ and run
mktexlsr (and/or luatools --generate, I'm not sure).

Only add an additional line after this one:
\def\PDF{texmfstart --ifchanged=\lily!filename.eps pstopdf \lily!filename.eps}
\ifx\savebuffer\undefined \else \savebuffer[lilypond-\the\lily!figures]\fi

Actually Hraban is in charge for doing uploading a new version to the garden

   It's t-lilypond.tex you mentioned. Sent by Mojca to the list at 10:35:17 CET
 today, and it works fine with Mark IV (thanks, Mojca :-).

You should express your thanks to Hans, not to me, because he wrote
the patch, I only applied it at the right place.

(I didn't test yet, but I would bet that at least R, VIM and some
other modules fail in the same way as well.)


I now tried to generate a new documentation with --module, but
interestingly LuaTeX fails at

! Undefined control sequence.
\beginofpretty [#1]-\startcolormode
 {\prettypalet :#1}
l.3 \bop[prettytwo]
   \char92 unprotect\eop
\nododowithbuffer ...ua {buffers.type(_typing_)}
  \endofverbatimlines \getva...
l.73 \stopdefinition

?

and pdfTeX fails at

systems : begin file texexec at line 4
(./t-lilypond.ted
system  : module lilypond loaded
(./t-lilypond.tex) (./texexec-sample.tmp
! Undefined control sequence.
\dosavebuffer [#1]-\ctxlua
{buffers.save(#1)}
\dodostartlilypond ...ilypond-\the \lily!figures ]
  \fi \ifeof 18 \installprog...
l.12 \stoplilypond

?

Don't ask me why it works when used as a module, but fails when module
documentation has to be typeset.

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
___


[NTG-context] subsection number independent of section

2007-08-26 Thread Michael

Hi, I am trying to write up a legal document, in which I want the numbers
for section and subsection look like:

,
| I. A Section Title
| 
| A. A Subsection Title
`


So far, I can only get 

,
| I. A Section Title
| 
| I.A. A Subsection Title
`

Commend used:

\setupsection[section-3][conversion=Romannumerals]
\setuplabeltext[section={{},{.}}]
\setuphead[section]
  [style=bold,alternative=normal,textcommand=\uppercase]
\setupsection[section-4][conversion=Character]

How can I get what I need?  Thanks.

Michael

___
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] Lilypond MKIV, pstopdf, sysctl errors?

2007-08-26 Thread David Wooten
Greetings all,

In trying to run Mojca's latest Lilypond extension with MKIV (on an  
Intel Mac), I've been receiving the errors after pstopdf is run,  
which I've never seen before:

***

sysctlbyname_with_pid: sysctl  failed:Operation not permitted
is_pid_native: sysctlbyname_with_pid  failed:Operation not permitted

***

This is from near the bottom of the log file (included below). These  
errors do not always appear, but once they start, they don't go away.

Furthermore, I receive the message:

2007-08-26 16:36:16.584 open[2988] No such file: /Users/wooten/ 
Desktop/Test/LilyLua-lilypond-1.pdf

When it does actually exist, and I have to run texmfstart again to  
get a changed PDF.

I can't find much on the sysctl errors. Anyone see a possible  
connection?

Best,
David

***

texmfstart texexec --pass=\'-halt-on-error -file-line-error\'  
LilyLua.tex

TeXExec | processing document 'LilyLua.tex'
TeXExec | no ctx file found
TeXExec | tex processing method: context
TeXExec | TeX run 1
TeXExec | writing option file LilyLua.top
TeXExec | using randomseed 1137
TeXExec | tex engine: luatex
TeXExec | tex format: cont-en
This is luaTeX, Version 3.141592-beta-0.10.1-2007072304 (Web2C 7.5.6)
(./LilyLua.texMissing script file


ConTeXt  ver: 2007.08.26 21:41 MKIV  fmt: 2007.8.26  int: english/ 
english

language: language en is active
system  : cont-new loaded
(/Users/wooten/conTeXt/tex/texmf-local/tex/context/base/cont-new.tex
systems : beware: some patches loaded from cont-new.tex
(/Users/wooten/conTeXt/tex/texmf-local/tex/context/base/cont- 
new.mkiv) (/Users/wooten/conTeXt/tex/texmf-local/tex/context/base/ 
cont-mtx.tex))
system  : cont-old loaded
(/Users/wooten/conTeXt/tex/texmf-local/tex/context/base/cont-old.tex
loading : Context Old Macros
)
system  : cont-fil loaded
(/Users/wooten/conTeXt/tex/texmf-local/tex/context/base/cont-fil.tex
loading : Context File Synonyms
)
system  : cont-sys loaded
(/Users/wooten/conTeXt/tex/texmf-local/tex/context/user/cont-sys.tex)
bodyfont: 12pt rm is loaded
language: patterns nl-default:default-1-2:3 fr- 
 default:default-2-2:3 de-default:default-3-2:3 it- 
 default:default-4-2:3 pt-default:default-5-2:3 hr- 
 default:default-6-2:3 pl-default:default-7-2:3 cz- 
 default:default-8-2:3 sk-default:default-9-2:3 sl- 
 default:default-10-2:3 ru-default:default-12-2:3 en- 
 default:default-13-2:3 uk-default:default-14-2:3 us- 
 default:default-[13]-2:3 agr-default:default-15-2:3 da- 
 default:default-16-2:3 sv-default:default-17-2:3 af- 
 default:default-[1]-2:3 no-default:default-18-2:3 deo- 
 default:default-19-2:3 es-default:default-20-2:3 ca- 
 default:default-21-2:3 la-default:default-22-2:3 ro- 
 default:default-23-2:3 tr-default:default-24-2:3 fi- 
 default:default-26-2:3 hu-default:default-27-2:3 loaded
specials: tex,postscript,rokicki loaded
system  : LilyLua.top loaded
(./LilyLua.top
specials: loading definition file tpd
(/Users/wooten/conTeXt/tex/texmf-local/tex/context/base/spec-tpd.tex
specials: loading definition file fdf
(/Users/wooten/conTeXt/tex/texmf-local/tex/context/base/spec-fdf.tex  
(/Users/wooten/conTeXt/tex/texmf-local/tex/context/base/spec-fdf.mkiv))
specials: fdf loaded
)
specials: fdf,tpd loaded
)
system  : module lilypond loaded
(/Users/wooten/conTeXt/tex/texmf-local/tex/context/third/t- 
lilypond.tex) (./LilyLua.tuo) (./LilyLua.tuo)
systems : begin file LilyLua at line 5
(/Users/wooten/conTeXt/tex/texmf-local/tex/context/sample/knuth.tex){/ 
Users/wooten/conTeXt/tex/texmf-local/fonts/map/pdftex/context/ 
original-empty.map}{/Users/wooten/conTeXt/tex/texmf/fonts/map/dvips/ 
lm/lm-texnansi.map}{/Users/wooten/conTeXt/tex/texmf-local/fonts/map/ 
pdftex/context/original-base.map}{/Users/wooten/conTeXt/tex/texmf/ 
fonts/map/dvips/lm/lm-ec.map}{/Users/wooten/conTeXt/tex/texmf/fonts/ 
map/dvips/lm/lm-math.map}{/Users/wooten/conTeXt/tex/texmf/fonts/map/ 
dvips/lm/lm-rm.map}{/Users/wooten/conTeXt/tex/texmf-local/fonts/map/ 
pdftex/context/original-ams-base.map}{/Users/wooten/conTeXt/tex/texmf- 
local/fonts/map/pdftex/context/original-ams-euler.map}{/Users/wooten/ 
conTeXt/tex/texmf-local/fonts/map/pdftex/context/original-public- 
lm.map} ./LilyLua-lilypond-1.pdf
figures : dimensions of LilyLua-lilypond-1.pdf loaded from  
figurefile itself

Overfull \hbox (6.83257pt too wide) in paragraph at lines 16--17
[][][]
lua : input load time - 0.040 seconds
lua : fonts load time - 1.030 seconds
lua : mps conversion time - 0.000 seconds
lua : node processing time - 0.000 seconds
lua : attribute processing time - 0.010 seconds
lua : used config path - /Users/wooten/conTeXt/tex/texmf{- 
local,}/web2c
lua : used cache path - /Users/wooten/.conTeXt-temp/ 
luatex-cache/context/613f059707fe40567271dc8baeac0123
lua : 

Re: [NTG-context] subsection number independent of section

2007-08-26 Thread Idris Samawi Hamid
Hi,

On Sun, 26 Aug 2007 17:02:59 -0600, Michael [EMAIL PROTECTED] wrote:

 ,
 | I. A Section Title
 |
 | A. A Subsection Title
 `


 So far, I can only get

 ,
 | I. A Section Title
 |
 | I.A. A Subsection Title
 `

 Commend used:

 \setupsection[section-3][conversion=Romannumerals]
 \setuplabeltext[section={{},{.}}]
 \setuphead[section]
   [style=bold,alternative=normal,textcommand=\uppercase]
 \setupsection[section-4][conversion=Character]

Why do you need literal subsections? Why not roll your own section in  
tandem with \section?

The following produces what you want:


\setuphead[section][conversion=Romannumerals]
\definehead[SUBsection][section]
\setuphead[SUBsection][conversion=Character]

\setuplabeltext[section={{},{.}}]
\setuplabeltext[SUBsection={{},{.}}]

\starttext

\section{A Section Title}

\SUBsection{A Subsection Title}

\stoptext


-- 
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
___
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] Lilypond MKIV, pstopdf, sysctl errors?

2007-08-26 Thread Mojca Miklavec
On 8/27/07, David Wooten wrote:
 Greetings all,

 In trying to run Mojca's latest Lilypond extension with MKIV (on an
 Intel Mac), I've been receiving the errors after pstopdf is run,
 which I've never seen before:

 ***

 sysctlbyname_with_pid: sysctl  failed:Operation not permitted
 is_pid_native: sysctlbyname_with_pid  failed:Operation not permitted

 ***

According to google this seems to be mac-specific problem, and the
first think that comes to my mind are problems with GhostScript during
conversion. 
(http://developer.apple.com/documentation/MacOSX/Conceptual/universal_binary/universal_binary.pdf)

How did you install GhostScript?
Try which gs, gs --version and gs alone to check some more
details about the version.

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
___


[NTG-context] Digraphs ij, nj, lj, ch, ... (was: new upload)

2007-08-26 Thread Mojca Miklavec
On 8/26/07, Hans Hagen wrote:

 anyhow, ... new upload to play with

Thanks! Ljigatures work much better now ;), but \word lost its
functionality, it seems.

   - LM doesn't have any lj, nj, dz, dž, ... (probably another request
   for the Polish guys)

 hm, just write a small proposal ...

I already did.

 however, dealing with non present chars is to be dealt with anyway

   - It would be great if MK IV did the trasformation from digraphs to
   normal letters in case those digraphs are not present in the font
   itself (for ij, lj, nj, dz, dž, ... just as it would be great if
   ccaron was automatically composed out of c and caron if the letter
   wasn't present in that font).

 \definefontfeature
 [test][mode=node,language=dflt,script=latn,complement=yes]

 {\font\test = lmtypewriter8-regular*test at 12.3pt \test ljubljana
 Ljubljana  LJUBLJANA }

 currently the complement only replaces LATIN/compat combinations (see
 char-def.lua)

(encoding in email screwed up a bit, but no problem)

Great! This works perfect!

It works as expected for fonts with no such glyphs (and could/should
be added to default font features in my opinion). When tested with
fonts including original glyphs (I was testing with IJ), the original
glyph was used, so that was perfectly OK.

   Visually there is probably no difference in plain text, except in
   exactly the cases for which you're sending the tests (that's casing
   and spacing). See http://en.wikipedia.org/wiki/Gaj's_Latin_alphabet
   how the word MJENJACNICA is split into letters.
   Normal people still type n+j in text, not the digraph ? (nj), but in
   case you get some text with those digraphs which are valid Unicode
   letters, it would be nice if they were processed ...

 dealing with n+j in text is too dangerous to catch, unless we start
 implementing complex language depenent replacements, and even then it's
 messy (what to do when one really wants a nj (two char)) ... so, thos
 old docs can best be converted to proper utf then

Hmmm ... pdfTeX with LM already replaces all occurencies of ij with an
ij ligature (noticed when I took a look at the strange kerning between
the two letters - not present with CM). :-Z

Consider the desired output of
\Word{ijsselmeer} % example taken from wikipedia, I don't speak
Dutch yet ;-)
when writing in Dutch. (\mainlanguage[nl], not when writing in English)
One might like to treat every ij as a single letter and then convert
both I and J to uppercase when asked for that.

I read that Dutch keyboard includes the ij digraph (ij), but the
Croatian/Serbian keyboards don't include those digraphs and none of
the cp1250 and iso-8859-2 encodings have it, so everyone writes with
plain latin letters - I doubt that anyone uses digraphs at all. (It
would be almost as obscure and inconvenient to write them as if
someone tried to write with fi unicode ligatures.)

Yet the third group of people are the Czech/Slovaks with their digraph
ch. (You probably remember that one since you had to implement
sorting rules for them for every variant and version of the sorting
mechanism you have ever written.) Unicode doesn't even have place for
it (http://unicode.org/faq/ligature_digraph.html).

In Croatian, nj is always considered to be a single letter. (Even in
foreign words, you would see Isak Njutn [Nj-u-t-n] or Ajnštajn, so
basically no worries about exceptions. Even if there would be some,
one could always say {\language[en] a foreign word with nj})

   Another few observations:
   - \word doesn't work in XeTeX

 no, neither in pdftex i think; new

Currently it doesn't even work in luatex any more :-(

   - What exactly is \Words supposed to do (with non-first letters in a
 word)?

 make first chars uppercase but only when the next is a char; (i changed
 it a bit, defs were not seen (overloaded later by macros)

   An extra challenge would be to get this work (but unless some Croats
   ask you for that or unless you have too much time left, don't bother
   about that - it needs slightly more than only lccode and uccode of a
   letter since there are three forms: one for lowercase [ljubljana -
   lj], one for all-uppercase words [LJUBLJANA - LJ] and one for the
   first letter of a word starting with an uppercase [Ljubljana - Lj]):
  
   In Unicode:
  
   \word{?ub?ana} - ?ub?ana
   \Word{?ub?ana} - ?ub?ana
   \WORD{?ub?ana} - ?UB?ANA
  
   \word{?ub?ana} - ?ub?ana
   \Word{?ub?ana} - ?ub?ana
   \WORD{?ub?ana} - ?UB?ANA
  
   \word{?UB?ANA} - ?ub?ana
   \Word{?UB?ANA} - ?ub?ana
   \WORD{?UB?ANA} - ?UB?ANA

 as long as we have utf it's already taken care of

It's not.

In contrary (written in latin without ligatures):
\WORD{Lj} - LJ (let's say it's OK)
\WORD{LJ} - Lj (wrong)

\word lost it's functionality, so I cannot check.

The main problem is that:
- ligature lj is always lowercase
- ligature Lj is uppercase, but only at the beginning of a word where
other letters are lowercase (Ljubljana)
- ligature LJ is uppercase, but only at the beginning of a 

Re: [NTG-context] String in Luatex

2007-08-26 Thread luigi scarso
On 8/26/07, Hans Hagen [EMAIL PROTECTED] wrote:
 luigi scarso wrote:
  The following macro is wrong:
  \def\TestC{%
  \directlua0{%
  \obeyspaces \obeylines

 hm, you want to expand this kin dof stuff inside the directlua?
As a last resorse to preserve spaces
  I must preserve spaces and newlines.
 
  Any idea ?

 just use

 \startluacode

 \stopluacode

No, it doesn't work for my needs because it doesn't preserve spaces and newline.
This works, after putting code in testD.lua
\def\TestD#1{%
\directlua0{dofile('testD.lua')}%
}



-- 
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
___
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] Lilypond MKIV, pstopdf, sysctl errors?

2007-08-26 Thread David Wooten

On Aug. 26, 2007, at Aug 26, 6:44 PM, Mojca Miklavec wrote:

 On 8/27/07, David Wooten wrote:
 Greetings all,

 In trying to run Mojca's latest Lilypond extension with MKIV (on an
 Intel Mac), I've been receiving the errors after pstopdf is run,
 which I've never seen before:

 ***

 sysctlbyname_with_pid: sysctl  failed:Operation not permitted
 is_pid_native: sysctlbyname_with_pid  failed:Operation not permitted

 ***

 According to google this seems to be mac-specific problem, and the
 first think that comes to my mind are problems with GhostScript during
 conversion. (http://developer.apple.com/documentation/MacOSX/ 
 Conceptual/universal_binary/universal_binary.pdf)

 How did you install GhostScript?
 Try which gs, gs --version and gs alone to check some more
 details about the version.

It seems most likely that I installed GhostScript via Gerben's i- 
installer.

 From apple's Terminal.app:

***

~ $ which gs
/usr/local/bin/gs

~ $ gs --version
8.57

~ $ gs
GPL Ghostscript 8.57 (2007-05-11)
Copyright (C) 2007 artofcode LLC, Benicia, CA.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.

***

Best,
David







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