emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* table alignment tags in Org export
@ 2022-08-18  7:23 Alex Fenton
  0 siblings, 0 replies; 4+ messages in thread
From: Alex Fenton @ 2022-08-18  7:23 UTC (permalink / raw)
  To: org-mode-email

Hello,

Trying to export a table with alignment tags, e.g.

#+caption: left, center and right aligned columns
| <l>    |   <c>    |      <r> |
| a      |    b     |        c |
| aaaaaa | bbbbbbbb | cccccccc |

In, for example, HTML or ODT output, the columns are aligned according 
to the tags in the first row.

If exporting to Org (org-org-export-as-org), the tags disappear - i.e. 
the table is as-was, minus the first row.

Is there a way to retain the alignment information when re-exporting to Org?

cheers
alex


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

* table alignment tags in Org export
@ 2022-08-19 13:28 Alex Fenton
  2022-08-20  7:42 ` Ihor Radchenko
  0 siblings, 1 reply; 4+ messages in thread
From: Alex Fenton @ 2022-08-19 13:28 UTC (permalink / raw)
  To: emacs-orgmode

Hello,

Trying to export a table with alignment tags, e.g.


#+caption: left-, centre- and right aligned columns
| <l>    |   <c>    |      <r> |
| a      |    b     |        c |
| aaaaaa | bbbbbbbb | cccccccc |

In, for example, HTML or ODT output, the columns are aligned according 
to the tags in the first row.

If exporting to Org (org-org-export-as-org), the tags disappear - i.e. 
the table is as-was, minus the first row.

Is there a way to retain the alignment information when re-exporting to 
Org? - either a function or some setting somewhere

cheers
alex



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

* Re: table alignment tags in Org export
  2022-08-19 13:28 table alignment tags in Org export Alex Fenton
@ 2022-08-20  7:42 ` Ihor Radchenko
  2024-02-12 14:00   ` Ihor Radchenko
  0 siblings, 1 reply; 4+ messages in thread
From: Ihor Radchenko @ 2022-08-20  7:42 UTC (permalink / raw)
  To: Alex Fenton; +Cc: emacs-orgmode

Alex Fenton <alex@pressure.to> writes:

> Trying to export a table with alignment tags, e.g.
>
>
> #+caption: left-, centre- and right aligned columns
> | <l>    |   <c>    |      <r> |
> | a      |    b     |        c |
> | aaaaaa | bbbbbbbb | cccccccc |
>
> In, for example, HTML or ODT output, the columns are aligned according 
> to the tags in the first row.
>
> If exporting to Org (org-org-export-as-org), the tags disappear - i.e. 
> the table is as-was, minus the first row.

Confirmed.

> Is there a way to retain the alignment information when re-exporting to 
> Org? - either a function or some setting somewhere

No. Currently, ox-org.el currently disregards table cell alignment and width.

-- 
Ihor Radchenko,
Org mode contributor,
Learn more about Org mode at https://orgmode.org/.
Support Org development at https://liberapay.com/org-mode,
or support my work at https://liberapay.com/yantar92


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

* Re: table alignment tags in Org export
  2022-08-20  7:42 ` Ihor Radchenko
@ 2024-02-12 14:00   ` Ihor Radchenko
  0 siblings, 0 replies; 4+ messages in thread
From: Ihor Radchenko @ 2024-02-12 14:00 UTC (permalink / raw)
  To: Ihor Radchenko; +Cc: Alex Fenton, emacs-orgmode

Ihor Radchenko <yantar92@gmail.com> writes:

>> Is there a way to retain the alignment information when re-exporting to 
>> Org? - either a function or some setting somewhere

Alignment markers and other special table rows are now exported by
default in ox-org.

https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=6ff0de5c3
Fixed, on main.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>


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

end of thread, other threads:[~2024-02-12 13:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-19 13:28 table alignment tags in Org export Alex Fenton
2022-08-20  7:42 ` Ihor Radchenko
2024-02-12 14:00   ` Ihor Radchenko
  -- strict thread matches above, loose matches on Subject: below --
2022-08-18  7:23 Alex Fenton

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