Skip to main content

TeXlipse (aspell for Mac)

Eclipse is an IDE for everything. There are at least two plugins for Latex. I'm using texlipse. You need aspell and can get a Mac OS X version here. [cocoAspell]. After installation it will be available at /usr/local/bin/aspell

FEATURES:
  1. There is a nice simple table editor. Yay!
BUGS:
  1. There is a small bug in the project setup. I like to keep projects under my directory structure, not under .eclipse. In texlipse if you click 'Create project at external location' and select a folder, then fill out project name, it will get created under .eclipse. You need to first fill out project name, then click 'Create ...' and then choose the directory.
  2. When you create a new file, it tries to open the editor but dies with some error. Closing the editor window and double clicking on the file opens it
  3. Outline view does not work
UPDATE:
Too many bugs, things not working, going back to texmaker... The good thing is that I found aspell for Mac, that integrates nicely with the system preferences etc.

Comments

  1. I installed as you suggested with terminal. But after instalation I couldn't configure aspell for texlipse, because I couldn't find location of aspell while browsing aspell command. Where is usr/bin

    Thank you very much in advance...

    ReplyDelete
  2. I have't used texlipse for a long while. I think though, you need to hit Command+G in finder to enter /usr/local/bin, because finder hides it from you

    ReplyDelete
  3. I am sorry, but it doesn't work. What is the main directory for this usr? where should I start?

    I need to do this immediately, I installed aspell with using your terminal commands. It installed i guess but I couldn't configure

    ReplyDelete
  4. Ok I managed to find the folder but which file should be browsed for configuring aspell in texlipse preference

    ReplyDelete
  5. Hello,

    Here is my environment:
    Mac OS 10.6.3, Eclipse Galileo + Texlipse, cocoAspell 2.1

    Eclipse Preferences: (Texlipse)
    Directory for main dictionaries: /Library/Application Support/cocoAspell/aspell6-en-6.0-0

    Directory for user dictionaries: /Library/Application Support/cocoAspell/aspell6-en-6.0-0

    Aspell command:
    /usr/local/bin/aspell

    Aspell arguments:
    -a -t –lang=en_GB –encoding=iso8859-1 –personal=/Library/Application Support/cocoAspell/aspell6-en-6.0-0/en.pws
    /usr/local/bin/aspell

    Using the above config, the spelling (check spelling under Latex Menu in Eclipse) does not work!

    Please help. Thanks in advance.

    ReplyDelete
  6. Hi Anon,

    Sorry I can't help you there. I've migrated to LyX.

    ReplyDelete

Post a Comment

Popular posts from this blog

A note on Python's __exit__() and errors

Python's context managers are a very neat way of handling code that needs a teardown once you are done. Python objects have do have a destructor method ( __del__ ) called right before the last instance of the object is about to be destroyed. You can do a teardown there. However there is a lot of fine print to the __del__ method. A cleaner way of doing tear-downs is through Python's context manager , manifested as the with keyword. class CrushMe: def __init__(self): self.f = open('test.txt', 'w') def foo(self, a, b): self.f.write(str(a - b)) def __enter__(self): return self def __exit__(self, exc_type, exc_val, exc_tb): self.f.close() return True with CrushMe() as c: c.foo(2, 3) One thing that is important, and that got me just now, is error handling. I made the mistake of ignoring all those 'junk' arguments ( exc_type, exc_val, exc_tb ). I just skimmed the docs and what popped out is that you need to return True or...

Store numpy arrays in sqlite

Use numpy.getbuffer (or sqlite3.Binary ) in combination with numpy.frombuffer to lug numpy data in and out of the sqlite3 database: import sqlite3, numpy r1d = numpy.random.randn(10) con = sqlite3.connect(':memory:') con.execute("CREATE TABLE eye(id INTEGER PRIMARY KEY, desc TEXT, data BLOB)") con.execute("INSERT INTO eye(desc,data) VALUES(?,?)", ("1d", sqlite3.Binary(r1d))) con.execute("INSERT INTO eye(desc,data) VALUES(?,?)", ("1d", numpy.getbuffer(r1d))) res = con.execute("SELECT * FROM eye").fetchall() con.close() #res -> #[(1, u'1d', <read-write buffer ptr 0x10371b220, size 80 at 0x10371b1e0>), # (2, u'1d', <read-write buffer ptr 0x10371b190, size 80 at 0x10371b150>)] print r1d - numpy.frombuffer(res[0][2]) #->[ 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.] print r1d - numpy.frombuffer(res[1][2]) #->[ 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.] Note that for work where data ty...