Search found 3 matches

by SimonLatex
Sat Aug 19, 2023 6:03 pm
Forum: General
Topic: \newcommand with listings as parameter
Replies: 4
Views: 11645

\newcommand with listings as parameter

That's the solution! Thanks a lot!
by SimonLatex
Tue Aug 15, 2023 6:36 pm
Forum: General
Topic: \newcommand with listings as parameter
Replies: 4
Views: 11645

\newcommand with listings as parameter

Thank you for your answer! Yes, its the same problem as with the verbatim environment. The problem I described is a minimal example - the original file is a lot more complex. I use a self made command to style exercises for the exams of my students. The command gets the text of the exercise, the max ...
by SimonLatex
Tue Aug 08, 2023 12:27 pm
Forum: General
Topic: \newcommand with listings as parameter
Replies: 4
Views: 11645

\newcommand with listings as parameter

I have defined a function called \test that just prints its parameter and before it prints the word "Code: ". In the document I call the function \test with a parameter that contains a listings enviroment. Unfortunately I always get an error message: Emergency stop. Fatal error occurred, no output ...