From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/26783 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bernardo Giordano Newsgroups: gmane.text.pandoc Subject: Re: Unable to convert markdown to latex while it's in latex blocks Date: Wed, 11 Nov 2020 00:19:12 -0800 (PST) Message-ID: <8c42cf82-8531-4a70-bbb1-f56de736235fn@googlegroups.com> References: <8c50d176-a9cb-422a-b78f-1e8fd36dce52n@googlegroups.com> <87h7pws4a6.fsf@zeitkraut.de> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_140_1599529287.1605082752643" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15216"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDDNZI6DQEARBAV5V36QKGQEASADYBA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Nov 11 09:19:18 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oi1-f185.google.com ([209.85.167.185]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kclLZ-0003qi-Vo for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 11 Nov 2020 09:19:18 +0100 Original-Received: by mail-oi1-f185.google.com with SMTP id g19sf668282oib.6 for ; Wed, 11 Nov 2020 00:19:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender: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=bqS7lLk82njYTOr+IVNeCX3I3EIVZtcfjJMGR+Jab+c=; b=OOouHV0tbmu0w19TrAitBZgGokmT4vtRDIFfHqSskdnBBv5V0RkG9xtcGYYI/OipYR CsO9fHsXo+g70FHjE47Qw4JYYNlLfAB2XLII3SRiUTgIWRDdm5J2BOBIZ7jppBg5g4zb /ldbuVgMvdqBVLueBzBTJl2PrhuHjnCvHkNOr4A525NkYOcCMs4AF2cU1rts/BV4e+Zr J2BNbP7BieyOiKkGkvSUdoEslxgLg8h7b85LZewRgLEhkMCqiwrUJtgQWfsgv5SSpoMg mg4O+iRAZgfCiF+szjWqWXlsY7egckPPuu8KFctL5ROUtzva8sdn7LstK0rPZ/e8JBQS XviA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.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=bqS7lLk82njYTOr+IVNeCX3I3EIVZtcfjJMGR+Jab+c=; b=D0ULnyTNT3dLUhWeqVB72ehO16g/k9j17eVMOItzsO3llVOXWtEcDQhpWD/fyxQVzT 3pFx4IQBb+H7bitn1pve/v/1yiYBaOUn0Ili+Sjl5QzPnaYC5VLrjoVgz6qd1v76duhg kby2Iod4LuybUIx4GvUC66a8qHHIqd+EJeOmPUEiLmMuPy7hoCTGMJ2GkLasQ8tL3Yxe P+SnLayXdxOUK2OdxhzmwoWMPT9e6UL7nwql5QnVV2eUTsg0+YkQGA5FWIw2lPposIzi 70pLfC3GGwdZhdSOqIo9nF2KvtnCOqsGaTsXdVhGFw8TR8g07Eb+VF29kqD42rvKXvhX Zxsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender: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=bqS7lLk82njYTOr+IVNeCX3I3EIVZtcfjJMGR+Jab+c=; b=KHftZ7d0ArNBa1t+39GHIoMhiTb4cry1eowIBcDVHQGi5nvCDcDxH+RrDbwlMbSWE4 u7J8zh4O/PNvLEBEfFi20zFdILZkhAWlTNCGK8IzoCc0h522OXemD3f7iGWVmY3okm8a wjYigUT5I8oQ445152TVs5e0RcRtdEZ7BdpruvWGyF5GbrxNdfbiL35ZUXXcUyPKGMFu w73hVsXrL/fLWIFTXGTk244nkjyJ9nmPKZIqbL+xdximEAY3qDB/a9qi3Ca//NbtKQbL rfWMreNY/FjYRZbRJjJXc56KGVn2v6BzTl413j2Z4s7FE8ENON6FPf1aulTSpqQWhZLP KUHw== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM531o26yD91f57xDimOhS2TNYUds1wUSfIUZUp0rRFfigbQctDtnQ y+YsOqJrBnJW9Nm1AriERPk= X-Google-Smtp-Source: ABdhPJycTCalLODybzLIjfOVMhzBrKcZ2WNfkuffUmJzdYCQkr5YMPDm2zEcHAlCNk14VL44Ae9mLA== X-Received: by 2002:aca:d583:: with SMTP id m125mr1323604oig.47.1605082756951; Wed, 11 Nov 2020 00:19:16 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a54:4e8d:: with SMTP id c13ls140689oiy.8.gmail; Wed, 11 Nov 2020 00:19:13 -0800 (PST) X-Received: by 2002:aca:b887:: with SMTP id i129mr1342357oif.25.1605082753672; Wed, 11 Nov 2020 00:19:13 -0800 (PST) In-Reply-To: <87h7pws4a6.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org> X-Original-Sender: bernardogiordano369-Re5JQEeQqe8AvxtiuMwx3w@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.io gmane.text.pandoc:26783 Archived-At: ------=_Part_140_1599529287.1605082752643 Content-Type: multipart/alternative; boundary="----=_Part_141_496986512.1605082752643" ------=_Part_141_496986512.1605082752643 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thank you so much, this is actually feasible for my use case. I was already looking at the solution presented in=20 https://github.com/jgm/pandoc/issues/2453#issuecomment-219233316 but this actually makes things easier for me. Thank you. Il giorno mercoled=C3=AC 11 novembre 2020 alle 09:10:04 UTC+1 Albert Krewin= kel=20 ha scritto: > Please > Bernardo Giordano writes: > > > Hello. I'm facing the following issue: > > > > I have a markdown document that occasionally contains latex blocks, e.g= .: > > > > # My Title > > > > \epigraph{ > > \begin{center} > > Markdown text inside, > > occasionally *italic* > > \end{center} > > }{some epigraph author} > > > > Normal markdown text > > ... > > > > When converting from markdown to latex, italic text keeps the * rather= =20 > than > > being transformed to \emph{}. Is there a workaround? Thank you > > Telling LaTeX and Markdown apart is difficult, see also > https://github.com/jgm/pandoc/issues/2453 > > The best workaround (IMHO) is to mark the LaTeX explicitly, > ensuring that the rest will be interpreted as Markdown: > > # My Title > > `\epigraph{ > \begin{center}`{=3Dlatex} > Markdown text inside, > occasionally *italic* > `\end{center} > }{some epigraph author}`{=3Dlatex} > > Normal markdown text > > > -- > Albert Krewinkel > GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124 > --=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/8c42cf82-8531-4a70-bbb1-f56de736235fn%40googlegroups.com. ------=_Part_141_496986512.1605082752643 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thank you so much, this is actually feasible for my use case.

