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>
Pictures in LaTeX are embedded in an figure environment. To automatically create an figure environment around a picture, the checkbox must be activated:
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.
There are 3 placeholders that you can us inside the text for the table environment:
%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.%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.%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%
.There are two ways you can insert a picture in a OneNote as shown in the screenshot below: