|
From: Alastair I. <ala...@sj...> - 2014-02-27 10:06:48
|
The below was on the Emacspeak list. It would be interesting to see how it compares to what we do. Alastair -------- Original Message -------- Subject: start on accessing latex tables Resent-Date: Wed, 26 Feb 2014 19:06:09 -0500 Resent-From: <ema...@cs...> Date: Thu, 27 Feb 2014 11:05:12 +1100 From: Peter Rayner <pet...@gm...> Reply-To: <pr...@un...> To: <ema...@cs...> Another project I mentioned a while ago. Here is a start on parsing latex tables into the emacspeak-table data structure. I decided to use python to do the work of parsing the LATeX itself so this requires pymacs. I've added the following lines to my .emacs but it probably should be handled via a require directive in emacspeak-table-ui itself. (load-library "pymacs") (autoload 'pymacs-apply "pymacs") (autoload 'pymacs-call "pymacs") (autoload 'pymacs-eval "pymacs" nil t) (autoload 'pymacs-exec "pymacs" nil t) (autoload 'pymacs-load "pymacs" nil t) Many thanks to Andrew Thomas for the hard work on the python. This is by no means complete, for example it doesn't know about the full range of options for the tabular environment. I've been using it for a month or so and it's already quite useful. to use it mark a tabular environment (using c'c dot in auctex for example) then run emacspeak-table-display-latex-table-in-region Feedback welcome cheers Peter |