everything turns into an image
oz_an - August 31, 2009 - 02:46
| Project: | DruTeX |
| Version: | 6.x-1.0-beta1 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Description
When I enter a code like
<equations>
33
\int 33 \ln(x) \;dx
&= 533 \int 1 \cdot \ln(x) \;dx \
&= x \cdot \ln(x) - \int x \cdot \frac{1}{x} \;dx \
&= x \cdot \ln(x) - x
</equations>I get an image with all the html code generated by drutex alongside math.
I mean math and generated html tags as
</br> are compiled as a single image.Does anybody have an idea what could be the problem ?

#1
This happened to me when images url was not properly configured.
When drutex don't find the image, seems it display a image with code inside.
Look again in the configure tab of your drutex input format to check it's configured correctly and check
the presence of the images in the corresonding directory.
#2
Thanks for the answer but math expressions render correctly, if I write
x^2it renders correctly and the image of x^2 is in the page. So my images are under the correct directory, the problem occurs if I write math code in an environment like<equations>. Maybe it's a bug or st. or I'm simply missing some simple point?#3
Is the corresponding img in the source code of your page has the proper src attribute ?
#4
If you check it out and make a suggestion I would be grateful because nobody around is interested in drutex or latex for that matter. I see very little info in the forums and all. The source for img seems correct image itself has the text with math. Maybe if you look you could get what I mean much better.
http://www.sayisaldershane.com/node/2The first line beginning with "let x2 be a nat number" is a whole image. But it shouldn't be except "x2" although I write whole line in a \[ \] environment.
Again the second line with the html code is a whole img too.
Thank you
#5
Are you using a plain text editor to enter the latex? If not, then your editor is likely interpreting your line breaks and adding the html tags for you. I've seen this myself. Just make sure you set your editor to plain text before saving and all should be fine.
I've entered your code into a book page and everything looks fine (see the attached screenshot).
#6
Thank you very much. I disabled the line break converter in my drutex input format. Everything looks OK. I thought that drutex generated all the html tags and was confused. I see that it produces an image even if there is text inside or not in a math environment.
I took a perfect result from the equations environment e.g (replaced my dirty code)
<equations>\int \ln(x) \\
&= \int 1 \cdot \ln(x) \\
&= x \cdot \ln(x) - \int x \cdot \frac{1}{x} \\
&= x \cdot \ln(x) - x
</equations>
Thanks
#7
#8
Automatically closed -- issue fixed for 2 weeks with no activity.