2.3.1 Notes Windows


Opening a new Notes window

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

or

  • Select File: New: Notes menu.

Controls for Notes window

The Notes main menu

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

  • Load Samples: Load build-in samples, including the HTML files, MD files.
  • Load: Load other files.
  • Add Links: Add Graphs and worksheets, cell values, tables, matrices, strings and variables to the active Notes window.
    • For Text, HTML and MarkDown syntax, you can add Worksheet cell, Info Variables, Worksheet, Graph/Image, Button and Combo in the menu. Refer the syntax of links.
    • For Origin Rich Text syntax, it only supports to add Worksheet cell, Info Variables and Graph/Image in the menu.
  • 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 Origin Rich Text/ 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 Origin Rich Text/ HTML/ MarkDown, but not between Origin Rich Text, HTML and MarkDown. To switch between Origin Rich Text/ HTML/ MarkDown these three options, 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.

  • Add Graph/Image, Worksheet cell, Info Variables: Insert these objects in the Notes.
  • 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 Origin Rich Text/ 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 Origin Rich Text/ HTML/ MarkDown, but not between Origin Rich Text, HTML and MarkDown. To switch between Origin Rich Text/ HTML/ MarkDown these three options, 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.