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.


RichDev2 - 2020-08-03
I need a Duration Calculator combined with a Date Picker.   I want to be able to pick two dates (with one of the dates being TODAY by default), and then select another date from a pop-up calendar.   Then I want the macro to insert the date into the current page in my open OneNote notebook.  

I search on Macroland and didn't find ANYTHING in the category of Calculators or Date Pickers.  

Does anyone have either of these categories of OneTaststic Macros?  
If what I want doesn't exist I would like either a pop-up calendar as a date picker, or a calculator form as an example to start with.  

Thank you.

Aaron C. - 2020-07-28
Hello! I work for a company that manages over 100 users. These users connect to their desktop using a remote connection with 9 terminal servers. We have a few users that take advantage of the calendar addin. We have updated the calendar macro on the terminal servers but the users still cannot select any years after 2020 in OneNote. Can someone advise as to how we can update this macro for users on the terminal servers?
bmac - 2020-07-17
I love OneCalendar and use it all of the time.  During a day I will frequently update OneCalendar by searching just on work completed during the day. If I have to go back to any task, OneCalendar provides an easy route to find what I have already done.
I  wish that there would be an easy way to copy the  daily list generated by OneCalendar into a OneNote page that I could maintain as a journal.

Other Posts

Show all posts