[texhax] code128 on text coming from keyboard

Susan Dittmar Susan.Dittmar at gmx.de
Fri Sep 24 11:03:28 CEST 2010


Hi folks,

I would like to have TeX ask for user input, and then put the user's input
on the paper in form of a barcode. I tried using code128.tex (see CTAN),
but it looks like it never gets to the input's contents. Any ideas how I
could solve that problem?

\documentclass{article}
\input{code128}
\newcommand{\ID}{}
\typein[\ID]{Identification Number:}
\begin{document}
Number: \ID\hspace*{\fill} \code{\ID}
\end{document}

Results in:

! The input token "\ID" is not included in Code 128 table, will ignored.

Thanks in advance,

	Susan


More information about the texhax mailing list