From: Marco <netuse@lavabit.com>
To: ntg-context@ntg.nl
Subject: Re: [t-vim] Line numbers
Date: Tue, 22 Feb 2011 10:15:50 +0100 [thread overview]
Message-ID: <20110222101550.0c59b9f2@glyph> (raw)
In-Reply-To: <alpine.LNX.2.01.1102211920560.27410@ybpnyubfg.ybpnyqbznva>
On 2011-02-21 Aditya Mahajan <adityam@umich.edu> wrote:
> > 1) You have »Add line numbers« on your TODO list. What's the progress?
>
> No. I will look into them. I think that I should just be able to plug in
> ConTeXt's line numbering mechanism.
I like the »just« in your sentence :) That would be awesome.
> > 2) To set the font size I do the following, is there a better solution
> > like bodyfont=xyz for definetyping or is it just fine like this?
> >
> > \definevimtyping [PHP] [
> > syntax=php,
> > before={\switchtobodyfont[small]},
> > ]
>
> I think that the best idea is to add a style=..., and color=..., key.
ACK
> In fact, I have added these keys to t-filter module. If you get the latest
> version of the module from github[1],
done
> then you should be able to say:
>
> \definevimtyping
> [PHP]
> [syntax=php,
> style={\switchtobodyfont[small]\setupinterlinespace},
> ]
That works/looks nice.
> PS: The style=.. and color=... attributes only work with MkIV.
That's fine for me.
Regards
Marco
___________________________________________________________________________________
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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2011-02-22 9:15 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-19 14:56 Marco
2011-02-22 1:10 ` Aditya Mahajan
2011-02-22 9:15 ` Marco [this message]
2011-02-22 19:26 ` Aditya Mahajan
2011-02-23 10:19 ` Marco
2011-02-23 15:21 ` Aditya Mahajan
2011-02-23 15:43 ` Marco
2011-02-23 16:16 ` Aditya Mahajan
2011-02-23 16:54 ` Marco
2011-02-23 17:49 ` Aditya Mahajan
2011-02-23 18:27 ` Marco
2011-02-23 19:39 ` Aditya Mahajan
2011-02-25 12:08 ` Hans Hagen
2011-02-26 23:24 ` Aditya Mahajan
2011-02-27 17:20 ` Marco
2011-02-27 17:41 ` Aditya Mahajan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110222101550.0c59b9f2@glyph \
--to=netuse@lavabit.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).