Generalhow to auto adjust text size for minted

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
royer11
Posts: 7
Joined: Tue Jul 23, 2019 12:20 am

how to auto adjust text size for minted

Post by royer11 »

Hi, I have this kind of difficulties when wanting to auto adjust a code that contains huge text, well I have the following latex structure.
I also want to add that I used the font size for example
\footnotesize
and I don't like the result because it's so small.
Image

Code: Select all

\documentclass[14pt]{extbook}
\usepackage[pass,paperwidth=8.5in,paperheight=11in]{geometry}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{xcolor}
\usepackage{minted}    
\renewcommand{\theFancyVerbLine}{\sffamily\textbf{\textcolor{black}{}}{\normalsize \oldstylenums{\arabic{FancyVerbLine}}}}
\newmintedfile[vbcode]{vb.net}{frame=single,framesep=10pt,xleftmargin=20pt,linenos=true,linenos,mathescape=false,
escapeinside=||}

\begin{document}
\section{code visual basic}
\vbcode{codigo.vb}
\end{document}
visual basic code
Module Module1

    Sub Main()
	
	Console.Writeline("Hi line line great and great ussssssssssssssssjjsij")
	
	End Sub

End Module

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Post Reply