Re: [NTG-context] Latest beta: Problems with \startstructurelevel (bug?)

2011-06-22 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

success finally!

I had to delete *manually* the cache directory - (in my case, WinXP):

c:\ConTeXt\tex\texmf-cache\luatex-cache\context\2448223e6631addb83df348d74153606\

and than to call "mtxrun --generate".

Best regards,

Lukas

___
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] Sanskrit Devanagari characters

2011-06-22 Thread Khaled Hosny
On Thu, Jun 23, 2011 at 07:58:38AM +0200, Mojca Miklavec wrote:
> On Thu, Jun 23, 2011 at 06:36, Khaled Hosny wrote:
>
> I don't know to what extent the support is missing (how complex are
> the typographical rules apart from just sticking the letters close
> enough together and use ligatures), but there is also a chance that
> the features are added if that is simple enough.

AFAIK, Indic is the biggest OpenType mysteries and no one seems to get
it right, apart from MS who wrote the spec (there is even two
incompatible specs, abandoned one that is supported by FOSS
implementations and a new one that only MS implements.)

Regards,
 Khaled

-- 
 Khaled Hosny
 Egyptian
 Arab
___
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] Sanskrit Devanagari characters

2011-06-22 Thread Mojca Miklavec
On Thu, Jun 23, 2011 at 06:36, Khaled Hosny wrote:
> On Wed, Jun 22, 2011 at 03:51:56PM -0700, Kip Warner wrote:
>>
>> Can anyone show me the ConTeXt source to do such a thing, with, say
>> "तरीकिन"?
>
> ConTeXt MkIV (assuming it is what you use) has no proper support for
> Devanagari or other Indic scripts. Since you need only few words, you
> can produce them externally (say ConTeXt MkII with XeTeX or Inkscape)
> and include the resultant PDF as inline figure.

Or produce the whole document with ConTeXt + XeTeX :)

I don't know to what extent the support is missing (how complex are
the typographical rules apart from just sticking the letters close
enough together and use ligatures), but there is also a chance that
the features are added if that is simple enough.

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

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

Re: [NTG-context] Sanskrit Devanagari characters

2011-06-22 Thread Khaled Hosny
On Wed, Jun 22, 2011 at 03:51:56PM -0700, Kip Warner wrote:
> Hey list,
> 
> I need to sprinkle my book with a few Sanskrit words written in the
> Devanagari script. I don't need to write complete paragraphs in it, but
> just a word or two inline.
> 
> Can anyone show me the ConTeXt source to do such a thing, with, say
> "तरीकिन"?

ConTeXt MkIV (assuming it is what you use) has no proper support for
Devanagari or other Indic scripts. Since you need only few words, you
can produce them externally (say ConTeXt MkII with XeTeX or Inkscape)
and include the resultant PDF as inline figure.

Regards,
 Khaled

-- 
 Khaled Hosny
 Egyptian
 Arab


signature.asc
Description: Digital signature
___
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] Metafun shifting pictures - again

2011-06-22 Thread Jeong Dalyoung
Hi all,

I got the reason why the pictures locate in different position.
"rotation" causes the problem.

I defined domino as follows.
It is not the exact code but just show the form of the codes.

...
def domino (a, b, c, d  )
save pic;
picture pic;
draw something 1;
draw something 2;
pic := currentpicture;
draw pic rotated 90 shifted ( c, d );
enddef;

and call it using

\startbuffer[domino3]
domino (1, 2, 3, 4);
domino (2, 1, 1, 2);
domino (3, 3, 2, 3);
\stopbuffer

and \processMPbuffer[].

it draw the first domino at the right place, but it is rotated when the second 
domino is drawn. Hence, it actually rotated 180 degree. Also two dominos 
rotated again when the third domino is drawn. 
Previous drawings are rotated again again when the function domino called.

How to avoid this problem? How to draw one figure and move to wanted position 
and draw another figure and move to another location without changing the 
previous figure?

If you want to see the whole codes, please see the attachment in the previous 
mail in ntg-context Digest, Vol 84, Issue 94.

Thank you.

Best regards,

Dalyoung

___
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] Changing Body Font

2011-06-22 Thread Wolfgang Schuster

Am 23.06.2011 um 01:33 schrieb John Haltiwanger:

> Please take a look at the simplefonts module.
> 
> \usemodule[simplefonts]
> \setmainfont[Ubuntu]
> \switchtobodyfont[11pt]
> 
> (please correct me anyone, if I'm wrong).

Use \setupbodyfont to change the font size for whole document,
\switchtobodyfont doesn’t change the size for the header/footer.

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] Changing Body Font

2011-06-22 Thread John Haltiwanger
Please take a look at the simplefonts module.

\usemodule[simplefonts]
\setmainfont[Ubuntu]
\switchtobodyfont[11pt]

(please correct me anyone, if I'm wrong).

On Wed, Jun 22, 2011 at 4:10 PM, Kip Warner  wrote:

> Hey list,
>
> I am trying to change the body font of my document in the environment
> file to use the Ubuntu font provided at,
>
> /usr/share/fonts/truetype/ubuntu-font-family/Ubuntu-R.ttf
>
> , by the ttf-ubuntu-font-family package. I have tried the following, but
> it did not appear to change anything,
>
> \setupbodyfont[ubuntu,11pt][file:ubuntu-r][features=default]
>
> I also tried,
>
> \setupbodyfont[ubuntu,11pt]
>
> Any help would be appreciated.
>
> --
> Kip Warner -- Software Engineer
> OpenPGP encrypted/signed mail preferred
> http://www.thevertigo.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  : 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] Changing Body Font

2011-06-22 Thread Kip Warner
Hey list,

I am trying to change the body font of my document in the environment
file to use the Ubuntu font provided at,

/usr/share/fonts/truetype/ubuntu-font-family/Ubuntu-R.ttf

, by the ttf-ubuntu-font-family package. I have tried the following, but
it did not appear to change anything,

\setupbodyfont[ubuntu,11pt][file:ubuntu-r][features=default]

I also tried,

\setupbodyfont[ubuntu,11pt]

Any help would be appreciated.

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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] Sanskrit Devanagari characters

2011-06-22 Thread Kip Warner
Hey list,

I need to sprinkle my book with a few Sanskrit words written in the
Devanagari script. I don't need to write complete paragraphs in it, but
just a word or two inline.

Can anyone show me the ConTeXt source to do such a thing, with, say
"तरीकिन"?

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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] ConTeXt support for DjVu backend

2011-06-22 Thread Hans Hagen

On 23-6-2011 12:05, Pontus Lurcock wrote:

On Wed 22 Jun 2011, Hans Hagen wrote:


btw, it would be interesting to have a good open source jbig2
producer


I believe https://github.com/agl/jbig2enc is open source, but I don't
know whether it fulfils your other criterion of being good.


aha, so someone picked up that thread (years ago, when Hartmut and I 
looked into it it was rather messy to compile it due to depedencies)


looks like a challenge for Luigi (nice topic for context conference too)

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] Bibliography is not working

2011-06-22 Thread Pontus Lurcock
On Wed 22 Jun 2011, yoraxe wrote:

> Thanks for the information. I really didn't know that. But
> unfortunately this does not change anything.

Strange, works here for me (ConTeXt MkIV version: 2011.02.25 22:03,
Ubuntu Linux 32-bit) -- files attached. At this point I don't
know what else to advise.

Pont
\setupbibtex[database=bib]
\starttext
\completepublications[criterium=all]
\stoptext
@BOOKLET{booklet,
  title = {Something here},
  year = {2005},
  publisher = {Something here},
}


bib2.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] ConTeXt support for DjVu backend

2011-06-22 Thread Pontus Lurcock
On Wed 22 Jun 2011, Hans Hagen wrote:

> btw, it would be interesting to have a good open source jbig2
> producer

I believe https://github.com/agl/jbig2enc is open source, but I don't
know whether it fulfils your other criterion of being good.

Pont
___
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] \setscript[hanzi] and kana

2011-06-22 Thread Hans Hagen

On 22-6-2011 8:09, Wolfgang Schuster wrote:

Hi,

with \setscript[hanzi] kanji are broken at the end of the line but no kana.

\setuplayout[width=4cm]\showframe

\setscript[hanzi]

\enabletrackers[scripts.analyzing]

\starttext \definedfont[file:kozminpr6nregular]

にほんにほんにほんにほん

日本日本日本日本日本日本

\stoptext


japanese is not yet defined; we need entries in scrp-ini and scrp-cjk 
for that, character categories and initializations and we need japanese 
expertise for that


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] Bibliography is not working

2011-06-22 Thread Jaroslav Hajtmar

Hello Yoraxe,
what about this:

\setupbibtex[database=bib]

\starttext
Citation: \cite[booklet]

\placepublications[criterium=all]

\stoptext



Dne 22.6.2011 23:10, yoraxe napsal(a):

Hey,

Typing

\setupbibtex[database=bib]

\starttext
\completepublications
\stoptext

with bib.bib:

@BOOKLET{booklet,
   title = {Something here},
   year = {2005},
   publisher = {Something here},
}

creates the attached pdf-file without any references. I also attache the
log-file.

Thanks,

Yoraxe
   



___
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] Bibliography is not working: entries not shown

