[NTG-context] Pretty Printing Python code

2009-12-29 Thread Erik Margraf
Hello all, I wanted to typeset some Python code and stumbled across the pretty printing feature of ConTeXt. So far, I think I've learned the following: -- There's no pretty printer for python. Neither in MKII nor in MKIV -- The wiki has an example implementation for a python pretty printer

Re: [NTG-context] Pretty Printing Python code

2009-12-29 Thread Hans Hagen
On 29-12-2009 12:03, Erik Margraf wrote: Hello all, I wanted to typeset some Python code and stumbled across the pretty printing feature of ConTeXt. So far, I think I've learned the following: -- There's no pretty printer for python. Neither in MKII nor in MKIV -- The wiki has an

Re: [NTG-context] Thoughts on ConTeXt: ditched

2009-12-29 Thread Manuel P.
Il 28/12/2009 18.59, Hans Hagen ha scritto: On 28-12-2009 14:44, Manuel P. wrote: Another problem is the fluidity of ConTeXt: it changes rapidly and the documentation is left behind. It's good because it responds very quickly to the real world and users needs, on the other hand it's bad

Re: [NTG-context] Thoughts on ConTeXt: ditched

2009-12-29 Thread Manuel P.
Il 29/12/2009 3.48, ber...@pobox.com ha scritto: Manuel Another problem is the fluidity of ConTeXt: it changes Manuel rapidly and the documentation is left behind. Maybe for some things, but I'm using a manual from 2004 and from my point of view very little has changed. I would say

Re: [NTG-context] Pretty Printing Python code

2009-12-29 Thread luigi scarso
On Tue, Dec 29, 2009 at 12:03 PM, Erik Margraf erik.marg...@googlemail.com wrote: Hello all, I wanted to typeset some Python code and stumbled across the pretty printing feature of ConTeXt. So far, I think I've learned the following:    -- There's no pretty printer for python. Neither in

Re: [NTG-context] Getting font parameters in MkIV

2009-12-29 Thread Oliver Buerschaper
--- \usetypescript[cambria] \setupbodyfont[cambria] \def\defaultrulethickness{\the\fontdimen8\textfont3\relax} \starttext \the\defaultrulethickness \stoptext --- which used to work in the old MkII days. That is with the first two lines commented out :-) I was finally

[NTG-context] Bug in \Umathlimitbelowvgap?

2009-12-29 Thread Oliver Buerschaper
Dear list, with LuaTeX beta-0.40.5-2009061123 and ConTeXt 2009.06.13 13:37 the following throws an error: --- \starttext LowerLimitGapMin: \the\Umathlimitbelowvgap\displaystyle UpperLimitGapMin: \the\Umathlimitabovevgap\displaystyle \stoptext --- Unfortunately I can't update at the moment.

Re: [NTG-context] Pretty Printing Python code

2009-12-29 Thread luigi scarso
On Tue, Dec 29, 2009 at 12:03 PM, Erik Margraf erik.marg...@googlemail.com wrote: Hello all, I wanted to typeset some Python code and stumbled across the pretty printing feature of ConTeXt. So far, I think I've learned the following: Also http://wiki.contextgarden.net/Verbatim_text

Re: [NTG-context] Removing vertical space before heading within framed layer

