From: Yann Barsamian <yann.barsamian-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Converting nested tables [to latex ; from docx or odt]
Date: Sun, 15 Aug 2021 10:20:43 -0700 (PDT) [thread overview]
Message-ID: <b1e18482-a9ec-4f53-8453-b765fb199cc4n@googlegroups.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 2642 bytes --]
Dear all,
I am new to pandoc, and searched this forum of discussion without finding
any similar issue. Here is a bug I think I found. I reduced the input
document to an almost minimal form, and it is attached to this message.
I am working under ubuntu 20.04, and downloaded the latest pandoc 2.14.1.
The issue is related to a document that contains an array, and inside one
of the cells of this array, there is another array.
1. Bug from .docx to latex
Here is the conversion line I used :
pandoc --standalone --extract-media=. -t latex -f docx Nested_arrays.docx
-o Nested_arrays.tex
When doing this conversion, pandoc sees that there is a table inside the
table. Hence, pandoc produces a longtable nested inside another longtable.
And this produces a latex error
! Forbidden control sequence found while scanning use of \LT@nofcols.
I'm not using longtables usually in my latex code, but after some search on
the internet, maybe the problem comes from an impossibility to nest a
longtable inside another longtable, hence the output should be changed ?
Here is how I fixed this error, by modifying the .tex output by pandoc:
* changing the longtable inside the bigger one to a tabular
* and, of course, removing \endhead of this inner array because tabulars do
not have \endhead
2. Bug from .odt (to latex, to markdown...)
I thought that maybe the bug was linked to the .docx document I received
from my colleague, so I saved the document to a .odt document. And this is
way worse ! This time, the line containing the nested array is simply not
output at all, neither if I ask to produce latex, nor if I ask pandoc to
produce markdown.
pandoc --standalone --extract-media=. -t latex -f odt Nested_arrays.odt -o
Nested_arrays.tex
3. Finally, but this time I saw that this has already been discussed : as
you can see, the inner table would be clearer for pupils with all lines
drawn, because it is intended to be a clear array that pupils have to fill.
If there was a way to specify that "I want to keep all those ugly lines
inside the output latex code please, whatever you think of this design
choice", this would be awesome :)
Thanks in advance for your replies, and have a nice day.
Yann
--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/b1e18482-a9ec-4f53-8453-b765fb199cc4n%40googlegroups.com.
[-- Attachment #1.2: Type: text/html, Size: 3359 bytes --]
[-- Attachment #2: Nested_arrays.docx --]
[-- Type: application/vnd.openxmlformats-officedocument.wordprocessingml.document, Size: 5961 bytes --]
[-- Attachment #3: Nested_arrays.odt --]
[-- Type: application/x-zip, Size: 11260 bytes --]
next reply other threads:[~2021-08-15 17:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-15 17:20 Yann Barsamian [this message]
[not found] ` <b1e18482-a9ec-4f53-8453-b765fb199cc4n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2021-08-16 16:54 ` John MacFarlane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b1e18482-a9ec-4f53-8453-b765fb199cc4n@googlegroups.com \
--to=yann.barsamian-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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 NNTP newsgroup(s).