public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: BP Jonsson <bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: Writing filter: getting `--top-level-division`?
Date: Sat, 17 Dec 2016 12:33:30 +0100	[thread overview]
Message-ID: <CAFC_yuQT=_c79NzoOFyfsfxjxYcCoBR5t0eKtWuPRb00SS0e2Q@mail.gmail.com> (raw)
In-Reply-To: <20161215130942.GC64436-BKjuZOBx5Kn2N3qrpRCZGbhGAdq7xJNKhPhL2mjWHbk@public.gmane.org>

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

You can pass the same info both as a 'real' option and as a metadata value.
Not very elegant but it works.

Den 15 dec 2016 14:10 skrev "John MacFarlane" <jgm-TVLZxgkOlNX2fBVCVOL8/A@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/ms
>> gid/pandoc-discuss/39d1e149-7ccb-45e4-a169-abfc5a4bc935%40go
>> oglegroups.com.
>> 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/ms
> gid/pandoc-discuss/20161215130942.GC64436%40Administrateurs-iMac-3.local.
> 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/CAFC_yuQT%3D_c79NzoOFyfsfxjxYcCoBR5t0eKtWuPRb00SS0e2Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

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

  parent reply	other threads:[~2016-12-17 11:33 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
     [not found]     ` <20161215130942.GC64436-BKjuZOBx5Kn2N3qrpRCZGbhGAdq7xJNKhPhL2mjWHbk@public.gmane.org>
2016-12-17  4:06       ` Kolen Cheung
2016-12-17 11:33       ` BP Jonsson [this message]
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='CAFC_yuQT=_c79NzoOFyfsfxjxYcCoBR5t0eKtWuPRb00SS0e2Q@mail.gmail.com' \
    --to=bpjonsson-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).