ipypublish.bib2glossary.parse_tex module¶
-
ipypublish.bib2glossary.parse_tex.extract_parameters(argument)[source]¶ extract parameters from a TexSoup OArg or Arg
-
ipypublish.bib2glossary.parse_tex.extract_required_val(rarg)[source]¶ extract the value of a TexSoup RArg
-
ipypublish.bib2glossary.parse_tex.parse_tex(text_str=None, path=None, encoding='utf8', abbrev_field='abbreviation', fname_field='longname', skip_ioerrors=False)[source]¶ parse a tex file containing newglossaryentry and/or newacronym to dict
- Parameters
text_str=None (
str) – string representing the tex filepath=None (
str) – path to the tex fileencoding='utf8' (
str) – tex file encodingabbrev_field="abbreviation" (
str) – field key for acronym abbreviationfname_field="longname" (
str) – field key for acronym full nameskip_ioerrors=False (
bool) – skip errors on reading a single entry
- Returns
dict (
glossaryterms) – {key: fields}dict (
acronyms) – {key: fields}