* Table generation fails from Markdown-> PDF
@ 2018-09-20 22:36 Fredrik Meyer
[not found] ` <bee8001d-20ff-4891-8119-3b792fc52e37-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Fredrik Meyer @ 2018-09-20 22:36 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 1318 bytes --]
Hi,
I'm trying to write a table in Markdown and generate a PDF output. I use
the following command to compile:
pandoc oblig1.md --pdf-engine=xelatex -N -o oblig1.pdf
I found an example table on the internet:
| Tables | Are | Cool |
| ------------- | :-------------: | -----: |
| col 3 is | right-aligned | $1600 |
| col 2 is | centered | $12 |
| zebra stripes | are neat | $1 |
This got generated perfectly as a table in the PDF output. But when I tried
myself, it got rendered as pure text.
| 0 | 1 | 2 |
| 2 | 0 | 0 |
| 3 | 0 | 0 |
I fail to see any difference in syntax between these two examples, yet
somehow they are parsed differently.
What am I doing wrong?:) Thanks.
--
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/bee8001d-20ff-4891-8119-3b792fc52e37%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[-- Attachment #1.2: Type: text/html, Size: 9909 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Table generation fails from Markdown-> PDF
[not found] ` <bee8001d-20ff-4891-8119-3b792fc52e37-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2018-09-20 22:42 ` Joost Kremers
2018-09-21 16:57 ` John Muccigrosso
1 sibling, 0 replies; 4+ messages in thread
From: Joost Kremers @ 2018-09-20 22:42 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
On Fri, Sep 21 2018, Fredrik Meyer wrote:
> Hi,
>
> I'm trying to write a table in Markdown and generate a PDF
> output. I use the
> following command to compile:
>
> pandoc oblig1.md --pdf-engine=xelatex -N -o oblig1.pdf
>
> I found an example table on the internet:
>
> | Tables | Are | Cool |
> | ------------- | :-------------: | -----: |
> | col 3 is | right-aligned | $1600 |
> | col 2 is | centered | $12 |
> | zebra stripes | are neat | $1 |
>
> This got generated perfectly as a table in the PDF output. But
> when I tried myself, it
> got rendered as pure text.
> | 0 | 1 | 2 |
> | 2 | 0 | 0 |
> | 3 | 0 | 0 |
>
> I fail to see any difference in syntax between these two
> examples, yet somehow they
> are parsed differently.
>
> What am I doing wrong?:) Thanks.
Your table doesn't have a header line, which seem to be needed for
Pandoc to recognize it as a table. The header line can be empty,
though:
| | | |
|---+---+---|
| 0 | 1 | 2 |
| 2 | 0 | 0 |
| 3 | 0 | 0 |
HTH
--
Joost Kremers
Life has its moments
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Table generation fails from Markdown-> PDF
[not found] ` <bee8001d-20ff-4891-8119-3b792fc52e37-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2018-09-20 22:42 ` Joost Kremers
@ 2018-09-21 16:57 ` John Muccigrosso
[not found] ` <fb0fd7b0-c95d-4671-a7c4-91fb5666010d-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
1 sibling, 1 reply; 4+ messages in thread
From: John Muccigrosso @ 2018-09-21 16:57 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 623 bytes --]
As the manual says:
The header cannot be omitted.
--
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/fb0fd7b0-c95d-4671-a7c4-91fb5666010d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[-- Attachment #1.2: Type: text/html, Size: 1199 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Table generation fails from Markdown-> PDF
[not found] ` <fb0fd7b0-c95d-4671-a7c4-91fb5666010d-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2018-09-22 10:20 ` Fredrik Meyer
0 siblings, 0 replies; 4+ messages in thread
From: Fredrik Meyer @ 2018-09-22 10:20 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 777 bytes --]
Thanks for the answers, both of you. Makes sense now.
fredag 21. september 2018 18.57.18 UTC+2 skrev John Muccigrosso følgende:
>
> As the manual says:
>
> The header cannot be omitted.
>
--
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/597daa07-9c1a-4784-8cb2-f9aa5dd950d0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[-- Attachment #1.2: Type: text/html, Size: 1452 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-09-22 10:20 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-20 22:36 Table generation fails from Markdown-> PDF Fredrik Meyer
[not found] ` <bee8001d-20ff-4891-8119-3b792fc52e37-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2018-09-20 22:42 ` Joost Kremers
2018-09-21 16:57 ` John Muccigrosso
[not found] ` <fb0fd7b0-c95d-4671-a7c4-91fb5666010d-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2018-09-22 10:20 ` Fredrik Meyer
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).