I= was already looking at the solution presented in https://github.com/jgm/pa= ndoc/issues/2453#issuecomment-219233316

but this a= ctually makes things easier for me. Thank you.

Il giorno mercoled=C3=AC= 11 novembre 2020 alle 09:10:04 UTC+1 Albert Krewinkel ha scritto:
Please
Bernardo Giordano writes:

> Hello. I'm facing the following issue:
>
> I have a markdown document that occasionally contains latex blocks= , e.g.:
>
> # My Title
>
> \epigraph{
> \begin{center}
> Markdown text inside,
> occasionally *italic*
> \end{center}
> }{some epigraph author}
>
> Normal markdown text
> ...
>
> When converting from markdown to latex, italic text keeps the * ra= ther than
> being transformed to \emph{}. Is there a workaround? Thank you

Telling LaTeX and Markdown apart is difficult, see also
https:= //github.com/jgm/pandoc/issues/2453

The best workaround (IMHO) is to mark the LaTeX explicitly,
ensuring that the rest will be interpreted as Markdown:

# My Title

`\epigraph{
\begin{center}`{=3Dlatex}
Markdown text inside,
occasionally *italic*
`\end{center}
}{some epigraph author}`{=3Dlatex}

Normal markdown text


--
Albert Krewinkel
GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124

--
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 view this discussion on the web visit https://groups.google.com/d= /msgid/pandoc-discuss/8c42cf82-8531-4a70-bbb1-f56de736235fn%40googlegroups.= com.
------=_Part_141_496986512.1605082752643-- ------=_Part_140_1599529287.1605082752643--