Re: [NTG-context] Alignment of Itemize

2008-05-15 Thread Olivier Guéry
On Thu, May 15, 2008 at 8:42 AM, Wolfgang Schuster
[EMAIL PROTECTED] wrote:
 On Wed, May 14, 2008 at 10:36 PM,  [EMAIL PROTECTED] wrote:

 I have put this in my source file:

 \startitemize[R][4*broad,stopper=---]

 \startitemize[R,4*broad][stopper=---]

 And in the output the m rule (---) was overlapped by the roman
 numeral. By the way I would like to align the roman numeral to the
 right more or less like this (it is difficult to do in text format)

 I --- blablablablablablabla
II --- blablablablablablabla
   III --- blablablablablablabla
   IV --- blablablablablablabla

 V --- blablablablablablabla
VI --- blablablablablablabla
   VII --- blablablablablablabla

 VIII ---  blablablablablablabla

 Thank you very much for your help

 \starttext
 \startitemize[R,fit][itemalign=flushright,stopper={ --- }]
 \dorecurse{8}{\item blablabla}
 \stopitemize
 \stoptext


Damned :o) Is there something ConTeXt can't do ?

Cheers,
Olivier.

-- 
[Message tapé sur un clavier Bépo : http://www.clavier-dvorak.org ]
Olivier [EMAIL PROTECTED] http://nemolivier.blogspot.com
___
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] Alignment of Itemize

2008-05-15 Thread Wolfgang Schuster
On Wed, May 14, 2008 at 10:36 PM,  [EMAIL PROTECTED] wrote:

 I have put this in my source file:

 \startitemize[R][4*broad,stopper=---]

\startitemize[R,4*broad][stopper=---]

 And in the output the m rule (---) was overlapped by the roman
 numeral. By the way I would like to align the roman numeral to the
 right more or less like this (it is difficult to do in text format)

 I --- blablablablablablabla
II --- blablablablablablabla
   III --- blablablablablablabla
   IV --- blablablablablablabla

 V --- blablablablablablabla
VI --- blablablablablablabla
   VII --- blablablablablablabla

 VIII ---  blablablablablablabla

 Thank you very much for your help

\starttext
\startitemize[R,fit][itemalign=flushright,stopper={ --- }]
\dorecurse{8}{\item blablabla}
\stopitemize
\stoptext

 Armando

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] luatex trunk broken (Re: figure not found box (mkiv))

2008-05-15 Thread Taco Hoekwater

Hi guys,

Hans Hagen wrote:
 now the news
 - no problems with the 0.25.3 release
 
 stick to that release, there is a serious bug someplace in later versions

Thanks for the nice small test file :-)

Just in case there are any people who have not noticed yet:
The luatex trunk is broken at the moment, stay away from it.

I'll try to fix that asap, but I have been offline for two
days (due to network disturbances) so I have quite a bit of
catching up to do.

Best wishes,
Taco

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Uppercase ssharp with XeTeX and LuaTeX

2008-05-15 Thread Taco Hoekwater


Arthur Reutenauer wrote:
 is there a solution for ssharp with XeTeX and LuaTeX, I have a word
 with a ß in it
 which I convert into uppercase letters and the ß remains a lowercase 
 characters.
 
   The problem is that there is no uccode for ß (U+00DF) in char-def.lua
 and that Mark IV has no way of taking care of this for the moment.  But
 there should be, of course.

Actually, a (lua) version of \uppercase that takes Unicode properties
into account (instead of just \uccode values) would be very useful ;-)

Best wishes,
Taco
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] luatex trunk broken (Re: figure not found box (mkiv))

2008-05-15 Thread Peter Rolf
Taco Hoekwater schrieb:
 Hi guys,
 
 Hans Hagen wrote:
 now the news
 - no problems with the 0.25.3 release
 stick to that release, there is a serious bug someplace in later versions
 
 Thanks for the nice small test file :-)
 
you're welcome

 Just in case there are any people who have not noticed yet:
 The luatex trunk is broken at the moment, stay away from it.
 
 I'll try to fix that asap, but I have been offline for two
 days (due to network disturbances) so I have quite a bit of
 catching up to do.

no need to hurry from my side. there are several other issues to fix 
here (just starting with mlib tests).

best wishes, peter

 Best wishes,
 Taco
 
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : https://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___
 

___
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] Uppercase ssharp with XeTeX and LuaTeX

2008-05-15 Thread Hans Hagen
Taco Hoekwater wrote:
 
 Arthur Reutenauer wrote:
 is there a solution for ssharp with XeTeX and LuaTeX, I have a word
 with a ß in it
 which I convert into uppercase letters and the ß remains a lowercase 
 characters.
   The problem is that there is no uccode for ß (U+00DF) in char-def.lua
 and that Mark IV has no way of taking care of this for the moment.  But
 there should be, of course.
 
 Actually, a (lua) version of \uppercase that takes Unicode properties
 into account (instead of just \uccode values) would be very useful ;-)

there is one in teh unicode libs, isn't it?

anyhow, when uppercasing, i also check if the font has the characters

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] a question about ConTeXt + AUCTeX

2008-05-15 Thread Hans Hagen
Dalyoung Jeong wrote:
 Dear all,
 
 Recently I installed Aquamacs Emacs which is nicely working. And I  
 also found AUCTeX macros in the wiki.
 Since I am a newbie to AUCTeX, I don't know how to apply such codes to  
 Aquamacs.
 
 Would someone tell me how to do that?
 
 When I choose PDFConTeXt-encommand  ConTeXt, it runs with the command
 texexec --once --pdf 
 Is there any way to change it to texmfstart texexec ...?

that;s indeed the prefered way to call texexec (more efficient too)


-
   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] getting inside xhtml / mkii

2008-05-15 Thread Jelle Huisman
Hi again,

I'm working on my xhtml file again but somehow I don't get it... 
Consider this bit of xml:

  body class=dicBody
div class=letHead
  div class=letterA a/div

I want to pickup the A a-bit and put it in a \chapter. I tried a good 
number of variations like this:

\defineXMLargument [div] \chapter{\XMLpar{div}{class=letter}{}}

but this does not work. Any hints to solve (and understand!) this would 
be appreciated! Thanks,

Jelle
___
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] a question about ConTeXt + AUCTeX

2008-05-15 Thread Thomas A. Schmitz

On May 15, 2008, at 11:02 AM, Dalyoung Jeong wrote:

 Dear all,

 Recently I installed Aquamacs Emacs which is nicely working. And I
 also found AUCTeX macros in the wiki.
 Since I am a newbie to AUCTeX, I don't know how to apply such codes to
 Aquamacs.

 Would someone tell me how to do that?

 When I choose PDFConTeXt-encommand  ConTeXt, it runs with the  
 command
 texexec --once --pdf 
 Is there any way to change it to texmfstart texexec ...?

 Thank you.

 Dalyoung Jeong

I don't use Aquamacs precisely because I find customizing it more  
difficult than other Carbon Emacsen, but you can try this:

M-x customize-variabel Return
TeX-command-list Return

in the list, scroll down to ConTeXt and change the Command to  
texmfstart texexec %t. You have to make sure yourself that texmfstart  
is in your $PATH and that Aquamaces knows about this $PATH. You can  
also add other commands, I have LuaConTeXt mtxrun --script context  
%t and XeConTeXt texmfstart texexec --xtx %t.

HTH

Thomas
___
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] getting inside xhtml / mkii

2008-05-15 Thread Wolfgang Schuster
On Thu, May 15, 2008 at 1:33 PM, Jelle Huisman [EMAIL PROTECTED] wrote:
 Hi again,

 I'm working on my xhtml file again but somehow I don't get it...
 Consider this bit of xml:

  body class=dicBody
div class=letHead
  div class=letterA a/div

 I want to pickup the A a-bit and put it in a \chapter. I tried a good
 number of variations like this:

 \defineXMLargument [div] \chapter{\XMLpar{div}{class=letter}{}}

 but this does not work. Any hints to solve (and understand!) this would
 be appreciated! Thanks,

