public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* arbitrary latex environments to pandoc divs
@ 2017-11-03 12:22 Dániel Tüzes
       [not found] ` <729a5ec6-70c7-45e7-aecf-9f3cbe564bc2-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Dániel Tüzes @ 2017-11-03 12:22 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 1251 bytes --]

I have my own predefined latex environments for proofs, notes, lemmas, 
etc... I (could also) use amsmath for that, like:

\begin{def}
>
> Definition: (the norm)\\
>
> Let \(X\) real Euclidean space. A norm of an element \(a \in X\) is 
> defined as: \(\left\| a \parallel \right.: = \sqrt{a,a}\).
>
> \end{def}
>

I'd like to read this latex document and get an md file like

> <div class="def">
> <p>Definition: (the norm)<br />
> Let \(X\) real Euclidean space. A norm of an element \(a \in X\) is 
> defined as: \(\left\| a \parallel \right.: = \sqrt{a,a}\).</p>
> </div>
>
Is there a way to do this? Currently I use regex, but I hope there's a 
professional way to do this.

-- 
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/729a5ec6-70c7-45e7-aecf-9f3cbe564bc2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #1.2: Type: text/html, Size: 437708 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-11-05 22:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-03 12:22 arbitrary latex environments to pandoc divs Dániel Tüzes
     [not found] ` <729a5ec6-70c7-45e7-aecf-9f3cbe564bc2-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2017-11-03 14:19   ` mb21
     [not found]     ` <09af0bb9-67bc-4aa3-ba37-55edbfd6a397-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2017-11-03 14:42       ` mb21
2017-11-03 16:35       ` John MACFARLANE
2017-11-05 22:44         ` Dániel Tüzes
     [not found]           ` <bfb0ccd5-6329-46ff-b8a7-3efba8a4da8d-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2017-11-05 22:49             ` John MacFarlane

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).