Line listing: font definition

How to determine the font in the list?

I need one font for line numbers (Sans 6pt) and another (Monospace (8pt) in the code.

+4
source share
2 answers

You can define the style of line numbers using the following command:

\lstdefinestyle{numbers}{numberstyle=\tiny} 

The appearance of the code can be determined using:

 \lstset{basicstyle=\small} 

You can replace \tiny and \small with your own style specifications.

+2
source
+1
source

Source: https://habr.com/ru/post/1308018/


All Articles