mmp / pbrt-v4

Source code to pbrt, the ray tracer described in the forthcoming 4th edition of the "Physically Based Rendering: From Theory to Implementation" book.
https://pbrt.org
Apache License 2.0
2.83k stars 440 forks source link

TeX comments in IDE #408

Closed lobneroO closed 9 months ago

lobneroO commented 9 months ago

Throughout the code, TeX style comments have been used. E.g. in the lights.cpp

// Compute $\cos\,\theta'$ and test against $\cos\,\theta_\roman{e}$

Did you intend for users to read them as is, or do you know of any IDEs / Plugins that actually support these?

I had a look at VS TeX Comments 2022, but that does not render everything ("\roman") correctly and is awkward with its line breaks.

mmp commented 9 months ago

I don't know of any IDEs that support those. Those are all generated automatically from the book source (which is written in TeX).