Closed
Description
Unline the minted
environment and the \mint
commands, the \inputminted
command does not seem to be affected by the langlinenos
option:
\documentclass{article}
\usepackage[langlinenos]{minted}
\setminted{linenos, firstnumber=last}
\begin{document}
\begin{filecontents}[overwrite, nosearch, noheader]{python-01.py}
def f(x):
return x**2
\end{filecontents}
\inputminted{python}{python-01.py}
\begin{filecontents}[overwrite, nosearch, noheader]{ruby.rb}
def func
puts "message"
end
\end{filecontents}
\inputminted{ruby}{ruby.rb}
\begin{filecontents}[overwrite, nosearch, noheader]{python-02.py}
def g(x):
return 2*x
\end{filecontents}
\inputminted{python}{python-02.py}
\end{document}
The documentation does not explicitly mention that the \inputminted
should be affected by the langlinenos
option, so this is not necessarily a bug. However, the inconsistency is surprising.