blefloch / latex-unravel

Watching TeX digest tokens
24 stars 1 forks source link

Unravel until a given macro #1

Closed blefloch closed 5 years ago

blefloch commented 10 years ago

It would be nice to be able to type until \somecs and have unravel do all the steps until the first token of the token list is \somecs. Even better if more than one token can be specified in this way. For instance, one could respond until \begin{document} after calling \unravel{\input{main.tex}}.

blefloch commented 5 years ago

Syntax chosen: u followed by some text. The match is done with string comparison because in any case the user's input when using \unravel is taken as a string.