lstlisting

latex: dollar $ sign within lstlising

懵懂的女人 提交于 2019-12-21 21:14:37
问题 I am trying to put some asm code into a latex document, onfurtunatly pdflatex treats the $ signs within my document as math env (which I do not want). On the other side I'd still like to use that fancy linebreak arrow (which uses math env to display it). \lstset{ texcl=false, mathescape=false, .., prebreak = \raisebox{0ex}[0ex][0ex]{ensuremath{\hookleftarrow}} } example snap: CTRL_WD_12 equ $303400 CTRL_WD_34 equ $220000 CTRL_WD_56 equ $000000 CTRL_WD_78 equ $000000 thanks for any help. 回答1:

latex: dollar $ sign within lstlising

倖福魔咒の 提交于 2019-12-04 14:23:12
I am trying to put some asm code into a latex document, onfurtunatly pdflatex treats the $ signs within my document as math env (which I do not want). On the other side I'd still like to use that fancy linebreak arrow (which uses math env to display it). \lstset{ texcl=false, mathescape=false, .., prebreak = \raisebox{0ex}[0ex][0ex]{ensuremath{\hookleftarrow}} } example snap: CTRL_WD_12 equ $303400 CTRL_WD_34 equ $220000 CTRL_WD_56 equ $000000 CTRL_WD_78 equ $000000 thanks for any help. You have a missing backslash. Try: prebreak = \raisebox{0ex}[0ex][0ex]{\ensuremath{\hookleftarrow}} It was

Change “List of Listings” text

♀尐吖头ヾ 提交于 2019-12-03 11:09:27
问题 I tried to change the "List of Listings" text with the command \renewcommand*{\lstlistlistingname}{List of XYZ} before my \begin{document} . What's wrong with this? By the way \renewcommand*{\lstlistingname}{NewListing} worked like a charm. Edit: No error occurred, just no change in the text. It's still "List of Listings". By the way this is how I included it: \pagestyle{scrheadings} \pagenumbering{Roman} \pdfbookmark[0]{\contentsname}{Contents} \tableofcontents \listoftables \listoffigures