January 2018

S M T W T F S
  123456
78910111213
14151617181920
21222324252627
28293031   

Page Summary

Style Credit

Expand Cut Tags

No cut tags

November 17th, 2006

pozorvlak: (gasmask)
Friday, November 17th, 2006 12:02 pm
Emacs users: how would you do this in Emacs? I've included a vi solution under the cut, but I suspect (based on the kind of thing we've been talking about recently) that, while the vi solution would work within Emacs, the most natural Emacs solution would look rather different.

You want to create a table of the Greek alphabet, in TeX, with lowercase and uppercase forms of the letters, their names, and similar symbols which they might be confused with. So you want a line of code to start the table and another to end it, and in the middle, you want lines like
$\alpha$ & A & Alpha & $\infinity$ \\
$\beta$ & $\Beta$ & Beta & \\
...
$\epsilon, \varepsilon$ & E & $\in$ \\
There are, as you can see, some irregularities - some Greek letters don't have uppercase equivalents in TeX (so there's no \Alpha or \Eta), some have alternate forms, and the "easily confused with" column has to be done by hand. But there's still a lot of redundancy in the table. What's the easiest way of creating this in Emacs?

How I would have done it in vi )

Unfortunately, when I was actually doing this, I had access to neither vi nor Emacs - due to various annoyances, I had to create the document under Windows, using a ghastly excuse for an editor called WinEdt. If you are ever tempted to try using this "editor", resist. It will only cause pain.
Tags: