Hot answers tagged


We can use lst@outputspace for configuring inter-word space, but id doesn't suffice to set it to normal space, we must also configure CSS for listing environment to break lines. Try this config file: \Preamble{xhtml} \begin{document} \makeatletter \def\lst@outputspace{\HCode{ }} \makeatother \Css{div.lstlisting{white-space:pre-wrap;}} \EndPreamble ...


\documentclass{article} \usepackage[T1]{fontenc} \begin{document} \raggedright \texttt{\detokenize{C_n = {(z_1, ..., z_n) \in R^n : z_i \neq z_j \forall i \neq j}. I want to prove that pi_k(C_n) = 1 \forall k > 1. any ideas?}} \end{document}


While alltt doesn't bother changing the category code of < and >, because it assumes that ligatures with these characters are intended for output, verbatim modes do and there is no interface in fancyvrb for changing them back. So you have to do it manually: \documentclass{beamer} \usepackage{alltt,fancyvrb} \makeatletter % fix the ligature list and ...

Only top voted, non community-wiki answers of a minimum length are eligible