From 7e24d9d392aff890981f13c299b283189d94a75d Mon Sep 17 00:00:00 2001
From: Gloria Mundi <gloria@gloria-mundi.eu>
Date: Fri, 15 Mar 2024 01:25:09 +0100
Subject: too many changes for one commit

- simplify envelope code
- add more files as optional
- allow compiling optional without editing tcr.tex
- formatting changes
---
 latexHeaders/commands.sty | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

(limited to 'latexHeaders/commands.sty')

diff --git a/latexHeaders/commands.sty b/latexHeaders/commands.sty
index da78745..c39923c 100644
--- a/latexHeaders/commands.sty
+++ b/latexHeaders/commands.sty
@@ -7,6 +7,11 @@
 \newcommand{\code}[1]{\lstinline[breaklines=true]{#1}}
 \let\codeSafe\lstinline
 
+\ifoptional
+	\renewcommand{\columnbreak}{}
+	\newcommand\opthint{\textcolor{gray}{(optional)}}
+\fi
+
 \usepackage{tikz}
 \usetikzlibrary{angles,quotes}
 
@@ -17,7 +22,7 @@
 	\ifthenelse{\equal{#1}{optional}}{%
 		\optional{
 				\needspace{4\baselineskip}%
-				\subsection{#2\textcolor{gray}{(optional)}}%
+				\subsection{#2 \opthint}%
 				#3%
 			}
 	}{%
-- 
cgit v1.2.3

