emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* alignment of description list in Org and export old and new
@ 2012-06-02  9:18 Michael Brand
  2012-06-04  3:36 ` Jambunathan K
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Michael Brand @ 2012-06-02  9:18 UTC (permalink / raw)
  To: Org Mode

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2012-08-01 14:17 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-02  9:18 alignment of description list in Org and export old and new Michael Brand
2012-06-04  3:36 ` 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

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).