If a write something like \texttt{abc*} the asterisk will be centered vertically. I found a workaround to put it a little higher and created a \newcommand for it. Now I load some C code into a lstlisting and want all asterisks in it be aligend vertical at top. Is it possible to use \... commands in a lstlisting? Or is there an other way to adjust the vertical alignment of a special character in a lstlisting?
Thank you.
Text Formatting ⇒ Vertical alignment of an asterisk, commands in lstlisting
Vertical alignment of an asterisk, commands in lstlisting
Last edited by elnoi on Fri Feb 26, 2010 3:01 pm, edited 1 time in total.
NEW: TikZ book now 40% off at Amazon.com for a short time.

Vertical alignment of an asterisk, commands in lstlisting
Hi,
Refer to section 4.14 Escaping to LaTeX of the listings documentation.elnoi wrote:...Is it possible to use \... commands in a lstlisting?..
1,1,2,3,5,8,13,21,34,55,89,144,233,...