From mboxrd@z Thu Jan 1 00:00:00 1970 From: coroa@online.de (Jonas =?utf-8?Q?H=C3=B6rsch?=) Subject: Re: TABLES: aesthetics on columns Date: Wed, 23 Nov 2011 17:25:44 +0100 Message-ID: <871usyx0tz.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:48954) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RTFmw-0006eT-1t for emacs-orgmode@gnu.org; Wed, 23 Nov 2011 11:35:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RTFmv-00069B-4F for emacs-orgmode@gnu.org; Wed, 23 Nov 2011 11:35:10 -0500 Received: from lo.gmane.org ([80.91.229.12]:33004) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RTFmu-00068l-Iu for emacs-orgmode@gnu.org; Wed, 23 Nov 2011 11:35:09 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RTFmt-0000RW-UA for emacs-orgmode@gnu.org; Wed, 23 Nov 2011 17:35:07 +0100 Received: from kafka.exp.univie.ac.at ([131.130.102.14]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 23 Nov 2011 17:35:07 +0100 Received: from coroa by kafka.exp.univie.ac.at with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 23 Nov 2011 17:35:07 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org On Wed, Nov 23 2011, Daniel Martins wrote: > 2) Can I locally define a table as completely in math mode? > > So I could type e.g. > > > A) > |---+---+---+---| > |   | M | l | k | > |---+---+---+---| > | M | - |   |   | > | l |   | - |   | > | k |   |   | - | > |---+---+---+---| > > Instead of > > B) > |-----+-----+-----+-----| > |     | $M$ | $l$ | $k$ | > |-----+-----+-----+-----| > | $M$ | -   |     |     | > | $l$ |     | -   |     | > | $k$ |     |     | -   | > |-----+-----+-----+-----| > > and when I export a table like A) to Latex I have the aspect of B) instead? with a header of #+LATEX_HEADER: \newcolumntype{m}{>{$}l<{$}} (where you define a new type of column, which always puts a $ to the beginning and to the end of a cell) and #+ATTR_LATEX: align=mmmm ( <- one m for each column ) directly above your table (this sets the mandatory argument for the tabular environment, so that the new column type is used for every column) should probably do it, if i understand everything correctly. cheers, jonas