You're misusing the div element for something it is not meant, could
you use h1 ... elements in your html and map them to ConTeXt's own
header commands.

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] getting inside xhtml / mkii

2008-05-15 Thread Jelle Huisman
Wolfgang Schuster wrote:
 You're misusing the div element for something it is not meant, could
 you use h1 ... elements in your html and map them to ConTeXt's own
 header commands.
Yes, I know that the xhtml is not very nice (if only I could write my 
own xml...) The situation is that I get this file from a customer and I 
want to avoid having to reformat it (for compatibility reasons). That's 
why I try to make it work, but it seems I'm out of luck here... :-(

Jelle
___
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] getting inside xhtml / mkii

2008-05-15 Thread Wolfgang Schuster
On Thu, May 15, 2008 at 3:27 PM, Jelle Huisman [EMAIL PROTECTED] wrote:
 Wolfgang Schuster wrote:
 You're misusing the div element for something it is not meant, could
 you use h1 ... elements in your html and map them to ConTeXt's own
 header commands.

 Yes, I know that the xhtml is not very nice (if only I could write my
 own xml...) The situation is that I get this file from a customer and I
 want to avoid having to reformat it (for compatibility reasons). That's
 why I try to make it work, but it seems I'm out of luck here... :-(

It's not impossible but a pain to achive with MkII, I made a example
but it did not really woth because the XML-Environment for div is
overloaded with the first chapter and you will loose the selection dependent
on the value for class.

\defineXMLenvironment [div] [class=]
  {%\bgroup
   \processaction
 [\XMLpar{div}{class}{}]
 [letHead=\def\next{\defineXMLargument[div]{\chapter}}]%
   \next}
  {%\egroup
   }

\starttext

\startXMLdata
body class=dicBody
  div class=letHead
div class=letterA a/div
  /div
/body
\stopXMLdata

\stoptext

If you want to do this project you should consider switching
to MkIV with it's XML setups, they are more powerfull in this
case and sometimes easier to write.

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] font tables

2008-05-15 Thread Idris Samawi Hamid
Dear gang,

Is there an available ConTeXt utility for creating font tables for luatex?  
\ShowFont does this for 256-char encodings but we need something to create  
a matrix in pdf through luatex for unicode fonts.

Best wishes
Idris

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

___
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] font tables

2008-05-15 Thread Hans Hagen
Idris Samawi Hamid wrote:
 Dear gang,
 
 Is there an available ConTeXt utility for creating font tables for luatex?  
 \ShowFont does this for 256-char encodings but we need something to create  
 a matrix in pdf through luatex for unicode fonts.

s-fnt-10

-
   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] getting inside xhtml / mkii

2008-05-15 Thread Jelle Huisman

Wolfgang Schuster wrote:

Yes, I know that the xhtml is not very nice (if only I could write my
own xml...) The situation is that I get this file from a customer and I
want to avoid having to reformat it (for compatibility reasons). That's
why I try to make it work, but it seems I'm out of luck here... :-(



It's not impossible but a pain to achive with MkII, 
It is a pain indeed, I'll try and see if I can reformat the file a bit. 
Thanks for your comments, they were helpful,


Jelle
___
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] hack in type-siz

2008-05-15 Thread luigi scarso
\starttext
\definetypeface [boldmath] [mm] [boldmath] [latin-modern] [modern]
[encoding=texnansi]
$a \times b$ $a \boldsymbol{\times} b$
\stoptext
(from core-mat.tex)
gives

? blobpath asked: cmbx7 .otf
? blobpath do: /opt/luatex/tex/texmf-linux (cmbx7 .otf)
? blobpath do: /opt/luatex/tex/texmf-fonts (cmbx7 .otf)
? blobpath do: /opt/luatex/tex/texmf-local (cmbx7 .otf)
?
..
rror  define font: font with name cmbx7  is not found
error  define font: name: cmbx7 , loading aborted
! Font \*boldmath7ptmmmrmm*:=cmbx7  not loadable: metric data not found or bad.



