我已经做到了以下
\documentclass[12pt]{extbook}
\usepackage{geometry}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{microtype}
\usepackage{xcolor}
\usepackage{graphicx}
\usepackage{tikz}
\usepackage{minted}
%----create design
\newcommand\circled[3]{%
\tikz[baseline=(char.base)]{
\node[shape=circle, fill=#1, inner sep=0pt, text width=8pt, align=center]
(char) {\textcolor{#2}{\sffamily\bfseries\scriptsize #3}};
}%
}
\newcommand\lstnote[1]{
\kern 1.5em
\circled{purple}{pink!50!white}{#1} % ----> edited
}
%------
\newmintedfile[vbcode]{vb.net}{xleftmargin=20pt,linenos=true,linenos,escapeinside = <>}
\begin{document}
Example code
\vbcode{code.vb}
\end{document}
-- 代码文件 --> code.vb
Module Module1
Sub Main()
'==================================
'example code
'==================================
<\lstnote{1}>Dim entrada1 As String
<\lstnote{2}>Dim entrada2 As String
<\lstnote{3}>Console.WriteLine("Write to ")
<\lstnote{4}>entrada1 = Console.ReadLine
<\lstnote{5}>Console.Write("Find Write > ")
<\lstnote{6}>entrada2 = Console.Read
End Sub
End Module
--
你能告诉我我失败了什么吗?
获得的错误
! Missing number, treated as zero.
<to be read again>
p
l.8 ...entrada1} \PYG{o+ow}{As} \PYG{k+kt}{String}