Replies: 20 comments 30 replies
-
Since table.el tables are not easy to edit, maybe we can keep the org table format, but use tags to mark compound cell boundaries. By merging content of the sub cell,we get the compound cell content. For example:
instead of
Of course short tag is preferable, like
We can even keep the tags and use a libreoffice plugin to do the merge after export. Maybe some ideas can be borrowed from ftable for text rebalancing in the region with tags |
Beta Was this translation helpful? Give feedback.
-
For fun sake I just exported
to with nothing but what is already there. You really can go very far with what is already there.. Typing out the list table wasn't fun, but the result was worth it. All the relevant details are here: AppendixThis is the unit test file ...
|
Beta Was this translation helpful? Give feedback.
-
(on mobile)
You need to execute the src block you see at the beginning of the file
which defines the new gridded table style and associates it with custom
new automatic styles.
The automatic styles remove the padding around tables. So the tables
overlap. If you watch closely rules will be thicker where the tables
overlap. But it is nearly perceptible in the screenshot I started
…On Sun, 3 Oct, 2021, 22:24 Uwe Brauer, ***@***.***> wrote:
Another comment: I cannot see any difference between the two tables in the
odt file (using Libreoffice 6.2), while of course I see the differences in
the org file
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#102 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEXTBKHD23TH6SKSKKYTZQDUFCDF7ANCNFSM5FGGRXDQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Beta Was this translation helpful? Give feedback.
-
(contd)
IIf you observe closely rules will be thicker where the tables overlap. But
it is barely perceptible in the screenshot I shared. I am not sure if the
difference in the thickness will be perceptible in print.
…On Sun, 3 Oct, 2021, 22:24 Uwe Brauer, ***@***.***> wrote:
Another comment: I cannot see any difference between the two tables in the
odt file (using Libreoffice 6.2), while of course I see the differences in
the org file
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#102 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEXTBKHD23TH6SKSKKYTZQDUFCDF7ANCNFSM5FGGRXDQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Beta Was this translation helpful? Give feedback.
-
Impressive it may seem ... but it is all a sleight of hand. To understand
the inadequacy of the solution make the "Region" string in first table cell
very big like "Region ....." .
…On Sun, 3 Oct, 2021, 17:47 Uwe Brauer, ***@***.***> wrote:
That is very impressive thanks for sharing, that will enter my
documentation directory for sure!!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#102 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEXTBKCIE3HWMA7F64QS6Z3UFBCV3ANCNFSM5FGGRXDQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Beta Was this translation helpful? Give feedback.
-
It's impressive. Nesting list tables makes it hard to see the table structure within the list table. I would rather use libreoffice to do the editing and include the odt file in the org file. |
Beta Was this translation helpful? Give feedback.
-
>> "Q" == QiangF ***@***.***> writes:
I doubt you would like to edit that example table in emacs, you are
asking for trouble :-). I am joking. BTW, there is a feature called
transclusion of of ODT document:
#+ATTR_ODT: :transclude t
[[file:complicated_table.odt]]
That is interesting. So you can use that command and then export the org file, again, to odt?
|
Beta Was this translation helpful? Give feedback.
-
I have added support for row and colspans. See #104. This is an EXPERIMENTAL feature. I am open to suggestions on what the |
Beta Was this translation helpful? Give feedback.
-
A problem with tables that does not fit on one page, they do not break |
Beta Was this translation helpful? Give feedback.
-
I have updated the answer with
Apopos the above line .... That table is the largest row the table. So, I have "split" the table there. Forunately, the page break "naturally" appeared at that page. If not, I would have "enabed" the pagebreak line, Anyways, I realized there is a need for adding pagebreak before tables ... Currently pagebreak is supported only for paragraphs, and headlines. |
Beta Was this translation helpful? Give feedback.
-
Instead of a monolithic top level table (of say 10 rows), create 10 takes
for 1 row beginning at a new page.
So, generate a monolithic take and see where the layout naturally breaks,
and then you explicitly put page breaks at those point.
Now this braking of monolithic table can happen at the top level or at
nested table.
It is difficult to describe these things by words, that is why I stare
screenshot or pdf files.
In the example I shared, the monolithic table is broken into two tables, so
first two rows become one table and the 3rd and 4 th table become the
second table.
I believe the pdf table I shared looks ok with you. (Your description alone
was NOT sufficient, I had to go a step further and interpret what you could
have meant)
If the pdf is not what you want, send me screenshots markup portions that
are NOT satisfactory to you. I will try my best to help you in your
endeavour.
If the 10 or 10.5 pt is too small or spacing is too small I can (trt to)
fix them. You are doing some real life submission and I would STRONGLY
suggest that you print it out and satisfy yourself that it looks good on
paper.
Let me reiterate, 1 picture is equivalent to 1000 words
I will fix the pagebreak bug for you. Intuitively I am convinced that it is
NOT A SHOWSTOPPER for what you want to achieve in your real life.
Tell me what the language is. Is it German or Deutch?
I wish you success in whatever you are doing and more than happy to help you
…On Thu, 7 Oct, 2021, 22:16 Uwe Brauer, ***@***.***> wrote:
A problem with tables that does not fit on one page, they do not break
To ensure that table fits snug on a page, there are lots of tools
available to you. One of it is the font size. The others are
1. Table column width (You can see that I have changed the relative
size of columns)
2. Line spacing -- single, double, 1.5 etc
3. Margins and padding on almost everything right from page styles
down to table cells and the paragraphs.
I just add to modify that table adding more stuff and it does not break
again, I don't want to bother, also I think the table is already at its
limit, concerning font size. line spacing etc.
while non nested tables that are generated by you exporter do break
automatically, it seem that this no longer holds for this nested tables, so
I have to break them my self, right?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#102 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEXTBKFK2K4QQPCTYVJYQNLUFXFHNANCNFSM5FGGRXDQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Beta Was this translation helpful? Give feedback.
-
I am on mobile so some words are spelled wrong. For example, table has
come out mistakenly as 'take' etc. Sorry about that
Send me a screenshot and Mark them up with gimp, paint or inkscape so that
I know what areas are bothering you and I can focus on addressing those.
That said,
(I feel) there is a LibreOffice bug in how it layouts table s. Once I
confirm my intuition, document foundation will get a big report (and you a
courtesy copy) in another few days.
…On Thu, 7 Oct, 2021, 22:37 Jambunathan K, ***@***.***> wrote:
Instead of a monolithic top level table (of say 10 rows), create 10 takes
for 1 row beginning at a new page.
So, generate a monolithic take and see where the layout naturally breaks,
and then you explicitly put page breaks at those point.
Now this braking of monolithic table can happen at the top level or at
nested table.
It is difficult to describe these things by words, that is why I stare
screenshot or pdf files.
In the example I shared, the monolithic table is broken into two tables,
so first two rows become one table and the 3rd and 4 th table become the
second table.
I believe the pdf table I shared looks ok with you. (Your description
alone was NOT sufficient, I had to go a step further and interpret what you
could have meant)
If the pdf is not what you want, send me screenshots markup portions that
are NOT satisfactory to you. I will try my best to help you in your
endeavour.
If the 10 or 10.5 pt is too small or spacing is too small I can (trt to)
fix them. You are doing some real life submission and I would STRONGLY
suggest that you print it out and satisfy yourself that it looks good on
paper.
Let me reiterate, 1 picture is equivalent to 1000 words
I will fix the pagebreak bug for you. Intuitively I am convinced that it
is NOT A SHOWSTOPPER for what you want to achieve in your real life.
Tell me what the language is. Is it German or Douch?
I wish you success in whatever you are doing and more than happy to help
you
On Thu, 7 Oct, 2021, 22:16 Uwe Brauer, ***@***.***> wrote:
> A problem with tables that does not fit on one page, they do not break
>
> To ensure that table fits snug on a page, there are lots of tools
> available to you. One of it is the font size. The others are
>
> 1. Table column width (You can see that I have changed the relative
> size of columns)
> 2. Line spacing -- single, double, 1.5 etc
> 3. Margins and padding on almost everything right from page styles
> down to table cells and the paragraphs.
>
> I just add to modify that table adding more stuff and it does not break
> again, I don't want to bother, also I think the table is already at its
> limit, concerning font size. line spacing etc.
> while non nested tables that are generated by you exporter do break
> automatically, it seem that this no longer holds for this nested tables, so
> I have to break them my self, right?
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <#102 (reply in thread)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AEXTBKFK2K4QQPCTYVJYQNLUFXFHNANCNFSM5FGGRXDQ>
> .
> Triage notifications on the go with GitHub Mobile for iOS
> <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
> or Android
> <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
>
>
|
Beta Was this translation helpful? Give feedback.
-
My example doesn't modify any "nestingness". The "nestingness' is exactly
same as what you shared with me. This is deliberate ..... Without
understanding what is in those little boxes I really don't know how they
should be grouped. I assumed you already had them in a way that reflected
what was in the "scanned" pdf form handed out to you.
I have ONLY changed the font size, column widths and "broke' the table in to two at
exactly where the (commented out) page break appears. First 2 rows form the
first table. The 3rd and 4 th row becomes the second table. The 3rd row
is really big so it spans more than one page. (There is NO way you can
put it in a single page BUT you can have the header portions carried over
to next page by introducing hlines) What you want depends on what those
boxes mean ... and the semantics are opaque to me. So any interpretation
or a judgement call on my part is no different from shooting with both my
eyes shut and hoping that it hits the target.
…On Thu, 7 Oct, 2021, 22:16 Uwe Brauer, ***@***.***> wrote:
A problem with tables that does not fit on one page, they do not break
To ensure that table fits snug on a page, there are lots of tools
available to you. One of it is the font size. The others are
1. Table column width (You can see that I have changed the relative
size of columns)
2. Line spacing -- single, double, 1.5 etc
3. Margins and padding on almost everything right from page styles
down to table cells and the paragraphs.
I just add to modify that table adding more stuff and it does not break
again, I don't want to bother, also I think the table is already at its
limit, concerning font size. line spacing etc.
while non nested tables that are generated by you exporter do break
automatically, it seem that this no longer holds for this nested tables, so
I have to break them my self, right?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#102 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEXTBKFK2K4QQPCTYVJYQNLUFXFHNANCNFSM5FGGRXDQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Beta Was this translation helpful? Give feedback.
-
Hi |
Beta Was this translation helpful? Give feedback.
-
Surely there are nested tables in Microsoft Word https://www.howtogeek.com/howto/microsoft-office/nesting-a-table-inside-a-table-in-word-2007/. |
Beta Was this translation helpful? Give feedback.
-
>> "JK" == Jambunathan K ***@***.***> writes:
> LO can deal well with them, however I had to export that to docx (that format, sadly, is more common) using LO's converter.
How are you exporting from LibreOffice -- command line or through UI?
In principle both, but the very last version of the odt document by the UI.
What is the specific version of Microsoft Word you are using?
My collaborator has a bit old version 2011, he told me, I have also access to MS Word 2020/21 but since I am not really acquainted with it, I did not risk to try to edit table with it
What is the MS Word format that you are using? There are plenty of Microsoft Word formats around.
Docx. It seems that doc was a bit better for that old MS Word version
https://blog.desdelinux.net/en/optimiza-libreoffice-para-que-tenga-mejor-compatibilidad-con-microsoft-office/
> Then I learnt that MS Word does not support nested tables.
A cursory google search suggests that nested tables are common in
Microsoft land. See
https://www.google.com/search?client=firefox-b-e&q=%22nested+table%22+%22microsoft+word%22+site%3Ayoutube.com
Hm, according to
https://publica.fraunhofer.de/eprints/urn_nbn_de_0011-n-1047639.pdf
they are not, not sure how recent that document is.
-----
Try your luck in https://ask.libreoffice.org/. It is "not" just a user
forum. Some of the people who respond there, seem to be developers and
are very technically-minded old hands.
If you think you have exhausted your options, you need to file a bug
report with https://bugs.documentfoundation.org/. (I think) if you
mention that a ODT file created by LibreOffice gets garbled when
exported to docx, I am sure you will get good leads or help.
Compatibility issues take high priority.
Thanks, but if, as you said in another email, nested tables can be avoided, then I prefer to stick with plain tables, just in case
|
Beta Was this translation helpful? Give feedback.
-
My suggestion was to add this (load-file "/home/kjambunathan/src/org-mode-ox-odt-master/lisp/ox-odt.el") or (load-file "/home/kjambunathan/.emacs.d/elpa/ox-odt-9.3.7.331/ox-odt.el") in your .emacs right at the very last line. Problem solved. It will work with new or old versions of org.
It is based on 9.3.7. The prefix of the package tar file says the base version. What you see in the file is is the minimal version of org expected.
It will definitely happen. This is the status as on May 2021 https://github.com/kjambunathan/org-mode-ox-odt/commits/citeproc-wip. I got busy after May 2021. As I said, simply load the file as the last step in your .emacs, and it will/should work. |
Beta Was this translation helpful? Give feedback.
-
(Courtesy link for some one who stumbles on to this discussion) I have added support for |
Beta Was this translation helpful? Give feedback.
-
I wish there were a more simple way to add the left hand rule to the table. The standard org syntax
doesn't seem to parse. |
Beta Was this translation helpful? Give feedback.
-
Also @kjambunathan, how do you get
to work? |
Beta Was this translation helpful? Give feedback.
-
Hi
it is my understanding that org still does not support merged cells in tables
see for example
https://lists.gnu.org/archive/html/emacs-orgmode/2010-08/msg00882.html
although this is 11 years old, it seems that it still is not supported, however some proposals are done in this thread and a recommendation to use table.el
however the org-mode-ox-odt exporter supports using list to convert them to tables, so the question is, could
that include or produce merged cells as in
Beta Was this translation helpful? Give feedback.
All reactions