[texhax] Can I invoke some tex command at commank like this?

E. Krishnan ekmath at md5.vsnl.net.in
Fri Sep 26 21:49:17 CEST 2003

On Fri, 26 Sep 2003, Chakrit Nimmanant wrote:

>     As you can see, TeX is very useful to determine
> the dimension of my "Evam". So,I want to invoke some
> TeX commands on standard input which can receive
> "Evam" as a parameter and returns a value of \wd0 to
> my standard output.

This is how I'd go about it in LaTeX:

Make a file named boxdim.tex contining the lines




\typein[\boxname]{Please type the box content}


\typeout{These are the dimensions of the box}
\typeout{width  = \the\boxwd}
\typeout{height = \the\boxht}
\typeout{depth  = \the\boxdp}


and compile the file with LaTeX. 
(The empty "typeouts" are just cosmetic.)


More information about the texhax mailing list