This question already has an answer here:
I was unsatisfied with how the # symbol looked in my document and had a look at this question. I tried to create a simple macro to replace
I thought that a simple
would do the trick. Instead, I'm getting a fatal (!) error.
     (c:/texlive/2017/texmf-dist/tex/latex/base/t1cmtt.fd) ! TeX capacity exceeded, sorry [grouping levels=255]. \hmode@bgroup ->\leavevmode \bgroup ! ==> Fatal error occurred, no output PDF file produced! Transcript written on Thesis.log.
What is going wrong and why? How can I succesfully create the macro I need?