2011-06-22 Thread Paul Menzel
Am Mittwoch, den 22.06.2011, 23:28 +0200 schrieb yoraxe:
> Am 22.06.2011 23:15, schrieb Pontus Lurcock:
> > On Wed 22 Jun 2011, yoraxe wrote:
> > 
> >> \setupbibtex[database=bib]
> >>
> >> \starttext
> >> \completepublications
> >> \stoptext
> > 
> > You want \completepublications[criterium=all], if you wish to list
> > publications even when they're not referenced in the text. Perhaps you
> > were misled by the name -- \completepublications (as opposed to
> > \placepublications) just means you get the title ‘References’
> > at the top of the page. The ‘criterium’ argument controls which
> > publications are actually included.
> 
> Thanks for the information. I really didn't know that. But unfortunately
> this does not change anything.

Please attach your TeX, output and log files.


Thanks,

Paul


signature.asc
Description: This is a digitally signed message part
___
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] ConTeXt support for DjVu backend

2011-06-22 Thread Kip Warner
On Wed, 2011-06-22 at 23:36 +0200, Hans Hagen wrote:
> btw, it would be interesting to have a good open source jbig2
> producer 
> (as that is natively supported in pdf) and it's a pretty efficient 
> compression (close to djvu) 

Interesting.

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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] ConTeXt support for DjVu backend

2011-06-22 Thread Hans Hagen

On 22-6-2011 11:31, Kip Warner wrote:

On Wed, 2011-06-22 at 23:27 +0200, Hans Hagen wrote:

- the starting point is scanned images
- there can be an ocr layer but still the image is the core
- pdf is more: colorspaces, vector graphics, annotations, etc

So, a djvu document would be less sophisticated. It might not matter for
many cases, and one could probably make a backend to produce something
reasonable but it's not worth the trouble I fear. As mentioned, it's
probably easier to convert the pdf into a djvu with a postprocessor.

Hans


Understood. Thanks.


btw, it would be interesting to have a good open source jbig2 producer 
(as that is natively supported in pdf) and it's a pretty efficient 
compression (close to djvu)


-
  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] ConTeXt support for DjVu backend

2011-06-22 Thread Kip Warner
On Wed, 2011-06-22 at 23:27 +0200, Hans Hagen wrote:
> - the starting point is scanned images
> - there can be an ocr layer but still the image is the core
> - pdf is more: colorspaces, vector graphics, annotations, etc
> 
> So, a djvu document would be less sophisticated. It might not matter for 
> many cases, and one could probably make a backend to produce something 
> reasonable but it's not worth the trouble I fear. As mentioned, it's 
> probably easier to convert the pdf into a djvu with a postprocessor.
> 
> Hans

Understood. Thanks.

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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] Bibliography is not working

2011-06-22 Thread yoraxe
Am 22.06.2011 23:15, schrieb Pontus Lurcock:
> On Wed 22 Jun 2011, yoraxe wrote:
> 
>> \setupbibtex[database=bib]
>>
>> \starttext
>> \completepublications
>> \stoptext
> 
> You want \completepublications[criterium=all], if you wish to list
> publications even when they're not referenced in the text. Perhaps you
> were misled by the name -- \completepublications (as opposed to
> \placepublications) just means you get the title ‘References’
> at the top of the page. The ‘criterium’ argument controls which
> publications are actually included.

Thanks for the information. I really didn't know that. But unfortunately
this does not change anything.
___
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] ConTeXt support for DjVu backend

2011-06-22 Thread Hans Hagen

On 22-6-2011 10:32, Kip Warner wrote:

On Wed, 2011-06-22 at 21:51 +0200, Hans Hagen wrote:

it's mostly an image format (efficient storage of scanned documents) and
in that sense it's an alternative (jbig2 is another candidate)

Hans


That's what I was thinking too at first, that's it's mostly for scanned
documents. But since it is trying to be a replacement for PDF and it has
most of the same features, I think it's more than just that now.


- the starting point is scanned images
- there can be an ocr layer but still the image is the core
- pdf is more: colorspaces, vector graphics, annotations, etc

So, a djvu document would be less sophisticated. It might not matter for 
many cases, and one could probably make a backend to produce something 
reasonable but it's not worth the trouble I fear. As mentioned, it's 
probably easier to convert the pdf into a djvu with a postprocessor.


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] Bibliography is not working

2011-06-22 Thread Pontus Lurcock
On Wed 22 Jun 2011, yoraxe wrote:

> \setupbibtex[database=bib]
> 
> \starttext
> \completepublications
> \stoptext

You want \completepublications[criterium=all], if you wish to list
publications even when they're not referenced in the text. Perhaps you
were misled by the name -- \completepublications (as opposed to
\placepublications) just means you get the title ‘References’
at the top of the page. The ‘criterium’ argument controls which
publications are actually included.

