* finicky pandoc tables
@ 2022-06-19 20:51 ivo....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
[not found] ` <940779e4-0ae1-46fc-9270-af8b73f1131en-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: ivo....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org @ 2022-06-19 20:51 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 1505 bytes --]
pandoc 2.18, macOS. I find the tables to be very finicky, rather than very
intuitive. for example,
```
---
title: "Test Pandoc Tables"
output:
tex_document:
md_extensions: +grid_tables
---
compile with `pandoc -s finicky.md -o finicky.tex`.
+--------------+---------+
| Opinion | Percent |
+==============+=========+
| Undervalued | 84% |
| Correctly | 13% |
| Overvalued | 3% |
+--------------+---------+
+--------------+---------+
| Opinion | Percent |
+==============+=========+
| Undervalued | 84% |
| Correctly | 13% |
| Overvalued | 3% |
+--------------+---------+
| Opinion | Percent |
+==============+========:+
| Undervalued | 84% |
| Correctly | 13% |
| Overvalued | 3% |
```
places the 84 and 13 on the same line and the 3 at the middle line. is my
error terribly obvious? there is probably a perfectly natural explanations
for my error, but it would seem to me that pandoc is perhaps a bit too
finicky in its interpretations here.
pointers appreciated...
--
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/940779e4-0ae1-46fc-9270-af8b73f1131en%40googlegroups.com.
[-- Attachment #1.2: Type: text/html, Size: 3428 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: finicky pandoc tables
[not found] ` <940779e4-0ae1-46fc-9270-af8b73f1131en-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2022-06-20 6:28 ` Albert Krewinkel
[not found] ` <87ilovon8a.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Albert Krewinkel @ 2022-06-20 6:28 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
"ivo....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" <ivo.welch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
> pandoc 2.18, macOS. I find the tables to be very finicky, rather than
> very intuitive. for example,
>
> [...]
The issue, as far as I can see, is that the tables are a mix of grid
tables and pipe tables. Try to either
- Remove all horizontal lines except for the one separating table head
and body. Use `-` (not `=`) for that line.
- Alternatively, add `+--+` lines between all rows.
Currently you have a table with a single body row, so all text in a
column is in a single cell. That's why some text is moved around if the
cell width permits to do so.
HTH
--
Albert Krewinkel
GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: finicky pandoc tables
[not found] ` <87ilovon8a.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>
@ 2022-06-20 18:35 ` ivo....-xwz7R8GQi1g@public.gmane.org
[not found] ` <fa76e518-7408-4fe6-8de6-0150af1177f1n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: ivo....-xwz7R8GQi1g@public.gmane.org @ 2022-06-20 18:35 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 1434 bytes --]
would it be possible to allow for a generic syntax that encompasses
(allows) both types of tables --- or does one fundamentally violate the
other?
/iaw
On Sunday, June 19, 2022 at 11:36:31 PM UTC-7 Albert Krewinkel wrote:
>
> "ivo....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" <ivo....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
>
> > pandoc 2.18, macOS. I find the tables to be very finicky, rather than
> > very intuitive. for example,
> >
> > [...]
>
> The issue, as far as I can see, is that the tables are a mix of grid
> tables and pipe tables. Try to either
>
> - Remove all horizontal lines except for the one separating table head
> and body. Use `-` (not `=`) for that line.
>
> - Alternatively, add `+--+` lines between all rows.
>
> Currently you have a table with a single body row, so all text in a
> column is in a single cell. That's why some text is moved around if the
> cell width permits to do so.
>
> HTH
>
> --
> Albert Krewinkel
> GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124
>
--
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/fa76e518-7408-4fe6-8de6-0150af1177f1n%40googlegroups.com.
[-- Attachment #1.2: Type: text/html, Size: 2192 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: finicky pandoc tables
[not found] ` <fa76e518-7408-4fe6-8de6-0150af1177f1n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2022-06-23 19:32 ` Albert Krewinkel
0 siblings, 0 replies; 4+ messages in thread
From: Albert Krewinkel @ 2022-06-23 19:32 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
"ivo....-xwz7R8GQi1g@public.gmane.org" <ivo.welch-xwz7R8GQi1g@public.gmane.org> writes:
> would it be possible to allow for a generic syntax that encompasses
> (allows) both types of tables --- or does one fundamentally violate the
> other?
Do you mean a combined syntax? I don't know, but I'd be surprised if
it was.
If you're interested in this topic, and want to witness how difficult it
can be to choose a good table syntax, please check this discussion:
https://talk.commonmark.org/t/tables-in-pure-markdown/81
--
Albert Krewinkel
GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-06-23 19:32 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-19 20:51 finicky pandoc tables ivo....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
[not found] ` <940779e4-0ae1-46fc-9270-af8b73f1131en-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-06-20 6:28 ` Albert Krewinkel
[not found] ` <87ilovon8a.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>
2022-06-20 18:35 ` ivo....-xwz7R8GQi1g@public.gmane.org
[not found] ` <fa76e518-7408-4fe6-8de6-0150af1177f1n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-06-23 19:32 ` Albert Krewinkel
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).