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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

Post Reply