Re: [NTG-context] bug in \setfontfeature
On Tue, 01 Jan 2008 20:19:10 -0700 Idris Samawi Hamid [EMAIL PROTECTED] wrote: Dear consortium, check this out: == % engine=luatex \definefontfeature [oldstyle] [mode=node,language=dflt,script=latn,onum=yes,tnum=yes] \setfontfeature{oldstyle} \starttext 1234567890 \startitemize \item test \stopitemize \stoptext == log: error: ...onTeXt/tex/texmf-local/tex/context/base/font-otf.lua:1890: attempt to index local 'shared' (a nil value) . \dolistitem ...tyle \c!color {\listitem }\fi \fi } \ifconditional \fittinglis... \complexdoitemgroupitem ...obreak \fi \dolistitem \relax \ifconditional \pac... to be read again t l.13 \item t est Best wishes Idris I have another one. % engine=luatex \definefontfeature[texlig][tlig=yes] \setfontfeature{texlig} \starttext -- \stoptext If I set tlig=no everything works fine, but with tlig=yes I get the following error message. error: ...2tex/share/texmf-local/tex/context/base/font-otf.lua:2017: attempt to index field 'description' (a nil value) . \doejectpage -\par \ifvmode \ifdim \pagetotal \pagegoal \else \normalvfil ... \superejectpage -\doejectpage \supereject \@@pe:last -\ejectinsert \gotonextpageX \relax \doifbothsidesoverruled {\sh... \next1 #1,-\executepagebreakhandler {#1} \doprocesscommaitem \doprocesscommalist ...item \gobbleoneargument #1, ]\relax \global \advance \... \dopagebreak ...tes \executepagebreakhandlers {#1} \else \flushnotes \execute... ... l.9 \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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] bug in \setfontfeature
Wolfgang Schuster wrote: On Tue, 01 Jan 2008 20:19:10 -0700 Idris Samawi Hamid [EMAIL PROTECTED] wrote: Dear consortium, check this out: == % engine=luatex \definefontfeature [oldstyle] [mode=node,language=dflt,script=latn,onum=yes,tnum=yes] \setfontfeature{oldstyle} \starttext 1234567890 \startitemize \item test \stopitemize \stoptext == in font=otf.lua, patch ... function fonts.otf.set_dynamics(tfmdata,attribute,features) local shared = tfmdata.shared if shared then end end and remake - 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] old style nums
On Tue, 01 Jan 2008 19:56:10 -0700 Idris Samawi Hamid [EMAIL PROTECTED] wrote: Hi Wolfgang, On Tue, 01 Jan 2008 16:09:16 -0700, Wolfgang Schuster [EMAIL PROTECTED] wrote: What is the official way to get old style numerals in 11pt in mkiv? I'm just using lm. It depends what do you want to achieve, local changes can be done with \os, but this will use numbers from the math font. That's exactly why \os is almost useless (it messes up itemizations and other stuff); better to \switchtotypeface, even for local changes. option two is to write \setfontfeature{oldstyle} in the preamble of your document and ConTeXt use oldstyle numbers by default if present in the current font. You also have to define oldstyle :-) No, you don't have to, because oldstyle is predefined in type-ini.tex, two other predefined fontfeatures are default and smallcaps :-) == % engine=luatex \definefontfeature [oldstyle] [mode=node,language=dflt,script=latn,onum=yes,tnum=yes] \setfontfeature{oldstyle} \starttext 1234567890 \stoptext == There is currently no better way to enable oldstyle number for the whole document except you define your own typescripts and use them. I spent hours today writing and debugging a huge typescript for lm (all those optical sizes, since i could not for the life of me get it to piggy-back the def's in type-siz). I just got it working flawlessly a few minutes ago -- sublime, a work of art even -- then I get your message which would have saved me hours of work! I just needed that one command!!! You're an angel, just wish I got this this morning ;-) Best wishes Idris PS Note that tnum (tabular version) looks better than onum alone, but is a function of onum in the font so cannot be invoked unless onum is invoked first. \definefontfeature[onum][onum=yes] \definefontfeature[lnum][lnum=yes] \definefontfeature[tnum][tnum=yes,onum=yes] \definefontfeature[pnum][pnum=yes] \starttext \setfontfeature{onum}123456789\par \setfontfeature{lnum}123456789\par \setfontfeature{tnum}123456789\par \setfontfeature{pnum}123456789\par \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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] bug in \setfontfeature
On Jan 2, 2008 10:11 AM, Hans Hagen [EMAIL PROTECTED] wrote: Wolfgang Schuster wrote: On Tue, 01 Jan 2008 20:19:10 -0700 Idris Samawi Hamid [EMAIL PROTECTED] wrote: Dear consortium, check this out: == % engine=luatex \definefontfeature [oldstyle] [mode=node,language=dflt,script=latn,onum=yes,tnum=yes] \setfontfeature{oldstyle} \starttext 1234567890 \startitemize \item test \stopitemize \stoptext == in font=otf.lua, patch ... function fonts.otf.set_dynamics(tfmdata,attribute,features) local shared = tfmdata.shared if shared then you forgot local dynamics, the following works function fonts.otf.set_dynamics(tfmdata,attribute,features) local shared = tfmdata.shared local dynamics = shared.dynamics if shared then end end and remake 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] bug in \setfontfeature
Wolfgang Schuster wrote: you forgot local dynamics, the following works function fonts.otf.set_dynamics(tfmdata,attribute,features) local shared = tfmdata.shared local dynamics = shared.dynamics if shared then hm, you need to to test shared before using it, so it really is: function fonts.otf.set_dynamics(tfmdata,attribute,features) local shared = tfmdata.shared if shared then local dynamics = shared.dynamics i wonder what you tested -) - 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] last version of context 2007
Hi, At 31/12/2007 we uploaded an end-of-year release .. http://wiki.contextgarden.net/Context_2007.12.31 we could not update the wiki in time, so here is a delayed happy new year Taco 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] symbols in luatex?
Hi all, first, a very happy new year 2008 to all of you! May ConTeXt continue to prosper and develop at a brisk pace :-) What better way to start the new year than asking a stupid question on the list? Here comes: I must be missing something really obvious here. I have a font (otf) with a number of (metrical) symbols which I use in a module. In mkii, I defined an encoding within this module to address the symbols: \startencoding[metr] \definecharacter metricbreve 66 \stopencoding so I can use the symbold with \metricbreve. Works great in mkii. But how do I do this in mkiv, which doesn't seem to read and use the encoding anymore? All best Thomas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] symbols in luatex?
Thomas A. Schmitz wrote: Hi all, first, a very happy new year 2008 to all of you! May ConTeXt continue to prosper and develop at a brisk pace :-) What better way to start the new year than asking a stupid question on the list? Here comes: I must be missing something really obvious here. I have a font (otf) with a number of (metrical) symbols which I use in a module. In mkii, I defined an encoding within this module to address the symbols: \startencoding[metr] \definecharacter metricbreve 66 \stopencoding so I can use the symbold with \metricbreve. Works great in mkii. But how do I do this in mkiv, which doesn't seem to read and use the encoding anymore? \startencoding[default] probably still works (may change in favor of virtual fonts) - 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ConTeXt-ifying Kile
Dne sobota 29. decembra 2007 je Idris Samawi Hamid napisal(a): Attached is the text file I use for Notepad++. It's (almost) complete and based on Hans' Scite files. Hi, Idris, I've just compared the list you sent me with the raw one I generated from TeXLive 2007's ConTeXt. The one you sent me contains 875 lines/commands, whereas the raw generated one contains 3151. Am I doing something wrong here? Cheers, Matija -- gsm: +386 41 849 552 e-mail: [EMAIL PROTECTED] www: http://matija.suklje.name aim: hookofsilver icq: 110183360 jabber/g-talk: [EMAIL PROTECTED] msn: [EMAIL PROTECTED] yahoo: matija_suklje 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ppchtex german language compiling problems
On Sun, 30 Dec 2007 20:51:27 +0100 Martin Scholz [EMAIL PROTECTED] wrote: Hi there, I'm new to ConTeXt and found out how nice it is to construct coverpages. It's even better for the whole document. So it would be nice to have an opportunity to include the whole procedure into an LaTeXe environment. As far as I already read up to now there is now possibility. You could try to write the ConTeXt code into a external file and process this file on the fly with write18. But today I think I found a bug in the german version of ppchtex. I used the following little script to set an example formula. The used code is the following: \verwendemodule[pictex,chemie] \starttext \stellechemieein[breite=passend,oben=1500,unten=3500] \startchemie \chemie[ONE,Z0,DB1,SB3,SB7,Z3,Z7,MOV1,Z0,SB1,SB3,Z3,MOV1,Z0,DB1,SB3,Z3,MO V1,Z0,SB3,SB7,Z3,Z7][C,H,H,C,H,C,H,C,H,H] \textunter{1,3-Butadieen} \stopchemie \stoptext with the following commands I got the same errormessages. [...] ConTeXt ver: 2007.01.12 15:56 MKII fmt: 2007.12.29 int: german/german This is a ancient version, I tried your example with the last release and it works for me. [...] Would be nice if somebody has an idea how to solve the problem or where something went wrong in the code. Another question is how I could get ppchtex to work in a LaTeXe-environment. Would be nice if there also would be the possibility to load the german version. \usepackage[pictex]{m-ch-de} or \usepackage[pstricks]{m-ch-de} Thanks to all for there help and have a happy new year everybody. Martin 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] symbols in luatex?
On Jan 2, 2008, at 12:42 PM, Hans Hagen wrote: \startencoding[default] probably still works (may change in favor of virtual fonts) Thanks Hans, but nope, doesn't work. The font is found and used (I get glyphs for normal characters such as numbers), but the special characters just disappear from the output. Thomas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Windows installer updated
Hello, I've updated the Windows installer for ConTeXt, which can be found at http://minimals.contextgarden.net/setup/context-installer/ContextMinimalInstall.exe Now it provides four separate options: - Get latest setup files (recommended) - Get latest distribution files (recommended) - Make format files (recommended) - Set environment vars globally (recommended only if no other TeX systems are installed) Please, send me any comments. Best regards, Vyatcheslav Yatskovsky ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] How to use utopia font?
hello all, I'm new with ConTeXt even if I know some TeX and LaTeX already. Here is my question: I would like to use utopia (with expert fonts) as my default rm. I've got all the files required for a LaTeX usage (with fourier.sty) and it works ok. I have found some fourier.map and fourier-utopia-expert.map in my TeXlive under /texmf-dist/fonts/map/dvipdfm/context and /texmf-dist/fonts/map/fourier/. I've tried what I've understood of the manuals but I can't figure out how to call correctly the font. Any hint will be appreciated. Thanks to all -- Yvon Henel 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] old style nums
On Wed, 02 Jan 2008 01:37:08 -0700, Wolfgang Schuster [EMAIL PROTECTED] wrote: You also have to define oldstyle :-) No, you don't have to, because oldstyle is predefined in type-ini.tex, two other predefined fontfeatures are default and smallcaps :-) Did you try it? worketh not ;-) == % engine=luatex \setfontfeature{oldstyle} \starttext test 1234567890 \stoptext == There is currently no better way to enable oldstyle number for the whole document except you define your own typescripts and use them. I spent hours today writing and debugging a huge typescript for lm (all those optical sizes, since i could not for the life of me get it to piggy-back the def's in type-siz). I just got it working flawlessly a few minutes ago -- sublime, a work of art even -- then I get your message which would have saved me hours of work! I just needed that one command!!! You're an angel, just wish I got this this morning ;-) Best wishes Idris PS Note that tnum (tabular version) looks better than onum alone, but is a function of onum in the font so cannot be invoked unless onum is invoked first. \definefontfeature[tnum][tnum=yes,onum=yes] Hmm, I assumed the order would be [onum=yes,tnum=yes], or does the order not matter? Best wishes Idris -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shi`i Studies Department of Philosophy Colorado State University Fort Collins, CO 80523 -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] How to use utopia font?
Hi Yvon, This may work: \usetypescript[berry][ec] \definetypeface[utopia][rm][serif][utopia][default][encoding=ec] \setupbodyfont[utopia,12pt] The above is based on instructions found @ http://watershade.net/wmcclain/context-help.html saji * Yvon Henel [EMAIL PROTECTED] [2008-01-02 15:36:47 +0100]: hello all, I'm new with ConTeXt even if I know some TeX and LaTeX already. Here is my question: I would like to use utopia (with expert fonts) as my default rm. I've got all the files required for a LaTeX usage (with fourier.sty) and it works ok. I have found some fourier.map and fourier-utopia-expert.map in my TeXlive under /texmf-dist/fonts/map/dvipdfm/context and /texmf-dist/fonts/map/fourier/. I've tried what I've understood of the manuals but I can't figure out how to call correctly the font. Any hint will be appreciated. Thanks to all -- Yvon Henel ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- Saji N. Hameed APEC Climate Center +82 51 668 7470 National Pension Corporation Busan Building 12F Yeonsan 2-dong, Yeonje-gu, BUSAN 611705 [EMAIL PROTECTED] KOREA ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] bug in \setfontfeature
On Wed, 02 Jan 2008 02:11:22 -0700, Hans Hagen [EMAIL PROTECTED] wrote: in font=otf.lua, patch ... function fonts.otf.set_dynamics(tfmdata,attribute,features) local shared = tfmdata.shared if shared then end end and remake Does this handle the other [off-list] utf-8 bug that generates an error message from font-tfm.lua:591? (I sent the wrong test file before, sorry) Best wishes Idris -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shi`i Studies Department of Philosophy Colorado State University Fort Collins, CO 80523 -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ lmos-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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] How to use utopia font?
Le mercredi 2 janvier 2008, Saji N. Hameed a écrit : Hi Yvon, This may work: \usetypescript[berry][ec] \definetypeface[utopia][rm][serif][utopia][default][encoding=ec] \setupbodyfont[utopia,12pt] The above is based on instructions found @ http://watershade.net/wmcclain/context-help.html saji Thanks a lot. It does work! I think I erred in the use of \setupbodyfont when I first tried according to (so I thought then!) the instructions given at the site you mention. It was my first question but it seems not to be the last, alas :-) -- Yvon Henel 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] nested tables?
Hello again, I would like to nest a table inside a table, something like this: \starttable[|c|c|] \NC {\bf ATout Choeur} \NC {\starttable[|c|] \NC Number 2008--1\FR \NC january 2008\LR \stoptable}\MR \NC {\tfa Something} \NC \LR \stoptable but 1/ I would like the top of the first cell of the first row to be aligned with the top of the second one (which contains the nested table); 2/ it seems that it does not work when the layout is set up with grid=yes If the answer to the second question is Effectively, it can't work in such a layout, what could be a way of obtaining what I want? As always, any hint would be greatly appreciated Many thanks to all -- Yvon Henel 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ConTeXt-ifying Kile
Hi Matija, On Wed, 02 Jan 2008 05:14:04 -0700, Matija Šuklje [EMAIL PROTECTED] wrote: I've just compared the list you sent me with the raw one I generated from TeXLive 2007's ConTeXt. The one you sent me contains 875 lines/commands, whereas the raw generated one contains 3151. Am I doing something wrong here? Exactly how did you generate this? I just took the info from Hans' scite properties files. Maybe you are getting low-level commands not normally accessible to the user. Could you send it to me off-list? Best wishes Idris -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shi`i Studies Department of Philosophy Colorado State University Fort Collins, CO 80523 -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] bug in \setfontfeature
On Wed, 02 Jan 2008 08:14:17 -0700, Taco Hoekwater [EMAIL PROTECTED] wrote: Does this handle the other [off-list] utf-8 bug that generates an error message from font-tfm.lua:591? No. You get that error because the font does not have a non-breaking hyphen, and you can fix it by changing that line into if characters[current.char] and characters[current.char].class == mark then and regenerating the format. But it will still not work, because the glyph still does not exist. Actually, this bug had the nice side-effect of identiying a few spots in this huge project (journal) where the conversion of articles to context was buggy (like that u-2011 example, they were all supposed to be converted). Nice to get a _helpful_ bug for a change. OTOH that should be fixed anyway... The interesting thing is that using the default lm setup it does not show up, but as soon as font features are activated it does. Best wishes Idris -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shi`i Studies Department of Philosophy Colorado State University Fort Collins, CO 80523 -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] nested tables?
On Wed, 2 Jan 2008 16:22:26 +0100 Yvon Henel [EMAIL PROTECTED] wrote: Hello again, I would like to nest a table inside a table, something like this: \starttable[|c|c|] \NC {\bf ATout Choeur} \NC {\starttable[|c|] \NC Number 2008--1\FR \NC january 2008\LR \stoptable}\MR \NC {\tfa Something} \NC \LR \stoptable but 1/ I would like the top of the first cell of the first row to be aligned with the top of the second one (which contains the nested table); 2/ it seems that it does not work when the layout is set up with grid=yes If the answer to the second question is Effectively, it can't work in such a layout, what could be a way of obtaining what I want? As always, any hint would be greatly appreciated Do you really need nested tables? Try one of the following solution. \starttext \starttable[|c|cp(3cm)|] \NC \bf ATout Choeur \NC Number 2008--1\crlf january 2008 \NC\AR \NC \tfa Something \NC \NC\AR \stoptable \starttabulate[|c|cp(3cm)|] \NC \bf ATout Choeur \NC Number 2008--1\crlf january 2008 \NC\NR \NC \tfa Something \NC \NC\NR \stoptabulate \setupTABLE[column][align=middle,frame=off] \setupTABLE[column][first][style=bold] \bTABLE \bTR \bTD ATout Choeur \eTD \bTD Number 2008--1\crlf january 2008 \eTD \eTR \bTR \bTD Something \eTD \bTD \eTD \eTR \eTABLE \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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] nested tables?
On Wed, 2 Jan 2008, Yvon Henel wrote: Hello again, I would like to nest a table inside a table, something like this: \starttable[|c|c|] \NC {\bf ATout Choeur} \NC {\starttable[|c|] \NC Number 2008--1\FR \NC january 2008\LR \stoptable}\MR \NC {\tfa Something} \NC \LR \stoptable but 1/ I would like the top of the first cell of the first row to be aligned with the top of the second one (which contains the nested table); 2/ it seems that it does not work when the layout is set up with grid=yes If the answer to the second question is Effectively, it can't work in such a layout, what could be a way of obtaining what I want? tables (starttables...stoptables) cannot be nested. Table does some automatic checking of number of columns, and that counting is global. So, nested tables messes the count. Here is an example: \starttext \starttable[|c|c|] \NC \the\currentTABLEcolumn/ \the\maxTABLEcolumn\NC {\starttable[|c|] \NC \the\currentTABLEcolumn/ \the\maxTABLEcolumn\NC \AR \NC test \NC \AR \stoptable} \NC \AR \NC \the\currentTABLEcolumn/ \the\maxTABLEcolumn\NC \NC \AR \stoptable \stoptext As always, any hint would be greatly appreciated You can always use multicolumns, and give the impression that you are using multiple tables. For example \starttable[|c|c|c|] \NC col 1 \NC nested 1 \NC nested 2 \NC \AR \NC \NC nested 1 \NC nested 2 \NC \AR \NC col 1 \NC \TWO{ col 2 } \NC \AR \stoptable This, of course, will not work if you want nested tables with different number of columns in different rows. In that case, TABLE macros (bTABLE .. eTABLE) would be the way to go. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ConTeXt-ifying Kile
OK, it's been a fun day's work, but here's the current working version of the context.cwl file. What it does include: * all the commands with all the fields mentioned on texshow.contextgarden.net * the rest of the commands that I used from the list Idris sent me are currently commented out, until I find out they're valid (although not on texshow) * all the fields have short descriptions * all the \start* commands end with appropriate \stop* commands * some of the fields (where it was simple to do it) use a '|' character as a separator inside fields What it does not include: * a syntax completely as Kile's README.cwl would want to have (especially because of my misuse of \start* \stop* in the same command and Mojca's separator suggestion) * a completely coherent and Kile-valid syntax is still missing, although as it is, the file is usable * some commands are commented out, as mentioned above Installation: copy or link the file to /usr/share/apps/kile/complete/tex/ (or the appropriate kile/complete/tex/ directory) and add context.cwl in Kile's settings under Kile-Complete-TeX/LaTeX I hope anyone finds it useful and that I manage to get it working perfectly/validly soon. Cheers, Matija -- gsm: +386 41 849 552 e-mail: [EMAIL PROTECTED] www: http://matija.suklje.name aim: hookofsilver icq: 110183360 jabber/g-talk: [EMAIL PROTECTED] msn: [EMAIL PROTECTED] yahoo: matija_suklje # ConTeXt commands # Matija silverhook Šuklje, 02. Jan. 2008 — [EMAIL PROTECTED] # URL: todo \about{text}[reference] \adaptlayout[number][dimensions] \adding[size] # \aftersplitstring # \and \appendix[references]{text} # \appendtoks # \AR \arg{text} \at{text}{text}[reference] \atpage[reference] \background # \bbox # \beforesplitstring # \begstrut \blackrule[settings] \blackrules[settings] \blank[size] # \blockquote \bookmark[name]{text} # \bTABLE # \bTABLEbody # \bTABLEfoot # \bTABLEhead # \bTABLEnext # \bTD # \bTH # \bTR \but[reference] \button[settings]{text}[references] \bypassblocks[names][names] \CAP{text} \Cap{text} \cap{text} \Caps{text} \chapter[references]{text} \Character{text} \character{text} \Characters{text} \characters{text} \chem{text}{text}{text} \clip[settings]{text} \clonefield[name][names][name][names] \color[text{text} \column # \commalistelement \comment[name][settings]{text} \comparecolorgroup[name] \comparepalet[name] \completecombinedlist[name][settings] \completelistoffloats \completelistofsorts \completelistofsynonyms \completeregister[settings] # \component # \ConTeXt # \Context # \convertargument # \convertcommand \convertnumber{text}{text} \copyfield[name][names] \correctwhitespace{text} # \countXMLchildren \coupledocument[name][file][name] \coupledregister[text]{text} \couplemarking[name][name] \couplepage[names][options] \couplepaper[name] \coupleregister[name] \crlf \currentdate[syntax] \currentheadnumber \date[date][syntax] \decouplemarking[name] # \decrement \define[number]\command{text} \defineblank[name][settings] \defineblock[name] \definebodyfont[font size][type][files] \definebodyfontenvironment[font size][dimensions] \definebuffer[name] # \definecollector \definecolor[name]{colour values} \definecolorgroup[name][colour model][colour values] \definecombinedlist[name][list][settings] \defineconversion[name][command] \definedescription[name][settings] # \definedfont \defineenumeration[names][name][settings] # \defineexternalfigure \definefield[reference][widget type][setup name][names][initial content] \definefieldstack[name][names][settings] \definefiguresymbol[name][text][settings] \definefloat[singular][plural] \definefont[name][file] # \definefontsynonym \defineframed[name][settings] # \defineframedcontent \defineframedtext[name][settings] \definehead[name][section] # \definehspace \defineindenting[name][settings] \defineinteractionmenu[position|names][options and settings] \defineinteractionmenu[position|name][position|name][settings] \definelabel[name][text and options] # \definelayer # \definelayerpreset # \definelayout \definelist[name][name][settings] \definelogo[name][position][position][command][state] # \definemainfield \definemakeup[name][settings] \definemarking[name][name] # \definemeasure # \defineoutput[name][specials] \defineoverlay[names][command] # \definepagebreak \definepalet[name][name] \definepapersize[name][dimenstions] \defineparagraphs[name][options and settings] \defineprofile[names][names] \defineprogram[name][text][text] # \definepushbutton # \definepushsymbol \definerawfont[name][file][settings] \definereference[name][references] \definereferenceformat[name][options] \definereferencelist[name][settings] \defineregister[singular][plural] \definerule[name][settings] \definesection[name] \definesectionblock[name][settings] \definesorting[singular][plural][command] \definestartstop[name][commands] \definesubfield[name][name][names] \definesymbol[name][text] \definesynonyms[singular][plural][command][command] \definetabletemplate[name][text][text][text]