.. highlightlang:: us .. index:: LaTeX Formula Configuration .. index:: y^latexconfiguration .. _tools-latex-configuration: Tools=>LaTeX Formula Configuration ---------------------------------- (`TeX `_ is a typesetting system designed and mostly written by `Donald E. Knuth `_. `LaTeX `_ is a typesetting system by Leslie Lamport, using TeX.)) With this command LaTeX formulas can be defined. The LaTeX formulas are stored in a text file. The field function :ref:`@f{latex}` can be used to display the LaTeX formula in a Text object. See `LaTeX `. .. image:: S:/uniplot-obj/images/LatexFormulaConfiguration-en.* .. image:: S:/uniplot-obj/images/LatexFormulaEdit-en.* .. us.dialog .. us.dlgitem **File** Is the name of a text file with LaTeX formulas. The default file is located in the template directory of UniPlot. The file name is ``latex.txt``. The first time the function is invoked the default file will be copied into the UniPlot user directory. .. us.dlgitem **Open** Opens an Dialogbox to edit the formula text. .. us.dlgitem **Edit** Opens the following simple editor. The file can also be opened with any other text editor: .. image:: S:/uniplot-obj/images/LatexFormulaEdit-en.* Each LaTeX text formula consists of a name followed by an equal sign, followed by the formula text enclosed in double dollar characters. Example: .. code-block:: none m_dot = $$dot{m}$$ The formula text can be multiline. For multiline formulas, the next line must start with a space. The file can contain any number of formulas. A comments begins with a # sign. .. us.comment **Comment** When closing with *OK*, a PNG file is created for each LaTeX formula in the UniPlot user directory in the directory ``LaTexCache``. The file names are saved in ``_g().oLatex``. To insert the field function into a table cell, double click the cell and then press the button ``Insert field function``. In the dialog box, select the :ref:`@f{latex}` field function. Choose a formula from the right list. .. seealso:: :ref:`edit-insert-formula`, :ref:`diagraminsert-field-function`, :ref:`@f{latex}` :sub:`id-785188`