Subject: mailing-list for TeXmacs Users
List archive
From : Martial Tarizzo <address@hidden>- To: Richard Sailer <address@hidden>
- Cc: "address@hidden" <address@hidden>
- Subject: Re: [TeXmacs] Making Comments and Notes to the Text in Texmacs
- Date: Fri, 27 Nov 2015 00:32:52 +0100
Hi,
See attached file for a solution.
HTH
MT
Le samedi 21 novembre 2015 à 05:48 +0100, Richard Sailer a écrit :
> Hi,
>
> I'm currently writing my Bachelor Thesis about computer networking
> in Texmacs and I'm really content with it.
>
> But there's one feature I really miss.
> Often I want to write a comment or note on some piece of the text
> just for me, these shall not be part of the final pdf or printout.
>
> It not necesary for this to be an individual layer, it's okay if it
> disrupts the layout.
>
> Currently I'm using red text and every time I send it to my professor
> for review i remove all red text with an regular expression and sed.
> This works, although it's not the most elegant way to do this.
>
> Has anyone an idea how to do this more smoothly? A bit of macro or
> scheme coding would not be a problem for me.
>
> Regards
> -- Richard
>
<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>
- [TeXmacs] Making Comments and Notes to the Text in Texmacs, Richard Sailer, 11/21/2015
- Re: [TeXmacs] Making Comments and Notes to the Text in Texmacs, Jay Belanger, 11/21/2015
- Re: [TeXmacs] Making Comments and Notes to the Text in Texmacs, Martial Tarizzo, 11/27/2015
Archive powered by MHonArc 2.6.19.