<TeXmacs|1.99.2> <style|<tuple|generic|french>> <\body> <\hide-preamble> <assign|note|1> <assign|note-visible|<macro|x|<with|color|red|<arg|x>>>> <assign|note-invisible|<macro|x|>> <assign|note-part|<macro|x|<compound|<if|<equal|<value|note>|1>|note-visible|note-invisible>|<arg|x>>>> </hide-preamble> \; In the preamble of this document, a macro <inactive|<note-part|>> and a variable <em|note> are defined. \; <\itemize> <item>To embed a note (or comment) just call the macro. <item>To hide the notes, assign anything but 1 to <em|note> (nothing is fine ...). An easy way is to display the preamble and modifiy the value of <em|note>\ </itemize> Example : This is the main text. <note-part|***this is a note embedded in the text****>This is the end. One can put a note on several lines, it will expand on one line when hidden. <\note-part> I should include the equation <\equation*> x<rsup|2>=0\<Rightarrow\>x=0 </equation*> but the result is pretty obvious... \; If you clear the 1 assigned to notes, no more red text ... </note-part> The final word. Have fun with <TeXmacs> ! </body> <\initial> <\collection> <associate|page-type|user> <associate|preamble|false> </collection> </initial>
Archive powered by MHonArc 2.6.19.