[texhax] Detection of start of source line

Philip Taylor P.Taylor at Rhul.Ac.Uk
Wed Oct 5 19:13:28 CEST 2016


Further correction :

> This may help -- at least it generates no run-time errors :

> \def \treatasteriskspecially
>
>      { % space needed here
>
>          \ifx *\nexttoken
>
>              \let \nexttoken = \item
>
>          \else
>
>              \def \nexttoken {\char `\*}^ but not here
>
>          \fi
>
>          \nexttoken
>
>      }
>
> \catcode `\^^M = \active \def ^^M{\futurelet \nexttoken \treatasteriskspecially}
>
> abcd * efgh
>
> * ihjk * lmno
>
> \end
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/texhax/attachments/20161005/da9ac9a4/attachment.html>


More information about the texhax mailing list