From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/16426 Path: news.gmane.org!.POSTED!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: Writing filter: getting `--top-level-division`? Date: Thu, 15 Dec 2016 14:09:43 +0100 Message-ID: <20161215130942.GC64436@Administrateurs-iMac-3.local> References: <39d1e149-7ccb-45e4-a169-abfc5a4bc935@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed X-Trace: blaine.gmane.org 1481807430 21781 195.159.176.226 (15 Dec 2016 13:10:30 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 15 Dec 2016 13:10:30 +0000 (UTC) User-Agent: Mutt/1.7.0 (2016-08-17) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBRFMZLBAKGQEDKCHO6I-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Dec 15 14:10:26 2016 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-ua0-f191.google.com ([209.85.217.191]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cHVnk-0004z3-Pn for gtp-pandoc-discuss@m.gmane.org; Thu, 15 Dec 2016 14:10:24 +0100 Original-Received: by mail-ua0-f191.google.com with SMTP id 20sf2566230uak.1 for ; Thu, 15 Dec 2016 05:10:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:date:to:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent: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=punWjszJ6raHRb6cdTiVMQ1EVYDHUkYx1fuOeKn0Lqo=; b=UsyiqHTph8pPLjvxADKBOx1tzKKNulpMAqU3qwUsDEXOLt/69JVJz+WaHG7Y9Y2yUS YiSUoUpS6tjkKRaBIG48Z6IthLXwXhRuqnVrlfN7tFS0SjxDFVMv+zhPRF5MLftBS17b 1f3D5jJve1rvp+/Nx1usNtOAv6HUtpMW5LXGOqgMLlog0gtOeIRcwlOizfdT+qatorbq /szhiAj8vlzQKeC/E+bhviIE1hfFdDESi+A1dhhCR3+SA8p/q/dFHCT0Ks1LYtxudfF9 i8SkgnGmsQs0HRHFNjxLPAR+0RozJFQfu+JHK15lHL7erB2wmj73YMNX3tkHYG6M8BSh K+Yg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:date:to:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent :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=punWjszJ6raHRb6cdTiVMQ1EVYDHUkYx1fuOeKn0Lqo=; b=GmGBezMn3sejlFO+nHZKKNatxDvFM+moro4v6uABttgNtIycmDmThQFV7ikFpwTTyi SD5hi3FvRRZFUnj4d7rcSC00MTNoFlNLgYnBZ2q9ZyfA8+UWyh+kLgPRFqWNh4FZrMVM TkZlCZv28mml/Uh08SKfC+GS6QK/XkVOZvLk3N/qh2hw8OZXGCXn0GfOk2/b/+FwCOBu /iygX+OfHOyHAjtsoEq+ZlE/tpB7Mxwyk2+PuhaCWJeYdL0s4iweDL6xw4peml2Ee86u +G+2PF5OCJaoP9nlDqtglBWG3iYCL8H9JaHunqdO8nmTZJxVE39wJnaZ+qJuJf8MGKLb Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AKaTC02A36NPvmFqIClHnldiBTKSX4Pnvl6psVSI+YqqysouKmJjJrB04ngxtunq2fINJA== X-Received: by 10.36.175.6 with SMTP id t6mr78001ite.6.1481807428999; Thu, 15 Dec 2016 05:10:28 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.107.50.81 with SMTP id y78ls1751744ioy.7.gmail; Thu, 15 Dec 2016 05:10:28 -0800 (PST) X-Received: by 10.99.229.21 with SMTP id r21mr842015pgh.131.1481807428232; Thu, 15 Dec 2016 05:10:28 -0800 (PST) Original-Received: from mail-pg0-x235.google.com (mail-pg0-x235.google.com. [2607:f8b0:400e:c05::235]) by gmr-mx.google.com with ESMTPS id o24si706040pfj.2.2016.12.15.05.10.28 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Dec 2016 05:10:28 -0800 (PST) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c05::235 as permitted sender) client-ip=2607:f8b0:400e:c05::235; Original-Received: by mail-pg0-x235.google.com with SMTP id 3so20175292pgd.0 for ; Thu, 15 Dec 2016 05:10:28 -0800 (PST) X-Received: by 10.84.197.165 with SMTP id n34mr2567761pld.34.1481807427851; Thu, 15 Dec 2016 05:10:27 -0800 (PST) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id y6sm4690138pge.16.2016.12.15.05.10.27 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Dec 2016 05:10:27 -0800 (PST) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 9E4C0A167; Thu, 15 Dec 2016 08:10:16 -0500 (EST) Content-Disposition: inline In-Reply-To: <39d1e149-7ccb-45e4-a169-abfc5a4bc935-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-PGP-Key: http://johnmacfarlane.net/jgm.asc X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c05::235 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org 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:16426 Archived-At: 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.