In type-size

\starttypescript [boldmath] [modern,computer-modern,latin-modern] [size]

% hack to prevent mapping of filenames, watch the space!

  \definefontsynonym[xcmb12][cmbx12 ]
  \definefontsynonym[xcmb10][cmbx10 ]
  \definefontsynonym[xcmb9] [cmbx9 ]
  \definefontsynonym[xcmb8] [cmbx8 ]
  \definefontsynonym[xcmb7] [cmbx7 ]
  \definefontsynonym[xcmb6] [cmbx6 ]
  \definefontsynonym[xcmb5] [cmbx5 ]
...

Maybe is just the space
the problem.


-- 
luigi
it's new .
it's powerful .
it's luatex .
http://www.luatex.org
___
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] hack in type-siz

2008-05-15 Thread Hans Hagen
luigi scarso wrote:
 \starttext
 \definetypeface [boldmath] [mm] [boldmath] [latin-modern] [modern]
 [encoding=texnansi]
 $a \times b$ $a \boldsymbol{\times} b$
 \stoptext
 (from core-mat.tex)
 gives
 
 ? blobpath asked: cmbx7 .otf
 ? blobpath do: /opt/luatex/tex/texmf-linux (cmbx7 .otf)
 ? blobpath do: /opt/luatex/tex/texmf-fonts (cmbx7 .otf)
 ? blobpath do: /opt/luatex/tex/texmf-local (cmbx7 .otf)
 ?
 ...
 rror  define font: font with name cmbx7  is not found
 error  define font: name: cmbx7 , loading aborted
 ! Font \*boldmath7ptmmmrmm*:=cmbx7  not loadable: metric data not found or 
 bad.
 
 
 
 In type-size
 
 \starttypescript [boldmath] [modern,computer-modern,latin-modern] [size]
 
 % hack to prevent mapping of filenames, watch the space!
 
   \definefontsynonym[xcmb12][cmbx12 ]
   \definefontsynonym[xcmb10][cmbx10 ]
   \definefontsynonym[xcmb9] [cmbx9 ]
   \definefontsynonym[xcmb8] [cmbx8 ]
   \definefontsynonym[xcmb7] [cmbx7 ]
   \definefontsynonym[xcmb6] [cmbx6 ]
   \definefontsynonym[xcmb5] [cmbx5 ]
 
 
 Maybe is just the space

hm, this is actually a hack that permits loading fonts for math without 
interference; i wonder why it is no lm (i thought that i changed it)

Hans

-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
  | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] hierarchical modes

2008-05-15 Thread Janko Hauser
Hello, I need to prepare a document for different audiences. The  
question here is, how to encapsulate the different parts of the  
document. There are paragraphs which are public, some more which are  
internal and some which are private. People who are in the private  
group should see everything, the group internal only the public parts  
and the internal ones. As far as I see, modes are not additive.
What would be the best way to structure such a document and to style  
the different paragraphs, so that the different audiences see, who can  
read what?

Thanks in advance,

__Janko Hauser
___
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] hierarchical modes

2008-05-15 Thread Hans Hagen
Janko Hauser wrote:
 Hello, I need to prepare a document for different audiences. The  
 question here is, how to encapsulate the different parts of the  
 document. There are paragraphs which are public, some more which are  
 internal and some which are private. People who are in the private  
 group should see everything, the group internal only the public parts  
 and the internal ones. As far as I see, modes are not additive.
 What would be the best way to structure such a document and to style  
 the different paragraphs, so that the different audiences see, who can  
 read what?

\defineblock cum suis ...

quite old stuff btw (reminds me to provide a mkiv variant)

-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
  | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] oldstyle features and typing

2008-05-15 Thread Aditya Mahajan
Hi,

While using oldstyle features with mkiv, -- in a typing environment comes 
out as a endash. I would consider this a bug.

For example:

