Tagged Questions
2
votes
1answer
62 views
How to put R code into a parameter of a newcommand?
I would like to put R code into a parameter of a newcommand in LaTeX. To do it, I make the following:
%Define the newcommand:
\newcommand\solution[1]{\sf #1}
%Then, after the \begin{document}, I ...
1
vote
2answers
386 views
input filename as caption in listing
I'm working on the following piece of code
\newcommand{\mycin}[1]{% new command for icluding piece of code from external files
\lstinputlisting{#1}
}
I want to add a caption that reflects the ...