From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/14729 Path: news.gmane.org!not-for-mail From: Ulrike Fischer Newsgroups: gmane.text.pandoc Subject: Re: Superscripts not working in raw latex environments? Date: Fri, 8 Apr 2016 09:21:22 +0200 Message-ID: <6hazl4u1ndmb$.dlg@nililand.de> References: <4cf8c441-bd79-423e-8f97-806a9814724b@googlegroups.com> <20160405164343.GB14034@protagoras.berkeley.edu> <20160406182422.GA5843@D25Q40BGFY13.berkeley.edu> <5706763C.2010506@gmail.com> <1v8nanx5svtxm.dlg@nililand.de> <5706AC87.7060901@gmail.com> 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 X-Trace: ger.gmane.org 1460100111 27077 80.91.229.3 (8 Apr 2016 07:21:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 8 Apr 2016 07:21:51 +0000 (UTC) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDS4Z3WZ2UDRBBNYTW4AKGQEYGJDQVA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Apr 08 09:21:42 2016 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-lb0-f184.google.com ([209.85.217.184]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aoQje-0007Mh-66 for gtp-pandoc-discuss@m.gmane.org; Fri, 08 Apr 2016 09:21:42 +0200 Original-Received: by mail-lb0-f184.google.com with SMTP id gk8sf28194295lbc.0 for ; Fri, 08 Apr 2016 00:21:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=sender:to:from:subject:date:lines:message-id:references:reply-to :mime-version:user-agent:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=mxazLhtvAzPqHa5bVu2H3CMBj5wgstSifuZ/LwdIWxs=; b=mOWs5mlvsZQS9wN0SdHgMynmw+oYoSfkHhJvdX3xS6BDSHX1s29C7Ar9363qDqTy2v k+/8hBdmPRFRqUButqqMhNVhVcMUo6gXFZ1sM+guQCKRwndCbZk3v5/8qosCXRRfjqrU 3OvitnScSv/EEpjpRKm1oz7RV6BXjeK/9XeJ0RKNp71ePCn3pIhCv8SgGOp+f5/SGZVL d2OgipLJF1kk42TgYSsj1yWCZ7637LTkJ7vQBHDyGABQ3GbvHcHxuaHxZyme8qY8Xvoo xRVg+tM41Um/cy75m86+KcwPWGKk5iKx6K2nDTmUJe/gcDJzZ5bAxvJ40WrXyogggv6M aY/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=sender:x-gm-message-state:to:from:subject:date:lines:message-id :references:reply-to:mime-version:user-agent:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=mxazLhtvAzPqHa5bVu2H3CMBj5wgstSifuZ/LwdIWxs=; b=P7yegROOn6F9kvs2prLfa3ezl6Z0WSDUuVtTsJRitNrp7JrZUxgo3hvUcIk8XkjkDl /DT0rC6qMrXcNe7Gxwv/MiePnXtk3qntuWpsnv7ayKsY3PnxwBS+IF+9vYeOVKT502NI Oq1fJGb0H0iS6SKEvsV9ypgpd9YTNMNFfx9w3z5T8H2BPB5q02VK67h2vFlasoS9i01c sidyr7pHRe+m8nvylxW8JzcmmNarHZPbkEonOgq5Wv7lg7UrYD8+rIRuIlXh/aI9nDzH MJJB/Hmgr/UwC6sJBPgdwF2OB4va7o3+PRdSnGX2gdaVF5paBpWghGBVxo0aWPZYCGyB rBnA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AD7BkJJ51nkQrViJOcWK3RkPt9Zh81W16QkQSuF83MANajw+7ezFBzLXEyUOPmuKNR4bmw== X-Received: by 10.25.149.202 with SMTP id x193mr113331lfd.0.1460100101834; Fri, 08 Apr 2016 00:21:41 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.25.141.201 with SMTP id p192ls396018lfd.44.gmail; Fri, 08 Apr 2016 00:21:40 -0700 (PDT) X-Received: by 10.112.168.201 with SMTP id zy9mr854938lbb.4.1460100100983; Fri, 08 Apr 2016 00:21:40 -0700 (PDT) Original-Received: from plane.gmane.org (plane.gmane.org. [80.91.229.3]) by gmr-mx.google.com with ESMTPS id oe8si377809lbc.1.2016.04.08.00.21.40 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 08 Apr 2016 00:21:40 -0700 (PDT) Received-SPF: pass (google.com: domain of gtp-pandoc-discuss@m.gmane.org designates 80.91.229.3 as permitted sender) client-ip=80.91.229.3; Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aoQjb-0007Lb-Oo for pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; Fri, 08 Apr 2016 09:21:39 +0200 Original-Received: from p5b390fe0.dip0.t-ipconnect.de ([91.57.15.224]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 08 Apr 2016 09:21:39 +0200 Original-Received: from luatex by p5b390fe0.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 08 Apr 2016 09:21:39 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 34 Original-X-Complaints-To: usenet-dbVV3NMTNubNLxjTenLetw@public.gmane.org X-Gmane-NNTP-Posting-Host: p5b390fe0.dip0.t-ipconnect.de User-Agent: 40tude_Dialog/2.0.15.41de X-Original-Sender: gtp-pandoc-discuss@m.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of gtp-pandoc-discuss@m.gmane.org designates 80.91.229.3 as permitted sender) smtp.mailfrom=gtp-pandoc-discuss@m.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Spam-Checked-In-Group: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:14729 Archived-At: Am Thu, 7 Apr 2016 20:52:55 +0200 schrieb BP Jonsson: >>> But if you are going to take such things into account only *TeX >>> can parse *TeX, no? >> >> Sure. But the question was about raw latex which is normally parsed >> only by latex. >> > > Right, so how *should* en environment block best be parsed to > allow for (almost) arbitrary LaTeX redefinitions? The original question was if pandoc should validate the content of an raw latex and e.g. choke on 2^2 that is not in math. "Arbitrary" redefinitions are a long way away. > I guess that > when the parser sees a `\begin{foo}` it should look for the next > `\end{foo}` *but* keep track of any nested `\begin{...} ... > \end{...}` lest there is an instance of the same environment > ("foo") nested inside the outer one. I don't know off the top of > my head if there are any standard environments which it would make > sense to nest inside themselves, Certainly there are. Lists like itemize e.g. It also make sense to nest tabulars and minipage. But I would probably try to make it easier for pandoc and put some unique dummy environment around the whole code (could be a bit tricky if grouping is not wanted, but can be managed). -- Ulrike Fischer http://www.troubleshooting-tex.de/