Until you bumped this old topic I had no idea you could do LaTex in the new dbCode. Awesome! I learned LaTex two years ago so I could do calculus homework that looked like I was a real mathematician.
I implemented the Latex dBCode a couple years ago, but the recent translation to PHP evidently introduced a bug that I just discovered. The fetch of the image fails, so the code drops through to provide a link to a remote server, instead of creating a local image that it links to. The problem appears to be that the PHP file_get_contents routine cannot include a backslash in the file string, so I can't fetch a copy to store locally.
I included a link to some LaTeX documentation with the Latex Help, but do you think the WikiBooks doc is better?
Yeah I think it's a bit more in-depth, and gives some better examples. I mostly use it to look up the various non-obvious math codes.
The problem appears to be that the PHP file_get_contents routine cannot include a backslash in the file string, so I can't fetch a copy to store locally.
Why do you need a backslash to get at a local file? Is it a Windows filesystem?
The Latex dBCode is working. It has been working, but it was a kluge to get around some unexpected PHP behavior. The new code is cleaner, and it also allows the default equation color to be set through the control panel. At present the equation color is set to white.
To select some other color use the Latex color directive, e.g.: