def command(
        name: str,
        *,
        options: list[LatexLike] | None = None,
        args: list[LatexLike] | None = None,
    ) -> Latex:
        """Makes a Latex command expression.

        Args:
            name: Name of the command.
            options: List of optional arguments.
            args: List of arguments.

        Returns:
            A new expression.
        """
        elms: list[LatexLike] = [rf"\{name}"]
        if options is not None:
            elms += [Latex.opt(x) for x in options]
        if args is not None:
            elms += [Latex.arg(x) for x in args]

        return Latex.join("", elms)
Makes a Latex command expression.

        Args:
            name: Name of the command.
            options: List of optional arguments.
            args: List of arguments.

        Returns:
            A new expression.
        
src/latexify/codegen/latex.py