Re: [NTG-context] Syntax highlighted output

2007-04-28 Thread Aditya Mahajan
On Sat, 28 Apr 2007, Chris Rawnsley wrote: > On 28/04/07, Aditya Mahajan <[EMAIL PROTECTED]> wrote: >> Suppose you have a file called program.php. You create a batch file >> that runs the texmfstart bin:vim ... line to create >> program-vimsyntax.tmp file. Then in your ConTeXt code, you can say, >

Re: [NTG-context] Syntax highlighted output

2007-04-28 Thread Chris Rawnsley
On 28/04/07, Aditya Mahajan <[EMAIL PROTECTED]> wrote: > Suppose you have a file called program.php. You create a batch file > that runs the texmfstart bin:vim ... line to create > program-vimsyntax.tmp file. Then in your ConTeXt code, you can say, > > \typevimfile[convert=no][program.php] Ah that

Re: [NTG-context] Syntax highlighted output

2007-04-28 Thread Aditya Mahajan
On Sat, 28 Apr 2007, Chris Rawnsley wrote: > LuaTeX does certainly look very promising indeed. > >> - If you want to typeset a big chunk of code, it is possible to >> convert the code using 2context and then just import this code. There >> is no user interface for it. In case you need it, I can pr

Re: [NTG-context] Syntax highlighted output

2007-04-28 Thread Aditya Mahajan
On Sat, 28 Apr 2007, Chris Rawnsley wrote: > Ah ha! It is a very simple thing that is stopping it. > > In t-vim.tex on line 312 the preceeding double quote needed to be > removed and on line 324 the double quote before %1 needed to be > removed. > > Line 312 before: > " -u NONE % No need

Re: [NTG-context] Syntax highlighted output

2007-04-28 Thread Chris Rawnsley
LuaTeX does certainly look very promising indeed. > - If you want to typeset a big chunk of code, it is possible to > convert the code using 2context and then just import this code. There > is no user interface for it. In case you need it, I can provide that. I think that solution would be best f

Re: [NTG-context] Syntax highlighted output

2007-04-28 Thread Aditya Mahajan
On Sat, 28 Apr 2007, Chris Rawnsley wrote: >> You need vim.exe to be in your PATH. >> >> Does texmfstart bin:vim start vim? > Right, this now starts ViM. > > When I went to compile it threw a different error: > > VIM - Vi IMproved 7.0 (2006 May 7, compiled May 7 2006 16:18:30) > Garbage after opt

Re: [NTG-context] Syntax highlighted output

2007-04-28 Thread Chris Rawnsley
Ah ha! It is a very simple thing that is stopping it. In t-vim.tex on line 312 the preceeding double quote needed to be removed and on line 324 the double quote before %1 needed to be removed. Line 312 before: " -u NONE % No need to read unnessary configurations Line 312 after:

Re: [NTG-context] Syntax highlighted output

2007-04-28 Thread Chris Rawnsley
> You need vim.exe to be in your PATH. > > Does texmfstart bin:vim start vim? Right, this now starts ViM. When I went to compile it threw a different error: VIM - Vi IMproved 7.0 (2006 May 7, compiled May 7 2006 16:18:30) Garbage after option argument: "-u NONE -e -c set" More info with: "vim -h

Re: [NTG-context] Syntax highlighted output

2007-04-28 Thread Chris Rawnsley
On 28/04/07, Aditya Mahajan <[EMAIL PROTECTED]> wrote: > You do not need to mention ../ and ../../. ConTeXt automatically > searches for product and project files in one higher directory. Ah thanks for the tip. I can certainly see that becoming useful in the future. > What does texmfstart --locate

Re: [NTG-context] Syntax highlighted output

2007-04-28 Thread Chris Rawnsley
Sorry I missed that other email you posted! Going over it with fine tooth comb :-) ___ 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

Re: [NTG-context] Syntax highlighted output

2007-04-28 Thread Chris Rawnsley
On 28/04/07, Aditya Mahajan <[EMAIL PROTECTED]> wrote: > Do you have write18 enabled? Check the log file, it should say > something like > > \wirte18 enabled. Yep the log file mentions that line. > system(texmfstrart bin:vim -c ...long list of arguments...) executed Well, firstly, the log says thi

Re: [NTG-context] Dummy question about \externalfigure

2007-04-28 Thread Wolfgang Schuster
On Sat, 28 Apr 2007 14:55:19 +0300 Vyatcheslav Yatskovsky <[EMAIL PROTECTED]> wrote: > Hello, > > Sorry for dummy question, but why there is always no blank line BEFORE, but > there exists a blank line AFTER the \externalfigure? > Even leaving a blank paragraph before and omitting it after the

