2

Is there a convention for marking the beginning of LaTeX-based material placed inside the comments of (say) a C++ or Python program? Or does one simply jump into LaTeX syntax?

  • 3
    \begin{latex} :-) – Andrey Vihrov Sep 27 '11 at 10:44
  • 1
    In python, you can use sphinx for documentation, which uses .. math:: for equations by default. – eudoxos Sep 27 '11 at 15:20
3

In doxygen the convention is to explain TeX environments with \f.

As doxygen documentation goes in comments, you might call this convention for comments, though it is more convention for in-code documentation.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.