From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/16464 Path: news.gmane.org!.POSTED!not-for-mail From: BP Jonsson Newsgroups: gmane.text.pandoc Subject: Re: Writing filter: getting `--top-level-division`? Date: Sat, 17 Dec 2016 12:33:30 +0100 Message-ID: References: <39d1e149-7ccb-45e4-a169-abfc5a4bc935@googlegroups.com> <20161215130942.GC64436@Administrateurs-iMac-3.local> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=94eb2c057e925b10ca0543d90e6c X-Trace: blaine.gmane.org 1481974415 25859 195.159.176.226 (17 Dec 2016 11:33:35 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 17 Dec 2016 11:33:35 +0000 (UTC) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDIY76M674FRBC6F2TBAKGQEHYUJPXQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sat Dec 17 12:33:31 2016 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-oi0-f62.google.com ([209.85.218.62]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cIDF1-0005W3-T3 for gtp-pandoc-discuss@m.gmane.org; Sat, 17 Dec 2016 12:33:28 +0100 Original-Received: by mail-oi0-f62.google.com with SMTP id 4sf24415793oie.0 for ; Sat, 17 Dec 2016 03:33:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:mime-version:in-reply-to:references:from:date:message-id :subject:to:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:x-spam-checked-in-group :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=JyDUP0TH0Hn2lxhLkTOyYxG5hy0CWJzZJMYU+qGkJfc=; b=R7OdPTCSQI3FsGHD0qDSywX51pGt+LPzlcLgYcHc7Fac4o4jSlzwhLcVaRvweEv+8a jnZ3FuVoaI8277DXHVKruUqYPW1FizPp3E/ptNvzpNHd2qDAf5au2VvgVU33TvOF2SQd Z7p68cDPs7x1PidVz9Bh6MnjfRMPxQYOA8cJo9yV33Z7PU/QEHXxnX7rvHgwmjeIWDpg BAe7W+li93PolPyAjqRxdfiMFJtncn7kTi5bqIBhFT9aOpImspCFdwAxRooZmSCXhyKy J378C8ASZmFRAaDa8CXf0b/2xDs0trWaJuECoNpmB1WFupUxLYYXFRW3eEOsfKFKzOqk hO/w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=JyDUP0TH0Hn2lxhLkTOyYxG5hy0CWJzZJMYU+qGkJfc=; b=ZR4Hi2ZXpk43SodUG+89ajQKfT/VsuAtE35xzKOz2DDgON95Jn2o5uyHliheakFvhI t0V3wyIwCu23YAzzjVnjsNgoJS10wFfVz7BmYcr2QZTvTTQmYEry9jXu3tBSr+0xiqFn vF4nShCk9HUfcp7b3vZq+bzGSFKCRyRCojPkxL2+hMJPO7YZTZYMa0UgyVk2Z0OzqgwH a7slRtepZfpi8vOTNzYtojKptDtmW9YlmwFOvyL5pDyrHlRzvEq0i/G1H8qNzaj1H7HL HKGp7JLrRtnIH5DvYOoYIW9FNge29Mx6QgnrTD1SM3y1ACZUjBlUubdk1foBBZ6wNDOq vs3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:mime-version:in-reply-to:references:from :date:message-id:subject:to:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=JyDUP0TH0Hn2lxhLkTOyYxG5hy0CWJzZJMYU+qGkJfc=; b=GyXaEc7I50lbboVc9W0o/HiGM5dZzENsv8DTvwuMxR8/+aTmPzA7x0HOMyFHR+Ayph xv9vDsLUQmKDc4ogYrt+7xuKOq65ARjnTnf6KKmD9VSQb6VrWeq0YoV9mQlHVmkt7SuK yD0peQPmp9MX4zcXRkCW8e1F/vxztST1mBiQMuhO8PhSdLAEMxts7OZyuvlbbrcAa/0/ 3kxBDU6YFzctS9DdoAMm9IyhKjGJ7gLIvpb4klB7BSt1Y/9xVjkgv7c+w04jOsALUTCM zlXR0pzCVaIGAzd/JONCT4DP2DbUVmpJhONFGXiiSSE42GvU99NP7Xd5vstdg/4gNyBL HxxA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AIkVDXLZNo8XBMqYdGG+X8/9hot88wZDcYKYTiW5XaLufkr/OFk6MumhpmlP87r4Ykn36Q== X-Received: by 10.157.45.170 with SMTP id g39mr423034otb.16.1481974412215; Sat, 17 Dec 2016 03:33:32 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.157.46.13 with SMTP id q13ls10053109otb.20.gmail; Sat, 17 Dec 2016 03:33:31 -0800 (PST) X-Received: by 10.31.167.197 with SMTP id q188mr1282832vke.26.1481974411763; Sat, 17 Dec 2016 03:33:31 -0800 (PST) Original-Received: from mail-it0-x241.google.com (mail-it0-x241.google.com. [2607:f8b0:4001:c0b::241]) by gmr-mx.google.com with ESMTPS id j63si895914ita.1.2016.12.17.03.33.31 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 17 Dec 2016 03:33:31 -0800 (PST) Received-SPF: pass (google.com: domain of bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4001:c0b::241 as permitted sender) client-ip=2607:f8b0:4001:c0b::241; Original-Received: by mail-it0-x241.google.com with SMTP id b123so5416830itb.2 for ; Sat, 17 Dec 2016 03:33:31 -0800 (PST) X-Received: by 10.36.200.10 with SMTP id w10mr7111282itf.21.1481974411365; Sat, 17 Dec 2016 03:33:31 -0800 (PST) Original-Received: by 10.107.15.81 with HTTP; Sat, 17 Dec 2016 03:33:30 -0800 (PST) Original-Received: by 10.107.15.81 with HTTP; Sat, 17 Dec 2016 03:33:30 -0800 (PST) In-Reply-To: <20161215130942.GC64436-BKjuZOBx5Kn2N3qrpRCZGbhGAdq7xJNKhPhL2mjWHbk@public.gmane.org> X-Original-Sender: bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com; spf=pass (google.com: domain of bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4001:c0b::241 as permitted sender) smtp.mailfrom=bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE dis=NONE) header.from=gmail.com Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:16464 Archived-At: --94eb2c057e925b10ca0543d90e6c Content-Type: text/plain; charset=UTF-8 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. --94eb2c057e925b10ca0543d90e6c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
You can pass the same info both as a 'real' optio= n and as a metadata value. Not very elegant but it works.

Den 15 dec 2016 14:10 skrev= "John MacFarlane" <jgm@be= rkeley.edu>:
= 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=3D[default|secti= on|chapter|part]` option used in a filter? I want to write a filter that ne= eds 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&#= 39;t there.

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-discuss+unsubscribe@googlegroups.com.
To post to this group, send email to pandoc-discuss-/JYPxA39Uh4Ykp1iOSErHA@public.gmane.orgm. 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 &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to
pandoc-discuss+unsubscribe@googlegroups.com.
To post to this group, send email to pandoc-discuss-/JYPxA39Uh4Ykp1iOSErHA@public.gmane.orgm. To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/20161215130942.GC64436%40Administrateurs-iM= ac-3.local.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to
pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://group= s.google.com/d/msgid/pandoc-discuss/CAFC_yuQT%3D_c79NzoOFyfsfxjxYcCoBR5t0eK= tWuPRb00SS0e2Q%40mail.gmail.com.
For more options, visit http= s://groups.google.com/d/optout.
--94eb2c057e925b10ca0543d90e6c--