On Sun, 29 Apr 2007, Chris Rawnsley wrote:
On 29/04/07, Aditya Mahajan
wrote: I will need two three days to work on this.
Sorry I misunderstood you. I thought that function was already implemented. Don't feel you have to rush to get this implemented :) I can bear with the slow ness.
The nuts and pieces are there, but right now there is no such function. Here is what you can do. Write a batch script which calls 2context (see the complete command in \runvimsyntax in t-vim). Run it on the file that you want. After loading t-vim, add the following line \let\runvimsyntax\gobbleoneargument For making the line numbers always appear on the left, add this code after loading t-vim. \unprotect \def\showvimlinenumber {\inleft%was \inmargin%TODO: make configurable {\dostartattributes\??vs\c!numberstyle\c!numbercolor\empty \countervalue{vimlinenumber} \dostopattributes}} \protect
Right now, this is not possible. Let me see if I can add this feature.
That would be very useful. Thank you.
A fixed width font is also called a teletype font. By default, the code listing should be in a fixed width font, so I thought that you were talking about how to use a different fixed width font.
Ah I set up my body font like so:
\definetypeface [palatino] [rm] [serif] [palatino] [default] [encoding=ec] \switchtotypeface [palatino] [12pt,rm]
Though when it comes to listing code it doesn't automatically switch to a teletype font and it sticks with the body font, however, when I comment out of those two lines it does use a fixed width font. I'm guessing here but does that mean there is no teletype font in Palatino?
Strange, I thought that with your font setup ConTeXt should fall back to latin modern mono. Anyway, Wolfgang's suggestion should work and will give you latin modern mono scaled properly to match Palatino's height.
I not trying to put on demands on you here but the changes you say will only be useful to me if I get them before tonight. I need to hand in the project tomorrow. So I don't want you to spend time on implementing features that won't be appreciated by me (but I'm sure others will find it useful! I will as well in the future too). Basically, all I'm saying here is that you don't have to rush these features on my behalf.
I hope that didn't come off as being rude because it certainly wasn't meant to be.
Don't worry. I made this module to just have the features that I needed. As a result, there are lot of things that are missing from the module. Your effort to make the module work has been a good feedback to me. Aditya