public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: Mark Szepieniec <mszepien-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: Align tables to left, as opposed to centered, using markdown to pdf via xelatex
Date: Thu, 8 Jan 2015 16:28:27 +0100	[thread overview]
Message-ID: <CAE4-1rWuKgOaoSfsupmKpA++keahDkMS_xEZPCRvXzFNrpQk6w@mail.gmail.com> (raw)
In-Reply-To: <m8m31g$1td$1@ger.gmane.org>

[-- Attachment #1: Type: text/plain, Size: 2119 bytes --]

I don't think there's a straightforward way to do that.

You _could_ write a filter which catches tables, and uses a slightly
modified version of pandoc's latex table writer function to make it output
\begin{longtable}[l].....

On Thu, Jan 8, 2015 at 3:08 PM, Larry Hynes <larry-kWvUfStYLBx0ubjbjo6WXg@public.gmane.org> wrote:

> Currently the only way that I've found to do this is to first
> get Pandoc to output .tex from the markdown source, then change
> the [c] in
>
>     \begin{longtable}[c]{@{}llr@{}}
>
> to an [l], copy and paste that table into the original markdown
> document and then convert to .pdf using the -R flag.
>
> I've tried everything I can think of in my xelatex template to
> get the table to align left but Pandoc seems to override all and
> stick doggedly to [c].
>
> Can anyone offer any suggestions please, as to how I might be
> able to convert directly from markdown to pdf, via xelatex, and
> have tables align to the left?
>
> --
> 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/m8m31g%241td%241%40ger.gmane.org
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAE4-1rWuKgOaoSfsupmKpA%2B%2BkeahDkMS_xEZPCRvXzFNrpQk6w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #2: Type: text/html, Size: 3314 bytes --]

  reply	other threads:[~2015-01-08 15:28 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-08 14:08 Larry Hynes
2015-01-08 15:28 ` Mark Szepieniec [this message]
2015-01-08 19:46   ` Larry Hynes
     [not found]   ` <CAE4-1rWuKgOaoSfsupmKpA++keahDkMS_xEZPCRvXzFNrpQk6w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-01-17 15:12     ` Eugéne Roux
2015-01-17 15:21       ` Larry Hynes
     [not found]         ` <m8bqob-8p1.ln1-hFr9yDdQiE6PX3baIHBI6tBPR1lH4CV8@public.gmane.org>
2015-12-02 19:14           ` Gang Liang

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=CAE4-1rWuKgOaoSfsupmKpA++keahDkMS_xEZPCRvXzFNrpQk6w@mail.gmail.com \
    --to=mszepien-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).