How can I add several different comments ?


  • Maybe ctan.org/pkg/comment?lang=en ?
    – Rmano
    Commented Apr 13, 2023 at 10:41
  • 2
    What makes comments "different"? They are ignored by TeX, what more do you want/need?
    – Ingmar
    Commented Apr 13, 2023 at 10:45
  • What is the use case for this? Are you talking of comments that are typeset in a certain way or of comments that are just in the code and not typeset at all? If the former: How should these comments look like when printed? If the latter ... well, Ingmar already asked this: Why the need for different environments? Please add some more information to help us understand your use case. Commented Apr 13, 2023 at 12:10

1 Answer 1


You can define your own comment environments in using the \newenvironment command. Have a look:

{\\par\\color{blue}\\textbf{Comment:} \\itshape}


If you provide us with a minimal working example, we can try to focus the answer on what you are looking for.

  • Thanks you very much
    – ikif
    Commented Apr 13, 2023 at 12:16
  • 1
    If it solves your concern, please, accept the answer so it could be marked as resolved.
    – scd
    Commented Apr 13, 2023 at 12:38

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .