I see, thank you very much for your help !
So, you replaced basically all `<`with `<`, correct ?
Also: Do you understand, why, if you go on my Stackoverflow question
https://stackoverflow.com/q/55642183/6114310, the string can be perfectly
represented, if I just type it as is into Stackoverflow ?
On Friday, April 12, 2019 at 2:04:38 AM UTC+2, John MacFarlane wrote:
>
>
> The main issue is that this isn't really valid HTML. The
> '<' should be escaped as '<'.
>
> When you fix that it gives better results:
>
> % pandoc -f html -t latex
> <λv1,w> + <2,w
> ^D
> \textless λv\textsubscript{1},w\textgreater{} +
> \textless{}\textsubscript{2},w
>
>
>
> tot...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org writes:
>
> > I have also posted this issue on stackoverflow
> > : https://stackoverflow.com/q/55642183/6114310
> >
> > I have the following HTML string:
> > s = "I have : <λv1,w> + 2,w>"
> >
> > Now, I would like to convert it to LaTex. To do so, I am using
> > [pypandoc][1].
> >
> > import pypandoc
> > text = pypandoc.convert_text(s,'latex', format = "html", extra_args
> =
> > ['--wrap=preserve'] )
> > text
> >
> > I get:
> > I have : \emph{1,w\textgreater{} + 2,w\textgreater{}}\r\n
> >
> > Which in human-readable LaTex become:
> >
> > [image: Capture.JPG]
> >
> >
> > [![enter image description here][2]][2]
> >
> > **Anyone knows how to fix it ?**
> >
> > --
> > 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-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org .
> > To post to this group, send email to pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> .
> > To view this discussion on the web visit
> https://groups.google.com/d/msgid/pandoc-discuss/4160d0dd-940f-405e-9ecb-0f1eca421b14%40googlegroups.com.
>
> > For more options, visit 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/885bafeb-28cc-4f7f-ad1f-f7708ed8fb4d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.