I want to remove two very specific kind of patterns one for latex and one for capital words but the problem is that there is a huge variation and I have no idea how to remov