Re: [NTG-context] Syntax highlighted output

2007-04-28 Thread Aditya Mahajan
On Sat, 28 Apr 2007, Chris Rawnsley wrote: > Thank you for your reply. It got closer this time but through a different > error: > > ! I can't find file `c_Implementation-vimsyntax.tmp-vimsyntax.tmp'. > > \relax > \dodotypevimfile ...\input #2-vimsyntax.tmp\relax >

Re: [NTG-context] Syntax highlighted output

2007-04-28 Thread Chris Rawnsley
Thank you for your reply. It got closer this time but through a different error: ! I can't find file `c_Implementation-vimsyntax.tmp-vimsyntax.tmp'. \relax \dodotypevimfile ...\input #2-vimsyntax.tmp\relax \egroup \@@vsafter l.4

Re: [NTG-context] Syntax highlighted output

2007-04-28 Thread Aditya Mahajan
On Sat, 28 Apr 2007, Aditya Mahajan wrote: > Do you have \usemodule[vim] somewhere in the setup? Does the log file > say something like "module:ViM Syntax Highliting" I realized that the documentation does not say that you need to add \usemodule[vim] in your file. I will include it in the do

Re: [NTG-context] Syntax highlighted output

2007-04-28 Thread Aditya Mahajan
On Sat, 28 Apr 2007, Chris Rawnsley wrote: > Hello All, > I am writing a project report for a PHP project I have completed and > I need to include the code I have written. I would like to have code > that is highlighted similar to the editor I use (it's Notepad2 but I'm > sure most of you know wh

Re: [NTG-context] Syntax highlighted output

2007-04-28 Thread Chris Rawnsley
> you can also consider > my 2 cents > http://www.logosrl.it/context/modules/2007-04-17/verb-modu_ebook.pdf > -- > luigi Thanks for your reply. From what I understand, there isn't currently a verb file for PHP and I gather they are quite lengthy to write. Unfortuantely, I don't have the time to wr

Re: [NTG-context] Boxed text on the same line as a figure

2007-04-28 Thread Thomas A. Schmitz
Vyatcheslav Yatskovsky wrote: > Hello, > > Please, help me with following. > > I have a figure included as > \externalfigure[lily02.png] > > spanning an half of the text width. I want place some additional text in a > box RIGHT to it. This box will not overlap with the figure. The rest of text

[NTG-context] Dummy question about \externalfigure

2007-04-28 Thread Vyatcheslav Yatskovsky
Hello, Sorry for dummy question, but why there is always no blank line BEFORE, but there exists a blank line AFTER the \externalfigure? Even leaving a blank paragraph before and omitting it after the figure doesn't change anything. :( What is I want the opposite -- a blank line before and tig

[NTG-context] Boxed text on the same line as a figure

2007-04-28 Thread Vyatcheslav Yatskovsky
Hello, Please, help me with following. I have a figure included as \externalfigure[lily02.png] spanning an half of the text width. I want place some additional text in a box RIGHT to it. This box will not overlap with the figure. The rest of text flows as usual, that is before and after the i

Re: [NTG-context] Syntax highlighted output

2007-04-28 Thread luigi scarso
On 4/28/07, Chris Rawnsley <[EMAIL PROTECTED]> wrote: > Hello All, > I am writing a project report for a PHP project I have completed and > I need to include the code I have written. I would like to have code > that is highlighted similar to the editor I use (it's Notepad2 but I'm > sure most of

Re: [NTG-context] Traditional Chinese Typesetting (almost complete)

2007-04-28 Thread Zhichu Chen
Hi, Patrick I've packed the fonts (although they can be downloaded somewhere, but it's too big so I've deleted many unnecessary files) and support files, it's about 53.6M. I have tried to upload to my google page, but it failed for like 1000 times. I'll see if I can find an FTP to save it tempora

[NTG-context] Syntax highlighted output

2007-04-28 Thread Chris Rawnsley
Hello All, I am writing a project report for a PHP project I have completed and I need to include the code I have written. I would like to have code that is highlighted similar to the editor I use (it's Notepad2 but I'm sure most of you know what I mean), has line numbers and is in a monospaced f

[NTG-context] iint, iiint, etc. for math mode

2007-04-28 Thread Aditya Mahajan
Hi, Here is ConTeXt version of iint, iiint, etc from amsmath. Basically, just combine the intop symbols with appropriate kern between them. And in case of \iint\limits, provides a visually centered subscript. Aditya \unprotect \def\dointkern {\mkern-6mu\mathchoice{\mkern-3mu}{}{}{}} \defin