I can't get TeX RGB color to work


I have been trying to get TeX RGB color formatting to work but haven’t been able to.

This works fine:

tString =  sprintf('\\color{blue} this text will be blue');
text(100, 100, tString);

This gives me a TeX parse error:

tString = sprintf('\\color[rgb]{0 0 1} this gives me an error');
TeX parse error: syntax error

What am I dong wrong?


Octave 7.1.0
configured for x86_64-w64-mingw32
octave-7.1.0-w64-installer.exe downloaded from gnu.org
Up to date Windows 10.

After further research, I’ve submitted this as a bug and it’s been confirmed as a regression in Octave 7.1

1 Like