public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org>
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: Writing filter: getting `--top-level-division`?
Date: Thu, 15 Dec 2016 14:09:43 +0100	[thread overview]
Message-ID: <20161215130942.GC64436@Administrateurs-iMac-3.local> (raw)
In-Reply-To: <39d1e149-7ccb-45e4-a169-abfc5a4bc935-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>

There's no way to get this information in a filter; it's
part of the WriterOptions.

+++ Kolen Cheung [Dec 15 16 02:54 ]:
>Is it possible to determine the `--top-level-division=[default|section|chapter|part]` option used in a filter? I want to write a filter that needs to know how the header-level-1 is related to the LaTeX's top level division.
>
>I tried using such settings with `-t native -s` and it seems the info isn't there.
>
>-- 
>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/39d1e149-7ccb-45e4-a169-abfc5a4bc935%40googlegroups.com.
>For more options, visit https://groups.google.com/d/optout.


  parent reply	other threads:[~2016-12-15 13:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-15 10:54 Kolen Cheung
     [not found] ` <39d1e149-7ccb-45e4-a169-abfc5a4bc935-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2016-12-15 13:09   ` John MacFarlane [this message]
     [not found]     ` <20161215130942.GC64436-BKjuZOBx5Kn2N3qrpRCZGbhGAdq7xJNKhPhL2mjWHbk@public.gmane.org>
2016-12-17  4:06       ` Kolen Cheung
2016-12-17 11:33       ` BP Jonsson
2017-01-04 23:30       ` Kolen Cheung

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=20161215130942.GC64436@Administrateurs-iMac-3.local \
    --to=jgm-tvlzxgkolnx2fbvcvol8/a@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).