From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28849 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: dualer Newsgroups: gmane.text.pandoc Subject: Theorem environment in markdown & pandoc Date: Mon, 19 Jul 2021 03:02:05 -0700 (PDT) Message-ID: <38362bc3-9a51-4094-9447-c0681231976bn@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_5636_1207073727.1626688925690" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32508"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDF5LNHQ5EARBHU32WDQMGQEAWGPWJI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Jul 19 12:02:09 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oo1-f64.google.com ([209.85.161.64]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1m5Q6C-0008JW-Sm for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 19 Jul 2021 12:02:08 +0200 Original-Received: by mail-oo1-f64.google.com with SMTP id s2-20020a4ae4820000b0290260d4063992sf12085809oov.4 for ; Mon, 19 Jul 2021 03:02:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=I3G2XjRCQJBfGm5lDzaleQeiWHX6STWFPNi062/DSKg=; b=ivz1WBdDJxhMt373Hsp1IoRkyCFf9F0tEDiqhSJ/dwaxFW9iEVVv9wzTSEpvH0P79J LOKg1EedePLAhCUz/cSEF6/0lUuLWEKR0fO2LZuZ8rRyZ9KNmcpMFjT4JIBfbfOsxBIq 18npchegsnENIuA1TP2Tb6wD+Z5VRxdVBTiKBuHSg4AwWPtNdfjHziIGu4CeGVe8zATa M6Ib8XbxrskNJ/uOPWkJCdxCe8wJYA78w5dDjkyn7sft+ib6TzHBjqP/xuhUGdeBQLLa trWWX0tozwZ3G1eqBrGq4ZC5eTz8xjfQrRhpcQvnDJXYw+psYze1H5cmX4euRt6R9bXW j5xg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:subject:mime-version:x-original-sender :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=I3G2XjRCQJBfGm5lDzaleQeiWHX6STWFPNi062/DSKg=; b=NvkWyDUVOhcD+FjSc3rVF+srXm0NzyrwJRZPvdls6yU8NtB66ZDYXvvIy0CzsfMHRZ YUx0V1+ffrsUq5fMQJYAyi5toAn/kp/BO9uN9692n6LnvyDJAQUIIjwyI2nzYTgCWbHm w9lkV1WeA/jYtgVtJlA5OnYc5P7gVgrCR3R0ncpf+PquVcE6V9zMtmctxHgqZXaIHTWO KxTwOwODOtiIVEhkHS7yu54vGwPtFreuxIkXqrvygGhhjXTuVYPo+ahPCiGb+MQAKqEn XvlCvXAiWnxVcUkEXgeMcwCk5kwRBZ24twjJqtNN4w4cmfCRume/TX61Qzt+qReU2y14 mA6g== 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: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=I3G2XjRCQJBfGm5lDzaleQeiWHX6STWFPNi062/DSKg=; b=TXJy0/OBx2Nx9KTTSvM+ZJMLcp1l0TnBmZIrdzRzJGFAFsn03TFk5NcK5DCnQgmOfA ZGABO0j9TUkDi5/BQZg3JN+zlITkbtFEw1J5x1BUI3EETKkn7i0fWXCEV2E1IgQ5MJj7 CafzJ70vOhZ2gmVG64Ho2G0zsRC+GBpjsPqbrdAVht4X9ElvHpBsdZoyQd85gytabx73 O20AcVGnjaBnJKJymzfwpPKTpfk0vS5viqA7LlSP0FE4YeJwsj17V5+HPNK9crcejj2p cWUOOyotBEtJsYSrfMb7wEF4zx3bUPffzEqFWMr0VLQzyVHt2TQLjEjjigqj8YRvLVwW VZvw== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM531nkhjAp0UGaQJMTa58pFTovwG/VmcW+Y8x2kXFLvE616C0HR8/ Gxlp1NeINTGRDpB3NUxMWDM= X-Google-Smtp-Source: ABdhPJwCbSLv7pNZgWOCh0Ioo96GVUT40/5wPSCGNBKY41bslf4/Guz32D9Go+UK7aDJiNXOjoZtjw== X-Received: by 2002:aca:aac9:: with SMTP id t192mr17091961oie.55.1626688927909; Mon, 19 Jul 2021 03:02:07 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aca:49ce:: with SMTP id w197ls4006364oia.8.gmail; Mon, 19 Jul 2021 03:02:06 -0700 (PDT) X-Received: by 2002:aca:5a04:: with SMTP id o4mr16911366oib.33.1626688926315; Mon, 19 Jul 2021 03:02:06 -0700 (PDT) X-Original-Sender: maxwellguo1-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:28849 Archived-At: ------=_Part_5636_1207073727.1626688925690 Content-Type: multipart/alternative; boundary="----=_Part_5637_1325557135.1626688925690" ------=_Part_5637_1325557135.1626688925690 Content-Type: text/plain; charset="UTF-8" I use vscode to write the markdown document now, but it doesn't support the theorem environment. I wonder whether one can make it happen, and use pandoc to transform it into latex format, i.e. ``` \begin{theorem}[name]\label{label} math: $\pi$ \end{theorem} ``` I have done some searches on the internet, e.g. link1 gives some information about div & span in pandoc, link2 gives some ways to use the theorem environment in markdown, and link3 gives some ways to transform it to latex format. I want to implement the following process: Using some code in markdown like ``` ::: {.theorem #label name="name"} math: $\pi$ ::: ``` or ```
\label{label} math: $\pi$ <\div> ``` to get the right display in vscode , e.g. *Theorem 1 (name) *math $\pi$ after transforming it to latex, one can get the right latex content above. As far as I know, the way in link2 doesn't support math formula & label and the way in link3 doesn't support the `name` of theorem. -- 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/msgid/pandoc-discuss/38362bc3-9a51-4094-9447-c0681231976bn%40googlegroups.com. ------=_Part_5637_1325557135.1626688925690 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I use vscode to write the markdown document now, but it doesn't support the= theorem environment. I wonder whether one can make it happen, and use pand= oc to transform it into latex format, i.e. 
```
\begin{theorem}[name]\label{label}
math: $\pi$
\end{t= heorem}
```
I have done some searches on the internet, = e.g. link1 gives some information about div & span in pandoc, link2 gives some ways to use the theor= em environment in markdown, and link3 gives some ways t= o transform it to latex format. I want to implement the following process: = Using some code in markdown like 
```
:::&nb= sp;{.theorem #label name=3D"name"}
math: $\pi$
:::
```
or 
```
<= div>
<div class=3D"theorem" data-attribution=3D"name">\= label{label}
math: $\pi$
<\div>
=
```
to get the right display in vscode , e.g. 

Theorem 1 (name)   math $\pi$<= /div>

after transforming it to latex, one can get the ri= ght latex content above. As far as I know, the way in link2 doesn't support math formula & label = and the way in link3 doesn't support the `name` of theo= rem.

--
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/38362bc3-9a51-4094-9447-c0681231976bn%40googlegroups.= com.
------=_Part_5637_1325557135.1626688925690-- ------=_Part_5636_1207073727.1626688925690--