Re: [NTG-context] Issue with \setupinterlinespace

2010-05-15 Thread Wolfgang Schuster

Am 15.05.10 00:23, schrieb Khaled Hosny:

On Fri, May 14, 2010 at 03:20:21PM +0200, luigi scarso wrote:
   

On Fri, May 14, 2010 at 3:15 PM, Khaled Hosnykhaledho...@eglug.org  wrote:
 

I see, in the wiki:

   height: ration|size of strut (e.g. 0.72 or 9pt)
   depth:  ration|size of strut (e.g. 0.28 or 3pt)

And I assumed .7em is comparable to 9pt, how it is different? Using
points gives the same error.
   

use *numbers*, not *dimensions*

height  number
depth   number
linedimension
top number
bottom  number
 

Ah, didn't notice that, but this contradicts the description (or I'm
severely confused).
   


The description on the wiki is wrong, accept this. The others told
you height and depth to use number because the values are fraction
of the line height.

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


Re: [NTG-context] installing metauml in context

2010-05-15 Thread Taco Hoekwater


Hi,

The attached file runs without errors for me in mkiv (latest beta,
 2010.05.14 15:26 MKIV). However, note the following:

1. I had to add loading of 8r-base.map for the rptmr font
2. The placement of the text strings is wrong (probably related)

Best wishes,
Taco

Shiv Shankar Dayal wrote:

Hi,


I am running ConTeXt mark IV. I need to use metauml for my work.
However, I could not get it installed. Please help. The install file
which comes with it does not work for context.

more info needed .. test file and so

Hans


Sorry about this. Following is from a file for which I took the code from
mailing list itself.

\chapter{Diameter Finite State Machine}
The state machine of the diameter base protocol implementation will observer
following state machine.
\startMPinclusions
input metauml;
\stopMPinclusions
\startuseMPgraphic{xx}

save A;
save B;
Class.A(Point)
   (+x: int,
+y: int) ();

Class.B(Circle)
   (radius: int)
   (+getRadius(): int,
+setRadius(r: int):void);

topToBottom(45)(A, B);

drawObjects(A, B);

clink(aggregationUni)(A, B);

\stopuseMPgraphic

\placefigure[here][fig:xx]{xx}{\useMPgraphic{xx}}

This is included in starttext block.

For verbosity I am also giving you some errors.

 Isolated expression.
