8000 Make `langlinenos` with with `\inputminted` · Issue #361 · gpoore/minted · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Make langlinenos with with \inputminted #361
Closed
@Witiko

Description

@Witiko

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}

snip

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0