[texhax] Detection of start of source line

Philip Taylor P.Taylor at Rhul.Ac.Uk
Wed Oct 5 18:59:08 CEST 2016


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 `\*}

\fi

\nexttoken

}

\catcode `\^^M = \active \def ^^M{\futurelet \nexttoken \treatasteriskspecially}

abcd * efgh

* ihjk * lmno

\end


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


More information about the texhax mailing list