0

I am trying to write a new command that will underline the text from the first argument and add the red comment of the second argument. I think I've got this mostly, but the result does not add the appropriate break lines, and I don't understand why. Where is the problem?

Command: \newcommand\comment[2]{\underline{#1}\textcolor{red}{\emph{\textbf{comment}: #2}}}

Code:

\comment{Only $1\%$ of the mass is comprised of the interstellar medium. The rest is in the form of interstellar gas}{interstellar medium means the interstellar gas.},

Result: enter image description here

David Carlisle
  • 757,742
Malvinka
  • 113

0 Answers0