2.4 Notes Windows

Notes Windows-1.png

Notes windows are a text-only Origin child window useful for:

  • Using Text, HTML syntax or MarkDown syntax to make notes for sharing or recording the information .
  • recording analysis procedures and displaying results, including the tables and graphs. The graphs can be shown on the Notes window by rendering the HTML or MarkDown link syntax.

An Origin project file can have any number of Notes windows. You can save the contents of notes windows with the Origin project file, or you can save the contents of a notes window as a TXT file, HTML file or a MarkDown file.

Since Origin 2019b, Notes window supports three modes:

The HTML and MarkDown mode allows you to type HTML/MarkDown syntax, in which you can refer to Origin graph, image in matrix, analysis table and any worksheet cells. When the source changes, the linked in Notes window also get updated. The HTML/MarkDown mode makes it possible for Notes window to serve as an analysis report.

Opening a new Notes window

  1. Click the New Notes button Button New Notes.png on the Standard toolbar.

or

  1. Select File: New: Notes menu.

Controls for Notes window

The HTML main menu

Once you new a Notes window, the main menu item HTML will show up.

  • Load Samples: Load build-in samples, including the HTML files, MD files.
  • Load: Load other files.
  • Export to Webpage: Export current notes window as a web file, such as a html file. This item is only availiable when the Render Mode is on.
  • Render Mode: Render the HTML/MarkDown syntax to show the information in current Notes window in different formats.
  • Edit placeholders: Edit placeholders in the HTML/MarkDown source.
    Select the Edit Placeholder to open the worksheet HTML#, then you can edit these placeholder and copy&paste cell link to insert the values which can be updated by changes in source.
  • Syntax: Switch the syntax.
    You can only switch between text and HTML/MarkDown, but not between HTML and MarkDown. To switch from HTML/MarkDown to MarkDown/HTML, you need turn back to Text first.
  • Display Line Number: Display the line number at the header of the row with content.

The context menu on the window title bar

Right-click on the window title bar, you can see there are several items available to control the notes window.

  • Export to Webpage: Export current notes window as a web file, such as a html file. This item is only availiable when the Render Mode is on.
  • Save Notes as: Save current notes window as a text/LabTalk Script/html/MarkDown file.
  • Print: Print current notes window.
  • Hide: Hide current notes window. Once hidden, the notes window can be called back by double-clicking on the gray-out icon in the Project Explorer.
  • Duplicate: Duplicate current notes window.
  • Render Mode: Render the HTML/MarkDown syntax to show the information in current Notes window in different formats.
  • Edit placeholders: Edit placeholders in the HTML/MarkDown source.
    Select the Edit Placeholder to open the worksheet HTML#, then you can edit these placeholder and copy&paste cell link to insert the values which can be updated by changes in source.
  • Syntax: Switch the syntax.
    You can only switch between text and HTML/MarkDown, but not between HTML and MarkDown. To switch from HTML/MarkDown to MarkDown/HTML, you need turn back to Text first.
  • Properties: Open the Window Properties dialog to control the window name, comments and window title.

Naming and labelling the Notes window

  1. Right-click on the window's title bar and choose Properties to open the Window Properties dialog.
  2. Enter Long Name, Short Name and/or Comments to name the notes window.
  3. Use the Window Title drop-down list to control how to show long name and short name on the title bar.
  4. Click OK button. Of course, you can switch to Info tab to check the detailed information of current notes window.


Controlling Font and Font Size

The font and font size in notes window can be controlled using the Format toolbar

Button Font.pngButton Size.png
Notes: The font and font size can not be controlled in each note window independently. If you change the font setting, it affects all the notes window in the project

Turning on Text Wrap

  1. With the Notes window active, choose View:Word Wrap from the Origin menu (a check mark beside the menu item indicates that Word Wrap is enabled).

Saving the contents of the Notes window to a file

  1. Right-click on the title bar of the notes window to select Save Notes As; or activate notes window to choose File:Save Notes As menu.
  2. Choose the desired file type from the Save As Type drop-down list, enter a File Name, and Save.

Entering and rendering the HTML/MarkDown language

  1. New a Notes window, enter your HTML/MarkDown script into the notes window.
  2. Select HTML: Syntax: HTML/MarkDown menu or right-click on the title bar to select Syntax: HTML/MarkDown context menu.
  3. Then, choose HTML: Render Mode menu or right-click on the title bar to select Render Mode context menu to render the script lines in current window. Double-click on any place of window workspace or press Ctrl + M hotkey to switch between the editable and un-editable states.

Note: By default, the Notes window has been set to the Text mode. Once you enter some script lines in a new notes window, you can press Ctrl + M hotkey to preview the format and content.

The system variable @NPS is used to set the syntax you prefer to preview the script. @NPS = 0 is the default setting, means treat the script lines as HTML language; @NPS = 1 means treat the script lines as MarkDown language.

Exporting the contents of the Notes window as Webpage

  1. Right-click on the window's title, and select Render Mode.
  2. Right click on the window's title bar and choose Export to Webpage..., or select HTML: Export to Webpage... in the menu
  3. Enter a File Name, and Save.
Notes:
  • Export to Webpage menu is only available when the Notes window is currently in Render mode.
  • When you export a Notes window as a HTML file, the necessary PNG files (generated from Origin graphs and get refer to in the Notes window) will get exported as well and put into the same folder as the HTML file.

Inserting to Workbook as a Sheet

Notes Window can be insert to a Workbook as a Sheet.

Right click the sheet tab of a Workbook, and select Add Notes as Sheet.