From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/18251 Path: news.gmane.org!.POSTED!not-for-mail From: "'SBJ' via pandoc-discuss" Newsgroups: gmane.text.pandoc Subject: Re: Markdown to LaTeX: unwanted newlines around LaTeX environment Date: Wed, 4 Oct 2017 05:35:03 -0700 (PDT) Message-ID: References: <8729b9a5-1aff-4d3a-a17f-06d8a63beefa@googlegroups.com> <20171003204332.GA14228@protagoras> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_4343_311299365.1507120503540" X-Trace: blaine.gmane.org 1507120511 13914 195.159.176.226 (4 Oct 2017 12:35:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 4 Oct 2017 12:35:11 +0000 (UTC) To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCU3V4G7WUNRB6FK2PHAKGQEV4L36EA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Oct 04 14:34:59 2017 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-io0-f191.google.com ([209.85.223.191]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dzit7-0002Ff-N0 for gtp-pandoc-discuss@m.gmane.org; Wed, 04 Oct 2017 14:34:57 +0200 Original-Received: by mail-io0-f191.google.com with SMTP id j123sf635652ioe.15 for ; Wed, 04 Oct 2017 05:35:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=zCqMIKHC/U1XwvrdHGCR5KgEMYNG+ElvZkcyBxhL/cw=; b=rW/364IRfPRu2RWu1IzKcEEVQoHaZL0RazNLfqER7eKTnJeXAyKsyM6EUMPMUzRw3c fGGCMQ1AKo+6AgovXW0nQSD9gGexJJFdK12vui7/u0LvMdc8oJXgJdMv7LDcLqSXmODB oKjGVvd3AHWV/vSOmXoOWL/sIiwIrdwWfTUhH/k5Ie7WvjSEWdtiFli11RzNxgkPKJEm DtLHgNE3HtPTvZKlTmqFQgqGqbo2bmJVnhe6cm9FC7XET2N/iKqMGuNKiHv2sEHxZXVF /M8LKlmb1y/Q0kqNE2asNanxckQ7OYo2c6WHjH2UxKTtThSI+5h4+UXxy4GleMJTP3gw Ojtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:message-id:in-reply-to:references :subject:mime-version:x-original-sender:reply-to:precedence :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=zCqMIKHC/U1XwvrdHGCR5KgEMYNG+ElvZkcyBxhL/cw=; b=eT8clxMub8HyMON3+UYCg25EYlcJsrQ76hr/O+K99rnq8FPHFCOwU8RuRPdy5/GSKg 5yW2/h3bUVt33MCRlP9NteBmSq5tO4PQc3UtkgcxHBzOuhSc6YFt0TDXSJhawLVvB67v 4SvqMEY+F9Ic3oMTf2JRG9Cp+D7B1DzFqgqI1VOH6ENSwdqnvahqY7MCia2jzU6JkXXK 5kK3NBW4LHIbq4YEMXjA5sHyCdr1MuZRpZdrEG8RyLJrwjDCHbdsHwLOzhKJ0tLZlXcM Sli2yB3pnqb+vVPVXdKUUpI+/rIKYwIwCIM5VK2rzjP6P0MCP96bwvUoVbboV8lTiDBG ProA== X-Gm-Message-State: AMCzsaVonm59VDEmmN2BcIwfKJejYKJFPZbFs3C5iVb2mtM6oodvarOs hz/e0AFF9RETKPhLGRfIinw= X-Google-Smtp-Source: AOwi7QACYHVb2YFYHVWbFKCvnhgiNWm8zKfXkSR2yhNs4R8RAWYXxjOq/pSgusPp8Fb2g/HtlraH2A== X-Received: by 10.157.1.201 with SMTP id e67mr57296ote.23.1507120504955; Wed, 04 Oct 2017 05:35:04 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.157.10.169 with SMTP id 38ls451959otq.21.gmail; Wed, 04 Oct 2017 05:35:04 -0700 (PDT) X-Received: by 10.157.61.118 with SMTP id a109mr175947otc.12.1507120504013; Wed, 04 Oct 2017 05:35:04 -0700 (PDT) In-Reply-To: <20171003204332.GA14228@protagoras> X-Original-Sender: s.bergjohansen-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org X-Original-From: SBJ 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:18251 Archived-At: ------=_Part_4343_311299365.1507120503540 Content-Type: multipart/alternative; boundary="----=_Part_4344_274067763.1507120503540" ------=_Part_4344_274067763.1507120503540 Content-Type: text/plain; charset="UTF-8" Many thanks! I can confirm that Pandoc 2.0 (dev) renders this without the additional newlines, as shown below. Note, however, that there are now *two* linebreaks fewer before and after the environment, respectively (compared to the old output), so that the entire environment is now inlined with the rest of the LaTeX source. pdflatex does not seem to take issue with this and renders it correctly, but I wanted to point it out nevertheless. Note also: inserting an extra newline before and after in the Markdown source would result in *two* extra linebreaks before and after, i.e. the old (undesired) behaviour. Also, thank you for developing Pandoc. Besides being conceptually interesting, I find it incredibly useful for my day-to-day work. Testing environment \begin{align} i^2&=-1\\ x &= 0 \end{align} for whitespace. On Tuesday, 3 October 2017 22:43:32 UTC+2, John MacFarlane wrote: > > The dev version of pandoc will not give you a blank line > in this case -- it knows that equation environments can > occur inline. > -- 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/bdbfaa4e-8889-4eec-9831-9901eb39e20f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. ------=_Part_4344_274067763.1507120503540 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Many thanks!

I can confirm that Pandoc 2.0 (dev) re= nders this without the additional newlines, as shown below. Note, however, = that there are now two linebreaks fewer before and after the environ= ment, respectively (compared to the old output), so that the entire environ= ment is now inlined with the rest of the LaTeX source. pdflatex does not se= em to take issue with this and renders it correctly, but I wanted to point = it out nevertheless. Note also: inserting an extra newline before and after= in the Markdown source would result in two extra linebreaks before = and after, i.e. the old (undesired) behaviour.

Also, thank you for d= eveloping Pandoc. Besides being conceptually interesting, I find it incredi= bly useful for my day-to-day work.

Testing environment \begin{align}
= =C2=A0 =C2=A0 i
^2&=3D-1\\
=C2=A0 =C2=A0 x
&=3D
0
\end{align}<= /span> for whitespace.


On Tuesday, 3 October 2017 22:43:32 UTC+2, John MacFarlane wrote:=
The dev version of pandoc will= not give you a blank line
in this case -- it knows that equation environments can
occur inline.

--
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://groups.google.com/d/= msgid/pandoc-discuss/bdbfaa4e-8889-4eec-9831-9901eb39e20f%40googlegroups.co= m.
For more options, visit http= s://groups.google.com/d/optout.
------=_Part_4344_274067763.1507120503540-- ------=_Part_4343_311299365.1507120503540--