* 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
[parent not found: <729a5ec6-70c7-45e7-aecf-9f3cbe564bc2-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>]
* Re: arbitrary latex environments to pandoc divs [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> 0 siblings, 1 reply; 6+ messages in thread From: mb21 @ 2017-11-03 14:19 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 1485 bytes --] I believe this is under discussion at https://github.com/jgm/pandoc/issues/2542 cheers On Friday, November 3, 2017 at 1:22:02 PM UTC+1, Dániel Tüzes wrote: > > 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/09af0bb9-67bc-4aa3-ba37-55edbfd6a397%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #1.2: Type: text/html, Size: 2423 bytes --] ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <09af0bb9-67bc-4aa3-ba37-55edbfd6a397-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>]
* Re: arbitrary latex environments to pandoc divs [not found] ` <09af0bb9-67bc-4aa3-ba37-55edbfd6a397-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> @ 2017-11-03 14:42 ` mb21 2017-11-03 16:35 ` John MACFARLANE 1 sibling, 0 replies; 6+ messages in thread From: mb21 @ 2017-11-03 14:42 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 1685 bytes --] ah, but that issue is already closed. better see https://github.com/jgm/pandoc/issues/2106 On Friday, November 3, 2017 at 3:19:11 PM UTC+1, mb21 wrote: > > I believe this is under discussion at > https://github.com/jgm/pandoc/issues/2542 > > cheers > > > On Friday, November 3, 2017 at 1:22:02 PM UTC+1, Dániel Tüzes wrote: >> >> 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/ecc4c5ba-37cf-4fc3-ae63-a651d4f682f9%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #1.2: Type: text/html, Size: 3223 bytes --] ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: arbitrary latex environments to pandoc divs [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 1 sibling, 1 reply; 6+ messages in thread From: John MACFARLANE @ 2017-11-03 16:35 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw I think this is a different issue, actually. The request is for the LaTeX reader to parse an unknown environment as a Div, rather than just the contained blocks. % pandoc -t native -f latex \begin{foo} hi \end{foo} ^D [Div ("",["foo"],[]) [Para [Str "hi"]]] That seems reasonable -- an issue could be opened for this, if one doesn't exist already. +++ mb21 [Nov 03 17 07:19 ]: > I believe this is under discussion > at [1]https://github.com/jgm/pandoc/issues/2542 > cheers > On Friday, November 3, 2017 at 1:22:02 PM UTC+1, Dániel Tüzes wrote: > > 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 [2]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To post to this group, send email to > [3]pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > [4]https://groups.google.com/d/msgid/pandoc-discuss/09af0bb9-67bc-4aa3- > ba37-55edbfd6a397%40googlegroups.com. > For more options, visit [5]https://groups.google.com/d/optout. > >References > > 1. https://github.com/jgm/pandoc/issues/2542 > 2. mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > 3. mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > 4. https://groups.google.com/d/msgid/pandoc-discuss/09af0bb9-67bc-4aa3-ba37-55edbfd6a397-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org?utm_medium=email&utm_source=footer > 5. https://groups.google.com/d/optout -- 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/20171103163546.GB26458%40protagoras. For more options, visit https://groups.google.com/d/optout. ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: arbitrary latex environments to pandoc divs 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> 0 siblings, 1 reply; 6+ messages in thread From: Dániel Tüzes @ 2017-11-05 22:44 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 1181 bytes --] Dear John, I'm happy that you understood my question! Shall I further take steps or have I started something already, which will never stop? :) On Friday, November 3, 2017 at 5:35:30 PM UTC+1, John MacFarlane wrote: > > I think this is a different issue, actually. > The request is for the LaTeX reader to parse an unknown > environment as a Div, rather than just the contained blocks. > > % pandoc -t native -f latex > \begin{foo} > hi > \end{foo} > ^D > [Div ("",["foo"],[]) [Para [Str "hi"]]] > > That seems reasonable -- an issue could be opened for this, > if one doesn't exist already. > > -- 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/bfb0ccd5-6329-46ff-b8a7-3efba8a4da8d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #1.2: Type: text/html, Size: 1797 bytes --] ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <bfb0ccd5-6329-46ff-b8a7-3efba8a4da8d-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>]
* Re: arbitrary latex environments to pandoc divs [not found] ` <bfb0ccd5-6329-46ff-b8a7-3efba8a4da8d-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> @ 2017-11-05 22:49 ` John MacFarlane 0 siblings, 0 replies; 6+ messages in thread From: John MacFarlane @ 2017-11-05 22:49 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw Yes, you can open an issue on the github tracker for pandoc, requesting this feature. (But search for an existing issue first to avoid duplication. There may be one.) +++ Dániel Tüzes [Nov 05 17 14:44 ]: > Dear John, I'm happy that you understood my question! Shall I further > take steps or have I started something already, which will never stop? > :) > On Friday, November 3, 2017 at 5:35:30 PM UTC+1, John MacFarlane wrote: > > I think this is a different issue, actually. > The request is for the LaTeX reader to parse an unknown > environment as a Div, rather than just the contained blocks. > % pandoc -t native -f latex > \begin{foo} > hi > \end{foo} > ^D > [Div ("",["foo"],[]) [Para [Str "hi"]]] > That seems reasonable -- an issue could be opened for this, > if one doesn't exist already. > > -- > 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 [1]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To post to this group, send email to > [2]pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > [3]https://groups.google.com/d/msgid/pandoc-discuss/bfb0ccd5-6329-46ff- > b8a7-3efba8a4da8d%40googlegroups.com. > For more options, visit [4]https://groups.google.com/d/optout. > >References > > 1. mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > 2. mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > 3. https://groups.google.com/d/msgid/pandoc-discuss/bfb0ccd5-6329-46ff-b8a7-3efba8a4da8d-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org?utm_medium=email&utm_source=footer > 4. https://groups.google.com/d/optout -- 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/20171105224945.GB87449%40Johns-MacBook-Pro.local. For more options, visit https://groups.google.com/d/optout. ^ 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).