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 file
path=None (str) – path to the tex file
encoding='utf8' (str) – tex file encoding
abbrev_field="abbreviation" (str) – field key for acronym abbreviation
fname_field="longname" (str) – field key for acronym full name
skip_ioerrors=False (bool) – skip errors on reading a single entry
- Returns
dict (glossaryterms) – {key: fields}
dict (acronyms) – {key: fields}