Introduction

Images in OneNote are translated into specific LaTeX commands using the OneLatex conversion process. The output of the conversion can be controlled by various settings. The corresponding image files can be found on the "Download files" navigation page. OneLatex supports the formats png and jpg. If you want to use pdf files for pictures, you must adjust the text for the embedded pdf files.

<aside> šŸ’” Please note that, if you have several pictures in one document, you can adjust the settings for the applied figure environment for each picture (see Application of specific settings for a particular figure for more details).

</aside>

Settings

Figure environment

Pictures in LaTeX are embedded in an figure environment. To automatically create an figure environment around a picture, the checkbox must be activated:

Untitled

Text settings for table environment

The default figure environment with the \\includegraphics command is based on the graphicx package. Therefore make sure the graphicx package is included in the preamble with the command \\usepackage{graphicx}. You can adjust the text for the figure environment based on your needs.

Untitled

There are 3 placeholders that you can us inside the text for the table environment:

  1. The placeholder %name% respresents the name of the picture. The is taken either from the field description in the alt text if the pictures itself is inserted in OneNote (see) or if the file with the picture (png or jpg) is inserted (see), it takes the filename of this file. It is recommended to use it with the \\caption command to show the name or description of the picture in the document.
  2. The placeholder %nameWithoutSC% is similar to %name%, except that it eliminates the special characters. It makes sense to use it with the \\label command, because this can’t handle special characters properly.
  3. The %path% combines the folder where the files are stored and the filename. The folder is ā€œimagesā€ under the folder where the LaTeX file is stored. The filename is similar to %nameWithoutSC% .

How to insert a picture in OneNote and to define a title?

There are two ways you can insert a picture in a OneNote as shown in the screenshot below:

Group 1.png

1ļøāƒ£ Insert file (png, jpg) that contains a picture