Re: [NTG-context] TextMate bundle
Helin Gai wrote: Hi Patrick, Thanks for prompt update. Personally, I feel it's probably more flexible to have two distinct command, one for pdftex, and another for xetex... since xetex and pdftex and luatex have subtle differences one can consider adding % engine=xetex to the top of the file; no need for commands then Hans ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] TextMate bundle
Hi, I've uploaded the version 0.3 of my TextMate bundle. See http://wiki.contextgarden.net/ConTeXt_Bundle_for_TextMate and http://dl.contextgarden.net/support/ Direct download: http://dl.contextgarden.net/support/context-tmbundle.dmg Enjoy, Patrick Changes: 0.3: * scope set to text.tex.context for compatibility with the latex bundle (text.tex.latex) * include metafun language grammar based on a metapost bundle by Charilaos Skiadas * typeset (cmd-r) output window: * link to pdf file added (runs predefined viewer or 'Preview.app') * link to logfile * in case of an error: link to file/line * keybindings * typeset is now on cmd-r (for the sake of compatibility with all other textmate's bundles) * purge is now on ctrl-alt-backsapce (for the sake of.) * view in pdfviwer is now on ctrl-alt-cmd-o (for the sake of ) * cmd-i {\it ...} * cmd-b {\bf ...} * dragging images (png, pdf, jpg) to a ConTeXt source creates \externalfigure[figname] * sectioning commands: tab trigger 'sec' and 'sub' * wrap selection in \start...\stop (ctrl-shift-w) * Menu update * support for document outline (symbols in TextMate speak) -- ConTeXt wiki and more: http://contextgarden.net ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] TextMate bundle
Hey Patrick, Very cool update. One question tho, for the old version, I was able to play around with the typeset command to allow typesetting with XeTeX. In this new version, there's only one line in the typeset command: typeset_contextfile. Where can I tweak this then? Thanks! Helin On 3/30/07, Patrick Gundlach [EMAIL PROTECTED] wrote: Hi, I've uploaded the version 0.3 of my TextMate bundle. See http://wiki.contextgarden.net/ConTeXt_Bundle_for_TextMate and http://dl.contextgarden.net/support/ Direct download: http://dl.contextgarden.net/support/context-tmbundle.dmg Enjoy, Patrick Changes: 0.3: * scope set to text.tex.context for compatibility with the latex bundle (text.tex.latex) * include metafun language grammar based on a metapost bundle by Charilaos Skiadas * typeset (cmd-r) output window: * link to pdf file added (runs predefined viewer or 'Preview.app') * link to logfile * in case of an error: link to file/line * keybindings * typeset is now on cmd-r (for the sake of compatibility with all other textmate's bundles) * purge is now on ctrl-alt-backsapce (for the sake of.) * view in pdfviwer is now on ctrl-alt-cmd-o (for the sake of ) * cmd-i {\it ...} * cmd-b {\bf ...} * dragging images (png, pdf, jpg) to a ConTeXt source creates \externalfigure[figname] * sectioning commands: tab trigger 'sec' and 'sub' * wrap selection in \start...\stop (ctrl-shift-w) * Menu update * support for document outline (symbols in TextMate speak) -- ConTeXt wiki and more: http://contextgarden.net ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context -- Helin (Colin) Gai Class of 2009, Duke University Box 96332 Durham, NC 27708 Phone: 919-943-6302 helin.gai at gmail.com hg9 at duke.edu ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] TextMate bundle
Hello Helin, Very cool update. One question tho, for the old version, I was able to play around with the typeset command to allow typesetting with XeTeX. In this new version, there's only one line in the typeset command: typeset_contextfile. Where can I tweak this then? Oh, sorry. Wait for 0.4 (to be released soon). Until then, you can put this in the first line of your TeX source: % engine=xetex Patrick -- ConTeXt wiki and more: http://contextgarden.net ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] TextMate bundle
Very cool update. One question tho, for the old version, I was able to play around with the typeset command to allow typesetting with XeTeX. In this new version, there's only one line in the typeset command: typeset_contextfile. Where can I tweak this then? download and install 0.4. Then set the variable 'CTX_ENGINE' to 'xetex'. See http://archive.contextgarden.net/message/20070327.172247.4dc0b38a.en.html for instructions. If this doesn't help, please write back. Patrick (the only change in 0.4 is the switch for the xetex engine) -- ConTeXt wiki and more: http://contextgarden.net ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] TextMate bundle
Hi Patrick, Thanks for prompt update. Personally, I feel it's probably more flexible to have two distinct command, one for pdftex, and another for xetex... Helin On 3/30/07, Patrick Gundlach [EMAIL PROTECTED] wrote: Very cool update. One question tho, for the old version, I was able to play around with the typeset command to allow typesetting with XeTeX. In this new version, there's only one line in the typeset command: typeset_contextfile. Where can I tweak this then? download and install 0.4. Then set the variable 'CTX_ENGINE' to 'xetex'. See http://archive.contextgarden.net/message/20070327.172247.4dc0b38a.en.html for instructions. If this doesn't help, please write back. Patrick (the only change in 0.4 is the switch for the xetex engine) -- ConTeXt wiki and more: http://contextgarden.net ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context -- Helin (Colin) Gai Class of 2009, Duke University Box 96332 Durham, NC 27708 Phone: 919-943-6302 helin.gai at gmail.com hg9 at duke.edu ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] TextMate bundle
Hello Helin, Personally, I feel it's probably more flexible to have two distinct command, one for pdftex, and another for xetex... You can set this variable on a per project basis. So for project A set it to xetex, for project B set it to pdftex or unset it. This way you don't have to remeber wich project used which engine. Patrick ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] TextMate bundle
Hello again, Thanks for prompt update. Personally, I feel it's probably more flexible to have two distinct command, one for pdftex, and another for xetex... Here is one for you. It is just a duplicate of 'typeset' with the following command: CTX_ENGINE=xetex typeset_contextfile Same key equivalent, same scope. Patrick typeset with xetex.tmCommand Description: Binary data -- ConTeXt wiki and more: http://contextgarden.net ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] TextMate bundle
Amazing. Thanks so much! On 3/30/07, Patrick Gundlach [EMAIL PROTECTED] wrote: Hello again, Thanks for prompt update. Personally, I feel it's probably more flexible to have two distinct command, one for pdftex, and another for xetex... Here is one for you. It is just a duplicate of 'typeset' with the following command: CTX_ENGINE=xetex typeset_contextfile Same key equivalent, same scope. Patrick -- ConTeXt wiki and more: http://contextgarden.net ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context -- Helin (Colin) Gai Class of 2009, Duke University Box 96332 Durham, NC 27708 Phone: 919-943-6302 helin.gai at gmail.com hg9 at duke.edu ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] TextMate bundle
I've just been experimenting with the new bundle. I really appreciate having it, and so far it is working like a charm. Thanks, Dave ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] TextMate bundle
Hi Patrick, very nice, thank you! Just some questions that came to my head: 1) The snipped feature uses the tab key for triggering *further* information, right? (If I remember correctly) I knew a similar feature (was it in AlphaX/Tk?) where the tab helped me to *complete* the command. For example: \cha + tab gave \chapter or when not clear like: \sub + tab gave a range with all commands starting with \sub... to choose. In textmate triggering the snipped with tab just works when typed the entire \chapter, right? There is no-one helping me typing when I get lazy? 2) You assigned F9 to texexec and so on. When, for some rare reason, I need to change the texexec a bit (with additional options or such), where to do so? 3) Probably a similar (stupid) question: You wrote the variable PDF_VIEWER, the default is 'Preview'. You can try anything that you can use as an argument for 'open'... Well, where do I find this in order to have a try? Steffen ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] TextMate bundle
Hello Steffen, 1) The snipped feature uses the tab key for triggering *further* information, right? right. (If I remember correctly) I knew a similar feature (was it in AlphaX/Tk?) where the tab helped me to *complete* the command. For example: \cha + tab gave \chapter or when not clear like: \sub + tab gave a range with all commands starting with \sub... to choose. Enter \sub and press the escape key (several times). Then you can use the tab key for further information. In textmate triggering the snipped with tab just works when typed the entire \chapter, right? right. There is no-one helping me typing when I get lazy? If you are too lazy to hit the escape key, then yes :) 2) You assigned F9 to texexec and so on. (btw: I'll probably change that to cmd-R for the sake of compatibility to existing textmate standards) When, for some rare reason, I need to change the texexec a bit (with additional options or such), where to do so? find the 'texexec' command in the bundle editor: Bundles - Bundle-Editor - Edit Commands. (In the ConTeXt bundle of course.) If you think that your changes are useful for other users, please share them! The internals will change in the future. 3) Probably a similar (stupid) question: You wrote the variable PDF_VIEWER, the default is 'Preview'. You can try anything that you can use as an argument for 'open'... Well, where do I find this in order to have a try? See http://macromates.com/textmate/manual/environment_variables 9.4 (at the very end). Does this information already help you? Patrick -- ConTeXt wiki and more: http://contextgarden.net ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] TextMate bundle
Hi Patrick, On Tue, 27 Mar 2007 16:26:10 +0200, Patrick Gundlach wrote: Enter \sub and press the escape key (several times). Then you can use the tab key for further information. Ahh! The escape-key!! On my machine (up to now) this was already assigned to enter snippet for Butler (by petermaurer.de). BTW: Highly recommendable this little Mac-application! 2) You assigned F9 to texexec and so on. (btw: I'll probably change that to cmd-R for the sake of compatibility to existing textmate standards) When, for some rare reason, I need to change the texexec a bit (with additional options or such), where to do so? find the 'texexec' command in the bundle editor: Bundles - Bundle-Editor - Edit Commands. (In the ConTeXt bundle of course.) If you think that your changes are useful for other users, please share them! The internals will change in the future. OK. 3) Probably a similar (stupid) question: You wrote the variable PDF_VIEWER, the default is 'Preview'. You can try anything that you can use as an argument for 'open'... Well, where do I find this in order to have a try? See http://macromates.com/textmate/manual/environment_variables 9.4 (at the very end). Does this information already help you? Well, does it mean that I have to define a project-variable (tmproj) for each project in order to overwrite the default? Inside of ConTeXt.tmbundle I couldn't find a *.tmproj file ... Steffen ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] TextMate bundle
Hi Steffen, Ahh! The escape-key!! On my machine (up to now) this was already assigned to enter snippet for Butler (by petermaurer.de). You can easily change the key to something else in the bundle editor. You wrote the variable PDF_VIEWER, the default is 'Preview'. You can try anything that you can use as an argument for 'open'... Well, where do I find this in order to have a try? See http://macromates.com/textmate/manual/environment_variables 9.4 (at the very end). Does this information already help you? Well, does it mean that I have to define a project-variable (tmproj) for each project in order to overwrite the default? Inside of ConTeXt.tmbundle I couldn't find a *.tmproj file ... the mentioning of 'tmproj' is a bit confusing, just ignore it. You have to set this variable from within TextMate. tmproj is just the file extension of the project file, there is nothing useful to edit there. When you create a project 'abc', it will get saved on the drive as 'abc.tmproj'. It has nothing to do with the bundles. There are two different places to set this variable: 1) (global) in textmate's preferences/advanced/shell variables and 2) (each project) in a project's preference window. This works only in a project and you have to follow the instructions on the given webpage: The way to do this is currently a little secret but if you deselect everything in the project drawer, then click the info (circled I) button, a panel will appear where you can set variables. For both ways, just click on the plus sign in the lower left corner of the window and enter for example Variable Value - PDF_VIEWER texniscope - HTH Patrick -- ConTeXt wiki and more: http://contextgarden.net ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] TextMate bundle
Hi Patrick, Yeah! Downloaded and updated. I will test and comment. Thanks a lot! Willi On Mar 27, 2007, at 1:28 PM, Patrick Gundlach wrote: Hi (esp. Willi), I've uploaded the version 0.2 of my TextMate bundle. See http://wiki.contextgarden.net/ConTeXt_Bundle_for_TextMate and http://dl.contextgarden.net/support/ Direct download: http://dl.contextgarden.net/support/context-tmbundle.dmg Feedback welcome! Patrick -- ConTeXt wiki and more: http://contextgarden.net ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context Willi Egger [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context