1

In physics, the packages pst-spectra or pgf-spectra work very well in LaTeX to draw light spectra. But since I use ConTeXt, I can't install them, the compilation always finishes on "p**-spectra" is not found. My system is linux-mint, LaTeX and ConTeXt have been installed with TeX-Live 2016. Is there a way to install one of them correctly for ConTeXt ?

4
  • 1
    It's not a matter of installation I'd think, LaTeX and ConTeXt are different systems, so you shouldn't expect to be able to use a LaTeX package in ConTeXt, see e.g. tex.stackexchange.com/questions/141425 and tex.stackexchange.com/questions/14725 Jan 18, 2017 at 9:42
  • 2
    @TorbjørnT. in general what you say is true but pstricks and pgf are both low level code that work in plain tex and context as well as latex so in principle it could work (although it may be that particular extensions use latex facilities of course so don't work on other formats without some work) Jan 18, 2017 at 14:09
  • @DavidCarlisle Thanks for bringing that up, should have phrased that comment a bit differently. I know that TikZ work in ConTeXt (don't know much at all really about pstricks), as I've seen it described in the manual. I looked briefly at pgf-spectra though, and that does require LaTeX as is. Jan 18, 2017 at 14:17
  • Would you consider using Metapost in your Context file? Writing a routine to convert a visible light wavelength value into an RGB colour is not hard in Metapost.
    – Thruston
    Jan 20, 2017 at 18:21

0

You must log in to answer this question.

Browse other questions tagged .