emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Uwe Brauer <oub@mat.ucm.es>
To: emacs-orgmode@gnu.org
Subject: columnview how to break lines if cell is to width
Date: Thu, 07 Jan 2021 10:36:16 +0100	[thread overview]
Message-ID: <878s95ozqn.fsf@mat.ucm.es> (raw)

Hello 

Please consider the following example:
#+begin_src 

,* Group 1
  :PROPERTIES:
  :COLUMNS:  
  :Usuario1: Antonio Gonzales
  :Email1:   gonzi@ucm.es
  :Usuario2: Isabel Diaz
  :Email2:   isabel@ucm.es
  :Usuario3: Paula Rodríguez
  :Email3:   paula@ucm.es
  :Usuario4: Filipe Rio
  :Email4:   filipe@ucm.es
  :END:


,#+TBLNAME: members
,#+BEGIN: columnview :hlines 2 :indent nil :format "%50ITEM  %5Usuario1(Member) %5Email1(Email) %5Usuario2(Member) %5Email2(Email) %5Usuario3(Member) %5Email3(Email) %5Usuario4(Member) %5Email4(Email)"
| ITEM    | Member           | Email        | Member      | Email         | Member          | Email        | Member     | Email         |
|---------+------------------+--------------+-------------+---------------+-----------------+--------------+------------+---------------|
| Group 1 | Antonio Gonzales | gonzi@ucm.es | Isabel Diaz | isabel@ucm.es | Paula Rodríguez | paula@ucm.es | Filipe Rio | filipe@ucm.es |
,#+END
#+end_src

The resulting table has a bit too much width, I could use 

#+begin_src 
,* Group 1
  :PROPERTIES:
  :COLUMNS:  
  :Usuario1: Antonio Gonzales (email gonzi@ucm.es)
  :Usuario2: Isabel Diaz (email: isabel@ucm.es)
  :Usuario3: Paula Rodríguez (email:   paula@ucm.es)
  :Usuario4: Filipe Rio (email: filipe@ucm.es)
  :END:


,#+TBLNAME: members
,#+BEGIN: columnview :hlines 2 :indent nil :format "%50ITEM  %5Usuario1(Member)  %5Usuario2(Member)  %5Usuario3(Member)  %5Usuario4(Member)"
| ITEM    | Member                                | Member                             | Member                                  | Member                            |
|---------+---------------------------------------+------------------------------------+-----------------------------------------+-----------------------------------|
| Group 1 | Antonio Gonzales (email gonzi@ucm.es) | Isabel Diaz (email: isabel@ucm.es) | Paula Rodríguez (email:   paula@ucm.es) | Filipe Rio (email: filipe@ucm.es) |
,#+END
#+end_src

But then I would like to have a newline before (email ...) Is this
possible.


Another possibility would be to obtain a vertical table like this one


| ITEM   | Group 1          |
| Member | Antonio Gonzales |
| Email  | gonzi@ucm.es     |
| Member | Isabel Diaz      |
| Email  | isabel@ucm.es    |
| Member | Paula Rodríguez  |
| Email  | paula@ucm.es     |
| Member | Filipe Rio       |
| Email  | filipe@ucm.es    |

How can this be achieved?

regards

Uwe Brauer 



                 reply	other threads:[~2021-01-07  9:37 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=878s95ozqn.fsf@mat.ucm.es \
    --to=oub@mat.ucm.es \
    --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).