Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

share|improve this question
2  
\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
add comment

1 Answer

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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