Hi,

Herewith I am attaching the question_svg.xml and question.tex files. With
this I am trying to convert the xml to pdf. I encounter two problems here.

I am using asciimath module in my tex.

1. *times* not rendered to *X*
    In the first question in the xml, can find line*<am>8.404 times
10^(-7)</am>*.

2. *embed* to *svg*
    In the last question in the xml, can find line *<embed
type='image/svg+xml' align='middle' width='250' height='250'
src='/javascript/d.svg'
script='initPicture(-10,130,-10,130);stroke="black";fill="gray";strokewidth=1;rect([0,0],[50,40]);rect([50,0],[100,100]);text([50/2,40+6],"5y
cm");text([75,106],"17 cm");text([50,40/2],"4y cm",right);text([100,50],"13y
cm",right);' />*

Thanks
Anand

On Thu, Jan 6, 2011 at 9:50 PM, Wolfgang Schuster <
schuster.wolfg...@googlemail.com> wrote:

>
> Am 06.01.2011 um 10:32 schrieb Anand Raj:
>
> > Yes. the svg content is not stored in the embed.svg.
> >
> > can you make it?
>
> You you at least give a few information, the thing you’re telling
> is that my example doesn’t work but you don’t tell how you integrated
> it in your own setups.
>
> Wolfgang
>
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
>
> ___________________________________________________________________________________
>
<?xml version="1.0" encoding="UTF-8"?>
<document><div class='question'>
        <div>				Rewrite this as a normal number:
<center>
<am>8.404 times 10^(-7)</am>
</center><br/><br/>
answer = __________________<br/><br/>
Answers may be entered with or without commas, but answers must be exact (no rounding at all).
Also, do not include any spaces in your answer.			</div>        
    </div><div class='question'>
        <div>Convert the fraction <am>12/6</am> to a decimal. Round your answer to three (3) decimal places if necessary:<br/><br/>
Answer = __________________</div>        
    </div><div class='question'>
        <div>Completely simplify the expression<br/><br/>
 <am>-3 y + 8 y -9 y</am><br/><br/>
Answer = __________________


</div>        
    </div><div class='question'>
        <div>Completely simplify the expression<br/><br/>
 <am>8 w + 4 -11 w -10</am><br/><br/>
Answer = __________________


</div>        
    </div><div class='question'>
        <div>Simplify:  <am>2 x^4 + 5 x^4</am></div>        
    </div><div class='question'>
        <div>Simplify:  <am>5 x^5 - 9 x^5</am></div>        
    </div><div class='question'>
        <div>Simplify:  <am>4 x^2 + 5 x^4 + 7 x^2 + 6 + 8 x^4</am></div>        
    </div><div class='question'>
        <div>The expression <am>(4 x^2+6 x+5)+(5 x^2-6 x-2)</am> equals <br/>
__________________ <am> x^2 +</am>__________________  <am>x+</am>__________________
<br/></div>        
    </div><div class='question'>
        <div>Jon has two trees in his yard.  One is 25 feet taller than the other.  If we let <am>h</am> be the height of the shorter tree, write an algebraic expression for the sum of the two trees' heights.  Be sure to simplify your expression.</div>        
    </div><div class='question'>
        <div>																				Here is a figure made of two rectangles.<br/>
<embed type='image/svg+xml' align='middle' width='250' height='250' src='/javascript/d.svg' script='initPicture(-10,130,-10,130);stroke="black";fill="gray";strokewidth=1;rect([0,0],[50,40]);rect([50,0],[100,100]);text([50/2,40+6],"5y cm");text([75,106],"17 cm");text([50,40/2],"4y cm",right);text([100,50],"13y cm",right);' />
<br/>
What is the <b>perimeter</b> of the figure?  Answer in terms of <am>y</am> and simplify your expression.<br/><br/>
__________________


 cm<br/>															</div>        
    </div></document>

Attachment: question.tex
Description: TeX document

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to