From: Anand Raj <anand.seed@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Handling EMBED tag in Tex
Date: Fri, 7 Jan 2011 10:35:34 +0800 [thread overview]
Message-ID: <AANLkTimEYCw+_jMPOPND7N54fhdOCvrkkFh_gMr4AJ61@mail.gmail.com> (raw)
In-Reply-To: <2F98B363-C9E7-44E4-844D-296BD895775A@gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 1693 bytes --]
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.wolfgang@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
>
> ___________________________________________________________________________________
>
[-- Attachment #1.2: Type: text/html, Size: 2632 bytes --]
[-- Attachment #2: question_svg.xml --]
[-- Type: text/xml, Size: 2382 bytes --]
<?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 #3: question.tex --]
[-- Type: application/x-tex, Size: 2612 bytes --]
[-- Attachment #4: Type: text/plain, Size: 486 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2011-01-07 2:35 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-06 3:42 Anand Raj
2011-01-06 8:02 ` Wolfgang Schuster
2011-01-06 9:28 ` Hans Hagen
2011-01-06 9:32 ` Anand Raj
2011-01-06 13:50 ` Wolfgang Schuster
2011-01-07 2:35 ` Anand Raj [this message]
2011-01-07 12:57 ` Wolfgang Schuster
2011-01-07 13:19 ` Wolfgang Schuster
2011-01-07 13:43 ` Philipp A.
2011-01-07 13:50 ` Wolfgang Schuster
2011-01-07 14:02 ` Philipp A.
2011-01-07 14:10 ` Wolfgang Schuster
2011-01-07 14:54 ` Philipp A.
2011-01-07 13:23 ` Wolfgang Schuster
2011-01-10 8:06 ` Anand Raj
2011-01-10 18:13 ` Hans Hagen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AANLkTimEYCw+_jMPOPND7N54fhdOCvrkkFh_gMr4AJ61@mail.gmail.com \
--to=anand.seed@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).