[BLACKBOX] AW: [BLACKBOX] LaTeX for BlackBox ? - Progress report - 3

From: [at]} <Helmut>
Date: Fri, 21 Nov 2008 19:42:02 +0100

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

Dear Robert,

try the following lines:

Command :=
'"c:\Program Files\MikTeX 2.5\miktex\bin\dvipng" c:\gladtex\myeq000';
HostDialog.Start(command$);

It should work, but you neither get an error message nor a success messages
and it does not wait until the command is done.

Regards

Helmut

> -----Ursprüngliche Nachricht-----
> Von: BlackBox [mailto:BLACKBOX{([at]})nowhere.xy
> Gesendet: Freitag, 21. November 2008 18:25
> An: BLACKBOX{([at]})nowhere.xy
> Betreff: Re: [BLACKBOX] LaTeX for BlackBox ? - Progress report - 3
>
> Hi
>
> I think I need more help.
>
>
> It has been suggested that I use dvipng.exe,
> part of the LaTeX (MikTeX) distribution rather than
> GladTeX. This seems like a good idea.
>
> The problem I have actually applies to both methods.
>
> I can create a .png file from the Command prompt; for example the command
> "c:\Program Files\MikTeX 2.5\miktex\bin\dvipng" c:\gladtex\myeq000'
> works.
>
> But how do I replicate this 'DOS' command from within BlackBox?
>
> My attempt is below - maybe WinApi.WinExec is the wrong call?
>
>
> The result I get is 33, which I don't think is an error code.
> If I deliberately get the path wrong the result I get is 3, which I do
> think
> is an error code.
>
>
> Cheers
>
> Robert
>
>
> PS - I have had 3 people contribute to this thread privately, as their
> attempts
> to use the list have not worked. In future, if you ask, I will try to
> forward
> such messages to the list myself.
>
>
> MODULE RdcLatex;
> IMPORT Fmtrs := LibFmtrs, Api := WinApi, SYSTEM;
>
> VAR
> f : Fmtrs.Fmtr;
> str : ARRAY 80 OF CHAR;
>
> (* PROCEDURE WinExec (lpCmdLine: WinApi.PtrSTR; uCmdShow: INTEGER):
> INTEGER; *)
> PROCEDURE Do*;
> CONST
> cmdStr = '"c:\Program Files\MikTeX 2.5\miktex\bin\dvipng"
> c:\gladtex\myeq000';
> VAR
> res : INTEGER;
> cmd : ARRAY [untagged] 80 OF SHORTCHAR;
> BEGIN
> cmd := cmdStr;
> res := Api.WinExec (cmd, 0);
>
> f.SetToEnd;
> f.StrIntLn ('Result = ', res, 0)
> END Do;
>
>
> BEGIN
> f := Fmtrs.logFmtr
> END RdcLatex.
>
>
> Q DevDebug.Unload
>
> Q RdcLatex.Do
>
>
> ----
> To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to
> LISTSERV{([at]})nowhere.xy


----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----boundary-LibPST-iamunique-538917957_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzc1xmY2hhcnNldDAgQXJpYWw7fQ0Ke1xmMVxmbW9kZXJuIENvdXJpZXIgTmV3O30NCntcZjJc
Zm5pbFxmY2hhcnNldDIgU3ltYm9sO30NCntcZjNcZm1vZGVyblxmY2hhcnNldDAgQ291cmllciBO
ZXc7fX0NCntcY29sb3J0YmxccmVkMFxncmVlbjBcYmx1ZTA7XHJlZDBcZ3JlZW4wXGJsdWUyNTU7
fQ0KXHVjMVxwYXJkXHBsYWluXGRlZnRhYjM2MCBcZjBcZnMyMCBEZWFyIFJvYmVydCxccGFyDQpc
cGFyDQp0cnkgdGhlIGZvbGxvd2luZyBsaW5lczpccGFyDQpccGFyDQpDb21tYW5kIDo9IFxwYXIN
CiciYzpcXFByb2dyYW0gRmlsZXNcXE1pa1RlWCAyLjVcXG1pa3RleFxcYmluXFxkdmlwbmciIGM6
XFxnbGFkdGV4XFxteWVxMDAwJztccGFyDQpIb3N0RGlhbG9nLlN0YXJ0KGNvbW1hbmQkKTtccGFy
DQpccGFyDQpJdCBzaG91bGQgd29yaywgYnV0IHlvdSBuZWl0aGVyIGdldCBhbiBlcnJvciBtZXNz
YWdlIG5vciBhIHN1Y2Nlc3MgbWVzc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xvYWRccGFy
DQo+IFxwYXINCj4gUSAgICBSZGNMYXRleC5Eb1xwYXINCj4gXHBhcg0KPiBccGFyDQo+IC0tLS1c
cGFyDQo+IFRvIHVuc3Vic2NyaWJlLCBzZW5kIGEgbWVzc2FnZSB3aXRoIGJvZHkgIlNJR05PRkYg
QkxBQ0tCT1giIHRvXHBhcg0KPiBMSVNUU0VSVkBMSVNUUy5PQkVST04uQ0hccGFyDQpccGFyDQpc
cGFyDQotLS0tXHBhcg0KVG8gdW5zdWJzY3JpYmUsIHNlbmQgYSBtZXNzYWdlIHdpdGggYm9keSAi
U0lHTk9GRiBCTEFDS0JPWCIgdG8gTElTVFNFUlZATElTVFMuT319AENLQk9YXSBMYVRlWA=
----boundary-LibPST-iamunique-538917957_-_---
Received on Fri Nov 21 2008 - 19:42:02 UTC

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