parameters: (line, root_dir)
return_statement: return None
docstring: Parse a single latex log line to find the current LaTeX file being
      processed if any.
      - line: str, the line to parse
      - root_dir: str, the root directory of the file if found (for
        normalization)
      RETURN: None or string
docstring_summary: Parse a single latex log line to find the current LaTeX file being
      processed if any.
      - line: str, the line to parse
      - root_dir: str, the root directory of the file if found (for
        normalization)
      RETURN: None or string
docstring_tokens: Parse a single latex log line to find the current LaTeX file being processed if any . - line : str the line to parse - root_dir : str the root directory of the file if found ( for normalization ) RETURN : None or string
function: def parse_current_tex_file(line, root_dir):
      """
      Parse a single latex log line to find the current LaTeX file being
      processed if any.
      - line: str, the line to parse
      - root_dir: str, the root directory of the file if found (for
        normalization)
      RETURN: None or string
      """
      m = LINE_RE.search(line)
      if m is not None:
          pp_dir = root_dir
          pp_file = os.path.join(pp_dir, m.group(1))
          try:
              return os.path.relpath(pp_file, start=pp_dir)
          except Exception:
              # not a file under root_dir -- ignore
              return None
      return None
function_tokens: def parse_current_tex_file ( line , root_dir ) : m = LINE_RE . search ( line ) if m is not None : pp_dir = root_dir pp_file = os . path . join ( pp_dir , m . group ( 1 ) ) try : return os . path . relpath ( pp_file , start = pp_dir ) except Exception : # not a file under root_dir -- ignore return None return None