public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Pandoc Markdown to Latex - different table styles
@ 2018-09-13  9:18 Joeri Blokhuis
       [not found] ` <3593f4d7-231a-4b6b-943f-07a254a6ee15-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Joeri Blokhuis @ 2018-09-13  9:18 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 1248 bytes --]

Hi,

Does anyone have an idea how to achieve different table styles (e.g. border 
colors) when converting Markdown to Latex?
Can it be done with some identifier to apply a style? I am brand new to 
pandoc, but the potential of it looks really great.

For example:

This one needs red border
| Header 1 | Header 2 | Header 3 |
|----------|----------|----------|
| a        | b        | c        |
| d        | e        | f        |


The one needs blue border
| Header 1 | Header 2 | Header 3 |
|----------|----------|----------|
| a        | b        | c        |
| d        | e        | f        |


Like to hear any thought on how to achieve this.

Thanks in advance

Joeri

-- 
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/3593f4d7-231a-4b6b-943f-07a254a6ee15%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #1.2: Type: text/html, Size: 2276 bytes --]

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

* Re: Pandoc Markdown to Latex - different table styles
       [not found] ` <3593f4d7-231a-4b6b-943f-07a254a6ee15-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2018-09-13 16:40   ` John MacFarlane
  0 siblings, 0 replies; 2+ messages in thread
From: John MacFarlane @ 2018-09-13 16:40 UTC (permalink / raw)
  To: Joeri Blokhuis, pandoc-discuss


There's no easy way to do this, unfortunately.
If you just want to put a border around the whole
table, it might work to put it into a LaTeX
`\fcolorbox` command.

See https://en.wikibooks.org/wiki/LaTeX/Colors

You could test that in LaTeX, and when you get
the LaTeX that you want, you could write a lua
filter that inserts the fcolorbox around a
table if the table in in a div with a certain
attribute.  Then you could write something like

::: blueborder
|your|table|here|
|----|-----|----|
:::

and the lua filter would do the work.

Joeri Blokhuis <jdblokhuis-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:

> Hi,
>
> Does anyone have an idea how to achieve different table styles (e.g. border 
> colors) when converting Markdown to Latex?
> Can it be done with some identifier to apply a style? I am brand new to 
> pandoc, but the potential of it looks really great.
>
> For example:
>
> This one needs red border
> | Header 1 | Header 2 | Header 3 |
> |----------|----------|----------|
> | a        | b        | c        |
> | d        | e        | f        |
>
>
> The one needs blue border
> | Header 1 | Header 2 | Header 3 |
> |----------|----------|----------|
> | a        | b        | c        |
> | d        | e        | f        |
>
>
> Like to hear any thought on how to achieve this.
>
> Thanks in advance
>
> Joeri
>
> -- 
> 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/3593f4d7-231a-4b6b-943f-07a254a6ee15%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.


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

end of thread, other threads:[~2018-09-13 16:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-13  9:18 Pandoc Markdown to Latex - different table styles Joeri Blokhuis
     [not found] ` <3593f4d7-231a-4b6b-943f-07a254a6ee15-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2018-09-13 16:40   ` John MacFarlane

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