From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/11600 Path: news.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: A filter to use linguex.sty for LaTeX numbered example lists Date: Mon, 29 Dec 2014 12:07:29 -0800 Message-ID: <20141229200729.GC94320@airbears2-10-142-180-66.airbears2.1918.berkeley.edu> References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed X-Trace: ger.gmane.org 1419883671 18777 80.91.229.3 (29 Dec 2014 20:07:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 29 Dec 2014 20:07:51 +0000 (UTC) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBDXJQ2SQKGQE6VJW3MI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Dec 29 21:07:44 2014 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-ie0-f183.google.com ([209.85.223.183]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Y5gbP-0006hP-Kq for gtp-pandoc-discuss@m.gmane.org; Mon, 29 Dec 2014 21:07:43 +0100 Original-Received: by mail-ie0-f183.google.com with SMTP id x19sf2359461ier.10 for ; Mon, 29 Dec 2014 12:07:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=from:date:to:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:list-post:list-help:list-archive :sender:list-subscribe:list-unsubscribe; bh=ZMLo5rE43alcc2l1c9YLT/1ZDcJ6UtbIo9SGDhU2LXE=; b=xeIEdib3Hr+Cp9yUshocCUNixw6cRv8s5jk6fEzFwKFGYioPE14sRws2Xda+d+/r8/ AFRA/lCZGJIXzQAK7XhJd2Eg90QK9ul14WSoHWKDev9/5nLWcMS4pk9iiLSNZJZ7Xldp Y4LBRWfPKYtjwtTiB1etkHGK9+s2wtM54EqwNqc+tg9+aaRw4kM5c6Q/2ZwPPHZ0whV3 uTS83xwnmy2dt7U3mhngbIN53NP8bDz7PYlB+ik5OriZq7eUuF0n0qmfjJ/0zP507QQY xaAen526Bchqx0p+DaSkXoftGJ3k9brn3NN5A0Lf+YQDmkcG1Lt34t0UN8uttyCkzu5+ GJyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:date:to:subject:message-id:references :mime-version:content-type:content-disposition:in-reply-to :user-agent:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:sender:list-subscribe:list-unsubscribe; bh=ZMLo5rE43alcc2l1c9YLT/1ZDcJ6UtbIo9SGDhU2LXE=; b=eOFwpwubeOW+7zVKIgPsiEejDaDV2ES4YHBKsKNEPJUMRda/F/AUGXRMl4P/bReJGv zMUb3A0YUzLvfJgcPi8t53hF5fQ1RFhglnPb3nr1OUsi8EtboKHd4M2GsqCrkmsJ54DS SJ8YzYfSla8Q+G/MdW7Qn1EtsrXVk6FHnxCeYCPDXM5TbiVAiH7q5zIOb1Xs0J5t06Yc qsOuHTVvuJBc2R46FBOdhpakEznDwAui1vSmjz3zlviwJ7wzHjzj7VnT4aWuFI9oHQnn l9y3bbzU9j1VvjNiyWh9QRtIAS+Mhze19g4rkgKsBqFpG2upzsNl+r8qexoRSSQvLEkD Ut X-Received: by 10.140.84.103 with SMTP id k94mr304367qgd.3.1419883662783; Mon, 29 Dec 2014 12:07:42 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.140.29.228 with SMTP id b91ls3887923qgb.1.gmail; Mon, 29 Dec 2014 12:07:42 -0800 (PST) X-Received: by 10.236.38.36 with SMTP id z24mr44129458yha.8.1419883662441; Mon, 29 Dec 2014 12:07:42 -0800 (PST) Original-Received: from mail-pd0-f176.google.com (mail-pd0-f176.google.com. [209.85.192.176]) by gmr-mx.google.com with ESMTPS id i11si4869029pat.2.2014.12.29.12.07.42 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 29 Dec 2014 12:07:42 -0800 (PST) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 209.85.192.176 as permitted sender) client-ip=209.85.192.176; Original-Received: by mail-pd0-f176.google.com with SMTP id r10so17875029pdi.7 for ; Mon, 29 Dec 2014 12:07:42 -0800 (PST) X-Gm-Message-State: ALoCoQlrkZOhzzXv3b8X1wRiAxjJEhuPBXe2NvaB/BGFT1vIhETpva3GJfltV3mNIH4isOaGN8td X-Received: by 10.67.14.129 with SMTP id fg1mr92438431pad.114.1419883662228; Mon, 29 Dec 2014 12:07:42 -0800 (PST) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by mx.google.com with ESMTPSA id xx2sm36659231pab.17.2014.12.29.12.07.40 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Dec 2014 12:07:41 -0800 (PST) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 423AEA27B; Mon, 29 Dec 2014 15:13:55 -0500 (EST) Content-Disposition: inline In-Reply-To: X-PGP-Key: http://johnmacfarlane.net/jgm.asc User-Agent: Mutt/1.5.23 (2014-03-12) X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 209.85.192.176 as permitted sender) smtp.mail=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:11600 Archived-At: Correct. Example lists are converted to regular ordered lists in the Markdown reader, so by the time you get a Pandoc structure, you can't tell what was an example list and what was a regular list. +++ Thomas Hodgson [Dec 28 14 06:29 ]: >I have been wondering whether it would be possible to write a filter that >would render numbered example lists in LaTeX output using a package such as >linguex.sty . I think I could write a >filter that replaced OrderedLists marked as Examples with the right LaTeX >output. (Although I haven't actually done it yet.) I'm not sure where to >start on the question of cross references. In LaTeX I would put a `\label` >command in the example and a `\ref` command to refer to it. When I look at >the AST for a file with numbered examples I see that there is already the >text of the required label e.g. (1), (2). So it doesn't look like there's >anything that can be manipulated with a filter. If so, I don't think >there's much point in going to the trouble of writing the first bit of the >filter. Am I right in thinking that? > >-- >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/d801617b-98cd-4327-a94d-1c3d950a7f0e%40googlegroups.com. >For more options, visit https://groups.google.com/d/optout.