Re: [NTG-context] ConTeXt-ifying Kile
On Thu, 03 Jan 2008 06:14:39 -0700, Hans Hagen [EMAIL PROTECTED] wrote: ctxtools can output files for editors (bbedit, jedit, scite) based on the xml definition files; i can imagine an option to write the files needed for kile (given that someone else than me writes the code) 1. Can you give an example? 2. Where are those xml files? Npp is pretty simple; just an ordered list: === about adaptlayout adding aftersplitstring and appendix appendtoks [etc.] === Best 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] 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] 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] 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]
Re: [NTG-context] ConTeXt-ifying Kile
On Dec 29, 2007 1:25 PM, Matija Šuklje wrote: Hullo, I've already mentioned that Kate/Kwrite and with that also Kile have a working ConTeXt syntax highlighting file available on kde-files.org What I'm trying to do now is including ConTeXt commands autocompletion in Kile. What I would need for that is a list of the commands (see attachment for more info). I seem to recall someone mentioned a texexec command to list all of these. This would be of great help to me and all the (future) Kile users. I can then edit the .cwl file myself and bug the Kile devs to include it — all I need is (how to get) the list of the ConTeXt commands. See class Commands, editinterface (lines 194-306) in scripts/context/ruby/ctxtools.rb You can fix those simple portions of code to output the code in your desired format. Then you can copy tex/context/interface/* to your working directory and run ctxtools --sciteinterface (to get definitions for scite) for example. The code currently only returns a list of commands. If you want all variants of them, the code might need to be improved a bit (also note that it won't return you all the commands - someone should revise cont-en.xml, but it's still reasonably good). What about the keys? (\setuphead accepts only some keys. Does Kile support that as well?) Do you know http://texshow.contextgarden.net/? (not that you can use it directly, but only to see ...) 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ConTeXt-ifying Kile
On Dec 29, 2007 1:25 PM, Matija Šuklje wrote: Hullo, I've already mentioned that Kate/Kwrite and with that also Kile have a working ConTeXt syntax highlighting file available on kde-files.org What I'm trying to do now is including ConTeXt commands autocompletion in Kile. What I would need for that is a list of the commands (see attachment for more info). I seem to recall someone mentioned a texexec command to list all of these. This would be of great help to me and all the (future) Kile users. I can then edit the .cwl file myself and bug the Kile devs to include it — all I need is (how to get) the list of the ConTeXt commands. The link in README vas wrong. Here's the right one. http://websvn.kde.org/trunk/extragear/office/kile/src/data/complete/tex/ When looking at these examples: \begin{frame}[options] \begin{frame}[options]{title} \begin{frame}[options]{title}{subtitle} \begin{frame}[options]{title}{subtitle} Once you have the basic syntax ready: can you also convince the developers to support a list of what's allowed inside [options]? For example, it might be that only \setupsomething[style=bold|italic|slanted|\command,strut=yes|no] is allowed. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ConTeXt-ifying Kile
Hi Matija, Attached is the text file I use for Notepad++. It's (almost) complete and based on Hans' Scite files. I miss Kate and hope to check it out again whenever I get time to play with Linux again (it's been about four years). Best wishes Idris On Sat, 29 Dec 2007 05:25:30 -0700, Matija Šuklje [EMAIL PROTECTED] wrote: What I'm trying to do now is including ConTeXt commands autocompletion in Kile. What I would need for that is a list of the commands (see attachment for more info). -- 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/ context.api 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 : 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! Thanks :] I'll need to add the brackets in myself, but that's the least I can do to give back to the ConTeXt community! I miss Kate and hope to check it out again whenever I get time to play with Linux again (it's been about four years). Kate doesn't use the autocompletion itself, but if we manage to completely ConTeXt-ify Kile (which uses Kate), it will be one sweet ride :] Dne sobota 29. decembra 2007 je Mojca Miklavec napisal(a): Do you know http://texshow.contextgarden.net/? (not that you can use it directly, but only to see ...) No, I didn't. Thanks for the link :D Are there all the currently valid commands listed? Once you have the basic syntax ready: can you also convince the developers to support a list of what's allowed inside [options]? For example, it might be that only \setupsomething[style=bold|italic|slanted|\command,strut=yes|no] is allowed. From what I saw this is not yet implemented in Kile — not even for LaTeX or pure TeX. But the idea is really great, so I'll try my best to conveince them. 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] ConTeXt-ifying Kile
On Dec 29, 2007 9:14 PM, Matija Šuklje wrote: Dne sobota 29. decembra 2007 je Mojca Miklavec napisal(a): Do you know http://texshow.contextgarden.net/? (not that you can use it directly, but only to see ...) No, I didn't. Thanks for the link :D Are there all the currently valid commands listed? Most should be, but they're not all. The only complete reference is the source :) However, if you send a patch to cont-en.xml, it will be included. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___