I want to replace all dots in a LaTeX document with a call to a macro. Just doing a search and replace on '.' won't help as this will not replace the dots generated by LaTeX, e.g. in section numbers, enumerates, ...
You can assign
(adapted from http://tex.stackexchange.com/a/40515/4012)
Note that this might get you into trouble. I don't know much about catcodes and active characters and the like, but redefining
This doesn't work for all periods in your text, though. I fixed the subsections and subsubsections and the numbered list. If you need another specific period to be replaced, let me know, I'll see what I can do.
That's not possible in a simple way. Making the dot active will not affect dots stored in macros before the catcode change. It works with
You should change the catcode of the dot only after
To change the other dots you will have to carefully track down all commands that issues dots and redefine them.
Another way to replace every dot is to manipulate the fonts, but this isn't simple either as quite a lot fonts can be involved.