From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/27558 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Chris Diaz Newsgroups: gmane.text.pandoc Subject: Markdown Fenced Div to LaTeX Environment Date: Sun, 24 Jan 2021 05:47:11 -0800 (PST) Message-ID: <8ba84992-d792-4333-aae0-560147ef79d4n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_2238_369056314.1611496031302" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23222"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBD2Y77EIQ4PBBYHUWWAAMGQEK6VMFYQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun Jan 24 14:47:15 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oi1-f189.google.com ([209.85.167.189]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1l3fjW-0005wV-Fj for gtp-pandoc-discuss@m.gmane-mx.org; Sun, 24 Jan 2021 14:47:14 +0100 Original-Received: by mail-oi1-f189.google.com with SMTP id u129sf2303494oif.4 for ; Sun, 24 Jan 2021 05:47:14 -0800 (PST) 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=cgEgbNhWuu3imPrWSGKfaRk+UXZhozfVTCAgZBGqTYM=; b=bW5phcs2aRmsHyecPopR3Y/tyy1StIwx065b8SUc/1cR3fEqZxbE5OLaJhG+EZnXpj cd3ZaQuHpqVxgb7GxcFyEyI/ZcojRAd/x14NKSdzJIIIxRL5qtpZXwh/l2P37hnuUvV2 XxsTkHL4JmalyxbxHN71/Cu83oKtbwfitJQg4hqzwhCy7bm+OonNKPcr3w0E9ZuSzIWb CtHufcgoBU5oABOnvkJR2OkNotOkeitfdevaKvnlQ+FLqdVOizNba2pt1f1oLmcKFpQl mda3dDg/t/koWc/NhilSU5NoCQMwY2hI24xlq2EXlmYS0yHnAO/5G+i3Y+J1N5RVh6rU FYJg== 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=cgEgbNhWuu3imPrWSGKfaRk+UXZhozfVTCAgZBGqTYM=; b=mxbGBqHWFG81jYW6pufNB4s6ttWoamcDWFNOcqJ4RT0af38Ie8J/dHPUVmHU8GjT+e AFldVs3/rQ0/7I5iBrRrahpR7Vj1L6Y9iBTSKPbPaqflzNtqN6HS6doqe9WnZq3LRW+5 nMocRceZZ2aBDl5gvy0TNxod872rgpqRc1+yRx2GslC22bOzX2wnL4+q17RuJyKATtfZ m0Yzg+RiAePFlxp/snH1Csn80Redd9EWrlS4Boq5qzVUPijoqlGJLKbzrYcxbTV3ETF7 +LgK+eni+nD3A8AYb9PUO3ztU1fJNhz7jd9pAxw6kAgcIGopsa1L8Z+233j6rZWYslel 8IWA== 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=cgEgbNhWuu3imPrWSGKfaRk+UXZhozfVTCAgZBGqTYM=; b=QBJatQfLRJKll1zIFvWWyHvH7zXihID1Lw+OBoXlv3sPU9Z+V3nwActHkDR68/F17U fDYKSZ9HLUFTIwK9cLTbnYKdDejaFEAoZf4GY127YDWnvUmlGrNexStMvk6CkXA6Bdt/ JxBLTjSmEHTBv3aYeKNdofAQ6iMTiD/R2UgDEUEpcW4hE7OotB64fA2aZ41asI4Pajzv 25cFxyZytLxEcy1UpCEsCE1tqgafVZm6dIjAHvUzxNCZF0FlyAv0YhE29th0s4hOvsJA SdiP243YE/d3jdQ4sLcyADarr8gpeiHkJLXzDCdgqt9TqiEtZX4q4d+gBfnVfkeJc03f CK7g== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM53221UVDFbAGaDGMRWjahYxzYyF62NMH/+uy1dFxrHTqulitGTLG PnChm/p49TT4hVmE5LT4Exc= X-Google-Smtp-Source: ABdhPJy+NOkdA1rfUkh9s2MpQ9pXPtk6ywvagriiNoc7OszvI0QaShHppyHIsg+Ho2CLmqbE6Og98Q== X-Received: by 2002:a9d:64c1:: with SMTP id n1mr9392069otl.60.1611496033518; Sun, 24 Jan 2021 05:47:13 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6830:1f0d:: with SMTP id u13ls2016534otg.8.gmail; Sun, 24 Jan 2021 05:47:12 -0800 (PST) X-Received: by 2002:a9d:7c7:: with SMTP id 65mr9785405oto.283.1611496032015; Sun, 24 Jan 2021 05:47:12 -0800 (PST) X-Original-Sender: chris.diaz26-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:27558 Archived-At: ------=_Part_2238_369056314.1611496031302 Content-Type: multipart/alternative; boundary="----=_Part_2239_103073087.1611496031302" ------=_Part_2239_103073087.1611496031302 Content-Type: text/plain; charset="UTF-8" Hello, I'm looking for advice on how to produce HTML and LaTeX from Markdown using fenced divs (or something else) to apply custom styles to specific portions of the document. For example, I'm hoping to write something like this: ::: solution Solution text here. ::: in order to produce this when HTML is the output (already works):
Solution text here.
and this when LaTeX/PDF is the output: \begin{solution} Solution text here. \end{solution} This idea comes from Bookdown's Custom Blocks feature, but I'm wondering if there's a way to do this with Pandoc, or if this would require a Lua filter. Thanks, Chris -- 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/8ba84992-d792-4333-aae0-560147ef79d4n%40googlegroups.com. ------=_Part_2239_103073087.1611496031302 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello,

I'm looking for advice on how to produce HTML and= LaTeX from Markdown using fenced divs (or something else) to apply custom = styles to specific portions of the document. 

For example, I'm hoping to write something like this:

=
::: solution
Solution text here.
:::
in order to produce this when HTML is the output (already works= ):

<div class=3D"solution">
S= olution text here.
</div>

and this when= LaTeX/PDF is the output:

\begin{solution}
Solution text here.
\end{solution}

Th= is idea comes from Bookdown's Custom Blocks feature, but I'm wondering if there= 's a way to do this with Pandoc, or if this would require a Lua filter.&nbs= p;

Thanks,
Chris

--
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/8ba84992-d792-4333-aae0-560147ef79d4n%40googlegroups.= com.
------=_Part_2239_103073087.1611496031302-- ------=_Part_2238_369056314.1611496031302--