Hope this helps,

Pont
___
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] Bibliography is not working

2011-06-22 Thread yoraxe
Hey,

Typing

\setupbibtex[database=bib]

\starttext
\completepublications
\stoptext

with bib.bib:

@BOOKLET{booklet,
  title = {Something here},
  year = {2005},
  publisher = {Something here},
}

creates the attached pdf-file without any references. I also attache the
log-file.

Thanks,

Yoraxe
(bibtest.tex

ConTeXt  ver: 2011.06.11 16:45 MKIV  fmt: 2011.6.13  int: english/english

system  > cont-new.mkiv loaded
(/home/context/tex/texmf-context/tex/context/base/cont-new.mkiv
system  > beware: some patches loaded from cont-new.mkiv
)
system  > bibtest.top loaded
system  > options > begin of optionfile
system  > options >
system  > options > % runtime options files (command line driven)
system  > options > \unprotect
system  > options > % feedback and basic job control
system  > options > % handy for special styles
system  > options > \startluacode
system  > options > document = document or { }
system  > options > document.arguments={
system  > options > }
system  > options > document.files={
system  > options >  "bibtest",
system  > options > }
system  > options > \stopluacode
system  > options > % process info
system  > options > \setupsystem[inputfile=bibtest]
system  > options > \setupsystem[\c!n=1,\c!m=1]
system  > options > % modes
system  > options > % options (not that important)
system  > options > \startsetups *runtime:options
system  > options > \stopsetups
system  > options > % styles and modules
system  > options > \startsetups *runtime:modules
system  > options > \stopsetups
system  > options > % done
system  > options > \protect \endinput
system  > options >
system  > options > end of optionfile
(bibtest.top)
fonts   > latin modern fonts are not preloaded
languages   > language en is active
publications> wrote a new auxiliary file \jobname.aux
{/home/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
fonts   > preloading latin modern fonts (second stage)
(/home/context/tex/texmf-context/tex/context/base/type-siz.mkiv) (/home/context/tex/texmf-context/tex/context/base/type-otf.mkiv){/home/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/home/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map}
fonts   > virtual math > unable to resolve name mapsfromchar
fonts   > fallback modern rm 12pt is loaded
system  > begin file bibtest at line 3
structure   > sectioning > chapter @ level 2 : 0.1 -> \headtext {pubs}
publications> loading database from bibtest.bbl
(bibtest.bbl)
backend > xmp > using file '/home/context/tex/texmf-context/tex/context/base/lpdf-pdx.xml'
pages   > flushing realpage 1, userpage 1, subpage 1
system  > end file bibtest at line 5
 )
mkiv lua stats  > used config file  - selfautoparent:texmf/web2c/texmfcnf.lua
mkiv lua stats  > used cache path   - readable: '/home/context/tex/texmf-cache/luatex-cache/context/2448223e6631addb83df348d74153606' (order 1)
mkiv lua stats  > used cache path   - readable: '/home/maja/luatex-cache/context/2448223e6631addb83df348d74153606' (order 2)
mkiv lua stats  > used cache path   - writable: '/home/maja/luatex-cache/context/2448223e6631addb83df348d74153606'
mkiv lua stats  > input load time   - 0.006 seconds
mkiv lua stats  > stored bytecode data  - 287 modules, 61 tables, 348 chunks
mkiv lua stats  > cleaned up reserved nodes - 33 nodes, 9 lists of 423
mkiv lua stats  > node memory usage - 2 glue, 2 penalty, 12 attribute, 27 glue_spec, 3 attribute_list
mkiv lua stats  > node list callback tasks  - 6 unique task lists, 5 instances (re)created, 2378 calls
mkiv lua stats  > used backend  - pdf (backend for directly generating pdf output)
mkiv lua stats  > loaded patterns   - en::2
mkiv lua stats  > callbacks - 2519 direct, 2972 indirect, 5491 total
mkiv lua stats  > randomizer- resumed with value 0.14122827217971
mkiv lua stats  > lxml preparation time - 0.000 seconds, 0 nodes, 15 lpath calls, 0 cached calls
mkiv lua stats  > result saved in file  - bibtest.pdf
mkiv lua stats  > loaded fonts  - 33 files: stmary10.afm lmmono12-regular.otf lmmono8-regular.otf lmmono9-regular.otf lmroman12-bold.otf lmroman12-regular.otf lmroman7-bold.otf lmroman7-regular.otf lmroman9-bold.otf lmroman9-regular.otf lmsans12-regular.otf lmsans8-regular.otf lmsans9-regular.otf eufb10.tfm eufb7.tfm eufm10.tfm eufm7.tfm msam10.tfm msam7.tfm msbm10.tfm msbm7.tfm lmex10.tfm lmmi12.tfm lmmi7.tfm lmmi9.tfm lmmib10.tfm lmmib7.tfm lmsy10.tfm lmsy7.tfm lmsy9.tfm rm-lmr12.tfm rm-lmr7.tfm rm-lmr9.tfm
mkiv lua stats  > fonts load time   - 0.252 seconds 
mkiv lua stats  > luatex banner - this is luatex, version be

Re: [NTG-context] Additional title after enumerations-head

2011-06-22 Thread Stefan Müller

On 22.06.2011 22:14, Wolfgang Schuster wrote:


Am 22.06.2011 um 22:03 schrieb Stefan Müller:


Thank you. I wanted to add this to the wiki, but now I'm not sure how
the mentioned commands relate to each other. So I guess
\setupenumerations inherits all keys (among them "number" and
"numberconversion") from \setupnumber?


I attached a updated version of the options for the \setupdescriptions
and \setupenumerations commands.


Thank you very much.


Unfortunatly there's no reference page for \setupnumber on the wiki,
yet. How to find out which keys there are for \setupnumber?


For the moment the source is the only reference but I’m working on a new
list with all options for the most important commands.


Again, thank you very much. I really appreciate all the work you (and 
others) are putting into this!



In general, I find it extremly hard to find out which values for which
keys are even defined for a given ConTeXt command...


There is a manual with the keys and values for many commands:
http://www.pragma-ade.com/general/qrcs/setup-en.pdf


Yes, right. I saw this document when I started with ConTeXt and almost 
forgot about it. I didn't know it has been updated. Btw., \setupnumber 
is currently not in there, but I guess you now that.



Wolfgang


Stefan
___
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] ConTeXt support for DjVu backend

