I don't have a specific example. It happens to me all the time. I'm trying to understand what are the possible reasons for this. One reason is include and input files. But I don't have these, so I would like to know what are the other possible options.
This is a basic question, but I couldn't find it anywhere on the web:
I compile with LaTex a source file. The source file has a big preamble, but NO include or input files.
Why do line numbers in error messages are completely wrong?