emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Daniel Martins <danielemc@gmail.com>
To: Michael Brand <michael.ch.brand@gmail.com>
Cc: "Gustav Wikström" <gustav.erik@gmail.com>, emacs-orgmode@gnu.org
Subject: TABLES: aesthetics on columns
Date: Wed, 23 Nov 2011 09:13:18 -0200	[thread overview]
Message-ID: <CA+oe6vpQhVyM7U5XSPiz=6Ln4Tv_FAeAE0D641Do7ByHm8S6Vg@mail.gmail.com> (raw)

I have two questions on (possibly) improving aesthetics on columns
when editing org tables.

Following the thread on table editing, I have a minor issue with
editing org-mode for Latex generation (which I do most of the time!).
I have a table with several columns which are e.g. integer numbers and
the headings are single variables such as
a,b,c, M,k etc
it is OK but I want to include sometimes Greek terms and subscripts such as
\lambda or
$\delta_\kappa$
and the columns are not so nice to see and edit due to the different spacings


In Latex I could use \def

\def\ll{$\lambda$}
\def\dk{$\delta_\kappa$}


and the use \ll and \dk on the headings is quite nice (despite the
generally horrendous aspect of Latex tables when compared with the
clean, neat, simple and effective counterpart in org-mode).

So I have the first question:

1) Can I do the same in org-mode i.e. a previous (and possibly local)
definition or long variable befopre putting them in a table?


The other (maybe superfluous) question is

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?


Daniel

2011/11/22 Michael Brand <michael.ch.brand@gmail.com>
>
> Hi Daniel
>
> On Tue, Nov 22, 2011 at 15:26, Daniel Martins <danielemc@gmail.com> wrote:
> > Thank you very much!!!
> > Just one point
> > In my case at least M-<down> does not insert a new line!
>                      ^^^^^^^^^
>
> Yes, my fault. Corrigendum:
>
> 1) M-S-<down> to add the new row
> 2) mark the region from "t" down to any char from the field below
> 3) M-Ret
>
> Michael

             reply	other threads:[~2011-11-23 11:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-23 11:13 Daniel Martins [this message]
2011-11-23 12:40 ` TABLES: aesthetics on columns Suvayu Ali
2011-11-23 12:50   ` Daniel Martins
2011-11-23 16:25 ` Jonas Hörsch

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CA+oe6vpQhVyM7U5XSPiz=6Ln4Tv_FAeAE0D641Do7ByHm8S6Vg@mail.gmail.com' \
    --to=danielemc@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=gustav.erik@gmail.com \
    --cc=michael.ch.brand@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).