def parse_env_latex(key, value):
    """Parse paragraph opening to extract environment name."""
    if key == 'Para':
        if len(value) >= 1:
            content = value[0]['c']
            if content[:6] == 'begin+' or content[:6] == 'begin-':
                return 'begin', content[6:]
            if content[:4] == 'end-' or content[:4] == 'end+':
                return 'end', content[4:]
    return '', ''