From f653caa3e9bcc0ff5af450dfdf231d361347adbf Mon Sep 17 00:00:00 2001 From: aristote Date: Mon, 29 Dec 2025 20:20:14 +0100 Subject: languages: multicol --- lib/latex.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/latex.nix b/lib/latex.nix index e3d0597..ec83059 100644 --- a/lib/latex.nix +++ b/lib/latex.nix @@ -47,9 +47,14 @@ let ${lines content} \end{${name}} ''; + environmentWithOpts = name: args: content: '' + \begin{${name}}{${lib.concatStringsSep "}{" args}} + ${lines content} + \end{${name}} + ''; latex = { - inherit macro environment; + inherit macro environment environmentWithOpts; comment = content: "% ${content}"; document = environment "document"; -- cgit v1.2.3