ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Handling EMBED tag in Tex
@ 2011-01-06  3:42 Anand Raj
  2011-01-06  8:02 ` Wolfgang Schuster
  0 siblings, 1 reply; 16+ messages in thread
From: Anand Raj @ 2011-01-06  3:42 UTC (permalink / raw)
  To: ConTeXt Mainling List


[-- Attachment #1.1: Type: text/plain, Size: 418 bytes --]

Hi,

I have embed tags in my xhtml can i render it in my pdf.

How should I form the .tex file to handle this?

<embed type='image/svg+xml' align='middle' width='200' height='200'
src='/javascript/d.svg'
script='initPicture(-.5,5,-.5,5);path([[0,0],[1,4],[4,4],[3,0],[0,0]]);text([2.5,4],"44","above");text([3.5,2],"44","right");stroke="red";fontfill="red";line([1,0],[1,4]);text([1,2],"?","right");'
/>

Thanks
Anand

[-- Attachment #1.2: Type: text/html, Size: 587 bytes --]

[-- Attachment #2: 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Handling EMBED tag in Tex
  2011-01-06  3:42 Handling EMBED tag in Tex Anand Raj
@ 2011-01-06  8:02 ` Wolfgang Schuster
  2011-01-06  9:28   ` Hans Hagen
  0 siblings, 1 reply; 16+ messages in thread
From: Wolfgang Schuster @ 2011-01-06  8:02 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 06.01.2011 um 04:42 schrieb Anand Raj:

> Hi,
> 
> I have embed tags in my xhtml can i render it in my pdf. 
> 
> How should I form the .tex file to handle this?
> 
> <embed type='image/svg+xml' align='middle' width='200' height='200' src='/javascript/d.svg' script='initPicture(-.5,5,-.5,5);path([[0,0],[1,4],[4,4],[3,0],[0,0]]);text([2.5,4],"44","above");text([3.5,2],"44","right");stroke="red";fontfill="red";line([1,0],[1,4]);text([1,2],"?","right");' />

Write the whole block to a external file and read import it them with \externalfigure.

\startxmlsetups xml:embed
   \setbuffer[embed]\xmlflush{#1}\endbuffer
   \savebuffer[embed][embed.svg]
   \externalfigure[embed.svg]
\stopxmlsetups

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Handling EMBED tag in Tex
  2011-01-06  8:02 ` Wolfgang Schuster
@ 2011-01-06  9:28   ` Hans Hagen
  2011-01-06  9:32     ` Anand Raj
  0 siblings, 1 reply; 16+ messages in thread
From: Hans Hagen @ 2011-01-06  9:28 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 6-1-2011 9:02, Wolfgang Schuster wrote:
>
> Am 06.01.2011 um 04:42 schrieb Anand Raj:
>
>> Hi,
>>
>> I have embed tags in my xhtml can i render it in my pdf.
>>
>> How should I form the .tex file to handle this?
>>
>> <embed type='image/svg+xml' align='middle' width='200' height='200' src='/javascript/d.svg' script='initPicture(-.5,5,-.5,5);path([[0,0],[1,4],[4,4],[3,0],[0,0]]);text([2.5,4],"44","above");text([3.5,2],"44","right");stroke="red";fontfill="red";line([1,0],[1,4]);text([1,2],"?","right");' />
>
> Write the whole block to a external file and read import it them with \externalfigure.
>
> \startxmlsetups xml:embed
>     \setbuffer[embed]\xmlflush{#1}\endbuffer
>     \savebuffer[embed][embed.svg]
>     \externalfigure[embed.svg]
> \stopxmlsetups

remind me to make a \xmltofile some time

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Handling EMBED tag in Tex
  2011-01-06  9:28   ` Hans Hagen
@ 2011-01-06  9:32     ` Anand Raj
  2011-01-06 13:50       ` Wolfgang Schuster
  0 siblings, 1 reply; 16+ messages in thread
From: Anand Raj @ 2011-01-06  9:32 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1918 bytes --]

Yes. the svg content is not stored in the embed.svg.

can you make it?

Thanks

On Thu, Jan 6, 2011 at 5:28 PM, Hans Hagen <pragma@wxs.nl> wrote:

> On 6-1-2011 9:02, Wolfgang Schuster wrote:
>
>>
>> Am 06.01.2011 um 04:42 schrieb Anand Raj:
>>
>>  Hi,
>>>
>>> I have embed tags in my xhtml can i render it in my pdf.
>>>
>>> How should I form the .tex file to handle this?
>>>
>>> <embed type='image/svg+xml' align='middle' width='200' height='200'
>>> src='/javascript/d.svg'
>>> script='initPicture(-.5,5,-.5,5);path([[0,0],[1,4],[4,4],[3,0],[0,0]]);text([2.5,4],"44","above");text([3.5,2],"44","right");stroke="red";fontfill="red";line([1,0],[1,4]);text([1,2],"?","right");'
>>> />
>>>
>>
>> Write the whole block to a external file and read import it them with
>> \externalfigure.
>>
>> \startxmlsetups xml:embed
>>    \setbuffer[embed]\xmlflush{#1}\endbuffer
>>    \savebuffer[embed][embed.svg]
>>    \externalfigure[embed.svg]
>> \stopxmlsetups
>>
>
> remind me to make a \xmltofile some time
>
> -----------------------------------------------------------------
>                                          Hans Hagen | PRAGMA ADE
>              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>    tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
>                                             | www.pragma-pod.nl
> -----------------------------------------------------------------
>
>
> ___________________________________________________________________________________
> 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: 3253 bytes --]

[-- Attachment #2: 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Handling EMBED tag in Tex
  2011-01-06  9:32     ` Anand Raj
@ 2011-01-06 13:50       ` Wolfgang Schuster
  2011-01-07  2:35         ` Anand Raj
  0 siblings, 1 reply; 16+ messages in thread
From: Wolfgang Schuster @ 2011-01-06 13:50 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Handling EMBED tag in Tex
  2011-01-06 13:50       ` Wolfgang Schuster
@ 2011-01-07  2:35         ` Anand Raj
  2011-01-07 12:57           ` Wolfgang Schuster
  2011-01-07 13:23           ` Wolfgang Schuster
  0 siblings, 2 replies; 16+ messages in thread
From: Anand Raj @ 2011-01-07  2:35 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Handling EMBED tag in Tex
  2011-01-07  2:35         ` Anand Raj
@ 2011-01-07 12:57           ` Wolfgang Schuster
  2011-01-07 13:19             ` Wolfgang Schuster
  2011-01-07 13:23           ` Wolfgang Schuster
  1 sibling, 1 reply; 16+ messages in thread
From: Wolfgang Schuster @ 2011-01-07 12:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 600 bytes --]


Am 07.01.2011 um 03:35 schrieb Anand Raj:

> 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>.

The symbol for \times is “*”, not “times” as you expect. There is a short chapter
about calculator math in the Mk manual but it doesn’t cover all symbols and you
have to read the source to get all of them.

Wolfgang


[-- Attachment #1.2: Type: text/html, Size: 945 bytes --]

[-- Attachment #2: 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Handling EMBED tag in Tex
  2011-01-07 12:57           ` Wolfgang Schuster
@ 2011-01-07 13:19             ` Wolfgang Schuster
  2011-01-07 13:43               ` Philipp A.
  0 siblings, 1 reply; 16+ messages in thread
From: Wolfgang Schuster @ 2011-01-07 13:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 841 bytes --]


Am 07.01.2011 um 13:57 schrieb Wolfgang Schuster:

> Am 07.01.2011 um 03:35 schrieb Anand Raj:
> 
>> 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>.
> 
> The symbol for \times is “*”, not “times” as you expect. There is a short chapter
> about calculator math in the Mk manual but it doesn’t cover all symbols and you
> have to read the source to get all of them.

Sorry but but i mixed calcmath and asciimath but nevertheless you should look
at the source where you can find the hint that \times is produced with “xx” as input.

Wolfgang


[-- Attachment #1.2: Type: text/html, Size: 1387 bytes --]

[-- Attachment #2: 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Handling EMBED tag in Tex
  2011-01-07  2:35         ` Anand Raj
  2011-01-07 12:57           ` Wolfgang Schuster
@ 2011-01-07 13:23           ` Wolfgang Schuster
  2011-01-10  8:06             ` Anand Raj
  1 sibling, 1 reply; 16+ messages in thread
From: Wolfgang Schuster @ 2011-01-07 13:23 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 695 bytes --]


Am 07.01.2011 um 03:35 schrieb Anand Raj:

> 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. 
> 
> 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);' />

Can you also provide the picture file the embed tag refers to.

Wolfgang


[-- Attachment #1.2: Type: text/html, Size: 1014 bytes --]

[-- Attachment #2: 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Handling EMBED tag in Tex
  2011-01-07 13:19             ` Wolfgang Schuster
@ 2011-01-07 13:43               ` Philipp A.
  2011-01-07 13:50                 ` Wolfgang Schuster
  0 siblings, 1 reply; 16+ messages in thread
From: Philipp A. @ 2011-01-07 13:43 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 515 bytes --]

2011/1/7 Wolfgang Schuster <schuster.wolfgang@googlemail.com>

> Sorry but but i mixed calcmath and asciimath but nevertheless you should
> look
> at the source where you can find the hint that \times is produced with “xx”
> as input.
>
> Wolfgang
>

there are 3 math operators which can be “times”:
“·”, “×” and “∗” (not “*”)

which of it is it? i am confused by your “x”es and other stuff *shudder*
(modern linux systems have useful keyboard layouts to input these)

[-- Attachment #1.2: Type: text/html, Size: 848 bytes --]

[-- Attachment #2: 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Handling EMBED tag in Tex
  2011-01-07 13:43               ` Philipp A.
@ 2011-01-07 13:50                 ` Wolfgang Schuster
  2011-01-07 14:02                   ` Philipp A.
  0 siblings, 1 reply; 16+ messages in thread
From: Wolfgang Schuster @ 2011-01-07 13:50 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 942 bytes --]


Am 07.01.2011 um 14:43 schrieb Philipp A.:

> 2011/1/7 Wolfgang Schuster <schuster.wolfgang@googlemail.com>
> Sorry but but i mixed calcmath and asciimath but nevertheless you should look
> at the source where you can find the hint that \times is produced with “xx” as input.
> 
> Wolfgang
> 
> there are 3 math operators which can be “times”:
> “·”, “×” and “∗” (not “*”)
> 
> which of it is it? i am confused by your “x”es and other stuff *shudder* (modern linux systems have useful keyboard layouts to input these)

Asciimath:

    ["xx"]    = "\\times ",

Calcmath:

                        elseif how == '*' then
                            texprint("\\times")

These are the relevant parts from the asciimath and calcmath sources,
to get the output “3 \times 3 = 9” in TeX you have to type with
asciimath “3 xx 3 = 9” and with calcmath “3 * 3 = 9”.

Wolfgang



[-- Attachment #1.2: Type: text/html, Size: 2060 bytes --]

[-- Attachment #2: 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Handling EMBED tag in Tex
  2011-01-07 13:50                 ` Wolfgang Schuster
@ 2011-01-07 14:02                   ` Philipp A.
  2011-01-07 14:10                     ` Wolfgang Schuster
  0 siblings, 1 reply; 16+ messages in thread
From: Philipp A. @ 2011-01-07 14:02 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 541 bytes --]

2011/1/7 Wolfgang Schuster <schuster.wolfgang@googlemail.com>

> Asciimath:
>
>     ["xx"]    = "\\times ",
>
> Calcmath:
>
>                         elseif how == '*' then
>                             texprint("\\times")
>
> These are the relevant parts from the asciimath and calcmath sources,
> to get the output “3 \times 3 = 9” in TeX you have to type with
> asciimath “3 xx 3 = 9” and with calcmath “3 * 3 = 9”.
>
> Wolfgang
>

ok, sorry, now i understand.

out of curiosity: how do you get “·”?

[-- Attachment #1.2: Type: text/html, Size: 1069 bytes --]

[-- Attachment #2: 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Handling EMBED tag in Tex
  2011-01-07 14:02                   ` Philipp A.
@ 2011-01-07 14:10                     ` Wolfgang Schuster
  2011-01-07 14:54                       ` Philipp A.
  0 siblings, 1 reply; 16+ messages in thread
From: Wolfgang Schuster @ 2011-01-07 14:10 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 07.01.2011 um 15:02 schrieb Philipp A.:

> out of curiosity: how do you get “·”?

asciimath: “*”
calcmath: i guess “·”

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Handling EMBED tag in Tex
  2011-01-07 14:10                     ` Wolfgang Schuster
@ 2011-01-07 14:54                       ` Philipp A.
  0 siblings, 0 replies; 16+ messages in thread
From: Philipp A. @ 2011-01-07 14:54 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 245 bytes --]

2011/1/7 Wolfgang Schuster <schuster.wolfgang@googlemail.com>

> Am 07.01.2011 um 15:02 schrieb Philipp A.:
> > out of curiosity: how do you get “·”?
>
> asciimath: “*”
> calcmath: i guess “·”
>
> Wolfgang
>

thanks :)

[-- Attachment #1.2: Type: text/html, Size: 576 bytes --]

[-- Attachment #2: 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Handling EMBED tag in Tex
  2011-01-07 13:23           ` Wolfgang Schuster
@ 2011-01-10  8:06             ` Anand Raj
  2011-01-10 18:13               ` Hans Hagen
  0 siblings, 1 reply; 16+ messages in thread
From: Anand Raj @ 2011-01-10  8:06 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1689 bytes --]

*d.svg*

<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
  "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg id="root" xml:space="preserve" width="100%" height="100%"
  preserveAspectRatio="xMidYMid meet"
  xmlns="http://www.w3.org/2000/svg">
</svg>

can you help me to create svg files from the given embed tag.

On Fri, Jan 7, 2011 at 9:23 PM, Wolfgang Schuster <
schuster.wolfgang@googlemail.com> wrote:

>
> Am 07.01.2011 um 03:35 schrieb Anand Raj:
>
> 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.
>
> 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);' />*
>
>
> Can you also provide the picture file the embed tag refers to.
>
> 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: 2983 bytes --]

[-- Attachment #2: 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: Handling EMBED tag in Tex
  2011-01-10  8:06             ` Anand Raj
@ 2011-01-10 18:13               ` Hans Hagen
  0 siblings, 0 replies; 16+ messages in thread
From: Hans Hagen @ 2011-01-10 18:13 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi Wolfgang,

the next beta will provide

\xmltofile{#1}{.}{filename}

so that one can avoid a buffer.

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2011-01-10 18:13 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-06  3:42 Handling EMBED tag in Tex 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
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

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).