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.

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.

Comments

Name
Comment
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
Jeb - 2021-01-03
new tool request - screentip or mouse over function. Just modify the link menu and offer this option.  

Other Posts

Show all posts