doc2json/tex2json/xml_to_json.py
def combine_ref_maps(eq_map: Dict, fig_map: Dict, tab_map: Dict, foot_map: Dict, sec_map: Dict):
    """
    Combine all items with ref ids into one map
    :param eq_map:
    :param fig_map:
    :param tab_map:
    :param sec_map:
    :return:
    """
    ref_map = dict()
    for k, v in eq_map.items():
        v['type'] = 'equation'
        ref_map[k] = v
    for k, v in fig_map.items():
        v['type'] = 'figure'
        ref_map[k] = v
    for k, v in tab_map.items():
        v['type'] = 'table'
        ref_map[k] = v
    for k, v in foot_map.items():
        v['type'] = 'footnote'
        ref_map[k] = v
    for k, v in sec_map.items():
        v['type'] = 'section'
        ref_map[k] = v
    return ref_map

    Combine all items with ref ids into one map
    :param eq_map:
    :param fig_map:
    :param tab_map:
    :param sec_map:
    :return:
    
Combine all items with ref ids into one map
Combine all items with ref ids into one map
def combine_ref_maps(eq_map: Dict, fig_map: Dict, tab_map: Dict, foot_map: Dict, sec_map: Dict):
    ref_map = dict()
    for k, v in eq_map.items():
        v['type'] = 'equation'
        ref_map[k] = v
    for k, v in fig_map.items():
        v['type'] = 'figure'
        ref_map[k] = v
    for k, v in tab_map.items():
        v['type'] = 'table'
        ref_map[k] = v
    for k, v in foot_map.items():
        v['type'] = 'footnote'
        ref_map[k] = v
    for k, v in sec_map.items():
        v['type'] = 'section'
        ref_map[k] = v
    return ref_map
def combine_ref_maps ( eq_map : Dict , fig_map : Dict , tab_map : Dict , foot_map : Dict , sec_map : Dict ) : ref_map = dict ( ) for k , v in eq_map . items ( ) : v [ 'type' ] = 'equation' ref_map [ k ] = v for k , v in fig_map . items ( ) : v [ 'type' ] = 'figure' ref_map [ k ] = v for k , v in tab_map . items ( ) : v [ 'type' ] = 'table' ref_map [ k ] = v for k , v in foot_map . items ( ) : v [ 'type' ] = 'footnote' ref_map [ k ] = v for k , v in sec_map . items ( ) : v [ 'type' ] = 'section' ref_map [ k ] = v return ref_map
Combine all items with ref ids into one map
Combine all items with ref ids into one map
"""
    Combine all items with ref ids into one map
    :param eq_map:
    :param fig_map:
    :param tab_map:
    :param sec_map:
    :return:
    """
None
eq_map
Dict
None
fig_map
Dict
None
tab_map
Dict
None
foot_map
Dict
sec_map
Dict
None