Before you begin composing your document in OneNote (step 3), it's advisable to first configure your settings in OneLatex (step 1). By saving them in a dedicated OneNote page (step 2) you ensure that the correct settings are applied during the conversion process with OneLatex. It is also recommended that you list the needed LaTeX packages on this page.

Step 1: Initial definition of the settings in OneLatex

Navigate to the "Settings" section in OneLatex to adjust the initial settings based on the requirements of the document you intend to create. Initially concentrate on settings such as the document class and the quotation marks, which are typically consistent throughout the document. Remember, OneLatex provides the flexibility to modify these settings at any point in your OneNote notebook later if necessary. You can also revisit and adjust the initial settings as your document evolves (see Basis concept of settings in OneLatex for more details).

Group 1 (1).png

Step 2: Create a OneNote page for Initializiation purposes

It makes sense that all initial settings and the packages you want to load in the preamble of the LaTeX code is together in one OneNote page and that this page is the first page of the OneNote section.

Proceed as follows to create this page:

  1. Name the first OneNote Page with %[N]Initialization The %[N] code defines that no title is set during the converting process (see more concerning the codes in the OneNote Page names here)

  2. Paste the OneLatex settings (Ctrl-V) you want to start with into this page When OneLatex encounters specific green marked settings-code during the conversion process, it adopts these settings from that point forward. The settings remain in effect until further settings-code is encountered, which then adjusts the settings accordingly.

    <aside> πŸ’‘ OneLatex interprets text highlighted in green as settings and applies them from this point on if it is in JSON format and represents a valid setting.

    </aside>

    With this ability you can change settings directly in OneNote as often as necessary in any place in you OneNote notebook (see [You can easily change a specific setting at any position in OneNote again. During the conversion process, OneLatex applies then the changed settings from this point on until the end of the document or until the settings are changed again. Such adjustements are often useful if you have several tables or figures in your document that require different settings (see Paste just a certain setting for more details).](https://cosmic-fox-7e5.notion.site/You-can-easily-change-a-specific-setting-at-any-position-in-OneNote-again-During-the-conversion-pro-4c7f7a3dfd3945399f6932eb3bed426e) for more details).

  3. Type or copy the commands (e.g. packages) that you want to use in the preamble Although OneLatex simplifies the creation of Latex documents, it is still necessary to define the appearance of the final document according to your ideas with packages and Latex commands (How to use Latex commands directly in OneNote). Please note that a least basic understanding of LaTeX is required when using OneLatex. For help with LaTeX commands, ChatGPT can assist you with LaTeX-related questions, as it is well-trained in this area.

Untitled

Step 3: Write your text

Add a page to OneNote and enter a name that will be then the title of the first section or chapter (see Sections and chapters for more details) in your document.

Write some text like β€œThe world is my oyster!” in a OneNote container:

Untitled

<aside> πŸ’‘ Use the standard quotations marks (”X”) in your text. In the settings navigation page you can define (see quotation marks in Settings in OneLatex) which kind of quotations marks should be applied for the conversion to LaTeX.

</aside>

<aside> πŸ’‘ If you have several containers on one OneNote page, OneLatex processes the containers from top to bottom referencing on the top of the container.

</aside>

After you have finished 3 step you can proceed with starting the conversion process. After OneLatex finished succesfully the conversion process the *.tex file should look like: