Forum archive 2000-2006

Michal Charemza - Image generated from LaTeX equation is from another equation

Michal Charemza - Image generated from LaTeX equation is from another equation

by Arnold Pizer -
Number of replies: 0
inactiveTopicImage generated from LaTeX equation is from another equation topic started 4/25/2006; 7:51:22 AM
last post 4/25/2006; 3:00:58 PM
userMichal Charemza - Image generated from LaTeX equation is from another equation  blueArrow
4/25/2006; 7:51:22 AM (reads: 517, responses: 5)
Hi,

I'm trying to display a matrix in a problem. This is the code for the matrix:

[ Q = begin{pmatrix} 1 & -2 \ 1 & 4 end{pmatrix}. ]

However, when viewing the problem, an image is of a lambda_1. There is a lamba_1 in another part of the same problem, and that one displays find.

If one of the entries in the matrix is changed, for example I've changed the 4 to a 45, then the matrix is displayed fine. If I change it back to 4 then the image just shows a lambda_1 again.

What can be done to fix this or stop it happening again?

Michal.

<| Post or View Comments |>


userArnold K. Pizer - Re: Image generated from LaTeX equation is from another equation  blueArrow
4/25/2006; 9:06:30 AM (reads: 583, responses: 0)
Hi Michal,

Just as an experiment, try adding an extra space or two to the TeX expression, say

\[ Q = begin{ pmatrix} 1 & -2 1 & 4 end{pmatrix }. \]

and see if that works. The point is I want you to change the TeX input expression in a way thst does not change the TeX output.

Arnie

<| Post or View Comments |>


userMichal Charemza - Re: Image generated from LaTeX equation is from another equation  blueArrow
4/25/2006; 10:45:11 AM (reads: 600, responses: 0)
Hi Arnie,

Thanks for your relpy.

I've now tried putting a few spaces in, but it had no effect. I've replaced the pmatrix with a \left( , \matrix and \right) , so I now have the output I wanted. I may not be able to always to do this however.

Michal

<| Post or View Comments |>


userJohn Jones - Re: Image generated from LaTeX equation is from another equation  blueArrow
4/25/2006; 10:58:58 AM (reads: 586, responses: 0)
Hi,

I would be interested in figuring out the problem, but there are a few things you could do to help.

First set the problem back to however it was when it produced the wrong image, and then remove all old images from the server so that it has to produce new ones. To remove cached images, as root:

  /opt/webwork2/bin/remove_stale_images --days=0 --delete
You may have to adjust the path depending on where you put the webwork files. Then see if you still get a faulty image.

Once you have the file which produced the faulty image again, post it here (use pre tags to preserve it as much as possible). It may loose some backslashes, but I can figure out where they go.

John

<| Post or View Comments |>


userMichal Charemza - Re: Image generated from LaTeX equation is from another equation  blueArrow
4/25/2006; 11:21:43 AM (reads: 582, responses: 0)
Hi,

I don't have root access to the server. I will find out and ask if they can remove the old images.

Thanks,

Michal.

<| Post or View Comments |>


userMichal Charemza - Re: Image generated from LaTeX equation is from another equation  blueArrow
4/25/2006; 3:00:58 PM (reads: 570, responses: 0)
Hi,

Removing the cached images did indeed fix the problem.

Thanks,

Michal.

<| Post or View Comments |>