Re: [BLACKBOX] LaTeX for BlackBox ? - Progress report

From: [at]} <Robert>
Date: Thu, 20 Nov 2008 20:43:01 +0000

----boundary-LibPST-iamunique-604447704_-_-
Content-type: text/plain

Folks

I am trying to use GladTeX (http://www.myphysicslab.com/gladtex.html) to
convert an ascii file describing an equation (in LaTeX) into a GIF image of it.

GladTex says I need many prerequisites on my computer. I already had most
of them (eq grep for Windows, and ghostscript) which are available through the
Start Menu.

I have:

1 - Downloaded Perl into C:\Perl\

2 - Downloaded GladTex (2 files) into C:\Gladtex\ (and added this path to my
PATH variable).

3 - Created an equation file C:\Perl\testeq.htex containing the equation
"<eq>\sum_{k=1}^\infty \frac{1}{k^2} = \frac{\pi^2}{6}</eq>".

The GladTex user instructions now say:

"Put
      <eq>...latex code here....</eq>
in your .html file. But rename it to have the .htex extension. Then invoke
gladtex by:
      perl gladtex.pl [options] myfile.htex".


I tried "C:\Perl\perl c:\gladtex\gladtex.pl c:\perl\testeq.htex"

This was not totally hopeless; it created a plausible .tex file, and an empty
.html file. It also generated a series of (error ?) messages.

I don't know how to cut-&-paste from the DDB (Dreaded Dos Box), but a rough
copy of the output is:
"
Use of /c modifier is meaningless in s/// at c:\gladtex\gladtex.pl line 130.
Use of /c modifier is meaningless in s/// at c:\gladtex\gladtex.pl line 132.
'grep' is not recognised as an internal or external command, operable program or
batch file.
'grep' is not recognised as an internal or external command, operable program or
batch file.
'gswin32c' is not recognised as an internal or external command, operable
program or batch file.

Error reading 'c:perl\testeq000.ps.png'
Error processing equation starting at line 1:
\sum_{k=1}^\infty \frac{1}{k^2} = \frac{\pi^2}{6}
"

Does anyone have any clues for what to do next, or should I just give up while
still a little sane?



If this command line stuff just worked I would have a serious go at the BlackBox
end of the problem, but frankly I am out of my depth with this stuff.


Cheers

Robert


----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----boundary-LibPST-iamunique-604447704_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment;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dGlsbCBhIGxpdHRsZSBzYW5lP1xwYXINClxwYXINClxwYXINClxwYXINCklm
IHRoaXMgY29tbWFuZCBsaW5lIHN0dWZmIGp1c3Qgd29ya2VkIEkgd291bGQgaGF2ZSBhIHNlcmlv
dXMgZ28gYXQgdGhlIEJsYWNrQm94XHBhcg0KZW5kIG9mIHRoZSBwcm9ibGVtLCBidXQgZnJhbmts
eSBJIGFtIG91dCBvZiBteSBkZXB0aCB3aXRoIHRoaXMgc3R1ZmYuXHBhcg0KXHBhcg0KXHBhcg0K
Q2hlZXJzXHBhcg0KXHBhcg0KUm9iZXJ0XHBhcg0KXHBhcg0KXHBhcg0KLS0tLVxwYXINClRvIHVu
c3Vic2NyaWJlLCBzZW5kIGEgbWVzc2FnZSB3aXRoIGJvZHkgIlNJR05PRkYgQkxBQ0tCT1giIHRv
IExJU1RTRVJWQExJU1RTLk9CRVJPTi5DSH19AEg+DQo=
----boundary-LibPST-iamunique-604447704_-_---
Received on Thu Nov 20 2008 - 21:43:01 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:30:51 UTC