OK thank you.  I will experiment with alltt.  If possible, would you mind giving me a brief summary of what is supported or not in the alltt env? 

BTW, thank you for your great work on pandoc.  

On Friday, February 2, 2018 at 4:12:14 PM UTC-5, John MacFarlane wrote:
Pandoc is not really set up to handle verbatim environments
that contain commands, math, etc.

You could try using an alltt environment, but our support
for this is currently rudimentary.  There's an issue on the
tracker to improve this.

+++ Umut Acar [Feb 02 18 03:46 ]:
>I wish to use pandoc to translate algorithmic pseudo code written in latex to html.  In latex, I typically use lstlisting with linenumbers and syntax highlighting on.  Because this is pseudo code, I have my own keywords and define the syntax using lstlisting commands.  I also use lots of math within the pseudo code.
>
>This is all possible when going from latex to PDF using say pdflatex but I have not had success in producing decent looking html from the same code using pandoc. I have had some success with using math arrays by basically writing the algorithms as math but it is painful and alignment and  indentation is a big headache.
>
>I would be happy to use a different latex environment etc.  What would be a good way to do this? I would appreciate any suggestions!  Thank you
>
>Umut
>
>--
>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-discus...@googlegroups.com.
>To post to this group, send email to pandoc-...@googlegroups.com.
>To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/e6689bc2-ed40-42c4-86a2-e3b6c40fa3d0%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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/5336af19-3fbf-43b6-af71-795d4c7bcef5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.