On Jul 28, 3:55 pm, Charles Campbell wrote:
>
> I've put a new syntax/tex.vim on my website (and have given it to Bram
> for inclusion in 7.3).  You may try it out by getting it 
> fromhttp://mysite.verizon.net/astronaut/vim/index.html#vimlinks_syntaxand
> clicking ontex.vim.gz .  Of course you'll need a gunzip or similar tool
> on Windows to decompress the file.
>
> The newtexsyntax file supports setting conceallevel to 2 with utf-8 by
> showing appropriate glyphs for Greek in math, a few math symbols in
> math, and a number of accented characters.
>
> I personally have little call to use accents in my writing, so I may
> well have missed some "favorites".  If you'd like some accented
> character that syntax/tex.vim is presently missing, please send me a
> line or two of the form
>
>    syn match texAccent    '\\c{c}'    conceal cchar=
>
> where the '\\c{c}', for example, shows a Vim regex pattern matching the
> LaTeX \c{c} which causes to appear.  To find the utf-8 glyphs, you may
> wish to refer tohttp://www.utf8-chartable.de/unicode-utf8-table.pl.  
> You can find my email address at the 3rd line of  vim73c/syntax/tex.vim .

Hi Chip (and vim_dev),

I really like the idea of using conceal in the tex syntax file but it
still needs some work (I'm basing my comments on the version of
tex.vim that was included in the Sun 1 Aug changeset).

Try the following:

  $\eps_b \geq \rho^{-\sigma b}$

- Super/subscripts look weird.  The \sigma is typeset as superscript
"s i g m a" (each letter is a superscript).  As it stands I'd rather
have no super/subscripts at all than this weird behavior.  (In fact, I
dislike the super/subscripts anyway because they become so tiny that
they are hard to read unless you set your 'gfn' size to something
enormous.)

- Super/subscripts work inconsistently.  Note that the "_b" after
"\eps" is not turned into a subscript.  As far as I understand some
letters are not available as subscripts?  Again, I'd rather have no
subscripts at all than to have some letters turn into subscripts but
not others.

- $, { and } are turned into "-".  Why?

- I can think of a few more things to conceal (off the top of my
head): \infty, \in, \subset (and variants), \cup, \cap, \wedge, \vee,
the list goes forever on (it may be helpful to take a look at "short-
math-guide.pdf" by Michael Downes)


Anyway, I am grateful for the work you've put into this but there is
definitely room for improvement (my apologies for not simply sending
you a patch but I really should get back to writing that
article... ;-).


Björn

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui