def METHOD_NAME(content, entries, groups):
    """Create output when building latex cheatsheet."""
    for group in groups:
        entry_list = entries[group]
        content.append(nodes.raw("", f"\section{{{group}}}", format="latex"))
        for entry in entry_list:
            description = latex_escape(entry["description"])
            description = add_linebreaks(description)
            command = latex_escape(entry["command"])
            command = add_linebreaks(command)
            content.append(nodes.raw("", f"\commandsubsection{{{command}}}{{{description}}}", format="latex"))