\setfontfeature{oldstyle}
\starttext
\starttyping
-- A  comment 123
\stoptyping

\stoptext

Another interesting feature is that numbers in the typing environmnet come 
out in oldstyle (they look nice, BTW). This is expected, and can be 
avoided by using a complete typescript and loading tt fonts with fefault 
features, and other with oldstyle features. Nevertheless, I find it to be 
an interesting side effect.

Aditya
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Mkiv and braces

2008-05-15 Thread Aditya Mahajan
On Wed, 14 May 2008, Hans Hagen wrote:

 Aditya Mahajan wrote:
 Hi,

 I am using ConTeXt ver: 2008.05.13, and in mkiv braces seem to gobble the
 next digit. They work fine with mkii.

 Minimal example

 \starttext
 The digits  $\{0,1,2,3,4\}0,1,2,3,4$
 The letters  $\{a,b,c,d\}a,b,c,d$
 \stoptext

 add spaces ...

 function mathematics.mathchar(class,family,slot)
 return (\\omathchar\%X%02X%04X ):format(class,family,slot)
 end
 function mathematics.mathaccent(class,family,slot)
 return (\\omathaccent\%X%02X%04X ):format(class,family,slot)
 end
 function mathematics.delimiter(class,family,slot,largefamily,largeslot)
 return (\\odelimiter\%X%02X%04X\%02X%04X
 ):format(class,family,slot,largefamily,largeslot)
 end

Thanks. Works perfectly.

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] missing btex ..etex in mp figure

2008-05-15 Thread luigi scarso
In

\starttext
\startTEXpage
\startlua
metapost.process(metafun,{beginfig(1);,
a=.7in; b=0.5in;,
z0=(0,0); z1=(a,0); z2=(0,b);,
z0=.5[z1,z3]=.5[z2,z4];,
draw z1..z2..z3..z4..cycle;,
drawarrow z0..z1;,
drawarrow z0..z2;,
label.top(btex $a$ etex, .5[z0,z1]);,
label.lft(btex $b$ etex, .5[z0,z2]);,
endfig;})
\stoplua
\stopTEXpage
\stoptext

there are no labels, but I believe that it's wrong.


-- 
luigi
it's new .
it's powerful .
it's luatex .
http://www.luatex.org
___
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] Keeping a block of text together, without breaking footnotes, etc.

2008-05-15 Thread Daniel Pittman
G'day.

As part of a document I am laying out I have a number of blocks of text
that I want to keep together on a single page -- either all before a
page break or all after it.

I can achieve this using a \vbox, but that has the fairly undesirable
property of also preventing footnotes and, presumably, other ConTeXt
layout from working as expected.

What is the most effective way to achieve this?

A good example of what I want follows; in this I want the entire contact
form there kept as a single block, not split over pages.  The same sort
of situation comes up with some explanatory paragraphs and a yes/no
question section of the form.

\starttext
\dorecurse{10}
{\bf Contact Details}
\starttabulate[|l|p|]
\NC Name: \NC \thinrule \NC \AR
\NC Address:  \NC \thinrules[n=3] \NC \AR
\NC Postcode: \NC \thinrule \NC \AR
\NC Email:\NC \thinrule \NC \AR
\NC Alternate Email:  \NC \thinrule \NC \AR
\NC Phone (BH):   \NC \thinrule \NC \AR
\NC Phone (AH):   \NC \thinrule \NC \AR
\NC Mobile:   \NC \thinrule \NC \AR
\stoptabulate
\starttabulate[|p|l|]
\NC Can this contact authorise work?   \NC YES / NO \NC \AR
\NC Can this contact authorise changes to this agreement?   \NC YES / NO \NC \AR
\NC Can we contact this person in an emergency?\NC YES / NO \NC \AR
\stoptabulate
\par}
\stoptext


I would rather have under-full pages than split the blocks of text --
and I definitely want to preserve the ability to insert footnotes into
the running text, to clarify some of the terms or options.

Regards,
Daniel
___
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
___