Let's say I have strings of symbols that are not in math mode but I'm trying to define kind of a language that is going to be used in a protoboard. So I have to explain how this language works but for long instructions like for example: \verb|chain[x,y](newposition[amp, speed](positioning[long, stop, fullview]())) I don't know how to break it so it stays inside the space defined by \textwidht and starting a new line if necessary.
Asked
Active
Viewed 172 times
0
Daniela Diaz
- 777
\texttt{}an option to you? – Sigur Apr 27 '15 at 17:40\verbnever breaks its contents across lines; but if you don't need special characters such as braces or backslash, you just want\texttt{...}instead of\verb. – egreg Apr 27 '15 at 17:44listingspackage. – Peter Grill Apr 27 '15 at 17:51\texttt{...}serves the purpose. There's some extra work though now that I think about it because I need to include some code from MS Excel as it uses symbols like $ and {}. – Daniela Diaz Apr 27 '15 at 18:12