2011-06-22 Thread Kip Warner
On Wed, 2011-06-22 at 21:51 +0200, Hans Hagen wrote:
> it's mostly an image format (efficient storage of scanned documents) and 
> in that sense it's an alternative (jbig2 is another candidate)
> 
> Hans

That's what I was thinking too at first, that's it's mostly for scanned
documents. But since it is trying to be a replacement for PDF and it has
most of the same features, I think it's more than just that now.

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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] ConTeXt support for DjVu backend

2011-06-22 Thread Pontus Lurcock
On Wed 22 Jun 2011, Kip Warner wrote:

> Are there any plans to eventually support the DjVu format as an
> additional backend alternative to PDF? DjVu is a free standard promoted
> as an alternative to PDF. It is allegedly a superior format.

There's always http://code.google.com/p/pdf2djvu/ in lieu of a direct
backend...

Pont
___
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] Additional title after enumerations-head

2011-06-22 Thread Wolfgang Schuster
Am 22.06.2011 um 22:03 schrieb Stefan Müller:Thank you.  I wanted to add this to the wiki, but now I'm not sure how the mentioned commands relate to each other.  So I guess \setupenumerations inherits all keys (among them "number" and "numberconversion") from \setupnumber?I attached a updated version of the options for the \setupdescriptions and \setupenumerations commands.Unfortunatly there's no reference page for \setupnumber on the wiki, yet.  How to find out which keys there are for \setupnumber?For the moment the source is the only reference but I’m working on a new list with all options for the most important commands.In general, I find it extremly hard to find out which values for which keys are even defined for a given ConTeXt command...There is a manual with the keys and values for many commands: http://www.pragma-ade.com/general/qrcs/setup-en.pdfWolfgang

reference.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] Additional title after enumerations-head

2011-06-22 Thread Stefan Müller
Thank you.  I wanted to add this to the wiki, but now I'm not sure how 
the mentioned commands relate to each other.  So I guess 
\setupenumerations inherits all keys (among them "number" and 
"numberconversion") from \setupnumber?  Unfortunatly there's no 
reference page for \setupnumber on the wiki, yet.  How to find out which 
keys there are for \setupnumber?  In general, I find it extremly hard to 
find out which values for which keys are even defined for a given 
ConTeXt command...


Stefan.

On 22.06.2011 21:47, Wolfgang Schuster wrote:


Am 22.06.2011 um 21:35 schrieb Stefan Müller:


Two questions about the article: Can you confirm that "conversion=Characters" and 
"conversion=Roman" (top of page 2) does not work? I vaguely recall some more or less 
recent changes in ConTeXt MkIV concerning number conversion.


The new name of the key is “numberconversion” (inherited from \setupnumber).


And can you confirm that (e.g.) "number=theorem" (page 3, middle) does not work? It seems 
as if you have to use "counter=theorem" now.


Number takes only the two values “yes” and “no”.

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] ConTeXt support for DjVu backend

