[texhax] Detection of start of source line

Christian Neukirchen chneukirchen at gmail.com
Wed Oct 5 15:09:04 CEST 2016


Hi,

for an evil hack, I wondered if it is possible for a macro (think
active char) to detect whether it was called "at the beginning of the
source line".

E.g. I could want to define * to expand to \item if its the first
token of an input line, and to render an asterisk else.

Any ideas how to do this within the means of TeX?

Thanks,
-- 
Christian Neukirchen  <chneukirchen at gmail.com>  http://chneukirchen.org



More information about the texhax mailing list