Bernt Lie said on Sat, 5 Jul 2025 08:30:05 +0000 >I have a LyX document where some sections are in various levels of >completion (say: complete, and incomplete), and some sections that I >just use as background material and do not want in the final pdf >version. > >Questions: > > 1. Is there a way to mark a *section* as "conditional", i.e., I can > mark it, e.g., as "incomplete" and set a flag where "incomplete" > parts are not printed, nor included in the TOC? [I think "Branch" > does some of this , but more for a text block??] 2. If so, how can I > toggle the flag to turn on/turn off printing? 3. If so, where in the > user manual do I find the description?
I've seen your attempts, your worries about possible side effects, and various uncertainties throughout this discussion. What about the idea of usepackage{comment} and then surround your conditional text with /begin{comment} and /end{comment}? You can probably avoid ERT by defining character styles begincomment and endcomment that contain the commands you need, and then just surround with those character styles. SteveT Steve Litt http://444domains.com -- lyx-users mailing list lyx-users@lists.lyx.org https://lists.lyx.org/mailman/listinfo/lyx-users