[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [parser] feature request: column and row numbers available for t
From: |
Nicolas Goaziou |
Subject: |
Re: [O] [parser] feature request: column and row numbers available for table-cell elements |
Date: |
Thu, 19 Jan 2017 22:15:56 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) |
Hello,
Eric S Fraga <address@hidden> writes:
> Would it be possible to extend the table-cell element in the parser to
> add :row and :column attributes that have the internal org values, as
> used by the formulae?
I don' think this is needed since this information is readily available
during the export process. For example
(1+ (length (org-export-get-previous-element table-cell info 'all)))
returns the column number table-cell belongs to, whereas
(1+ (cl-count-if
(lambda (row) (eq (org-element-property :type row) 'standard))
(org-export-get-previous-element (org-export-get-parent table-cell)
'all)))
returns the row number.
Regards,
--
Nicolas Goaziou