[NTG-context] Pretty Printing Python code
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 for MKII, i guess. I decided to play a little bit with pretty printing (maybe implement a Python pretty printer on my own) and failed at the start ;-) I tried the following: -- Copied the filename pret-lua.lua to pret-py.lua -- Added a print statement to verify that the respective lua code (pret-lua.lua, pret-py.lua) is actually called. When I ran context on the file below, I could see that pret-lua.lua had been called, but pret-py.lua had not. I guess, I did wrong something very fundamental. Thanks in advance for any hint Erik Margraf yyy.tex Description: TeX 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] Pretty Printing Python code
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 example implementation for a python pretty printer for MKII, i guess. I decided to play a little bit with pretty printing (maybe implement a Python pretty printer on my own) and failed at the start ;-) I tried the following: -- Copied the filename pret-lua.lua to pret-py.lua -- Added a print statement to verify that the respective lua code (pret-lua.lua, pret-py.lua) is actually called. When I ran context on the file below, I could see that pret-lua.lua had been called, but pret-py.lua had not. I guess, I did wrong something very fundamental. you need to post all relevant files luigi is the python expert here so i'm sure he'll figure out what's wrong Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Thoughts on ConTeXt: ditched
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 because a new user has to be in the club for some time to figure out everything. most of context (interface) is quite stable and hasn't changed in ages; however with luatex/mkiv we can move forward and do things that are impossible in good old tex but it's not neccessarily functionality that you need now (after all, we have been producing pretty complex docs with mkii and mkiv has hardly be touched the last years) Hans Well, I'm using context for far too short time to know this. I was just saying what I've read around the internet, and since this is not the case: sorry! I'm simply too inexperienced :) I've come to realize (as I was suspecting) that my problems comes mainly by my largely inadequate knowledge and experience with context. And this is fine and natural. My only wrong choice was picking context for my thesis (with a very near deadline) without knowing it sufficiently, not my interest in it. So the message is: context is good and powerful, but not the best choice for this particular project since I don't know it so well. My choice and my error. Lesson learned: for important projects, stick with whatever you know well. Leave the experiments for free-time. -- Manuel P. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Thoughts on ConTeXt: ditched
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 the interface is remarkably stable, so hopefully that might be some encouragement to come back one day. Sure! -- Manuel P. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Pretty Printing Python code
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 MKII nor in MKIV -- The wiki has an example implementation for a python pretty printer for MKII, i guess. I decided to play a little bit with pretty printing (maybe implement a Python pretty printer on my own) and failed at the start ;-) I tried the following: -- Copied the filename pret-lua.lua to pret-py.lua -- Added a print statement to verify that the respective lua code (pret-lua.lua, pret-py.lua) is actually called. When I ran context on the file below, I could see that pret-lua.lua had been called, but pret-py.lua had not. I guess, I did wrong something very fundamental. Thanks in advance for any hint Erik Margraf First, I have made some changes to pret-py.lua if not modules then modules = { } end modules ['pret-lua'] = { --- if not modules then modules = { } end modules ['pret-py'] = { 17c17 local visualizer = buffers.newvisualizer(lua) --- local visualizer = buffers.newvisualizer(py) 105c105 local function flush_lua_word(state, word) --- local function flush_python_word(state, word) 196c196 state = flush_lua_word(state,word) --- state = flush_python_word(state,word) 234c234 state = flush_lua_word(state,word) --- state = flush_python_word(state,word) 242c242 state = flush_lua_word(state,word) --- state = flush_python_word(state,word) but *no* other changes related to python's grammar Next I believe that PYTHON is better than PY \setupcolors[state=start] \definecolor[colorprettyone] [r=.9, g=.0, b=.0] % red \definecolor[colorprettytwo] [r=.0, g=.8, b=.0] % green \definecolor[colorprettythree][r=.0, g=.0, b=.9] % blue \definecolor[colorprettyfour] [s=0.60] % gray \definecolor[colorprettyfive] [orange] \definepalet[colorpretty] [prettyone=colorprettyone, prettytwo=colorprettytwo, prettythree=colorprettythree, prettyfour=colorprettyfour, prettyfive=colorprettyfive] % Python listings \definepalet [PYcolorpretty] [colorpretty] \setuptyping [PYTHON][bodyfont=10pt,option=color] \installprettytype[PYTHON] [PY] \definetyping [PYTHON][option=PYTHON] \starttext \section{Python sample} \startPYTHON #!/usr/local/bin/python import os.path, sys # Just a comment foo = os.environ.get('FOO') bar = os.environ.get('BAR') if foo: foo = os.path.realpath(foobar) elif bar: bar = os.path.realpath(bar) else: print sys.stderr, ''' FOO or BAR need to be set! ''' \stopPYTHON \stoptext It seems the option=color is setted by default to TEX \setvalue{\??tp:\c!option:\v!color}{\setupprettiesintype{TEX}% \let\obeycharacters\setupprettytype \let\obeytabs\ignoretabs} -- 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] Getting font parameters in MkIV
--- \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 able to come up with this: --- \usetypescript[cambria] \setupbodyfont[cambria] \starttext FractionRuleThickness (in display style): \the\Umathfractionrule\displaystyle FractionRuleThickness (in script style): \the\Umathfractionrule\scriptstyle etc. \stoptext --- This should work with any font in MkIV. More parameters can be found in the LuaTeX manual at http://www.luatex.org/svn/trunk/manual/luatexref-t.pdf in section 5.4 on pages 114f. (Boy, did it take me time to discover this! Seriously.) Oliver ___ 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] Bug in \Umathlimitbelowvgap?
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. Can anyone confirm the problem with the latest version? Oliver ___ 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] Pretty Printing Python code
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 http://wiki.contextgarden.net/Custom_pretty_printer -- 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] Removing vertical space before heading within framed layer
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] [name:MyriadPro-Semibold*default at 48pt] --- with the little typo corrected. Many thanks! Oliver ___ 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] Bug in \Umathlimitbelowvgap?
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: \the\Umathlimitabovevgap\displaystyle \stoptext --- no errors with latest luatex and context beta LowerLimitGapMin: 2.0pt UpperLimitGapMin: 1.3pt -- 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] Using Adobe Arno Pro in Mkiv
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 in the way lookups are stored (for taco: it saves some 10M memory on mk which is rather neglectable and some 1% tma/tmc space for the mk fonts) so, now the question is, how much does it save for ArnoPro ... can yopu collect some stats for your current version as well as the latest beta (website, with delay garden) (needs a bit of testing) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Using Adobe Arno Pro in Mkiv
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 be in the lookups so, i did a small optimization in the way lookups are stored (for taco: it saves some 10M memory on mk which is rather neglectable and some 1% tma/tmc space for the mk fonts) so, now the question is, how much does it save for ArnoPro ... can yopu collect some stats for your current version as well as the latest beta (website, with delay garden) No difference for me (Mac OS X 10.6.2) ConTeXt ver: 2009.12.29 19:12 MKIV fmt: 2009.12.29 int: english/english mkiv lua stats : fonts load time - 17.846 seconds mkiv lua stats : luatex banner - this is luatex, version beta-0.50.0-2009122919 mkiv lua stats : control sequences - 30607 of 165536 mkiv lua stats : current memory usage - 721 MB (ctx: 738 MB) mkiv lua stats : runtime - 19.693 seconds, 0 processed pages, 1 shipped pages, 0.051 pages/second MTXrun | total runtime: 19.816 ConTeXt ver: 2009.12.27 23:27 MKIV fmt: 2009.12.29 int: english/english mkiv lua stats : fonts load time - 17.916 seconds mkiv lua stats : luatex banner - this is luatex, version beta-0.50.0-2009122516 mkiv lua stats : control sequences - 30605 of 165536 mkiv lua stats : current memory usage - 723 MB (ctx: 740 MB) mkiv lua stats : runtime - 19.748 seconds, 0 processed pages, 1 shipped pages, 0.051 pages/second MTXrun | total runtime: 19.869 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] simplefonts not found
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: \usemodule[simplefonts] \setmainfont[schoolbook][schola] \setsansfont[helvetica][heros] \setmonofont[courier][cursor] \starttext Hello world! \stoptext Result in the log: system : module simplefonts not found ! Undefined control sequence. recently read \setmainfont l.3 \setmainfont [schoolbook][schola] Now what? Why are my files in the same directory found and simplefonts is not? Hans van der Meer ___ 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] simplefonts not found
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 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: /Users/wolf/context/tex/texmf-local/tex/context/third/simplefonts/t-simplefonts.tex Read the (somewhat terse) documentation. I hope to improve this with simplefonts 3. \setmainfont[schoolbook][schola] \setsansfont[helvetica][heros] \setmonofont[courier][cursor] \setmainfont[TeX Gyre Schola] \setsansfont[TeX Gyre Heros] \setmonofont[TeX Gyre Cursor] 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] Using Adobe Arno Pro in Mkiv
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 be in the lookups so, i did a small optimization in the way lookups are stored (for taco: it saves some 10M memory on mk which is rather neglectable and some 1% tma/tmc space for the mk fonts) so, now the question is, how much does it save for ArnoPro ... can yopu collect some stats for your current version as well as the latest beta (website, with delay garden) (needs a bit of testing) Hi, I don’t know it this is a side effect of the optimization, but the ligatures from the Linux Libertine font disappeared … \definefontfeature[default][default][mode=node] \definefont[libertine][name:linuxlibertineo*default] \starttext \libertine \startTEXpage[offset=1ex] nicht ff fi Th ft ck tt \stopTEXpage \stoptext Greetings, Andreas ___ 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] Using Adobe Arno Pro in Mkiv
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 some saving can take place but it could be in the lookups so, i did a small optimization in the way lookups are stored (for taco: it saves some 10M memory on mk which is rather neglectable and some 1% tma/tmc space for the mk fonts) so, now the question is, how much does it save for ArnoPro ... can yopu collect some stats for your current version as well as the latest beta (website, with delay garden) (needs a bit of testing) Hi, I don’t know it this is a side effect of the optimization, but the ligatures from the Linux Libertine font disappeared … will be fixed - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] simplefonts not found
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 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: /Users/wolf/context/tex/texmf-local/tex/context/third/simplefonts/t- simplefonts.tex My files reside in /Users/hans/Library/texmf/tex/context/user/t- simplefonts.tex where for example also is /Users/hans/Library/texmf/tex/context/user/ hvdm-cas.tex and that file is found and the module in it loaded without a hitch. Hans van der Meer ___ 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] simplefonts not found
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 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. Is your user directory in the TeX directory? This is where my local version of simplefonts resides: /Users/wolf/context/tex/texmf-local/tex/context/third/simplefonts/t-simplefonts.tex My files reside in /Users/hans/Library/texmf/tex/context/user/t-simplefonts.tex where for example also is /Users/hans/Library/texmf/tex/context/user/hvdm-cas.tex and that file is found and the module in it loaded without a hitch. Did you run luatools --generate? Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] simplefonts not found
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: /Users/wolf/context/tex/texmf-local/tex/context/third/simplefonts/t-simplefonts.tex My files reside in /Users/hans/Library/texmf/tex/context/user/t-simplefonts.tex where for example also is /Users/hans/Library/texmf/tex/context/user/hvdm-cas.tex and that file is found and the module in it loaded without a hitch. Did you update the file database with 'luatools --generate', what's the output from 'luatools t-simplefonts.tex'. 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] Fwd: [Dev-luatex] MKIV badly wrong on fonts?
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. But that shouldn't influence the typesetting of fonts! hvdm-cas.tex: \setupcds[% setup defaults \c!style=\ss,% (font command) Do you want use to make you believe 'style=\ss' is no font setup? 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] Fwd: [Dev-luatex] MKIV badly wrong on fonts?
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 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. But that shouldn't influence the typesetting of fonts! hvdm-cas.tex: \setupcds[% setup defaults \c!style=\ss,% (font command) Do you want use to make you believe 'style=\ss' is no font setup? 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 ___ ___ 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] simplefonts not found
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 in files residing in that ../tex/ context/user directory always had an immediate effect. It is also possible that I have let myself been misled by the fact that the contextbeta is installed in location separate from the texlive setup used with older versions. In that case, will it be sufficient if I add the relevant location in a TEXMF (or whatever should I use?) shell variable? I is luatools --generate an absolute must? Hans van der Meer On 29 dec 2009, at 22:46, Wolfgang Schuster wrote: 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: /Users/wolf/context/tex/texmf-local/tex/context/third/simplefonts/ t-simplefonts.tex My files reside in /Users/hans/Library/texmf/tex/context/user/t- simplefonts.tex where for example also is /Users/hans/Library/texmf/tex/context/ user/hvdm-cas.tex and that file is found and the module in it loaded without a hitch. Did you update the file database with 'luatools --generate', what's the output from 'luatools t-simplefonts.tex'. 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 ___ ___ 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] The problem with structure of heads in MkIV
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} \subsection{x} \subsection{y} \chapter{delta} \stoptext how to get the following head structure in MkIV ? Part 1 first 1 alpha 1.1 a 1.2 b 1.2.1 x 1.2.2 y 2 beta Part 2 second 3 gamma 3.1 a 3.2 b 3.2.1 x 3.2.2 y 4 delta -- 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 ___
Re: [NTG-context] The problem with structure of heads in MkIV
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} \subsection{x} \subsection{y} \chapter{beta} \part{second} \chapter{gamma} \section{a} \section{b} \subsection{x} \subsection{y} \chapter{delta} \stoptext how to get the following head structure in MkIV ? Part 1 first 1 alpha 1.1 a 1.2 b 1.2.1 x 1.2.2 y 2 beta Part 2 second 3 gamma 3.1 a 3.2 b 3.2.1 x 3.2.2 y 4 delta -- 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 ___ -- Joshua Lee Alpha Networks(Chengdu) Co., LTD Shanghai Branch TEL: (86-21)61609650 EXT: 8020 FAX: (86-21)61609650 EXT: 8041 ADD: Suite 301, No.10, 198 Lane, Zhangheng Road, ZJ Hi-Tech Park, Shanghai, China 201204 test.tex Description: TeX 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] The problem with structure of heads in MkIV
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 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 ___