Re: [NTG-context] \tfx or \tfxx is fail with nonintegral fonts size

2011-01-08 Thread views63
Thank you, but the macros (\tfx or \tfxx) is worked well in the older
version. why?

--
Best regards,

Huang Ze

2011/1/7 Li Yanrui (李延瑞) liyanrui...@gmail.com

 2011/1/6 views63 view...@gmail.com:
  Hi all,
  I find  the \tfx or \tfxx is fail in nonintegral fonts size  with
 latest
  beta (MKIV), but the \small was worked.
  example:
 
  \starttext
 
  \switchtobodyfont[15.01pt]
 
  \tfxx
 
  test
 
  \switchtobodyfont[15pt]
 
  \tfx
 
  test
 
  \switchtobodyfont[15.01pt]
 
  \small
 
  test
 
  \stoptext
 

 Hi,

 The predefinded size list of body fonts is
 [4pt,5pt,6pt,7pt,8pt,9pt,10pt,11pt,12pt,14.4pt,17.3pt]. If you use the
 size exsisted in this list, the macros such as \tfx and \tfxx works
 can always work. Otherwise you have to define body fonts by yourself.

 --
 Best regards,

 Li Yanrui (李延瑞)

 ___
 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] What has happened to externalfigure command?

2011-01-08 Thread Henning Hraban Ramm

Am 2011-01-06 um 14:40 schrieb Verhaag, G.C.H.M.:

I've a file someplot.1 in a directory called /home/somewhere. The  
ConTeXt source file contains the command:
However, all jpg-type of images that I use in the document - using  
similar commands - are all rendered correctly!


What's the file format of someplot.1? MetaPost, EPS?

Maybe some automatic preprocessing fails. (see also 
http://wiki.contextgarden.net/File_Formats)

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


Re: [NTG-context] What has happened to externalfigure command?

2011-01-08 Thread Verhaag, G.C.H.M.

Henning Hraban Ramm wrote:


Am 2011-01-06 um 14:40 schrieb Verhaag, G.C.H.M.:

I've a file someplot.1 in a directory called /home/somewhere. The  
ConTeXt source file contains the command:
However, all jpg-type of images that I use in the document - using  
similar commands - are all rendered correctly!



What's the file format of someplot.1? MetaPost, EPS?


It was generated with MetaPost about 2 years ago!

Maybe some automatic preprocessing fails. (see also 
http://wiki.contextgarden.net/File_Formats)


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




Regards,
Gerard
___
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] Trying MPtoPDF!

2011-01-08 Thread Verhaag, G.C.H.M.

Hi,

While trying to get some MetaPost plots converted to PDF, with the 
latest ConTeXt minimals installation (MkIV) on my Linux box, things 
happen which I don't understand, sorry!


First I run the command:

mtxrun --script

which yields:

MTXrun | TDS Runner Tool 1.26
MTXrun |
MTXrun | no script name given, known scripts:
MTXrun |
MTXrun | babel 1.20  Babel Input To UTF Conversion
MTXrun | base  1.35  ConTeXt TDS Management Tool
MTXrun | cache 0.10  ConTeXt  MetaTeX Cache Management
MTXrun | chars 0.10  MkII Character Table Generators
MTXrun | check 0.10  Basic ConTeXt Syntax Checking
MTXrun | context   0.51  ConTeXt Process Management
MTXrun | convert   0.10  ConTeXT Graphic Conversion Helpers
MTXrun | fonts 0.21  ConTeXt Font Database Management
MTXrun | grep  0.10  Simple Grepper
MTXrun | interface 0.11  ConTeXt Interface Related Goodies
MTXrun | metatex   0.10  MetaTeX Process Management
MTXrun | modules   1.00  ConTeXt Module Documentation Generators
MTXrun | mptopdf   0.51  MetaPost to PDF Converter
[more is output but NOT listed here!]

When I run

mtxrun --script mptopdf tobeconvertedplot.1

I get the following output:


This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010)
\write18 enabled.

kpathsea: Running mktexfmt mptopdf.fmt
mktexfmt: No such file or directory
I can't find the format file `mptopdf.fmt'!

MPtoPDF 1.4.0 : error while processing tex file

By the way I've NO TeXLive installed!
Why do the MTtoPDF versions (1.4 or 0.5!) not agree, and why does it not 
work?


Do I need to install other tools to get it working?

Regards,
Gerard Verhaag
___
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] Fwd: Re: xml-processing: missing or ungrouped '='

2011-01-08 Thread Achim Jander


