11 Commenting your code

When designing a complicated document, it’s often helpful to make notes about future ideas for design improvements, places to enter figures or tables that haven’t been prepared yet and others. While such notes are useful, you may not necessarily want them to appear in your complied document. For example, imagine you are sending someone a draft of an article to review. While it is still work in progress with many notes and comments, you often don’t want the reader to see them, as it may make reading the document harder. For that sort of situations, LaTeX comes equipped with a special symbol ‘%’. Whenever it is entered. anything after it until the beginning of a new line in the tex file (not in the compiled document) will not be compiled – TeXStudio notifies you of that by displaying the text after % in grey colour. Try it out yourself!