LaTeX forum ⇒ Generalhow to auto adjust text size for minted

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

how to auto adjust text size for minted

Postby royer11 » Fri Jul 26, 2019 1:12 am

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
  1. \footnotesize

and I don't like the result because it's so small.
  1. \documentclass[14pt]{extbook}
  2. \usepackage[pass,paperwidth=8.5in,paperheight=11in]{geometry}
  3. \usepackage[T1]{fontenc}
  4. \usepackage[utf8]{inputenc}
  5. \usepackage{xcolor}
  6. \usepackage{minted}
  7. \renewcommand{\theFancyVerbLine}{\sffamily\textbf{\textcolor{black}{}}{\normalsize \oldstylenums{\arabic{FancyVerbLine}}}}
  8. \newmintedfile[vbcode]{}{frame=single,framesep=10pt,xleftmargin=20pt,linenos=true,linenos,mathescape=false,
  9. escapeinside=||}
  11. \begin{document}
  12. \section{code visual basic}
  13. \vbcode{codigo.vb}
  14. \end{document}

visual basic code

  1. Module Module1
  3. Sub Main()
  5. Console.Writeline("Hi line line great and great ussssssssssssssssjjsij")
  7. End Sub
  9. End Module

Return to “General”

Who is online

Users browsing this forum: Baidu [Spider], Google [Bot] and 7 guests