With the following code:
\begin{text}{minted}
a
b
c
d
e
\end{minted}
Is it possible to have line numbers for only b and c?
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityWith the following code:
\begin{text}{minted}
a
b
c
d
e
\end{minted}
Is it possible to have line numbers for only b and c?
Just an idea you possibly haven't think:
\documentclass[a4paper,12pt]{report}
\usepackage{minted}
\begin{document}
\begin{minted}{text}
a
\end{minted}
\vspace{-26pt}
\begin{minted}[linenos]{text}
b
c
\end{minted}
\vspace{-26pt}
\begin{minted}{text}
d
e
\end{minted}
\end{document}
Feel free to ask me to delete.
PS: The d is missing because forgot the second argument of second environment.. fixed in code.