I am trying to write a LaTeX package that uses the minted \ inputminted package command. The my \ mycommand command takes two parameters: the first is the path to the file, and I want to pass the file extension to the \ inputminted command:
\newcommand\mycommand[2]{
\inputminted{
}
Please note that the above will not work as the full path is passed to \ inputminted.
Example:
\mycommand{/path/to/Test.java}{blah}
should cause
\inputminted{java}{...}
Frank source
share