Str (cislo -> znak)

Hans Ginzel Hans at kolej.mff.cuni.cz
Fri Jul 14 10:57:12 CEST 2000


> > 	\newtoks\mytoks \newcount\mycount
> > 	\mycount=65
> > 	%% \cosi ???
> \mytoks={\char\the\mycount}
> > 	\showthe\mytoks	%% -> A
>
> Nezkousel jsem to, takze si nejsem uplne jisty, jestli tam nebude problem
> s expanzi. Ale zcela spolehlive funguje
>
>   \edef\aschar{\char\the\mycount}
>
> a pak uz si s tim muzes delat, co te napadne.


   To prave nefunguje! Primitiv \char je povel hlavniho procesoru, nikoliv
expand procesoru, takze snahy o expandovani \char<number> jsou marne.

   Zkus:
	$tex '\edef\a{\char65} \show\a'


	Zdravi

						Hans




More information about the csTeX mailing list