2011-06-22 Thread Hans Hagen

On 22-6-2011 9:44, Kip Warner wrote:

Hey list,

Are there any plans to eventually support the DjVu format as an
additional backend alternative to PDF? DjVu is a free standard promoted
as an alternative to PDF. It is allegedly a superior format.




it's mostly an image format (efficient storage of scanned documents) and 
in that sense it's an alternative (jbig2 is another candidate)


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] Additional title after enumerations-head

2011-06-22 Thread Wolfgang Schuster

Am 22.06.2011 um 21:35 schrieb Stefan Müller:

> Two questions about the article: Can you confirm that "conversion=Characters" 
> and "conversion=Roman" (top of page 2) does not work? I vaguely recall some 
> more or less recent changes in ConTeXt MkIV concerning number conversion.

The new name of the key is “numberconversion” (inherited from \setupnumber).

> And can you confirm that (e.g.) "number=theorem" (page 3, middle) does not 
> work? It seems as if you have to use "counter=theorem" now.

Number takes only the two values “yes” and “no”.

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
___


[NTG-context] ConTeXt support for DjVu backend

2011-06-22 Thread Kip Warner
Hey list,

Are there any plans to eventually support the DjVu format as an
additional backend alternative to PDF? DjVu is a free standard promoted
as an alternative to PDF. It is allegedly a superior format.



-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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] Additional title after enumerations-head

2011-06-22 Thread Stefan Müller



On 22.06.2011 21:14, Stefan Müller wrote:

On 22.06.2011 21:02, Aditya Mahajan wrote:

On Wed, 22 Jun 2011, Stefan Müller wrote:


[...]


\defineenumeration[lemma][title=yes]

\startlemma {Farkas Lemma} ...
...
\stoplemma


Thanks a lot, that does the job!


I'm pretty confident that ConTeXt can already handle this, but I don't
know how.


Have you seen http://www.ntg.nl/maps/36/09.pdf?

Aditya


Well, no, I haven't. I'll read it at once! Thank you very much for this,
too!

Kind regards,
Stefan


Two questions about the article: Can you confirm that 
"conversion=Characters" and "conversion=Roman" (top of page 2) does not 
work? I vaguely recall some more or less recent changes in ConTeXt MkIV 
concerning number conversion.


And can you confirm that (e.g.) "number=theorem" (page 3, middle) does 
not work? It seems as if you have to use "counter=theorem" now.


Stefan
___
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] Additional title after enumerations-head

2011-06-22 Thread Stefan Müller

On 22.06.2011 21:02, Aditya Mahajan wrote:

On Wed, 22 Jun 2011, Stefan Müller wrote:


[...]


\defineenumeration[lemma][title=yes]

\startlemma {Farkas Lemma} ...
...
\stoplemma


Thanks a lot, that does the job!


I'm pretty confident that ConTeXt can already handle this, but I don't
know how.


Have you seen http://www.ntg.nl/maps/36/09.pdf?

Aditya


Well, no, I haven't. I'll read it at once! Thank you very much for this, 
too!


Kind regards,
Stefan
___
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] Additional title after enumerations-head

2011-06-22 Thread Aditya Mahajan

On Wed, 22 Jun 2011, Stefan Müller wrote:


Hi list,

in one of my documents (MkIV) I defined several different enumerations with 
\defineenumerations.  Currently their only differences are in the values of 
"text=" and "style=".  With the following I got what I wanted so far:


\defineenumeration[lemma][text=Lemma, location=serried, width=fit, 
style=slanted, indenting=yes, prefix=yes, prefixsegments=chapter, 
indentnext=no]


\starttext
\startlemma
Some slanted text.
\stoplemma
\stoptext

Results in "Lemma 1  Some slanted text", head in bold and the text slanted.

But now I have some lemmata that should get some kind of title, for example:
"Lemma 1 (Farkas Lemma)  Some slanted text."

How can I achieve this without defining a new description for every "special 
case"?  I tried something like "\startlemma[right={My title}]" without avail. 
I want the "title", "(Farkas Lemma)" in the above example, to be placed 
before the added "distance".  In addition I would like to be able to set 
(within \definedescription for all lemmata would be enough) whether I want 
the "title" to be bold (like the head "Lemma 1") or not.  Is all or some of 
this possible?


\defineenumeration[lemma][title=yes]

\startlemma {Farkas Lemma} ...
...
\stoplemma

I'm pretty confident that ConTeXt can already handle this, 
but I don't know how.


Have you seen http://www.ntg.nl/maps/36/09.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
___

[NTG-context] \setscript[hanzi] and kana

2011-06-22 Thread Wolfgang Schuster
Hi,

