2
votes
1answer
63 views

How can I get rid of bold just for one word in the listinings environment?

I have the following Matlab code in my Latex file: \documentclass[a4paper,12pt]{article} \begin{document} \begin{lstlisting}[frame=single,escapeinside={@}{@}] gamma=[1/4,3/4]; ...
0
votes
0answers
20 views

Using bold for just one word inside listing? [duplicate]

I have a similar structure like this: \begin{lstlisting}[language=bash] Family |-father |-mother |-elderson |-younger son |-younger daughter \end{lstlisting} I need to make "mother" and "younger ...
4
votes
1answer
6k views

How to change fontsize in lstlisting without losing bold syntax highlighting?

If I load the listing package to set nice code and change the font size (like suggested there: Shrinking monospace style for listings package), I lose the syntax highlighting, because the font does ...
2
votes
2answers
1k views

\ttfamily is too bold for me

I use the following settings for my listings: \lstset{ %basicstyle=\ttfamily\tiny, % small basicstyle=\ttfamily\scriptsize, % middle } But the font in the listings is too bold for me. I tried a ...
4
votes
1answer
762 views

Highlight certain texts in listings or minted [duplicate]

Possible Duplicate: Manual highlight of TeX code in a verbatim environment I want to highlight certain parts of a program output listing which represent user input. For example I want to ...
2
votes
1answer
308 views

Latex Listing Format Error

I'm having some difficulty with getting the listings package to properly format code snippets. In particular, it does not consistently bold keywords and italicize comments. The code I am currently ...
20
votes
4answers
9k views

Using \ttfamily with \bfseries (or how to enable bold in fixed-width font)

I'm using listings package, and I've added basicstyle=\ttfamily\footnotesize. However, when I do that, the keywords from the embedded source-code are not bold anymore. I figured that \ttfamily ...
13
votes
5answers
9k views

Using bold/italic text inside listings?

How can I use bold text inside a code listing? I wanted to make some parts of the code bold.
12
votes
1answer
2k views

fancy verbatim - bold letters for the first 4 columns

I am writing a book on Python and IPython. I want to insert in this book code listings of Python and IPython. For the code itself I have no problem customizing listings for my intents. Including ...