To insert Latex code into the preamble section, you can highlight the backgorund of the text in OneNote with orange. This is mostly used to implement Latex packages with the \\usepackage command, as in the print screen below.

Select the background color that appears orange; it will display as 'Gold' when hovered over with the mouse pointer.

Select the background color that appears orange; it will display as 'Gold' when hovered over with the mouse pointer.

Alternatively you can use the “Project A” tag to do the same:

Untitled

Here a Hyperlink with examples of usepackages:

test

URL to get 4 basis Latex packages in English

<aside> 💡 The copy clipboard does not work with tags (like Project A). Therefore if you copy an example to the clipboard it will always copy it with the background color instead of the alternatively option of a tag.

</aside>