Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change the font size of line numbers using the Minted Latex Package

Tags:

latex

I tried redefining the \FancyVerbLine to have a \large, but that didn't help. Is there another way to do this?

like image 436
Varun Madiath Avatar asked Jul 14 '10 09:07

Varun Madiath


People also ask

How do I reduce font size in line numbers?

In the Styles group, click the lower-right arrow and display the Styles list. Find the Line Number style. Right-click and select Modify to display the Modify Style dialog box. From the Formatting drop-down list, select any Font you like for line number.

How do I change font size in latex words?

Change the font size of a piece of text using these commands, from the largest to the smallest: \Huge, \huge, \LARGE, \Large, \large, \normalsize, \small, \footnotesize, \scriptsize, and \tiny. Set the font size of the whole document by adding an option to the \documentclass command.

How do I temporarily change the font size in latex?

You can change font size using \fontsize{10}{12}\selectfont (the first number is the pt size of the font, the second number the space in pts between lines: this becomes the value of \baselineskip ), but in general I think it's better to try using things like \tiny , \small , \scriptsize , \normalsize , \footnotesize , ...

How do I reduce font size in LyX?

In LyX, the following choices are available: Changing the default font size of the document: Under Document > Settings... > Fonts , you can choose the Base Size as being Default , 10pt , 11pt or 12pt (Default is 10pt in most cases).


1 Answers

That should do the trick. How exactly does your \FancyVerbLine look like? Notice that it’s not enough to put the formatting in – you also need to include the counter command:

\renewcommand\theFancyVerbLine{\large\arabic{FancyVerbLine}}

This should work.

like image 142
Konrad Rudolph Avatar answered Oct 26 '22 10:10

Konrad Rudolph