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

        Args:
            name: Name of the environment.
            options: List of optional arguments.
            args: List of arguments.
            content: Inner content of the environment.

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

        env_elms: list[LatexLike] = [Latex.join("", begin_elms)]
        if content is not None:
            env_elms.append(content)
        env_elms.append(rf"\end{{{name}}}")

        return Latex.join(" ", env_elms)
Makes a Latex environment expression.

        Args:
            name: Name of the environment.
            options: List of optional arguments.
            args: List of arguments.
            content: Inner content of the environment.

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