Tagged Questions
5
votes
1answer
93 views
StrSubstitute and @ inside and outside \lstnewenvironment
While further working on code for my answer to Different approach to literate programming for LaTeX, I am encountering a problem to which I am sure there is a very simple solution, but it completely ...
3
votes
2answers
365 views
How listing and verbatim do to escape special character?
I use one macro to display text using texttt style. For the moment this macro is very basic. For example, if I want to use the character _, its catcode must be changed.
Is there a clever way to ...
2
votes
2answers
563 views
ignorespace and unskip in verbatim/listings?
I am writing a \bashDemo macro that will (a) execute its argument in a shell, e.g., bash, script, and (b) display the argument in a listings. So,
\bashDemo
ls -ls > myfiles
\END
will both run ls ...