Is there a way to mint a line of code inline, where the code is read from a file?
\mintinline can only typeset code that is passed directly to the command, in between two delimiters (e.g. \mintinline{latex}{\LaTeX}), and \inputminted typesets the code in its own box separate from the paragraph.
I would like a mix of the two, something like (the hypothetical) \inputmintinline. The minted manual mentions nothing of the sort.
I would use this because I want to make a command that reads writes its argument verbatim to a file, typesets the content as minted but then also interprets the content as LaTeX, expanding/executing any macros in it, typesetting the result. Related to this answer.
I have already got it figured out for "out-of-line"code, but not for inline code since there is no \inputmintinline command.
