Underlying Style Support for Custom Styles and Macros

July 11, 2020

Onetastic Custom Styles provides an easy way to quickly format your text with your choice of font, color, size and other formatting. However until now it didn't set the underlying style for the paragraph to one of the built-in styles supported by OneNote. For instance you can use Onetastic's custom Heading 1 style to format a paragraph but it would still use OneNote's built-in Normal style. With the latest update, Custom Styles can now also set the underlying style of the paragraph to one of the built-in styles. If you use Heading 1 custom style, it will use its unique formatting but will also mark the paragraph with the built-in Heading 1 style from OneNote.

This has the benefit of using macros like TOC in Current Page on pages where you used custom styles. Such macros check underlying style of paragraphs to find headings and wouldn't previously work with headings formatted using Custom Styles. You can see how this now works in the below video.


Macros can now change paragraph style

Paragraph objects in macros had a read-only style property. With this update this property is now read/write so you can change the style of a paragraph to one of the built-in styles. Following is a list of accepted values: p, h1, h2, h3, h4, h5, h6, PageTitle, cite, blockquote, code. A sample macro demonstrating this is available here: Sample - Insert Styled Paragraph.


Andrew - 2021-03-29
This new feature appears to result in resetting of font sizes to the native Style default across the whole page.  Example: I have my OneNote default font size set to 8 pt, and a Onetastic style named "Code", font Courier New, colour blue, size also 8 pt.  This worked fine previously, but now if I select the Onetastic "Code" style for a new block of text on a page it sets the new block to the correct font and colour, but size 11 pt, and resets all previously formatted Code blocks on the page to 11 pt.
If I untick the "Style" box in the style dialog then any new Code blocks are correctly set to 8 pt, but any previously formatted Code blocks on the page (where the native style is still "Code") are still reset to 11 pt.  If I go through all the Code blocks on a page and set them to native style "Normal", then Onetastic style "Code" then it works ok.  But I have hundreds of OneNote pages with blocks of code on them.
Penny - 2021-01-16
I would really like to have Onetastic for OneNote365.  I miss the ability  to sort my "To Do" list alphabetically, and I miss the Calendar.  And searching tags is terrible in 365.  It only searches the tags on one page at a time.  I can't search tags in a section or in a notebook.  Pretty much useless.  
JBM - 2021-01-15
Greetings: I'm wondering if there's a way to NOT have "To Do" listed as a Tag when I use "Find Tags"? Many thanks.  --JBM

Other Posts

Show all posts