to be read again
   (
*  save A; save B; Class.A(
 Point) (+x: int, +y: int) (); Class.B(Ci...

! Extra tokens will be flushed.
to be read again
   (
*  save A; save B; Class.A(
 Point) (+x: int, +y: int) (); Class.B(Ci...


Class.B

! Isolated expression.

Best regards,
Shiv Shankar Dayal
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___




meta.tex
Description: TeX document


meta.pdf
Description: Adobe PDF 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] MKIV numbering

2010-05-15 Thread Taco Hoekwater

richard.steph...@converteam.com wrote:

Hello,

Does anyone else  have the following problems with numbering for figures, 
equations etc in MKIV


1. Using \setupnumbering[way=bysection] does not work


From the mkiv source, it looks like the inheritance is disabled at the
moment for some reason (code is commented out).

Explicit setting of :

  \setupcaptions[way=bysection]
  \setupformulas[way=bysection]

works.

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


Re: [NTG-context] MKIV numbering

2010-05-15 Thread Hans Hagen

On 15-5-2010 8:58, Taco Hoekwater wrote:

richard.steph...@converteam.com wrote:

Hello,

Does anyone else have the following problems with numbering for
figures, equations etc in MKIV

1. Using \setupnumbering[way=bysection] does not work


 From the mkiv source, it looks like the inheritance is disabled at the
moment for some reason (code is commented out).

Explicit setting of :

\setupcaptions[way=bysection]
\setupformulas[way=bysection]

works.


true, i'm still not sure how to deal with a document wide default (where 
and what) .. eventually there will be something


Hans

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


Re: [NTG-context] installing metauml in context

2010-05-15 Thread Hans Hagen

On 15-5-2010 5:08, Shiv Shankar Dayal wrote:

Hi,


I am running ConTeXt mark IV. I need to use metauml for my work.
However, I could not get it installed. Please help. The install file
which comes with it does not work for context.


more info needed .. test file and so

Hans


Sorry about this. Following is from a file for which I took the code from
mailing list itself.


Sorry to bother you  people. It is a pain to waste time like this.
Since metaobj works
with context I will extend and use it to draw UML diagrams. I just
thought that since
it is mentioned as a package at contextgarden I was hoping that it
will work out of the
box.


\startMPinclusions
string metauml_defaultFont; metauml_defaultFont 
:= \truefontname{Serif} ;
string metauml_defaultFontOblique ; metauml_defaultFontOblique 
:= \truefontname{SerifItalic} ;
string metauml_defaultFontBold; metauml_defaultFontBold 
:= \truefontname{SerifBold} ;
string metauml_defaultFontBoldOblique ; 
metauml_defaultFontBoldOblique := \truefontname{SerifBoldItalic} ;


input metauml;
\stopMPinclusions

At least prevents the error but alignment is weird. Some pseudo 
typesetting is going on and the quality is suboptimal then (after all mp 
just pastes glyphs then). Take this:


Class.A (Point) (+x: int, +y: int) ();

It's probably no big deal for the author to support pictures instead of 
strings


Class.A (Point) (btex +x: int etex, +y: int) ();

Class.A (Point) (textext(+x: int), +y: int) ();

It's probabaly already possible somehow but i have no time to look into 
the code in detail now.


Hans

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


[NTG-context] \autoinsertnextspace in MKIV?

2010-05-15 Thread Bernhard Rosensteiner
Hi all,

does anybody know if there is an replacement of \autoinsertnextspace in MKIV. I 
use it a lot in my macros. Until now i copied the macrodefinition from the MKII 
source in my document, but i think it would be nice if the macro is „out of my 
eyes“.

best regards
Bernhard



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


[NTG-context] czech sorting in MiIV

2010-05-15 Thread Tomáš Pustelník
Hi,
is czech sorting in MkIV working? When I tried it with this code:

\mainlanguage[cz]
\enableregime [utf-8]

\starttext
\setupregister[index][language=cz]

\index{chobot}chobot 
\index{áro}áro 
\index{akát}akát 
\index{Áčko}Áčko 
\index{astma}astma 
\index{ámerika}ámerika 
\index{arábie}arábie 
\index{Árun}Árun 
\index{žába}žába 
\index{cibule}cibule 
\index{čára}čára 
\index{bomba}bomba 
\index{Auto}Auto
\index{arek}arek

\placeindex
\stoptext

ConTeXt sorted only letters without accent and rest of the words just put 
before index without any kind of sorting, also accented characters inside words 
are sorted wrong way. Is it just me or the sorting is really broken? Is there 
some text how to do sorting in MkIV so I can fix it, or I just need to follow 
rest of the sort-lan.lua to write sorting rules?

Also in MkII what commands \exportsortreduction and \exportsortshortcut do? I 
couldn't figured it out from source codes.

Thanks 

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


Re: [NTG-context] \autoinsertnextspace in MKIV?

2010-05-15 Thread Hans Hagen

On 15-5-2010 12:59, Bernhard Rosensteiner wrote:

Hi all,

does anybody know if there is an replacement of \autoinsertnextspace in MKIV. I 
use it a lot in my macros. Until now i copied the macrodefinition from the MKII 
source in my document, but i think it would be nice if the macro is „out of my 
eyes“.


i'll add a mkiv variant to the beta so that you can do

\setupsorting[logo][next=\autoinsertnextspace]

\starttext

bla \TEX\autoinsertnextspace bla
bla \TEX\autoinsertnextspace (bla)
bla (\TEX\autoinsertnextspace) bla
bla \TEX\autoinsertnextspace\ bla

\usemodule[abr-01]

bla \TEX bla
bla \TEX (bla)
bla (\TEX) bla
bla \TEX\ bla

\stoptext

(beta will be uploaded later)

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


Re: [NTG-context] czech sorting in MiIV

2010-05-15 Thread Hans Hagen

On 15-5-2010 2:49, Tomáš Pustelník wrote:

Hi,
is czech sorting in MkIV working? When I tried it with this code:

\mainlanguage[cz]
\enableregime [utf-8]

\starttext
\setupregister[index][language=cz]

\index{chobot}chobot
\index{áro}áro
\index{akát}akát
\index{Áčko}Áčko
\index{astma}astma
\index{ámerika}ámerika
\index{arábie}arábie
\index{Árun}Árun
\index{žába}žába
\index{cibule}cibule
\index{čára}čára
\index{bomba}bomba
\index{Auto}Auto
\index{arek}arek

\placeindex
\stoptext

ConTeXt sorted only letters without accent and rest of the words just put 
before index without any kind of sorting, also accented characters inside words 
are sorted wrong way. Is it just me or the sorting is really broken? Is there 
some text how to do sorting in MkIV so I can fix it, or I just need to follow 
rest of the sort-lan.lua to write sorting rules?


sort-lan.lua ... what is the sort order you expect?


Also in MkII what commands \exportsortreduction and \exportsortshortcut do? I 
couldn't figured it out from source codes.


they are methods for influencing the sort order (they write some info to 
the tui/tuio file that is used later on)


Hans

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


[NTG-context] subformulas numbering doesn't work

2010-05-15 Thread Yury G. Kudryashov
Hi!

The following example from http://wiki.contextgarden.net/Math/Display#Sub-
Formula_Numbering doesn't work in MKIV:

\startsubformulas[eq:1]
\placeformula[eq:first]
\startformula
  c^2 = a^2 + b^2
\stopformula
\placeformula[eq:second]
\startformula
c^2 = a^2 + b^2
\stopformula
\stopsubformulas
Formula (\in[eq:1]) states 
the Pythagora's Theorem twice,
once in (\in[eq:first]) and 
again in (\in[eq:second]).

It produces formulas (1.a) and (2).

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


Re: [NTG-context] subformulas numbering doesn't work

2010-05-15 Thread Hans Hagen

On 15-5-2010 4:55, Yury G. Kudryashov wrote:

Hi!

The following example from http://wiki.contextgarden.net/Math/Display#Sub-
Formula_Numbering doesn't work in MKIV:

\startsubformulas[eq:1]
\placeformula[eq:first]
\startformula
   c^2 = a^2 + b^2
\stopformula
\placeformula[eq:second]
\startformula
c^2 = a^2 + b^2
\stopformula
\stopsubformulas
Formula (\in[eq:1]) states
the Pythagora's Theorem twice,
once in (\in[eq:first]) and
again in (\in[eq:second]).

It produces formulas (1.a) and (2).


fixed in next beta (hopefully)

Hans


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


Re: [NTG-context] czech sorting in MiIV

2010-05-15 Thread Tomáš Pustelník



--
From: Hans Hagen pra...@wxs.nl
Sent: Saturday, May 15, 2010 7:26 PM
To: Tomáš Pustelník xpusteln...@seznam.cz
Subject: Re: [NTG-context] czech sorting in MiIV


On 15-5-2010 7:10, Tomáš Pustelník wrote:

I'm using version 2010.05.13 12:15 so if there isn't some special way
how to download beta I should be using lates version. Also in MkIV I set
sorting with this command?


normally the garden is a few hours behind the website

you can fetch the beta from the website and unzip it in texmf-context and 
then run luatools --generate



\enabletrackers[sorters.tests]


just tracking

Thanks, it's working now, but still it sort some words bit different 
compared to MkII. But it's ok for now, I will check czech norm and try to 
fix it if needed.


Also I have question. In my bachelor thesis I'm describe language support 
for ConTeXt and when I tried add some experimental language into ConTeXt (I 
define system constants and add \loadcorefile{lang-exp} to context.mkii and 
context.mkiv) and when generating format for MkII everything was ok but for 
MkIV ConTeXt complained he can't find file lang-exp.tex (I paste it in base 
folder to other source codes). Any idea whats wrong? In MkIV must I change 
something else as well?


Tomas P. 


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


Re: [NTG-context] Chapter headers variation

2010-05-15 Thread pol stra

Maybe this could be done by modify t-lettrine.tex and use a lettrine in the 
header ?
  
_
Hotmail : Simple et Efficace qui vous facilite la vie… Découvrez la NOW 
génération !
http://www.windowslive.fr/hotmail/nowgeneration/___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Chapter headers variation

2010-05-15 Thread Wolfgang Schuster

Am 15.05.10 20:24, schrieb pol stra:
Maybe this could be done by modify t-lettrine.tex and use a lettrine 
in the header ?


untested:

\def\ChapterCommand#1%
  {\doChapterCommand#1\end}

\def\doChapterCommand#1#2\end
  {{\red #1}#2}


\setuphead[chapter][deeptextcommand=\ChapterCommand]


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


Re: [NTG-context] a space after title

2010-05-15 Thread Peter Münster
On Fri, May 14 2010, Marius wrote:

 Thank you, Peter, but there those options come from? I can't find
 distance option here:

I've just guessed... ;)
Cheers, Peter

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


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

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


Re: [NTG-context] czech sorting in MiIV

2010-05-15 Thread Hans Hagen

On 15-5-2010 8:14, Tomáš Pustelník wrote:


Thanks, it's working now, but still it sort some words bit different
compared to MkII. But it's ok for now, I will check czech norm and try
to fix it if needed.


we can support several norms if needed


Also I have question. In my bachelor thesis I'm describe language
support for ConTeXt and when I tried add some experimental language into
ConTeXt (I define system constants and add \loadcorefile{lang-exp} to
context.mkii and context.mkiv) and when generating format for MkII
everything was ok but for MkIV ConTeXt complained he can't find file
lang-exp.tex (I paste it in base folder to other source codes). Any idea
whats wrong? In MkIV must I change something else as well?


Ah .. you look in the wrong spot. There's a file:

  mult-def.lua

and interfaces are defined there. I generate the mult-* files using

  mtxrun interface --context

Now, if you just want to experiment, you need to patch mult-def.lua.

You can make a mult-def-mine.lua:

  local t = require mult-def.lua

  t.commands.framed.xx = frmd

  -- print(table.serialize(t.commands.framed))

  return t

I patched mtx-interface.lua so that you can say;

  mtxrun interface --context mult-def-mine.lua

There is also --messages for the message files.

Of course you have to make a cont-xx.tex file as well.

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
if not modules then modules = { } end modules ['mtx-cache'] = {
version   = 1.001,
comment   = companion to mtxrun.lua,
author= Hans Hagen, PRAGMA-ADE, Hasselt NL,
copyright = PRAGMA ADE / ConTeXt Development Team,
license   = see context related readme files
}

local format = string.format

scripts   = scripts   or { }
scripts.interface = scripts.interface or { }

local flushers  = { }
local userinterfaces= { 'en','cs','de','it','nl','ro','fr','pe' }
local messageinterfaces = { 'en','cs','de','it','nl','ro','fr','pe','no' }

function flushers.scite(interface,collection)
local result, i = {}, 0
result[#result+1] = format(keywordclass.macros.context.%s=,interface)
for _, command in ipairs(collection) do
if i==0 then
result[#result+1] = \\\n
i = 5
else
i = i - 1
end
result[#result+1] = format(%s ,command)
end
io.savedata(format(cont-%s-scite.properties,interface), table.concat(result),\n)
io.savedata(format(cont-%s-scite.lua,interface), table.serialize(collection,true))
end

function flushers.jedit(interface,collection)
local result = {}
result[#result+1] = ?xml version='1.0'?
result[#result+1] = !DOCTYPE MODE SYSTEM 'xmode.dtd'\n
result[#result+1] = MODE
result[#result+1] = \tRULES
result[#result+1] = \t\tKEYWORDS
for _, command in ipairs(collection) do
result[#result+1] = format(\t\t\tKEYWORD2%s/KEYWORD2,command)
end
result[#result+1] = \t\t/KEYWORDS
result[#result+1] = \t/RULES
result[#result+1] = /MODE
io.savedata(format(context-jedit-%s.xml,interface), table.concat(result),\n)
end

function flushers.bbedit(interface,collection)
local result = {}
result[#result+1] = ?xml version='1.0'?
result[#result+1] = keyBBLMKeywordList/key
result[#result+1] = array
for _, command in ipairs(collection) do
result[#result+1]  = format(\tstring\\%s/string,command)
end
result[#result+1] = /array
io.savedata(format(context-bbedit-%s.xml,interface), table.concat(result),\n)
end

function flushers.raw(interface,collection)
for _, command in ipairs(collection) do
logs.simple(command)
end
end

function scripts.interface.editor(editor)
local interfaces= environment.files
if #interfaces == 0 then
interfaces= userinterfaces
end
local xmlfile = resolvers.find_file(cont-en.xml) or 
if xmlfile ==  then
logs.simple(unable to locate cont-en.xml)
end
for _, interface in ipairs(interfaces) do
local keyfile = resolvers.find_file(format(keys-%s.xml,interface)) or 
if keyfile ==  then
logs.simple(unable to locate keys-*.xml)
else
local collection = { }
local mappings   = { }
local x = xml.load(keyfile)
for e, d, k in xml.elements(x,cd:command) do
local at = d[k].at
local name, value = at.name, at.value
if name and value then
mappings[name] = value
end
end
local x = xml.load(xmlfile)
for e, d, k in xml.elements(x,cd:command) do
local 

Re: [NTG-context] czech sorting in MiIV

2010-05-15 Thread Tomáš Pustelník

--
From: Hans Hagen pra...@wxs.nl
Sent: Saturday, May 15, 2010 9:42 PM
To: mailing list for ConTeXt users ntg-context@ntg.nl
Cc: Tomáš Pustelník xpusteln...@seznam.cz
Subject: Re: [NTG-context] czech sorting in MiIV


On 15-5-2010 8:14, Tomáš Pustelník wrote:

Also I have question. In my bachelor thesis I'm describe language
support for ConTeXt and when I tried add some experimental language into
ConTeXt (I define system constants and add \loadcorefile{lang-exp} to
context.mkii and context.mkiv) and when generating format for MkII
everything was ok but for MkIV ConTeXt complained he can't find file
lang-exp.tex (I paste it in base folder to other source codes). Any idea
whats wrong? In MkIV must I change something else as well?


Ah .. you look in the wrong spot. There's a file:

  mult-def.lua

and interfaces are defined there. I generate the mult-* files using

  mtxrun interface --context

Now, if you just want to experiment, you need to patch mult-def.lua.

You can make a mult-def-mine.lua:

  local t = require mult-def.lua

  t.commands.framed.xx = frmd

  -- print(table.serialize(t.commands.framed))

  return t

I patched mtx-interface.lua so that you can say;

  mtxrun interface --context mult-def-mine.lua

There is also --messages for the message files.

Of course you have to make a cont-xx.tex file as well.

Hans


Thank you, this will be handy (actually I was planing to ask about user 
interface as well). But what I had in mind was new language definition (like 
lang-sla, lang-ger and so on), perhaps I could be more precise.


But anyway, thanks. As I said, I will use this as well.

Tomas P. 


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


Re: [NTG-context] \showmathcharacters doesn't work (MacTex 2009)

2010-05-15 Thread Riobard
Hi Otared,

Actually I'm using MKII (ConTeXt + XeTeX). MacTex 2009 (based on Tex
Live 2009) does not produce correct result. I installed ConTeXt
minimals and it worked (again, with XeTeX, so MKII I assume?).


- Riobard

On Fri, May 14, 2010 at 6:43 AM, Otared Kavian ota...@gmail.com wrote:
 Hi Riobard,
 Since math is done differently in mkiv than in mkii, indeed
 \showmathcharacters does not work in mkiv.
 However one can get all the math characters in mkiv in a big list doing the
 following:
  begin showmath.tex
 \doifmode{mkiv}{\usemodule[fnt-25]}
 \starttext
 \doifmodeelse{mkiv}{\showmathfontcharacters}{\showmathcharacters}
 \stoptext
  end showmath.tex
 Then, if using mkiv, in the resulting PDF file you can see all characters
 used in mathmode.
 Best regards: OK
 On 14 mai 2010, at 01:15, Riobard wrote:

 Hi,

 I want to produce a list of math characters for reference. Followed the wiki
 page it's supposed to be a simple call to \showcharacters. But the following
 tex file

 \starttext
 \showmathcharacters
 \stoptext


 produces an empty table. \showcharacters doesn't work either. Any idea why?
 ___
 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  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

 %%
 Otared Kavian
 Département de Mathématiques
 Université de Versailles Saint-Quentin
 Bâtiment Fermat
 45 aveue des Etats Unis
 78035 Versailles cedex
 Téléphone: +33 1 39 25 46 42
 Secrétariat: +33 1 39 25 46 44
 Secrétariat: +33 1 39 25 46 46
 e-mail: otared.kav...@math.uvsq.fr



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


Re: [NTG-context] czech sorting in MiIV

2010-05-15 Thread Aditya Mahajan

On Sat, 15 May 2010, Tomáš Pustelník wrote:

 On 15-5-2010 7:10, Tomáš Pustelník wrote:
  I'm using version 2010.05.13 12:15 so if there isn't some special way
  how to download beta I should be using lates version. Also in MkIV I set
  sorting with this command?

 normally the garden is a few hours behind the website

 you can fetch the beta from the website and unzip it in texmf-context and
 then run luatools --generate

  \enabletrackers[sorters.tests]

 just tracking

Thanks, it's working now, but still it sort some words bit different compared 
to MkII. But it's ok for now, I will check czech norm and try to fix it if 
needed.


Also I have question. In my bachelor thesis I'm describe language support for 
ConTeXt and when I tried add some experimental language into ConTeXt (I 
define system constants and add \loadcorefile{lang-exp} to context.mkii and 
context.mkiv) and when generating format for MkII everything was ok but for 
MkIV ConTeXt complained he can't find file lang-exp.tex (I paste it in base 
folder to other source codes). Any idea whats wrong? In MkIV must I change 
something else as well?


Did you run luatools --generate.

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