Remove numbers and asterisks that appear when compiling

This doesn’t directly answer your question, but this recent thread is about how to do the reverse, so it might be helpful in giving you clues of where to go: