docs: public boolean matchInCorrespondingLogFile( File texFile, String pattern )
          throws MojoExecutionException
      {
          File logFile = getCorrespondingLogFile( texFile );
          if ( logFile.exists() )
          {
              try
              {
                  return fileContainsPattern( logFile, pattern );
              }
              catch ( FileNotFoundException e )
              {
                  throw new MojoExecutionException( "File " + logFile.getPath() + " does not exist after running LaTeX.",
                                                    e );
              }
              catch ( IOException e )
              {
                  throw new MojoExecutionException( "Error reading file " + logFile.getPath(), e );
              }
          }
          else
          {
              throw new MojoExecutionException( "File " + logFile.getPath() + " does not exist after running LaTeX." );
          }
      }