emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Converting to a useful table in org-mode?
@ 2014-03-19  0:39 Sharon Kimble
  2014-03-19  1:59 ` Michael Weylandt
  2014-03-19  2:44 ` Nick Dokos
  0 siblings, 2 replies; 3+ messages in thread
From: Sharon Kimble @ 2014-03-19  0:39 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

[-- Attachment #1: Type: text/plain, Size: 1600 bytes --]

I have this list of books that I've read on my kindle which I now want
to store for posterity in org-mode. 

24-11-13 - Andrew Lane - young sherlock Holmes, fire storm 
3-12-13 - Richmal Compton - just Williams New years day 
9-12-13 - richmal compton - still william 
11-1-14 - Pc wren - beau geste 
18-1-14 - Andrew Lane - young sherlock Holmes, the red leech 
26-1-14 - Ian Fleming - casino royale 
24-02-14 - Cory doctorow - little brother 

How can I create a table of them please? 

I've tried highlighting them and then converting the region, but with a bit of elbow-grease and
deletions I get this -

| 24-11-13 | Andrew   Lane     | young   sherlock  Holmes,  fire   storm        |
|  3-12-13 | Richmal  Compton  | just    Williams  New      years  day          |
|  9-12-13 | richmal  compton  | still   william                                |
|  11-1-14 | Pc       wren     | beau    geste                                  |
|  18-1-14 | Andrew   Lane     | young   sherlock  Holmes,  the    red    leech |
|  26-1-14 | Ian      Fleming  | casino  royale                                 |
| 24-02-14 | Cory     doctorow | little  brother                                |

which looks stilted and unnatural! How can I close the gaps in the
cells please and get it all left-aligned? I've tried tabbing in the
cell and that didn't work, and neither did 'C-c C-c'.

Thanks
Sharon.
-- 
A taste of linux = http://www.sharons.org.uk
my git repo = https://bitbucket.org/boudiccas/dots
Debian testing, Fluxbox 1.3.5, emacs 24.3.1
Registered Linux user 561944

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

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

* Re: Converting to a useful table in org-mode?
  2014-03-19  0:39 Converting to a useful table in org-mode? Sharon Kimble
@ 2014-03-19  1:59 ` Michael Weylandt
  2014-03-19  2:44 ` Nick Dokos
  1 sibling, 0 replies; 3+ messages in thread
From: Michael Weylandt @ 2014-03-19  1:59 UTC (permalink / raw)
  To: Sharon Kimble; +Cc: emacs-orgmode@gnu.org



On Mar 18, 2014, at 20:39, Sharon Kimble <boudiccas@talktalk.net> wrote:

> I have this list of books that I've read on my kindle which I now want
> to store for posterity in org-mode. 

(OT thus sounds more like tasks/checklists to me)

> 
> 24-11-13 - Andrew Lane - young sherlock Holmes, fire storm 
> 3-12-13 - Richmal Compton - just Williams New years day 
> 9-12-13 - richmal compton - still william 
> 11-1-14 - Pc wren - beau geste 
> 18-1-14 - Andrew Lane - young sherlock Holmes, the red leech 
> 26-1-14 - Ian Fleming - casino royale 
> 24-02-14 - Cory doctorow - little brother 
> 
> How can I create a table of them please? 
> 
> I've tried highlighting them and then converting the region, but with a bit of elbow-grease and
> deletions I get this -
> 
> | 24-11-13 | Andrew   Lane     | young   sherlock  Holmes,  fire   storm        |
> |  3-12-13 | Richmal  Compton  | just    Williams  New      years  day          |
> |  9-12-13 | richmal  compton  | still   william                                |
> |  11-1-14 | Pc       wren     | beau    geste                                  |
> |  18-1-14 | Andrew   Lane     | young   sherlock  Holmes,  the    red    leech |
> |  26-1-14 | Ian      Fleming  | casino  royale                                 |
> | 24-02-14 | Cory     doctorow | little  brother                                |

That looks like a table -- assuming the leftmost pipe is the first character in each row, org should recognize it as a table. For me, the most obvious sign involves turning it purple but I'm not sure if that's set by my color theme or not. 

If it's a table, just put point anywhere inside it and hit TAB and it should auto align (left justified by default)

If that's not working, please send a copy of the file in question and details of your setup, including but not limited to the output of `M-x org-version` and everything in your .emacs with an "org" in it.

Hope that helps,
Michael



> 
> which looks stilted and unnatural! How can I close the gaps in the
> cells please and get it all left-aligned? I've tried tabbing in the
> cell and that didn't work, and neither did 'C-c C-c'.
> 
> Thanks
> Sharon.
> -- 
> A taste of linux = http://www.sharons.org.uk
> my git repo = https://bitbucket.org/boudiccas/dots
> Debian testing, Fluxbox 1.3.5, emacs 24.3.1
> Registered Linux user 561944

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

* Re: Converting to a useful table in org-mode?
  2014-03-19  0:39 Converting to a useful table in org-mode? Sharon Kimble
  2014-03-19  1:59 ` Michael Weylandt
@ 2014-03-19  2:44 ` Nick Dokos
  1 sibling, 0 replies; 3+ messages in thread
From: Nick Dokos @ 2014-03-19  2:44 UTC (permalink / raw)
  To: emacs-orgmode

Sharon Kimble <boudiccas@talktalk.net> writes:

> I have this list of books that I've read on my kindle which I now want
> to store for posterity in org-mode. 
>
> 24-11-13 - Andrew Lane - young sherlock Holmes, fire storm 
> 3-12-13 - Richmal Compton - just Williams New years day 
> 9-12-13 - richmal compton - still william 
> 11-1-14 - Pc wren - beau geste 
> 18-1-14 - Andrew Lane - young sherlock Holmes, the red leech 
> 26-1-14 - Ian Fleming - casino royale 
> 24-02-14 - Cory doctorow - little brother 
>
> How can I create a table of them please? 
>

Mark the region and then do

C-u C-u C-u M-x org-table-convert-region RET

When it prompts you for a separator regexp, type ' - ' (without the
quotes, but include the spaces).

-- 
Nick

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

end of thread, other threads:[~2014-03-19  2:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-19  0:39 Converting to a useful table in org-mode? Sharon Kimble
2014-03-19  1:59 ` Michael Weylandt
2014-03-19  2:44 ` Nick Dokos

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