[texhax] Diagonal text?

Rodolfo Medina rodolfo.medina at gmail.com
Wed Feb 3 15:12:12 CET 2016


David Carlisle <d.p.carlisle at gmail.com> writes:

> On 3 February 2016 at 13:26, Rodolfo Medina <rodolfo.medina at gmail.com> wrote:
>> Hi all.
>>
>> I was wondering if it would be possible and how to produce, in plain TeX,
>> some form of oblique, diagonal text, something like:
>>
>> p
>>  l
>>   a
>>    i
>>     n
>>
>>        T
>>         e
>>          X
>>
>>                                             X
>>                                       e
>>                                 T
>>
>>                         n
>>                   i
>>             a
>>       l
>> p
>>
>>                      X
>>                   e
>>                T
>>
>>             n
>>          i
>>       a
>>    l
>> p
>>
>>
>> Thanks for any help.
>>
>> Rodolfo
>>
>
>
>
> \long\def\x#1{\leavevmode
> \ifx\par#1\par
> \else
> \advance\dimen0 \dimen2
> \lower\dimen0\hbox{#1}%
> \expandafter
> \x
> \fi}
>
>
> \dimen2=5pt\x plain\ TeX
>
> \dimen2=-10pt\x plain\ TeX
>
>
> \bye


Thanks!  But if I put it in parenthesis:

 {\dimen2=5pt\x plain\ TeX}

, I get error message about the presence of an extra `}'.  How to avoid that?
I don't manage to...

Thanks indeed,

Rodolfo



More information about the texhax mailing list