with \setscript[hanzi] kanji are broken at the end of the line but no kana.

\setuplayout[width=4cm]\showframe

\setscript[hanzi]

\enabletrackers[scripts.analyzing]

\starttext \definedfont[file:kozminpr6nregular]

にほんにほんにほんにほん

日本日本日本日本日本日本

\stoptext

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
___

[NTG-context] Additional title after enumerations-head

2011-06-22 Thread Stefan Müller

Hi list,

in one of my documents (MkIV) I defined several different enumerations 
with \defineenumerations.  Currently their only differences are in the 
values of "text=" and "style=".  With the following I got what I wanted 
so far:


\defineenumeration[lemma][text=Lemma, location=serried, width=fit, 
style=slanted, indenting=yes, prefix=yes, prefixsegments=chapter, 
indentnext=no]


\starttext
\startlemma
Some slanted text.
\stoplemma
\stoptext

Results in "Lemma 1  Some slanted text", head in bold and the text slanted.

But now I have some lemmata that should get some kind of title, for example:
"Lemma 1 (Farkas Lemma)  Some slanted text."

How can I achieve this without defining a new description for every 
"special case"?  I tried something like "\startlemma[right={My title}]" 
without avail.  I want the "title", "(Farkas Lemma)" in the above 
example, to be placed before the added "distance".  In addition I would 
like to be able to set (within \definedescription for all lemmata would 
be enough) whether I want the "title" to be bold (like the head "Lemma 
1") or not.  Is all or some of this possible?  I'm pretty confident that 
ConTeXt can already handle this, but I don't know how.


Thanks in advance for any hints!

Kind regards,
Stefan
___
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] [OT] Sanitiser for OpenType

2011-06-22 Thread luigi scarso
http://code.google.com/p/ots/

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

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


Re: [NTG-context] Metafun: shifting picture-solved with experiments.

2011-06-22 Thread dalyoung
Hi,

Changing the code as following, it moves to the correct location.
There may be a problem using 
pic := currentpicture;
Instead of using 
draw pic scaled DieSize shifted (dx,dy);

apply the shift directly to "draw pips".
I just guess that some number are not cleared when I use pic:=...

Thank you for reading.

Best regards,

Dalyoung
___
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] Latest beta: Problems with \startstructurelevel (bug?)

2011-06-22 Thread Procházka Lukáš Ing . - Pontex s . r . o .

2011/6/22 Procházka Lukáš Ing. - Pontex s. r. o. :

... I run "mtxrun --generate" (again) but still the same errors.

context --make


It doesn't help, either.

Lukas


?




--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

___
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] Latest beta: Problems with \startstructurelevel (bug?)

2011-06-22 Thread luigi scarso
2011/6/22 Procházka Lukáš Ing. - Pontex s. r. o. :
> ... I run "mtxrun --generate" (again) but still the same errors.
context --make
?

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

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

Re: [NTG-context] Latest beta: Problems with \startstructurelevel (bug?)

2011-06-22 Thread Procházka Lukáš Ing . - Pontex s . r . o .

... I run "mtxrun --generate" (again) but still the same errors.

Lukas


On Wed, 22 Jun 2011 14:59:49 +0200, Wolfgang Schuster 
 wrote:



Am 22.06.2011 um 14:51 schrieb Procházka Lukáš Ing. - Pontex s. r. o.:

Regenerate the format!

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] Latest beta: Problems with \startstructurelevel (bug?)

2011-06-22 Thread Wolfgang Schuster

Am 22.06.2011 um 14:51 schrieb Procházka Lukáš Ing. - Pontex s. r. o.:

> Hello,
> 
> thanks for the fix, but -
> 
> - but I'm still getting an error, although I've just downloaded the latest 
> beta, I tried, I got errors, so I corrected the strc-lev.lua by your 
> proposition and oops, still the same error.

Regenerate the format!

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] Latest beta: Problems with \startstructurelevel (bug?)

2011-06-22 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

thanks for the fix, but -

- but I'm still getting an error, although I've just downloaded the latest 
beta, I tried, I got errors, so I corrected the strc-lev.lua by your 
proposition and oops, still the same error.

So? -

(Related files are attached.)

Kind regards,

Lukas


On Wed, 22 Jun 2011 14:19:13 +0200, Wolfgang Schuster 
 wrote:



Am 22.06.2011 um 09:56 schrieb Procházka Lukáš Ing. - Pontex s. r. o.:


Hello,

I'm not able to compile the following code with the
"ConTeXt  ver: 2011.06.15 11:49 MKIV  fmt: 2011.6.15  int: english/english":


\definestructurelevels
  [Test]
  [subsection,
   subsubsection,
   subsubsubsection,
   ]

\starttext
 \startstructurelevel[Test][title=Title]
   aaa
 \stopstructurelevel
\stoptext



strc-lev.lua:

function sections.startautolevel(category)
category = category ~= "" and category or default
level = level + 1
local lc = levels[category]
if not lc or level > #lc then
-   context.nostartstructurehead { format("%s:%s",category,level) }
+   context.nostarthead { format("%s:%s",category,level) }
else
-   context.dostartstructurehead { lc[level] }
+   context.dostarthead { lc[level] }
end
insert(categories,category)
end

function sections.stopautolevel()
local category = remove(categories)
local lc = levels[category]
if not lc or level > #lc then
-   context.nostopstructurehead { format("%s:%s",category,level) }
+   context.nostophead { format("%s:%s",category,level) }
else
-   context.dostopstructurehead { lc[level] }
+   context.dostophead { lc[level] }
end
level = level - 1
end

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
___




--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

strc-lev.lua
Description: Binary data


test.log
Description: Binary data


test.mkiv
Description: Binary data
___
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] Latest beta: Problems with \startstructurelevel (bug?)

2011-06-22 Thread Wolfgang Schuster

Am 22.06.2011 um 09:56 schrieb Procházka Lukáš Ing. - Pontex s. r. o.:

> Hello,
> 
> I'm not able to compile the following code with the
> "ConTeXt  ver: 2011.06.15 11:49 MKIV  fmt: 2011.6.15  int: english/english":
> 
> 
> \definestructurelevels
>   [Test]
>   [subsection,
>subsubsection,
>subsubsubsection,
>]
> 
> \starttext
>  \startstructurelevel[Test][title=Title]
>aaa
>  \stopstructurelevel
> \stoptext
> 

strc-lev.lua:

function sections.startautolevel(category)
category = category ~= "" and category or default
level = level + 1
local lc = levels[category]
if not lc or level > #lc then
-   context.nostartstructurehead { format("%s:%s",category,level) }
+   context.nostarthead { format("%s:%s",category,level) }
else
-   context.dostartstructurehead { lc[level] }
+   context.dostarthead { lc[level] }
end
insert(categories,category)
end

function sections.stopautolevel()
local category = remove(categories)
local lc = levels[category]
if not lc or level > #lc then
-   context.nostopstructurehead { format("%s:%s",category,level) }
+   context.nostophead { format("%s:%s",category,level) }
else
-   context.dostopstructurehead { lc[level] }
+   context.dostophead { lc[level] }
end
level = level - 1
end

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
___


[NTG-context] Metafun: shifting picture

2011-06-22 Thread dalyoung
Hi,

I am trying to draw dominos using metapost and ConTeXt.

I borrow part of the code in Threeddice.mp by Dan Lueking for drawing dots.

To display blank dominos where I want and drawing one domino work well but 
drawing several dominos where I want is not working well.
(compare domino0 and domino1 in the example)

Why do the dominos overlap or locate on the wrong place?

Thank you for reading.

Best regards,

Dalyoung



DominoMp.tex
Description: Binary data

___
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] Latest beta: Problems with \startstructurelevel (bug?)

2011-06-22 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

I'm not able to compile the following code with the
"ConTeXt  ver: 2011.06.15 11:49 MKIV  fmt: 2011.6.15  int: english/english":


\definestructurelevels
   [Test]
   [subsection,
subsubsection,
subsubsubsection,
]

\starttext
  \startstructurelevel[Test][title=Title]
aaa
  \stopstructurelevel
\stoptext


I'm getting:


! Undefined control sequence.

system  > tex > error on line 1 in file 
C:/Lukas/Jobs/Drachov.PDPS/SO_201/Statics.Tx/SV/Test/test.mkiv: Undefined control 
sequence ...

 1 >>  \definestructurelevels
 2[Test]
 3[subsection,
 4 subsubsection,
 5 subsubsubsection,
 6 ]
 7
 8 \starttext
 9   \startstructurelevel[Test][title=Title]
10 aaa
11   \stopstructurelevel

l.1 \dostartstructurehead

 ...res.sections.startautolevel("Test")}

\secondoftwoarguments #1#2->#2

l.9   \startstructurelevel[Test]
[title=Title]
! Undefined control sequence.

system  > tex > error on line 1 in file 
C:/Lukas/Jobs/Drachov.PDPS/SO_201/Statics.Tx/SV/Test/test.mkiv: Undefined control 
sequence ...

 1 >>  \definestructurelevels


It was OK with "ConTeXt  ver: 2011.05.18 18:04 MKIV  fmt: 2011.5.18  int: 
english/english".

Bug?

Best regards,

Lukas


--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

test.log
Description: Binary data


test.mkiv
Description: Binary data


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