[texhax] Diagonal text?

Philip Taylor P.Taylor at Rhul.Ac.Uk
Wed Feb 3 15:29:53 CET 2016



Rodolfo Medina wrote:

>  But if I put it in parenthesis:
> 
>  {\dimen2=5pt\x plain\ TeX}
> 
> , I get error message about the presence of an extra `}'.

Note the terminal delimiter for \x :


\long \def \x #1%
	{%
		\leavevmode
		\ifx \par #1\par
		\else
		\advance \dimen0 by \dimen2
		\lower \dimen 0 \hbox {#1}%
		\expandafter \x
		\fi
	}

{\dimen 2 = 5pt \x plain\ TeX\par}

{\dimen 2= -10pt  \x plain\ TeX\par}

\bye


More information about the texhax mailing list