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" : > 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.