Am 07.01.2011 22:52, schrieb Hans Hagen:

 On 7-1-2011 7:04, Achim Jander wrote:


 \startxmlsetups xml:title
 \startchapter[
 \xmlcommand{#1}{.}{xml:splitHeader}


 title=...

Thanks.
So it seems not to be possible, to have the whatever= part inside an
xmlcommand?
I even tried things like

\xmldoifelse{#1}{/num}{\xmlcommand{#1}{/num}{ownnumber=123}}{number=no}

to set either ownnumber or number but with the same error

Achim



 %number=\xmldoifelse{#1}{/num}{yes}{no}, %works
 
%ownnumber=\xmldoifelse{#1}{/num}{\xmlcommand{#1}{/num}{xml:ueberForceFlush}}{},%works


 %title={\xmlflush{#1}},%works


 there's also \xmlraw{#1}{spec} which works nice with tables of content
 as it passes the node id

 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] Fwd: Re: xml-processing: missing or ungrouped '='

2011-01-08 Thread Hans Hagen

On 8-1-2011 11:20, Achim Jander wrote:


Am 07.01.2011 22:52, schrieb Hans Hagen:

On 7-1-2011 7:04, Achim Jander wrote:


\startxmlsetups xml:title
\startchapter[
\xmlcommand{#1}{.}{xml:splitHeader}


title=...

Thanks.
So it seems not to be possible, to have the whatever= part inside an
xmlcommand?
I even tried things like

\xmldoifelse{#1}{/num}{\xmlcommand{#1}{/num}{ownnumber=123}}{number=no}

to set either ownnumber or number but with the same error


the \xmlcommand is completely unrelated to (say) \startchapter

\xmlcommand{node number}{lpath expression}{setup id}

so i have no clue what you want to do with it, unless ownnumber=123 is 
the name of a setup


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] Fwd: Re: xml-processing: missing or ungrouped '='

2011-01-08 Thread Achim Jander

Hi Hans,
sorry, i'll try to make it more clear:

\startbuffer[test]
a
titlesome text/title
bmore text /b
bmore text /b
titlenum333/numsome text/title
bmore text /b
bmore text /b
/a
\stopbuffer

\startxmlsetups xml:testsetups
\xmlsetsetup{\xmldocument}{a|b|title}{xml:*}
\xmlsetsetup{\xmldocument}{num}{-}
\stopxmlsetups

\xmlregistersetup{xml:testsetups}

\startxmlsetups xml:a
\xmlflush{#1}
\stopxmlsetups

\startxmlsetups xml:b
\startparagraph
\xmlflush{#1}
\stopparagraph
\stopxmlsetups

\startxmlsetups xml:ueberForceFlush
  \xmlflush{#1}
\stopxmlsetups

\startxmlsetups xml:getOwnNumber
\xmldoifelse{#1}{/num}{\xmlcommand{#1}{/num}{xml:ueberForceFlush}}{}
\stopxmlsetups

\startxmlsetups xml:title
\startchapter[
%\xmldoifelse{#1}{/num}{ownnumber=\xmlcommand{#1}{/num}{xml:ueberForceFlush}}{number=no}
title={Testcase}
]
\xmlflush{#1}
\stopchapter
\stopxmlsetups

\setupheader[chapter][ownnumber=yes]

\starttext
\xmlprocessbuffer{main}{test}{}
\stoptext

The relevant part is the line I've commented out because of the error.
In the setup xml:title I start the chapter. If the title comes with an 
number-element  I want to set ownnumber=..., but if they have no 
numbers, I want to set number=no
But this approach seems not to work. In my real application the problem 
is, that I have a more complex setting of defining the title=, 
ownnumber= etc attributes, but equal in different
(up to 15) hierarchies. So I tried to call inside the one setup another 
setup which should do the work, but also without success (this was my 
original example).

The plan was to call that setup from each hierarchy to avoid redundancy
It was like

\startxmlsetups xml:title
\startchapter[
%--- here call another template to set title= ownnumber= etc.
]
\xmlflush{#1}
\stopchapter
\stopxmlsetups

Here again the complete example:

\startbuffer[test]
a
titlesome text/title
bmore text /b
bmore text /b
titlenum333/numsome text/title
bmore text /b
bmore text /b
/a
\stopbuffer

\startxmlsetups xml:testsetups
\xmlsetsetup{\xmldocument}{a|b|title}{xml:*}
\xmlsetsetup{\xmldocument}{num}{-}
\stopxmlsetups

\xmlregistersetup{xml:testsetups}

\startxmlsetups xml:a
\xmlflush{#1}
\stopxmlsetups

\startxmlsetups xml:b
\startparagraph
\xmlflush{#1}
\stopparagraph
\stopxmlsetups

\startxmlsetups xml:ueberForceFlush
  \xmlflush{#1}
\stopxmlsetups

\startxmlsetups xml:splitHeader %works not
number=\xmldoifelse{#1}{/num}{yes}{no},
ownnumber=\xmldoifelse{#1}{/num}{\xmlcommand{#1}{/num}{xml:ueberForceFlush}}{}, 


title={\xmlflush{#1}},
\stopxmlsetups


\startxmlsetups xml:title
\startchapter[

%trying to call another template to set
%title=
%ownnumber=
%and other stuff...
\xmlcommand{#1}{.}{xml:splitHeader}


%number=\xmldoifelse{#1}{/num}{yes}{no}, %works
%ownnumber=\xmldoifelse{#1}{/num}{\xmlcommand{#1}{/num}{xml:ueberForceFlush}}{},%works 


%title={\xmlflush{#1}},%works
]
\xmlflush{#1}
\stopchapter
\stopxmlsetups

\setupheader[chapter][ownnumber=yes]

\starttext
\xmlprocessbuffer{main}{test}{}
\stoptext


Thanks you and have a nice Weekend
Achim


Am 08.01.2011 12:15, schrieb Hans Hagen:

On 8-1-2011 11:20, Achim Jander wrote:


Am 07.01.2011 22:52, schrieb Hans Hagen:

On 7-1-2011 7:04, Achim Jander wrote:


\startxmlsetups xml:title
\startchapter[
\xmlcommand{#1}{.}{xml:splitHeader}


title=...

Thanks.
So it seems not to be possible, to have the whatever= part inside an
xmlcommand?
I even tried things like

\xmldoifelse{#1}{/num}{\xmlcommand{#1}{/num}{ownnumber=123}}{number=no}

to set either ownnumber or number but with the same error


the \xmlcommand is completely unrelated to (say) \startchapter

\xmlcommand{node number}{lpath expression}{setup id}

so i have no clue what you want to do with it, unless ownnumber=123 is 
the name of a setup


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] Fwd: Re: xml-processing: missing or ungrouped '='

2011-01-08 Thread Thomas A. Schmitz

On Jan 8, 2011, at 1:39 PM, Achim Jander wrote:

 Hi Hans,
 sorry, i'll try to make it more clear:

Excuse me, your example makes my head spin. Just from looking at it, there 
appears to be a fundamental error: you flush the content of title into a 
context \startchapter \stopchapter environment, AFAICS. But that's not right: 
the title is not the content of the chapter, but just its, errm, title. Can 
this be the reason why your code doesn't work? 

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


Re: [NTG-context] [OT] Public Fonts for Minority Languages of Russia

2011-01-08 Thread Jano Kula

On 01/06/2011 07:25 AM, Martin Schröder wrote:

2011/1/5 Khaled Hosnykhaledho...@eglug.org:

On Wed, Jan 05, 2011 at 10:35:46PM +0100, luigi scarso wrote:

Fast Web View : Yes
How did you done with mkiv ?


pdfopt from GS?


qpdf is MUCH better...


Thanks, Martin, good tip.

Jano

___
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] [OT] Public Fonts for Minority Languages of Russia

2011-01-08 Thread Khaled Hosny
On Thu, Jan 06, 2011 at 07:25:42AM +0100, Martin Schröder wrote:
 2011/1/5 Khaled Hosny khaledho...@eglug.org:
  On Wed, Jan 05, 2011 at 10:35:46PM +0100, luigi scarso wrote:
  Fast Web View : Yes
  How did you done with mkiv ?
 
  pdfopt from GS?
 
 qpdf is MUCH better...

I take your word on this, but out of curiosity, better in what sense?

Regards,
 Khaled

-- 
 Khaled Hosny
 Arabic localiser and member of Arabeyes.org team
 Free font developer
___
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] [OT] Public Fonts for Minority Languages of Russia

2011-01-08 Thread Martin Schröder
2011/1/8 Khaled Hosny khaledho...@eglug.org:
 On Thu, Jan 06, 2011 at 07:25:42AM +0100, Martin Schröder wrote:
 qpdf is MUCH better...

 I take your word on this, but out of curiosity, better in what sense?

pdfopt is ghostscript, that is the pdf is fed into a PostScript RIP,
which spits out linearized pdf.

qpdf uses a pdf library and reorganizes the pdf so it is linearized.
So it knows more about pdf than gs, is much lighter (one binary and
one lib with together 1MB compared to ghostscript), much less can go
wrong (e.g. images are not changed) and IMHO the support for qpdf is
much better. :-)

Best
   Martin
___
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] Fwd: Re: xml-processing: missing or ungrouped '='

2011-01-08 Thread Achim Jander

Hi Thomas,
yes, of course you are right, but thats not making the problems. Its 
switched in while making a minimal example.

My problem or maxbe misunderstanding ist what I try to achieve with

\xmldoifelse{#1}{/num}{ownnumber=\xmlcommand{#1}{/num}{xml:ueberForceFlush}}{number=no} 



or in a more complex way:

\startxmlsetups xml:title
\startchapter[

%start here
number=\xmldoifelse{#1}{/num}{yes}{no}, %works
ownnumber=\xmldoifelse{#1}{/num}{\xmlcommand{#1}{/num}{xml:ueberForceFlush}}{},%works 


%stop here

title={\xmlflush{#1}},%works
]
\stopchapter
\stopxmlsetups

what I want to do is to process the part between %start here and %stop 
here in another template

which I can reuse in different hierarchies. But I cant find no way to do so.

Greetings,
Achim


Am 08.01.2011 14:07, schrieb Thomas A. Schmitz:

On Jan 8, 2011, at 1:39 PM, Achim Jander wrote:


Hi Hans,
sorry, i'll try to make it more clear:

Excuse me, your example makes my head spin. Just from looking at it, there appears to 
be a fundamental error: you flush the content oftitle  into a context 
\startchapter \stopchapter environment, AFAICS. But that's not right: the title is 
not the content of the chapter, but just its, errm, title. Can this be the reason why 
your code doesn't work?

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


[NTG-context] \lgroup in mkIV

2011-01-08 Thread Daniel Schopper

Hi,
are the delimiters \lgroup and \rgroup supported in MkIV?
This

\starttext
$$\bigg\lgroup\dots\bigg\rgroup$$
\stoptext

is ok in MkII (ConTeXt ver: 2011.01.06) but when compiled with MkIV 
(ConTeXt ver: 2010.07.30 11:35 and ver: 2010.07.30 11:35) the delimiters 
are not shown. (By the way, the same holds true for \rmoustache and 
\lmoustache.)
Am I missing something? Searching the list archive and the contextgarden 
unfortunately didn't bring up in anything.

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


Re: [NTG-context] Trying MPtoPDF!

2011-01-08 Thread Vladimir Lomov
** Verhaag, G.C.H.M. [2011-01-08 10:54:53 +0100]:

 Hi,
[...]

 This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010)
 \write18 enabled.
This: (TeX Live 2010) contradicts with that:
 While trying to get some MetaPost plots converted to PDF, with the
 latest ConTeXt minimals installation (MkIV) on my Linux box, things
 happen which I don't understand, sorry!

[...]
 Do I need to install other tools to get it working?
I'm not sure. But before you have to be sure that you actually use
context minimals.

Suppose, that you have TeX Live 2010 installed here:
/usr/local/texlive/2010
and context minimals installed here:
/usr/local/opt/context

Then run terminal (konsole, gnome-terminal, xterm, urxvt, ...) and
do
$ . /usr/local/opt/context/tex/setuptex
and _after_ that run
$ mtxrun ...

If you still get an error something is really broken.

---
WBR, Vladimir Lomov

-- 
It is enough to make one sympathize with a tyrant for the determination
of his courtiers to deceive him for their own personal ends...
-- Russell Baker and Charles Peters
___
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] howto start with presentations?

2011-01-08 Thread Jonas Stein
Hi,

i am familiar with latex beamer and like to make a similar 
pdf presentation in context [1].

I found nice designs like pre-22 where can i find a good 
example for the text structure 
(like table of contents and headlines)?

My title page appeares on all pages and such. 

Kind regards,

[1] 
https://github.com/jonasstein/context-quickstart/blob/master/context-schnelleinstieg.tex

-- 
Jonas Stein n...@jonasstein.de

___
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] Page of the month in the wiki

2011-01-08 Thread Jonas Stein
Do you think some page of the month or a monthly changing 
example picture would make the startpage more attractive?

May be we could place it next to Documentation

| Welcome  | News|
| get started|
| doc  | picture |
| tricks |


[1] http://wiki.contextgarden.net/

-- 
Jonas Stein n...@jonasstein.de

___
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] Fwd: Re: xml-processing: missing or ungrouped '='

2011-01-08 Thread Thomas A. Schmitz

On Jan 8, 2011, at 3:23 PM, Achim Jander wrote:

 Hi Thomas,
 yes, of course you are right, but thats not making the problems. Its switched 
 in while making a minimal example.
 My problem or maxbe misunderstanding ist what I try to achieve with

Sorry, but I still don't have the faintest idea what it is you want to do. Your 
minimal example doesn't show it, and your explanations differ from one message 
to the next. 

In one of your mails, you said this:

 If the title comes with an number-element  I want to set ownnumber=..., but 
 if they have no numbers, I want to set number=no

If this is what you're looking for, here's what I would suggest:

\startbuffer[test]
a
 chapter title=some text
   bmore text /b
   bmore text /b
 /chapter
 chapter num=333 title=more text
   bmore text /b
   bmore text /b
 /chapter
/a
\stopbuffer

\startxmlsetups xml:testsetups
  \xmlsetsetup{\xmldocument}{a|b|chapter}{xml:*}
\stopxmlsetups

\xmlregistersetup{xml:testsetups}

\startxmlsetups xml:a
  \xmlflush{#1}
\stopxmlsetups

\startxmlsetups xml:b
  \startparagraph
  \xmlflush{#1}
  \stopparagraph
\stopxmlsetups

\startxmlsetups xml:chapter
 \doifelse {\xmlatt{#1}{num}} {}
 {\setuphead[chapter][number=no]
  \startchapter[title={\xmlatt{#1}{title}}]
\xmlflush{#1}
  \stopchapter}
 {\setuphead[chapter][number=yes]
  \setupheadnumber[chapter][\xmlatt{#1}{num}]
  \startchapter[title={\xmlatt{#1}{title}}] 
\xmlflush{#1}
  \stopchapter}
\stopxmlsetups

\starttext
\xmlprocessbuffer{main}{test}{}
\stoptext

It's trivial to change the test from an attribute to a num element, but 
maybe that's not what you're looking for...

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


Re: [NTG-context] howto start with presentations?

2011-01-08 Thread Wolfgang Schuster

Am 08.01.2011 um 17:40 schrieb Jonas Stein:

 Hi,
 
 i am familiar with latex beamer and like to make a similar 
 pdf presentation in context [1].
 
 I found nice designs like pre-22 where can i find a good 
 example for the text structure 
 (like table of contents and headlines)?

Take a look at the simpleslides module.

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] Including xfig graphics

2011-01-08 Thread Alan BRASLAU
Florian,

This is not exactly how to proceed.
The metapost export needs to be stripped of its preamble
before being used with ConTeXt.

Can you send us a (simple) concrete example, i.e. .fig file.

It may not be worth the effort to get fig2dev fixed to produce pure (LaTeX 
free) metapost. I had started learning Metapost playing with xfig exports, but 
quickly entirely dropped xfig and now work directly with metapost code.

Alan


On Friday 07 January 2011 16:39:45 Florian Unglaub wrote:
 On Fri, Jan 07, 2011 at 10:09:47AM +0100, Taco Hoekwater wrote:
  I did a quick test, and the transfig mp code starts with this nice (!)
  block of verbatimtex:
  
  % +MP-ADDITIONAL-HEADER
  verbatimtex
  %latex
  \documentclass{article}
  \begin{document}
  etex
  % -MP-ADDITIONAL-HEADER
 
 [...]
 
  It looks configurable-ish, but I do not feel like experimenting
  without a proper test case.
 
 I tried exporting to metapost inside xfig aswell yesterday, leading to
 similar results as posted above.
 
 I found out that XFig uses a small shell script called 'fig2dev' to do
 all the exporting to other formats. This script supports an option '-o'
 to use plain TeX.
 
 I tried \input'ing the resulting .mp file into my ConTeXt-file:
 
 \startuseMPgraphic{foo}
   \input ../figures/bar.fig
 \stopuseMPgraphic
 
 \placefigure[here][fig:foo]{A small test}{
   \useMPgraphic{foo}
 }
 
 This, however, doesn't work and shows the figure as 'undefined' in the
 PDF.
 
 My current solution now is to convert the XFig file to MetaPost with
 fig2dev and use mptopdf.
 
 Regards, Florian.
 
 PS: Sorry for the duplicate message, Taco. I forgot to CC to the list.

-- 
Alan Braslau
CEA DSM-IRAMIS-SPEC
CNRS URA 2464
Orme des Merisiers
91191 Gif-sur-Yvette cedex FRANCE
tel: +33 1 69 08 73 15
fax: +33 1 69 08 87 86
mailto:alan.bras...@cea.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
___


Re: [NTG-context] howto start with presentations?

2011-01-08 Thread Thomas A. Schmitz

On Jan 8, 2011, at 6:08 PM, Wolfgang Schuster wrote:

 I found nice designs like pre-22 where can i find a good 
 example for the text structure 
 (like table of contents and headlines)?
 
 Take a look at the simpleslides module.

Which, however, doesn't do TOCS.

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


Re: [NTG-context] \lgroup in mkIV

2011-01-08 Thread Aditya Mahajan

On Sat, 8 Jan 2011, Daniel Schopper wrote:


Hi,
are the delimiters \lgroup and \rgroup supported in MkIV?
This

\starttext
$$\bigg\lgroup\dots\bigg\rgroup$$
\stoptext

is ok in MkII (ConTeXt ver: 2011.01.06) but when compiled with MkIV (ConTeXt 
ver: 2010.07.30 11:35 and ver: 2010.07.30 11:35) the delimiters are not 
shown. (By the way, the same holds true for \rmoustache and \lmoustache.)



Am I missing something?


No. The math mappings of virtual fonts are incomplete. The symbols should 
work correctly with unicode math fonts like cambria, asana, and xits. 
But, it appears that lgroup and rgroup are missing from xits (Khaled?) and 
lmoustache and rmoustache are missing from asana! With Cambria there is 
a bug with scaling:


\setupbodyfont[cambria]
\enabletrackers[math.analyzing]
\usemodule[fnt-25]

\starttext
\showmathfontcharacters[][0x23B0]
\showmathfontcharacters[][0x3014]
$$\bigg\lgroup\dots\bigg\rgroup$$
$$\left\lgroup\sum\right\rgroup$$
$$\lgroup\sum\rgroup$$

$$\bigg\lmoustache\dots\bigg\rmoustache$$
$$\left\lmoustache\sum\right\rmoustache$$
$$\lmoustache\sum\rmoustache$$
\stoptext

@Hans, Taco, and Mojca: Do you know why the delimiters are not scaling 
properly?


Do you know how to add them to the LM virtual fonts? I tried, but could 
not get a working solution. I can add the correct mappings to 
large-to-small table in math-vfu. But adding the mappings for lgroup and 
rgroup in tex-mr table, and adding lmoustache and rmoustache to tex-ex 
table does not appear to work. Apply the attached diff file and see what 
happens with the example above. I don't know how to proceed. BTW, where 
are the math virtual fonts defined!? I could not find any use of 
mathematics.makefont.


Aditya721,722c721,722
 [0x03014] = 0x3A, -- lgroup
 [0x03015] = 0x3B, -- rgroup
---
 --~ [0x0] = 0x3A, -- lgroup
 --~ [0x0] = 0x3B, -- rgroup
726,727c726,727
 [0x023B0] = 0x40, -- lmoustache
 [0x023B1] = 0x41, -- rmoustache
---
 --~ [0x0] = 0x40, -- lmoustache
 --~ [0x0] = 0x41, -- rmoustache
749,750d748
 [0x023B0] = 0x7A, -- lmoustache
 [0x023B1] = 0x7B, -- rmoustache
788,789c786,787
 [0x00028] = 0x28, -- (
 [0x00029] = 0x29, -- )
---
 --  [0x00028] = 0x28, -- (
 --  [0x00029] = 0x29, -- )
___
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] math symbol bug ?

2011-01-08 Thread Aditya Mahajan

On Fri, 7 Jan 2011, Aditya Mahajan wrote:




On Jan 7, 2011, at 10:48 AM, fares.benm...@free.fr wrote:


Dear ConTeXt developpers,

While trying to use mkiv, I noticed that the
output of the \div macro in math mode is not
the division symbol as I was expecting but the
div text.



I thought that we had fixed this long ago. This is definitely a bug and I will 
look into it.


Which version of ConTeXt are you running? \div works correctly with 
2011.01.06.


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
___


Re: [NTG-context] Page of the month in the wiki

2011-01-08 Thread Aditya Mahajan

On Sat, 8 Jan 2011, Jonas Stein wrote:


Do you think some page of the month or a monthly changing
example picture would make the startpage more attractive?


A featured page of the month sounds like a good idea.

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
___


Re: [NTG-context] howto start with presentations?

2011-01-08 Thread Jonas Stein
 i am familiar with latex beamer and like to make a similar 
 pdf presentation in context [1].
 
 I found nice designs like pre-22 where can i find a good 
 example for the text structure 
 (like table of contents and headlines)?

 Take a look at the simpleslides module.

Where can i find an example of simpleslides usage?


-- 
Jonas Stein n...@jonasstein.de

___
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] howto start with presentations?

2011-01-08 Thread Aditya Mahajan

On Sat, 8 Jan 2011, Jonas Stein wrote:


i am familiar with latex beamer and like to make a similar
pdf presentation in context [1].

I found nice designs like pre-22 where can i find a good
example for the text structure
(like table of contents and headlines)?


Take a look at the simpleslides module.


Where can i find an example of simpleslides usage?


http://modules.contextgarden.net/simpleslides
http://dl.contextgarden.net/modules/t-simpleslides/doc/context/third/simpleslides/solutions/
http://dl.contextgarden.net/modules/t-simpleslides/doc/context/third/simpleslides/simpleslides.pdf

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
___


Re: [NTG-context] Passing and retrieveing a variable

2011-01-08 Thread Procházka Lukáš

Hello,

thanks for detailing the observation -

On Fri, 07 Jan 2011 22:58:24 +0100, Hans Hagen pra...@wxs.nl wrote:


On 7-1-2011 9:32, Procházka Lukáš Ing. - Pontex s. r. o. wrote:


- Modes are accessible by tex.modes[a-mode].


indeed


- - tex.modes are 'false' by default. I.e. they are not 'nil' but
'false', even if not specified on the command line. (tex.mode.__newindex
predefined to this purpose?)


indeed


- There is no table of arguments or variables being passed by
--arguments=ARG=arg or by --variable=VAR=var from the command line.


indeed (--arguments is an old mechanism and mkii compatible)


- All arguments passed to the command line are accessible by
document.arguments. Unfortunately, when repeating an arg, only the last
is accessible, e.g.

context.exe t.mkiv --arguments=ARG1=arg1 --arguments=ARG2=arg2


indeed, so one can easily overload


You're right, good feature.


will cause that only (string) ARG2=arg2 will be in
document.arguments.arguments.


as mentioned by someone already, use a=1,b=2,c=3


- - That means also that not splitting to key-value pair is not
performed by default (document.arguments.arguments is still ARG2=arg2,
no splitting to document.arguments.arguments.ARG2 to be arg2 is not
done).


indeed, although they are split and assigned at the tex end


So, an earlier splitting may be performed by something like

for a in document.arguments:gmatch(([^,]+)) do
   local k, v = a:match((.*)=(.*))

   document.arguments[k] = v
end

Best regards,

Lukas



- Not only predefined options/switches, but all args passed by command
line are accessible by document.arguments. I.e. it's possible to call

context.exe t.mkiv --myvar=MYVAR


right, but make sure to use a prefix so that there is no confusion
(myvarone myvartwo etc)


and later it's possible to get MYVAR from document.arguments.myvar.

Let's check the call:

context.exe t.mkiv --arguments=AAA=aaa --mode=MMM --arguments=BBB=bbb
--myvar=MYVAR


Hans



___
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] howto start with presentations?

2011-01-08 Thread Marco
 Where can i find an example of simpleslides usage?

Either take a look on your hard drive at:

tex/texmf-context/doc/context/third/simpleslides/simpleslides.pdf

or at:

http://dl.contextgarden.net/modules/t-simpleslides/doc/context/third/simpleslides/simpleslides.pdf

There you'll find many examples how to use the module.

Regards
Marco


___
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] \lgroup in mkIV

2011-01-08 Thread Khaled Hosny
On Sat, Jan 08, 2011 at 12:52:38PM -0500, Aditya Mahajan wrote:
 On Sat, 8 Jan 2011, Daniel Schopper wrote:
 
 Hi,
 are the delimiters \lgroup and \rgroup supported in MkIV?
 This
 
 \starttext
 $$\bigg\lgroup\dots\bigg\rgroup$$
 \stoptext
 
 is ok in MkII (ConTeXt ver: 2011.01.06) but when compiled with
 MkIV (ConTeXt ver: 2010.07.30 11:35 and ver: 2010.07.30 11:35) the
 delimiters are not shown. (By the way, the same holds true for
 \rmoustache and \lmoustache.)
 
 Am I missing something?
 
 No. The math mappings of virtual fonts are incomplete. The symbols
 should work correctly with unicode math fonts like cambria, asana,
 and xits. But, it appears that lgroup and rgroup are missing from
 xits (Khaled?)

There are, but context is looking for the wring character; it is looking
for U+3014 (which I think is a CJK bracket and does not look like
\lgroup either) while it should be looking for U+27EE (whose Unicode
annotation precisely says lgroup):

\setupbodyfont[xits]
\starttext
$$\bigg\lgroup\dots\bigg\rgroup$$
\def\lgroup{\Udelimiter 4 0 27EE}
\def\rgroup{\Udelimiter 4 0 27EF}
$$\bigg\lgroup\dots\bigg\rgroup$$
\stoptext

It was not extensible though, the version in git now grow, but starts
with a relatively large size, check and tell me if it should be smaller.

Regards,
 Khaled

-- 
 Khaled Hosny
 Arabic localiser and member of Arabeyes.org team
 Free font developer
___
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] \lgroup in mkIV

2011-01-08 Thread Khaled Hosny
On Sat, Jan 08, 2011 at 09:35:09PM +0200, Khaled Hosny wrote:
 On Sat, Jan 08, 2011 at 12:52:38PM -0500, Aditya Mahajan wrote:
  On Sat, 8 Jan 2011, Daniel Schopper wrote:
  
  Hi,
  are the delimiters \lgroup and \rgroup supported in MkIV?
  This
  
  \starttext
  $$\bigg\lgroup\dots\bigg\rgroup$$
  \stoptext
  
  is ok in MkII (ConTeXt ver: 2011.01.06) but when compiled with
  MkIV (ConTeXt ver: 2010.07.30 11:35 and ver: 2010.07.30 11:35) the
  delimiters are not shown. (By the way, the same holds true for
  \rmoustache and \lmoustache.)
  
  Am I missing something?
  
  No. The math mappings of virtual fonts are incomplete. The symbols
  should work correctly with unicode math fonts like cambria, asana,
  and xits. But, it appears that lgroup and rgroup are missing from
  xits (Khaled?)
 
 There are, but context is looking for the wring character; it is looking
 for U+3014 (which I think is a CJK bracket and does not look like
 \lgroup either)

BTW, why luatex no longer prints the missing character messages in the
log? I was using it to find what characters context is looking for, also
now it is near impossible to know if the font is missing some needed
character without reviewing every word by eye since luatex (context?)
does not show a missing character glyph in such cases, or is there
some replacement I've missed?

Regards,
 Khaled

-- 
 Khaled Hosny
 Arabic localiser and member of Arabeyes.org team
 Free font developer
___
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] \lgroup in mkIV

2011-01-08 Thread Aditya Mahajan

On Sat, 8 Jan 2011, Khaled Hosny wrote:


On Sat, Jan 08, 2011 at 12:52:38PM -0500, Aditya Mahajan wrote:

On Sat, 8 Jan 2011, Daniel Schopper wrote:


Hi,
are the delimiters \lgroup and \rgroup supported in MkIV?
This

\starttext
$$\bigg\lgroup\dots\bigg\rgroup$$
\stoptext

is ok in MkII (ConTeXt ver: 2011.01.06) but when compiled with
MkIV (ConTeXt ver: 2010.07.30 11:35 and ver: 2010.07.30 11:35) the
delimiters are not shown. (By the way, the same holds true for
\rmoustache and \lmoustache.)



Am I missing something?


No. The math mappings of virtual fonts are incomplete. The symbols
should work correctly with unicode math fonts like cambria, asana,
and xits. But, it appears that lgroup and rgroup are missing from
xits (Khaled?)


There are, but context is looking for the wring character; it is looking
for U+3014 (which I think is a CJK bracket and does not look like
\lgroup either) while it should be looking for U+27EE (whose Unicode
annotation precisely says lgroup):


Hmm ... 27EE does not exist: http://unicode.org/charts/PDF/U32-27C0.pdf
I believe that I used 3014 based on 
http://www-sop.inria.fr/apics/tralics/doc-l.html#cmd-lgroup


What source do you use for the symbols?

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
___


Re: [NTG-context] \lgroup in mkIV

2011-01-08 Thread Khaled Hosny
On Sat, Jan 08, 2011 at 02:59:35PM -0500, Aditya Mahajan wrote:
 On Sat, 8 Jan 2011, Khaled Hosny wrote:
 
 On Sat, Jan 08, 2011 at 12:52:38PM -0500, Aditya Mahajan wrote:
 On Sat, 8 Jan 2011, Daniel Schopper wrote:
 
 Hi,
 are the delimiters \lgroup and \rgroup supported in MkIV?
 This
 
 \starttext
 $$\bigg\lgroup\dots\bigg\rgroup$$
 \stoptext
 
 is ok in MkII (ConTeXt ver: 2011.01.06) but when compiled with
 MkIV (ConTeXt ver: 2010.07.30 11:35 and ver: 2010.07.30 11:35) the
 delimiters are not shown. (By the way, the same holds true for
 \rmoustache and \lmoustache.)
 
 Am I missing something?
 
 No. The math mappings of virtual fonts are incomplete. The symbols
 should work correctly with unicode math fonts like cambria, asana,
 and xits. But, it appears that lgroup and rgroup are missing from
 xits (Khaled?)
 
 There are, but context is looking for the wring character; it is looking
 for U+3014 (which I think is a CJK bracket and does not look like
 \lgroup either) while it should be looking for U+27EE (whose Unicode
 annotation precisely says lgroup):
 
 Hmm ... 27EE does not exist: http://unicode.org/charts/PDF/U32-27C0.pdf
 I believe that I used 3014 based on
 http://www-sop.inria.fr/apics/tralics/doc-l.html#cmd-lgroup
 
 What source do you use for the symbols?

I opened Gnome's Character Map and searched for lgroup :) (but I've seen
it before, so I know it exists, I just don't recall the code point). Now
that you asked, I checked Unicode website and they have Miscellaneous
Mathematical Symbols-A:

http://unicode.org/charts/PDF/U27C0.pdf

Regards,
 Khaled

-- 
 Khaled Hosny
 Arabic localiser and member of Arabeyes.org team
 Free font developer
___
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] howto start with presentations?

2011-01-08 Thread Jonas Stein

 Where can i find an example of simpleslides usage?
 http://modules.contextgarden.net/simpleslides

Thank you. I found out, that my code did not work because
simpleslides was not part of the debian context package.

I have downloaded the zip file and extracted it.
What should i do with it? 
I dont want to copy it to any /usr/*/texmf/.. directory manually. 
That would crash the package manager. 

Is it possible to copy some files to the current project directory,
where the .tex files is that needs simpleslides? 
That would not touch my tex-system or debian system.

[1] http://dl.contextgarden.net/modules/t-simpleslides-2010.02.10.zip

-- 
Jonas Stein n...@jonasstein.de

___
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] luatex.org down?

2011-01-08 Thread Jonas Stein
Hi 
i get no response at the moment 
(Sun Jan  9 00:56:38 CET 2011) for luatex.org
and its subdomain http://tracker.luatex.org/


ping tracker.luatex.org
PING www.luatex.org (195.12.62.12) 56(84) bytes of data.
^C
--- www.luatex.org ping statistics ---
7 packets transmitted, 0 received, 100% packet loss, time 6047ms



kind regards,

-- 
Jonas Stein n...@jonasstein.de

___
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] howto start with presentations?

2011-01-08 Thread Aditya Mahajan

On Sun, 9 Jan 2011, Jonas Stein wrote:




Where can i find an example of simpleslides usage?

http://modules.contextgarden.net/simpleslides


Thank you. I found out, that my code did not work because
simpleslides was not part of the debian context package.

I have downloaded the zip file and extracted it.
What should i do with it?
I dont want to copy it to any /usr/*/texmf/.. directory manually.
That would crash the package manager.


You can extract the files inside $TEXMFLOCAL (usually set to 
/usr/local/share/texmf, but see the output of


   kpsewhich --expand-var=\$TEXMFLOCAL

to be sure) or $TEXMFHOME (usually set to ~/texmf)


Is it possible to copy some files to the current project directory,
where the .tex files is that needs simpleslides?


You can also copy the files in tex/context/third/simpleslides to your 
current directory, and everything should work. But the module consists of 
many files, and that will make your working directory extremely cluttered.


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
___


Re: [NTG-context] luatex.org down?

2011-01-08 Thread Martin Schröder
2011/1/9 Jonas Stein n...@jonasstein.de:
 i get no response at the moment
 (Sun Jan  9 00:56:38 CET 2011) for luatex.org
 and its subdomain http://tracker.luatex.org/

It's just you:
http://www.downforeveryoneorjustme.com/www.luatex.org
http://www.downforeveryoneorjustme.com/tracker.luatex.org

Best
   Martin
___
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] \lgroup in mkIV

2011-01-08 Thread Arthur Reutenauer
 Hmm ... 27EE does not exist: http://unicode.org/charts/PDF/U32-27C0.pdf

  You're looking at the chart for Unicode 3.2 that is almost 10 years
old...

  The latest version (now 6.0) is always available as
http://www.unicode.org/charts/PDF/U27C0.pdf and has the character as
Khaled says.

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


Re: [NTG-context] \lgroup in mkIV

2011-01-08 Thread Arthur Reutenauer
 There are, but context is looking for the wring character; it is looking
 for U+3014 (which I think is a CJK bracket

  Indeed.  It's one of the angle brackets that one finds in many CJK
fonts.

 while it should be looking for U+27EE (whose Unicode
 annotation precisely says lgroup):

  Note that those annatations in the code charts are actually the
Unicode 1.0 names of the characters, where they differ from the Unicode
1.1 names (when Unicode was unified with ISO 10646 and adopted some of
its names).  They should not, in general, be understood as the name of
this character is some other standard, for example.  But they are of
course a good hint of what the character represents.

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


Re: [NTG-context] \lgroup in mkIV

2011-01-08 Thread Aditya Mahajan

On Sat, 8 Jan 2011, Arthur Reutenauer wrote:


Hmm ... 27EE does not exist: http://unicode.org/charts/PDF/U32-27C0.pdf


 You're looking at the chart for Unicode 3.2 that is almost 10 years
old...


I blame everything on google :)


 The latest version (now 6.0) is always available as
http://www.unicode.org/charts/PDF/U27C0.pdf and has the character as
Khaled says.


Thanks.

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
___


Re: [NTG-context] \lgroup in mkIV

2011-01-08 Thread Aditya Mahajan

On Sat, 8 Jan 2011, Khaled Hosny wrote:


On Sat, Jan 08, 2011 at 02:59:35PM -0500, Aditya Mahajan wrote:

On Sat, 8 Jan 2011, Khaled Hosny wrote:


On Sat, Jan 08, 2011 at 12:52:38PM -0500, Aditya Mahajan wrote:

On Sat, 8 Jan 2011, Daniel Schopper wrote:


Hi,
are the delimiters \lgroup and \rgroup supported in MkIV?
This

\starttext
$$\bigg\lgroup\dots\bigg\rgroup$$
\stoptext

is ok in MkII (ConTeXt ver: 2011.01.06) but when compiled with
MkIV (ConTeXt ver: 2010.07.30 11:35 and ver: 2010.07.30 11:35) the
delimiters are not shown. (By the way, the same holds true for
\rmoustache and \lmoustache.)



Am I missing something?


No. The math mappings of virtual fonts are incomplete. The symbols
should work correctly with unicode math fonts like cambria, asana,
and xits. But, it appears that lgroup and rgroup are missing from
xits (Khaled?)


There are, but context is looking for the wring character; it is looking
for U+3014 (which I think is a CJK bracket and does not look like
\lgroup either) while it should be looking for U+27EE (whose Unicode
annotation precisely says lgroup):


Hmm ... 27EE does not exist: http://unicode.org/charts/PDF/U32-27C0.pdf
I believe that I used 3014 based on
http://www-sop.inria.fr/apics/tralics/doc-l.html#cmd-lgroup

What source do you use for the symbols?


I opened Gnome's Character Map and searched for lgroup :) (but I've seen
it before, so I know it exists, I just don't recall the code point). Now
that you asked, I checked Unicode website and they have Miscellaneous
Mathematical Symbols-A:

http://unicode.org/charts/PDF/U27C0.pdf


That was the same range that I had looked at, but somehow that pdf did not 
have 27EC-27EF. Neither does char-def.lua. So, I guess that these are 
newer additions. I will add them to char-def.lua and correct the mappings 
for lgroup and rgroup.


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
___


[NTG-context] Feature request: setuppapersize

2011-01-08 Thread Aditya Mahajan

Hans,

Since we have some leverage with backward compatibility in MkIV, can we 
make \setuppapersize (slightly) more intuitive.


Normally, one would expect

   \setuppapersize[A5]

to be equivalent to

   \setuppapersize[A5][A5]

but currently it is equivalent to

   \setuppapersize[A5][A4]

This is a bit confusing, and means that we always have to specify the 
printpaper size; even if it is equal to paper size. Can we modify the 
definition of \dodefinepapersize to change this behavior?


\def\dodefinepapersize[#1][#2][#3]%
  {\ifsecondargument
 \doifsomething{#1} % to be sure
   {\doifassignmentelse{#2}
  {\getparameters
 [\??pp#1] % geen \c!scale, scheelt hash ruimte
 
[\c!width=\@@ppwidth,\c!height=\@@ppheight,\c!offset=\@@ppoffset,#2]%
 %AM: Added these two lines
 \setvalue{\??pp:1:#1}{#1}%
 \setvalue{\??pp:2:#1}{#1}}%
  {\setvalue{\??pp:1:#1}{#2}%
   \setvalue{\??pp:2:#1}{#3}}}% (*) see below
   \else
 \getparameters[\??pp][#1]%
 \setuppapersize % hm. this will freeze !
   \fi}

Perhaps, in line (*), we should also check if #3 is something, otherwise 
set ??p:2:#1 to #2:


\doifsomethingelse{#3}
  {\setvalue\??pp:2:#1}{#3}}
  {\setvalue\??pp:2:#1}{#2}}


What do you think?

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
___


Re: [NTG-context] \lgroup in mkIV

2011-01-08 Thread Arthur Reutenauer
 That was the same range that I had looked at, but somehow that pdf did 
 not have 27EC-27EF. Neither does char-def.lua. So, I guess that these are 
 newer additions.

  It's been introduced in Unicode 5.1 in March 2008.  Unicode is an
evolving standard, you know.

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


[NTG-context] nice pictures for the wiki

2011-01-08 Thread Jonas Stein
Hi,

What is ConTeXt [1] has the most pageviews in the wiki
(after the main page) 

But this page is not very impressive for new users yet.

Has anyone some diagrams that explain the flow of context or 
things like that? 
I think i saw once a diagram about 
context = lua = tex 

Please upload your diagram / flowcharts. If they were created
with dia or similar please make the source available too.

Thanks a lot.


[1] http://wiki.contextgarden.net/What_is_ConTeXt


-- 
Jonas Stein n...@jonasstein.de

___
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] luatex.org down?

2011-01-08 Thread Jonas Stein
 i get no response at the moment
 (Sun Jan  9 00:56:38 CET 2011) for luatex.org
 and its subdomain http://tracker.luatex.org/

 It's just you:

it is available here again now too.

 http://www.downforeveryoneorjustme.com/www.luatex.org
 http://www.downforeveryoneorjustme.com/tracker.luatex.org

Thank you for the link. Nice page.

-- 
Jonas Stein n...@jonasstein.de

___
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] \lgroup in mkIV

2011-01-08 Thread Aditya Mahajan

On Sat, 8 Jan 2011, Khaled Hosny wrote:


On Sat, Jan 08, 2011 at 12:52:38PM -0500, Aditya Mahajan wrote:

On Sat, 8 Jan 2011, Daniel Schopper wrote:


Hi,
are the delimiters \lgroup and \rgroup supported in MkIV?
This

\starttext
$$\bigg\lgroup\dots\bigg\rgroup$$
\stoptext

is ok in MkII (ConTeXt ver: 2011.01.06) but when compiled with
MkIV (ConTeXt ver: 2010.07.30 11:35 and ver: 2010.07.30 11:35) the
delimiters are not shown. (By the way, the same holds true for
\rmoustache and \lmoustache.)



Am I missing something?


No. The math mappings of virtual fonts are incomplete. The symbols
should work correctly with unicode math fonts like cambria, asana,
and xits. But, it appears that lgroup and rgroup are missing from
xits (Khaled?)


There are, but context is looking for the wring character; it is looking
for U+3014 (which I think is a CJK bracket and does not look like
\lgroup either) while it should be looking for U+27EE (whose Unicode
annotation precisely says lgroup):

\setupbodyfont[xits]
\starttext
$$\bigg\lgroup\dots\bigg\rgroup$$
\def\lgroup{\Udelimiter 4 0 27EE}
\def\rgroup{\Udelimiter 4 0 27EF}
$$\bigg\lgroup\dots\bigg\rgroup$$
\stoptext

It was not extensible though, the version in git now grow, but starts
with a relatively large size, check and tell me if it should be smaller.


Looks OK to me, but I am not really an expert on the shapes of the 
symbols. Can you also make lmoustache and rmoustache extensible?


Hans, I am attaching the patch for char-def.lua that corrects the location 
of lgroup and rgroup. I still do not know how to fix this for lm virtual 
math font.


Adityadiff --git a/char-def.lua b/char-def.lua
index c496b4a..515f932 100644
--- a/char-def.lua
+++ b/char-def.lua
@@ -63379,6 +63379,46 @@ characters.data={
   mirror=0x27EA,
   unicodeslot=0x27EB,
  },
+ [0x27EC]={
+  category=ps,
+  cjkwd=na,
+  description=MATHEMATICAL LEFT WHITE TORTOISE SHELL BRACKET,
+  direction=on,
+  linebreak=op,
+  mirror=0x27ED,
+  unicodeslot=0x27EC,
+ },
+ [0x27ED]={
+  category=pe,
+  cjkwd=na,
+  description=MATHEMATICAL RIGHT WHITE TORTOISE SHELL BRACKET,
+  direction=on,
+  linebreak=cl,
+  mirror=0x27EC,
+  unicodeslot=0x27ED,
+ },
+ [0x27EE]={
+  category=ps,
+  cjkwd=na,
+  description=MATHEMATICAL LEFT FLATTENED PARENTHESIS,
+  direction=on,
+  linebreak=op,
+  mathclass=open,
+  mathname=lgroup,
+  mirror=0x27EF,
+  unicodeslot=0x27EE,
+ },
+ [0x27EF]={
+  category=pe,
+  cjkwd=na,
+  description=MATHEMATICAL RIGHT FLATTENED PARENTHESIS,
+  direction=on,
+  linebreak=cl,
+  mathclass=close,
+  mathname=rgroup,
+  mirror=0x27EE,
+  unicodeslot=0x27EF,
+ },
  [0x27F0]={
   category=sm,
   description=UPWARDS QUADRUPLE ARROW,
@@ -75694,8 +75734,6 @@ characters.data={
   direction=on,
   linebreak=op,
   mirror=0x3015,
-  mathclass=open,
-  mathname=lgroup,
   unicodeslot=0x3014,
  },
  [0x3015]={
@@ -75705,8 +75743,6 @@ characters.data={
   direction=on,
   linebreak=cl,
   mirror=0x3014,
-  mathclass=close,
-  mathname=rgroup,
   unicodeslot=0x3015,
  },
  [0x3016]={
___
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] howto start with presentations?

2011-01-08 Thread Jonas Stein
 You can extract the files inside $TEXMFLOCAL (usually set to 
 /usr/local/share/texmf, but see the output of

Thank you again. I tried it now:


$ kpsewhich --expand-var=\$TEXMFLOCAL
/usr/local/share/texmf

i extracted the zip file there as root and called 
# mktexlsr
as root. 
Then i checked as user if the file can be found:

$ kpsewhich t-simpleslides.tex
/usr/local/share/texmf/tex/context/third/simpleslides/t-simpleslides.tex

then i run my makefile with 
$ make view

that calls
texexec --utfbom --pdf context-schnelleinstieg.tex

.
.
.
system  : module empty not found
system  : module simpleslides not found
.
.
.


there are two things i do not understand:
1) why are the modules still not found?
2) why is no errorcode raised but a pdf is created on a 
major problem like missing module? 

kind regards,

-- 
Jonas Stein n...@jonasstein.de

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