[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [eLyXer-users] Additional LaTeX symbols
From: |
Jens Nöckel |
Subject: |
Re: [eLyXer-users] Additional LaTeX symbols |
Date: |
Sat, 2 Jan 2010 21:35:29 -0800 |
Hi Alex,
thanks for spotting the two errors in the naming of symbols.
On Jan 2, 2010, at 3:51 PM, Alex Fernandez wrote:
> Hi Jens,
>
> On Sat, Jan 2, 2010 at 7:31 PM, Jens Nöckel <address@hidden> wrote:
>> Hi there - happy New Year!
>
> Happy New Year to you too!
>
>> After finding some missing LaTeX symbols in elyxer's output, I went through
>> a large list of math symbols and found quite a lot of other exotic commands
>> that should be added for completeness. I consulted Mathematica and the
>> symbol tables provided by various LaTeX packages, and compared to what is
>> already included in elyxer. Finally, I ended up with the following
>> translation table, which I think could be added to the "commands" dictionary
>> of the FormulaConfig class in the conf/config.py file. I did several regular
>> expression manipulations on the table in xemacs, and I hope there are no
>> duplicates of things that already existed in config.py
>
> That is great! Just a minor point: please note that elyxer.py (as
> distributed in the nongnu package) is compiled from a number of Python
> source files, among them conf/config.py which contains these classes;
> but this is in turn created from conf/base.cfg which is a text file
> that resembles a Windows properties file, in a very simple format:
> \command:symbol
>
OK - I guess it will take a little more time before I become familiar with the
inner workings of elyxer...
>> Because of the special characters and since I don't know if zip files will
>> go through this email, I've put the table up on my web site as a HTML file.
>> You can copy the source of the body directly into the elyxer python code:
>> http://uoregon.edu/~noeckel/LyX/elyxer/sy10.html
>
> It is an excellent work, indeed. I have already converted it to my own
> format (with vim this time ;) and imported them. There are indeed some
> duplicates (e.g. I thought I already had the \bowtie), but the great
> majority are new.
>
> There are also a couple of symbols that appear to be wrong. Could you
> tell me if my inferences about them are correct? The first
> \ntrianglelefteq I think that should be \trianglelefteq; the second
> \succsim should be \succnsim. I am attaching my base.cfg so that you
> can doublecheck it all.
>
Yes, that looks good to me.
One other thing I noticed, though: the HTML output for \langle and \rangle
always seems to look too tall. Maybe this is a bug in Firefox. It went away
when I replaced the unicode for these characters by their HTML entity names,
⟨ (⟩). With these names, the angle brackets are displayed at the
normal text height.
To see what I mean, you could take another look at the above URL - I've
uploaded your base.cfg file there (old and new entries separated by a line).
For the \langle I have put in the ⟨ entity name, and for \rangle I have
left the unicode. In my browser, the \rangle is displayed too large (over two
lines). It's a bit mysterious, so maybe you won't see the same phenomenon...
Below is a little screenshot of the large \rangle:
>> By the way, I noticed an extra comma at the end ofseveral of elyxer's
>> dictionaries. Is that empty entry intentional?
>
> Nope, just that the script that converts the text file into
> conf/config.py was already working and I was too lazy to remove it.
> Python ignores that last empty entry.
>
>> Hope this works,
>
> Thanks! It was a wonderful Christmas present.
>
> Alex.
> <base.cfg>
Cheers,
Jens