From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31660 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bastien DUMONT Newsgroups: gmane.text.pandoc Subject: Re: Plain TeX writer Date: Thu, 27 Oct 2022 07:07:07 +0000 Message-ID: References: <51539828-c876-437b-bb1e-a5efcf752762n@googlegroups.com> <84C142C7-20EF-411E-AF94-D0AA008FA9DA@gmail.com> <24c01860-2f35-4ff0-9d31-63d10f764f79n@googlegroups.com> <1EC34FB9-2344-40AC-91CD-22B3D9069EE6@gmail.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22681"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDCINCES2QJRBHW45CNAMGQEH4MXTQA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Oct 27 09:07:16 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-lj1-f188.google.com ([209.85.208.188]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1onwyy-0005jo-EQ for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 27 Oct 2022 09:07:16 +0200 Original-Received: by mail-lj1-f188.google.com with SMTP id u12-20020a2e91cc000000b002770fb05c39sf290358ljg.12 for ; Thu, 27 Oct 2022 00:07:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1666854435; cv=pass; d=google.com; s=arc-20160816; b=zsUBtPpJQSp9FYW+fOH6SbSVZosx1AOg9Z31J5AC/fR3KqwyaWjeOG4FnQjm3zRZ04 QbthiOblTFepuq8lGc2YzU1lMSCeonFpvupcp+SEvjKKv/aqDEXwNyfi4U3MmUTGjMJn dyhuBQ+wdLZr0y2DxOEnD2F4q2tSmR4hicxjXXM8NsDypO20PksGzmg61B+HtoVjtdjo o7e9hJR9bSLieu3xag9OvoorUn6HTAEyI9q9SigALHN2mTRu3dI1uOz7SqwQwPMQEjjP TOp0qMhu6nwqbs0rQ/Y22QsP+H3SAWpM0cgNyakViCs5+RAQTY7RvmUepAR93BcI/u6/ 2TKA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:from:date:sender:dkim-signature; bh=C3JypoAqpl/L2ny0A9SkFRxsRDHoDd7YmoB7srrH0WI=; b=EWAbVJJT9I1u9lWbnq1BjITTZhybhSu8UeBI9dEMLEeppXoHZ5Z/tiEt2MK5gnermw oH6MzHTPTN0VJ5hY+w5z0MPAUZFrqIA7lWV8wKQLhtaFQo0keUmU2au/L2W7J0riUaB6 MjOEtndKlGxGCeEPFslErs7GKRHRA++3TlfsVqU8YmL/VAjFPFfDOMQnk+Ss2PaufheW F+hPnndHCOXKOTcsn6ZG1+MqQaT3sY8to4tPqMjYV8RNuT6D2ikXOVWjSyZdBJQ0GUms /1+xo4gwgkehbrAMdjeES/HFlE+88vWZuj/gHff/RJStt0u1w3oHDVqyvaA6WSiZR2+g P5Cg== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b="I2/qeEj8"; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.65 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:from:date:sender:from:to:cc :subject:date:message-id:reply-to; bh=C3JypoAqpl/L2ny0A9SkFRxsRDHoDd7YmoB7srrH0WI=; b=Pl0Xg7zQ0XJ73bIQQ24lungDnXslMrCcQER4hdyH679mX0fmizui9uXEjKPxyNz3GY iPzl07GthD8KCnvBBYOUo+d+icp5Wb1yNDuUlC6R56L1FHMyWDZXQ64eU1RmGH6ckQJb bsavL2nu8/cLQgoKW2D5x5T3FMsejDAtGUG6gImEoLI7u/n/43i/MFmOFryI+ueBDeM4 HuLsBh0BRDO6DlfcfaZnKxM8lU8QRD+Nr4J2qksJ/OWbxqyxcbQo/Tt7rp4QkoZ9eB6K sD0fRFcfWT2tsS4CRCvkGhE0ancLPVyA+17iVS568wr51 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:from:date:x-gm-message-state :sender:from:to:cc:subject:date:message-id:reply-to; bh=C3JypoAqpl/L2ny0A9SkFRxsRDHoDd7YmoB7srrH0WI=; b=24pW3T7g0dgFeeBR2cs+tT0BQhd1OX9bLpC7DaUoyP7in9GUZq1NAm8YzUO6+3voib cRKWpt7ouRXdvt4xUHiBQaGPouHu2d8PXE9nLXwGBgtR9oOb3Tz8m54hAPAYCXVX98Kv 7Y0ZIWeZtcoxAr4iUv75TB920gXtWuJyCFzZi8garHbmmJt/zUFjFbUozStcA8rSeYig 54Y4puJjxWz4dlVxtZRcG8qZPZyRExxMIGXXoLZEr8Ey1qarDFjCVQu+ic6xsrIDhWMC Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ACrzQf17aRWBVUk7IdyevoVP/9eoxrBzQrmjdM1ZS76BmiJCt1R5zvs2 8lFmL0IbIJ7G7YtePsmtcqQ= X-Google-Smtp-Source: AMsMyM57W0+bgBoXkbQcbpx6ysac2nW0kDxk8Lu3Cyg3sDlVaNtYqGE3GsYqbZDs8ihtsC6HDktAlw== X-Received: by 2002:a05:6512:acb:b0:4a2:500f:af73 with SMTP id n11-20020a0565120acb00b004a2500faf73mr17324804lfu.524.1666854435728; Thu, 27 Oct 2022 00:07:15 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6512:1186:b0:4a2:3951:eac8 with SMTP id g6-20020a056512118600b004a23951eac8ls3104297lfr.0.-pod-prod-gmail; Thu, 27 Oct 2022 00:07:10 -0700 (PDT) X-Received: by 2002:a05:6512:b9e:b0:4a2:9853:b87f with SMTP id b30-20020a0565120b9e00b004a29853b87fmr16460754lfv.257.1666854429934; Thu, 27 Oct 2022 00:07:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666854429; cv=none; d=google.com; s=arc-20160816; b=pfRUpaH73ytSKE50V3/4B2V5LxJtm991uMY55WCLKJ6AH/gXNN0yLp1sv8Ml7owOKz tCIk7Onn+yyWICgwlaQ4qe5eBVd3k6sEjMfQ/LRDW/AVomW7l9GfykkWyVIgXsj20+qn 9qhxTBEt8/SWiWHA7WhgL/lawqpmSxqHmrj0m2cy92/CMMAoQgyUsMReG4QUfcn8VXX2 BkqovF/j6nQJMoAPcBxAKXE7LVZddglYVsXG1onfw9QMHDKegNz6FIl3oXIxs8KxwPF+ xbQ51R3BcsPkjRUxv/ozdd+w5UQ22tJdj3ACuMcGXhnj3L0Z824fLUTGYENzBXRszY2Q qqUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:to:from:date :dkim-signature; bh=gIp2PiLIDouX6ozpAGEo9i0sbcbzx5brCrxzug6eXGE=; b=RmMV4fzxcTRdPcFBgIMXt1DC4Dm6s0t5j6yFHikRFAP+xTO5v1ndkcV+AKRWIjtwgZ nCfQHwXXqCjeQwZi8avu9wje8mmKlT4TZw3nwR86Sb15CqfhDHoFIB3omrAKgQhgN60g T5dpnxm4rMlT8pfTTLVbFXhqPDrMFo71pBmlcuPery8BKxf0dUe9hcSEk+ExcYi7P8ky VTy8sXUqiv9ru0VSyt8frI952d/AuVJ8/9EBsBp9jm7/JxONuQ/kCietAPAfegrnZE4n QxMs3odtXasMaoM6hOFfvvXECC7asuOJr+bM90MxdX0/2k5XaEYkyB2K7GgrO4JEH/w8 39Dg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b="I2/qeEj8"; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.65 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net Original-Received: from mout01.posteo.de (mout01.posteo.de. [185.67.36.65]) by gmr-mx.google.com with ESMTPS id v14-20020ac258ee000000b004a608a3d90asi19927lfo.6.2022.10.27.00.07.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Oct 2022 00:07:09 -0700 (PDT) Received-SPF: pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.65 as permitted sender) client-ip=185.67.36.65; Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 3D9F1240027 for ; Thu, 27 Oct 2022 09:07:09 +0200 (CEST) Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4MycDr5d5yz6trd for ; Thu, 27 Oct 2022 09:07:08 +0200 (CEST) Content-Disposition: inline In-Reply-To: <1EC34FB9-2344-40AC-91CD-22B3D9069EE6-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> X-Original-Sender: bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b="I2/qeEj8"; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.65 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net 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.io gmane.text.pandoc:31660 Archived-At: Fortunately, it is possible by making the space and the newline characters = active in TeX! (Provided that a SoftBreak is rendered as a line break in th= e TeX output.) This is how \obeylines and \obeyspaces work. Le Wednesday 26 October 2022 =C3=A0 05:24:36PM, John MacFarlane a =C3=A9cri= t : > I like the look of this better. But, just to be clear about the costs bef= ore it=E2=80=99s set in stone: this means that you couldn=E2=80=99t =E2=80= =9Creprogram=E2=80=9D pandoc Spaces or SoftBreaks using tex macros. So, fo= r example, you couldn=E2=80=99t make Spaces appear as visible =E2=90=A0 cha= racters, and you couldn=E2=80=99t make SoftBreaks create hard breaks in the= output. >=20 > Probably these are acceptable limitations, but I mention them just in cas= e! >=20 > > On Oct 26, 2022, at 1:09 PM, V=C3=ADt Novotn=C3=BD w= rote: > >=20 > > What would you think about replacing \pandocSpace with a regular space = character? IT would make the output a lot more readable. Similarly, SoftBre= ak could be a regular newline character. > >=20 > > In drehak/pandoc-to-markdown#20 and #21, we have replaced \pandocSpace = and \pandocSoftBreak with =E2=90=A3 and =E2=A4=B6, respectively. Running th= e code from the original post will now produce the following output: > >=20 > > $ cat example.tex > > \pandocDocumentBegin > > Under his pillow P=E2=80=99raps found\pandocLineBreak > > \pandocStrikeout{A cake that weighed a half a pound.}\pandocLineBreak > > A plenty of space to roll around > > \pandocDocumentEnd > >=20 > > This is definitely easier on the eye than the original. > >=20 > > --=20 > > You received this message because you are subscribed to the Google Grou= ps "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 view this discussion on the web visit https://groups.google.com/d/ms= gid/pandoc-discuss/24c01860-2f35-4ff0-9d31-63d10f764f79n%40googlegroups.com= . >=20 > --=20 > 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 view this discussion on the web visit https://groups.google.com/d/msgi= d/pandoc-discuss/1EC34FB9-2344-40AC-91CD-22B3D9069EE6%40gmail.com. --=20 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 e= mail to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/Y1ouG5j9V0ObqP9a%40localhost.