From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eddward DeVilla" Subject: Re: Table questions Date: Fri, 15 Dec 2006 10:08:48 -0600 Message-ID: References: <1oac1qih6j.fsf@bass.biostat.umn.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GvFcG-000081-Nn for emacs-orgmode@gnu.org; Fri, 15 Dec 2006 11:08:56 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GvFcC-0008U2-NT for emacs-orgmode@gnu.org; Fri, 15 Dec 2006 11:08:56 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GvFcB-0008TL-RN for emacs-orgmode@gnu.org; Fri, 15 Dec 2006 11:08:52 -0500 Received: from [66.249.92.175] (helo=ug-out-1314.google.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GvFcA-000131-KS for emacs-orgmode@gnu.org; Fri, 15 Dec 2006 11:08:51 -0500 Received: by ug-out-1314.google.com with SMTP id j3so1021743ugf for ; Fri, 15 Dec 2006 08:08:49 -0800 (PST) In-Reply-To: <1oac1qih6j.fsf@bass.biostat.umn.edu> Content-Disposition: inline List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Cc: Michael I'll follow this up with a few more wishes. Could the table minor mode maybe be extended to allow the user to define delimiters? Say draw a picture? struct hugeStaticTable initData = { // Draw a picture // ORG-ROW-DEF { /* key*/ $1 , /* name */ $2 , /* location */ { /* x */ $3 , /* y */ $4 } , /* comment*/ $5 }, { /* key */ 0, /* name */ "Bob", /* location */ { /* x */ 10.0, /* y */ 3.2 }, /* comment */ "You know. Bob! Bob. Good times... Good times..." } { /* key */ 1, /* name */ "Joe", /* location */ { /* x */ 5.5, /* y */ 4.4 }, /* comment */ "One fine batter." } ... }; I code with a lot of static tables that are populated by hand. Keeping them formatted is critical to keeping the code maintainable. I'd think that this example might be too much for the table-minor mode, but if there were a way to at least define a row beginning, end and field separator, it might help. struct S d = { // ORG-ROW-DEF '{' ',' '}' { f1 , f2 , f3 , f4 } .... }; On 12/14/06, Michael wrote: > > I recently started using org-mode and love its table feature. Here are some > questions that I have: > > 1. In table calculation, how to refer to a cell in a different column and > different row? Specifically, I want column 8 row 5 to be the ratio of > column 7 row 5 and column 7 row 4. > > 2. I think the table minor mode would be a fantastic tool in editing tables > in a LaTeX file. I wonder whether it is possible to let orgtbl recognize > \begin{tabular}\end{tabular} and use & as column delimiter rather than | > (also respect end of line \\)? > > Thanks, > > Michael > > > > _______________________________________________ > Emacs-orgmode mailing list > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode >