emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] [odt/xhtml] Export lists as tables (list-tables)


From: Jambunathan K
Subject: [O] [odt/xhtml] Export lists as tables (list-tables)
Date: Fri, 02 Sep 2011 01:01:53 +0530
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (windows-nt)

I am pleased to announce support for list-tables in the odt/xhtml
exporters. See below for some introductary note. Also refer to the
attached org/odt/html files.

Thanks for your past and future inputs.
Jambunathan K.


Related posts:

1. Thanks to Ben for introducing list-table in this post
https://lists.gnu.org/archive/html/emacs-orgmode/2011-03/msg01101.html

2. Thanks to Nathan Neff for raising the topic of resumes in the context
   of odt exporter
https://lists.gnu.org/archive/html/emacs-orgmode/2011-07/msg00998.html

Discussions with him led me to understand the "two column" style of
resumes. (Visibly speaking) the Eurpass CV template linked to below is
also "pre-dominantly" a two column format save for few rows which have
multiple columns.

http://europass.cedefop.europa.eu/img/dynamic/c1624/type.FileContent.file/CVTemplate_en_GB.odt

3. Thanks to Matt Price for passing complex table by me and registering
   some use cases.
https://lists.gnu.org/archive/html/emacs-orgmode/2011-08/msg01186.html

The overarching theme in all these threads is a multi-column table with
copious text where each column is variably sized.

List-tables is a humble first step in this direction. (Proportional
sizing of columns and support for grid lines is coming soon)

>From the blurb:
,----
| ;; Notes on LIST-TABLES
| ;; ====================
| ;; When `org-lparse-list-table-enable' is non-nil, the following list
| ;;
| ;; #+begin_list-table
| ;; - Row 1
| ;;   - 1.1
| ;;   - 1.2
| ;;   - 1.3
| ;; - Row 2
| ;;   - 2.1
| ;;   - 2.2
| ;;   - 2.3
| ;; #+end_list-table
| ;;
| ;; will be exported as though it were a table as shown below.
| ;;
| ;; | Row 1 | 1.1 | 1.2 | 1.3 |
| ;; | Row 2 | 2.1 | 2.2 | 2.3 |
| ;;
| ;; Note that org-tables are NOT multi-line and each line is mapped to
| ;; a unique row in the exported document.  So if an exported table
| ;; needs to contain a single paragraph (with copious text) it needs to
| ;; be typed up in a single line. Editing such long lines using the
| ;; table editor will be a cumbersome task.  Furthermore inclusion of
| ;; multi-paragraph text in a table cell is well-nigh impossible.
| ;;
| ;; LIST-TABLEs are meant to circumvent the above problems with
| ;; org-tables.
| ;;
| ;; Note that in the example above the list items could be paragraphs
| ;; themselves and the list can be arbitrarily deep.
| ;;
| ;; Inspired by following thread:
| ;; https://lists.gnu.org/archive/html/emacs-orgmode/2011-03/msg01101.html
`----

#+TITLE:     list-tables.org
#+AUTHOR:    Jambunathan K
#+EMAIL:     address@hidden
#+DATE:      2011-08-30 Tue
#+DESCRIPTION:
#+KEYWORDS:
#+LANGUAGE:  en
#+OPTIONS:   H:3 num:t toc:nil \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t
#+OPTIONS:   TeX:t LaTeX:dvipng skip:nil d:nil todo:t pri:nil tags:not-in-toc

#+EXPORT_SELECT_TAGS: export
#+EXPORT_EXCLUDE_TAGS: noexport
#+LINK_UP:   
#+LINK_HOME: 
#+XSLT:

* List Tables1
  A normal list

  - a
  - b
  - c

* List Table 2

  A homogenous list-table

#+begin_list-table
- Row 1
  - Row 1.1
  - Row 1.2
  - Row 1.3
- Row 2
  - Row 2.1
  - Row 2.2
  - Row 2.3
#+end_list-table

* List Table 3
  
  A degenerate list-table

#+begin_list-table
- Row 1
- Row 2
- Row 3
#+end_list-table

* List Table 4

  A non-homogenous list-table

#+begin_list-table
- Row 1
  - Row 1.1
  - Row 1.2
  - Row 1.3
- Row 2
  - Row 2.1
- Row 3
  - Row 3.1
  - Row 3.2
#+end_list-table

* List Tables 4
  A complex true-to-the-spirit multiline list-table

#+begin_list-table
- Row 1
  - Row 1.1
    - Subitem under 1.1
    - Yet another subitem under 1.1
  - Row 1.2
  - Row 1.3
- Row 2
  - Row 2.1
  - Row 2.2

    Subtext for 2.1
  - Row 2.3
#+end_list-table

list-tables.org

1 List Tables1

A normal list

  • a
  • b
  • c

2 List Table 2

A homogenous list-table

Row 1

Row 1.1

Row 1.2

Row 1.3

Row 2

Row 2.1

Row 2.2

Row 2.3

3 List Table 3

A degenerate list-table

Row 1

Row 2

Row 3

4 List Table 4

A non-homogenous list-table

Row 1

Row 1.1

Row 1.2

Row 1.3

Row 2

Row 2.1

Row 3

Row 3.1

Row 3.2

5 List Tables 4

A complex true-to-the-spirit multiline list-table

Row 1

Row 1.1

  • Subitem under 1.1
  • Yet another subitem under 1.1

Row 1.2

Row 1.3

Row 2

Row 2.1

Row 2.2

Subtext for 2.1

Row 2.3

Date: 2011-08-30 Tue

Author: Jambunathan K

Org version 7.7 with Emacs version 24

Validate XHTML 1.0

Attachment: list-tables.odt
Description: list-tables.odt

-- 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]