1
vote
0answers
216 views

Change font style for \texttt [closed]

I am afraid if this is a repeat question. I have checked the following links for any hints: Change font size of \texttt globally? Using same font for \texttt and \Verb The question is simply. I ...
1
vote
1answer
177 views

lstlisting: how to align highlighted code

I want to define a couple of new commands in order to highlight parts of my code (this is actually for a trace dump, not for a programming language). My problem is that I can't seem to make the ...
0
votes
0answers
33 views

Font used in text, appears like code [duplicate]

Does someone has an idea of the font used in the text in the image:
1
vote
1answer
170 views

Can't define fixed-width font with TexShop, fontspec

I've used Alex Hirzel's code to enable code snippets in LaTex articles: The problem is that I can't set the font to a fixed-width one. Whenever this line is commented out: %\fontspec{Courier New} ...
7
votes
2answers
1k views

How to make a single word look as some code?

I would like to be able to make a single word in a text look like a coded word. Is there any command such as \code{...} which allows me to do so? (basically, I want to produce something like above ...