emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Michael Brand <michael.ch.brand@gmail.com>
To: Org Mode <emacs-orgmode@gnu.org>
Subject: alignment of description list in Org and export old and new
Date: Sat, 2 Jun 2012 11:18:56 +0200	[thread overview]
Message-ID: <CALn3zogKq8wzjzg41wk-euwxrFbziqp+fPkQkruD06ciiekteg@mail.gmail.com> (raw)

Hi all

Is there a way to have automatic alignments in the Org buffer with M-q
(fill-paragraph) and C-c C-c like:

  - cmd ::                    short term + short descr
  - cmd -o <dst> <src> ::     short term + short descr
  - cmd --log-level=err -o <dst> <src> ::
                              long term + short descr
  - cmd --create-file ::      short term + long descr bla bla bla bla
                              bla bla bla bla bla bla bla bla bla bla
                              bla bla bla bla bla bla bla bla bla
  - cmd --log-level=wrn -o <dst> <src> ::
                              long term + long descr bla bla bla bla
                              bla bla bla bla bla bla bla bla bla bla
                              bla bla bla bla bla bla bla bla bla
  - cmd --log-level=dbg -o <dst> <src> ::
                              - term descr 1
                              - term descr 2

instead of the default (shown below)?

With a configuration for the character column of the left alignment of
descr that is ideally per list?

Can description lists during export to ASCII, HTML, LaTeX, PDF and ODT
have descr also:
- on the same line as the term when the term is short?
- aligned horizontally?

Some remarks:

Alternatives for the long items could be:

  - cmd --log-level=err -o <dst> <src> ::
                              long term + short descr
  - cmd --create-file ::      short term + long descr bla bla bla bla
       bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
       bla bla bla
  - cmd --log-level=wrn -o <dst> <src> ::
                              long term + long descr bla bla bla bla
       bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
       bla bla bla

or maybe simply:

  - cmd --log-level=err -o <dst> <src> ::
       long term + short descr
  - cmd --create-file ::
       short term + long descr bla bla bla bla bla bla bla bla bla bla
       bla bla bla bla bla bla bla bla bla bla bla bla bla
  - cmd --log-level=wrn -o <dst> <src> ::
       long term + long descr bla bla bla bla bla bla bla bla bla bla
       bla bla bla bla bla bla bla bla bla bla bla bla bla

The default alignment is:

  - cmd :: short term + short descr
  - cmd -o <dst> <src> :: short term + short descr
  - cmd --log-level=err -o <dst> <src> :: long term + short descr
  - cmd --create-file :: short term + long descr bla bla bla bla bla
       bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
       bla bla
  - cmd --log-level=wrn -o <dst> <src> :: long term + long descr bla
       bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
       bla bla bla bla bla bla
  - cmd --log-level=dbg -o <dst> <src> ::
    - term descr 1
    - term descr 2

M-q on the item "long term + long descr" that is aligned manually as
shown first will be stable only after a second M-q instead of already
after the first M-q with release_7.8.10-633 on 23.3.1.

Michael

             reply	other threads:[~2012-06-02  9:19 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-02  9:18 Michael Brand [this message]
2012-06-04  3:36 ` alignment of description list in Org and export old and new Jambunathan K
2012-06-05 19:48   ` Michael Brand
2012-06-09 12:26     ` Nicolas Goaziou
2012-06-10 16:39 ` Michael Brand
2012-06-12 12:37   ` Nicolas Goaziou
2012-07-31 15:33 ` Michael Brand
2012-08-01 14:09   ` Michael Brand
2012-08-01 14:17     ` Bastien

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=CALn3zogKq8wzjzg41wk-euwxrFbziqp+fPkQkruD06ciiekteg@mail.gmail.com \
    --to=michael.ch.brand@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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).