2009-12-29 Thread Oliver Buerschaper
Why not just \definedfont[TitleFont][Serif sa 3] and {\TitleFont \startbuffer[test] {\TitleFont Lorem ipsum dolor sit amet, consectetur, sadipisci\unknown\par} \input zapf \stopbuffer You're right, that's a good way to go! I now have: --- \definefont [TopicFont]

Re: [NTG-context] Bug in \Umathlimitbelowvgap?

2009-12-29 Thread luigi scarso
On Tue, Dec 29, 2009 at 6:23 PM, Oliver Buerschaper oliver.buerscha...@mpq.mpg.de wrote: Dear list, with LuaTeX beta-0.40.5-2009061123 and ConTeXt 2009.06.13 13:37 the following throws an error: --- \starttext LowerLimitGapMin: \the\Umathlimitbelowvgap\displaystyle UpperLimitGapMin:

Re: [NTG-context] Using Adobe Arno Pro in Mkiv

2009-12-29 Thread Hans Hagen
On 27-12-2009 3:43, Changlin Ai wrote: When I used Adobe ArnoPro font in Mkvi with default font features, I found the memory useage of LuaTeX was very big. as i don't have the font i cannot check where some saving can take place but it could be in the lookups so, i did a small optimization

Re: [NTG-context] Using Adobe Arno Pro in Mkiv

2009-12-29 Thread Wolfgang Schuster
Am 29.12.2009 um 19:21 schrieb Hans Hagen: On 27-12-2009 3:43, Changlin Ai wrote: When I used Adobe ArnoPro font in Mkvi with default font features, I found the memory useage of LuaTeX was very big. as i don't have the font i cannot check where some saving can take place but it could

[NTG-context] simplefonts not found

2009-12-29 Thread Hans van der Meer
Freshly loaded contextbeta an hour ago. Retrieved simplefonts from the ConTeXt site. Unpacked the zip and put the t-simplefonts .lua and .tex files inside the directory where all my context (user) input files reside. Read the (somewhat terse) documentation. Ran contextbeta on:

Re: [NTG-context] simplefonts not found

2009-12-29 Thread Wolfgang Schuster
Am 29.12.2009 um 21:30 schrieb Hans van der Meer: Freshly loaded contextbeta an hour ago. http://wiki.contextgarden.net/ConTeXt_Minimals#Installing_third_party_modules Retrieved simplefonts from the ConTeXt site. Unpacked the zip and put the t-simplefonts .lua and .tex files inside the

Re: [NTG-context] Using Adobe Arno Pro in Mkiv

2009-12-29 Thread Andreas Harder
Am 29.12.2009 um 19:21 schrieb Hans Hagen: On 27-12-2009 3:43, Changlin Ai wrote: When I used Adobe ArnoPro font in Mkvi with default font features, I found the memory useage of LuaTeX was very big. as i don't have the font i cannot check where some saving can take place but it could

Re: [NTG-context] Using Adobe Arno Pro in Mkiv

2009-12-29 Thread Hans Hagen
On 29-12-2009 22:24, Andreas Harder wrote: Am 29.12.2009 um 19:21 schrieb Hans Hagen: On 27-12-2009 3:43, Changlin Ai wrote: When I used Adobe ArnoPro font in Mkvi with default font features, I found the memory useage of LuaTeX was very big. as i don't have the font i cannot check where

Re: [NTG-context] simplefonts not found

2009-12-29 Thread Hans van der Meer
On 29 dec 2009, at 21:39, Wolfgang Schuster wrote: Am 29.12.2009 um 21:30 schrieb Hans van der Meer: Freshly loaded contextbeta an hour ago. http://wiki.contextgarden.net/ConTeXt_Minimals#Installing_third_party_modules Retrieved simplefonts from the ConTeXt site. Unpacked the zip and

Re: [NTG-context] simplefonts not found

2009-12-29 Thread Aditya Mahajan
On Tue, 29 Dec 2009, Hans van der Meer wrote: On 29 dec 2009, at 21:39, Wolfgang Schuster wrote: Am 29.12.2009 um 21:30 schrieb Hans van der Meer: Freshly loaded contextbeta an hour ago. http://wiki.contextgarden.net/ConTeXt_Minimals#Installing_third_party_modules Retrieved

Re: [NTG-context] simplefonts not found

2009-12-29 Thread Wolfgang Schuster
Am 29.12.2009 um 22:40 schrieb Hans van der Meer: Unpacked the zip and put the t-simplefonts .lua and .tex files inside the directory where all my context (user) input files reside. Is your user directory in the TeX directory? This is where my local version of simplefonts resides:

Re: [NTG-context] Fwd: [Dev-luatex] MKIV badly wrong on fonts?

2009-12-29 Thread Wolfgang Schuster
Am 29.12.2009 um 22:37 schrieb Hans Hagen: Original Message From: Hans van der Meer h.vanderm...@uva.nl I am fairly sure in the module there are no font setups (see the module in the accompanying zip). What it does, is putting things in framed's within framed's and so.

Re: [NTG-context] Fwd: [Dev-luatex] MKIV badly wrong on fonts?

2009-12-29 Thread Hans van der Meer
Thanks. That \ss escaped me. Should have been \rm in order to set a 'natural' starting point. Wasn't there an old greek expression about gods punishing people with blindness? Nota bene, it is my own code! Hans van der Meer On 29 dec 2009, at 22:57, Wolfgang Schuster wrote: Am

Re: [NTG-context] simplefonts not found

2009-12-29 Thread Hans van der Meer
Did you update the file database with 'luatools --generate', what's the output from 'luatools t-simplefonts.tex'. No, I thought that in TeX the given TeX-home is always searched first. Such that normally a 'texhash' is not required whenthings are changed. I seem to remember that changes

[NTG-context] The problem with structure of heads in MkIV

2009-12-29 Thread Yanrui Li
hi all, For example: \starttext \placelist[part,chapter,section,subsection][criterium=all] \part{first} \chapter{alpha} \section{a} \section{b} \subsection{x} \subsection{y} \chapter{beta} \part{second} \chapter{gamma} \section{a} \section{b}

Re: [NTG-context] The problem with structure of heads in MkIV

2009-12-29 Thread Joshua Lee
Hi Yanrui, How about the attached sample? Best regards, Joshua On Wed, 30 Dec 2009, Yanrui Li wrote: hi all, For example: \starttext \placelist[part,chapter,section,subsection][criterium=all] \part{first} \chapter{alpha} \section{a} \section{b}

Re: [NTG-context] The problem with structure of heads in MkIV

2009-12-29 Thread Yanrui Li
2009/12/30 Joshua Lee muz...@gmail.com Hi Yanrui, How about the attached sample? Hi Joshua, This is exactly what I want. Many thanks :-) -- Best regards, Li Yanrui ___ If your question is of interest to