tedana.bibtex.index_bibtex_identifiers

index_bibtex_identifiers(string, idx_list)[source]

Identify the BibTeX entry identifier before each entry.

The purpose of this function is to take the raw BibTeX string and a list of indices of entries, starting and ending with the braces of each entry, and then extract the identifier before each.

Parameters:
  • string (str) – The full BibTeX file, as a string.

  • idx_list (list of tuple of int) – A list of two-element tuples of indices of matched braces corresponding to BibTeX entries.

Returns:

idx_list (list of tuple of int) – A list of two-element tuples of indices of BibTeX entries, from the starting @ to the final }.