[Tex/LaTex] Integral symbol in Lyx yields errors

errorslyxmath-operators

I get errors when trying to use the integral math symbol in Lyx document using the report class. I am usig LyX Version 2.1.3. Code and errors below:

#LyX 2.1 created this file. For more info see http://www.lyx.org/
\lyxformat 474
\begin_document
\begin_header
\textclass report
\graphics default
\default_output_format pdf5
\output_sync 0
\bibtex_command default
\index_command default  
\use_package amsmath 2
\use_package amssymb 2
\use_package cancel 0
\use_package esint 1
\use_package mathdots 0
\use_package mathtools 0
\use_package mhchem 0
\use_package stackrel 0
\use_package stmaryrd 0
\use_package undertilde 0
\paperorientation portrait
\suppress_date false
\html_math_output 0
\html_css_as_file 0
\html_be_strict false
\end_header

\begin_body

\begin_layout Standard
\begin_inset Formula $a=\int b$
\end_inset

\end_layout
\end_body
\end_document

The errors I get, when trying to save as PDF, are:

Blockquote! Font \U/esint/m/n/10.95=esint10 at 10.95pt not loadable: metric data not found or bad.

relax
l.39 \begin{document}

I wasn't able to read the size data for this font, so I will ignore
the font specification. [Wizards can fix TFM files using
TFtoPL/PLtoTF.] You might try inserting a different font spec; e.g.,
type `I\font='.

! Font \U/esint/m/n/8=esint10 at 8pt not loadable: metric data not
found or bad. relax l.39 \begin{document}
I wasn't able to read the size data for this font, so I will ignore the font specification. [Wizards can fix TFM files
using TFtoPL/PLtoTF.] You might try inserting a different font spec;
e.g., type `I\font='.

! Font \U/esint/m/n/6=esint10 at 6pt not loadable: metric data not
found or bad. relax l.39 \begin{document}
I wasn't able to read the size data for this font, so I will ignore the font specification. [Wizards can fix TFM files
using TFtoPL/PLtoTF.] You might try inserting a different font spec;
e.g., type `I\font='.

\c__siunitx_mathtt_int=\count392 ! \textfont6 is undefined (character
1). l.42 $a=\int b$
Somewhere in the math formula just ended, you used the stated character from an undefined font family. For example, plain TeX
doesn't allow \it or \sl in subscripts. Proceed, and I'll try to
forget that I needed that character.

! \textfont6 is undefined (character 1). l.42 $a=\int b$
Somewhere in the math formula just ended, you used the stated character from an undefined font family. For example, plain TeX
doesn't allow \it or \sl in subscripts. Proceed, and I'll try to
forget that I needed that character.

Your help would be hugely appreciated as I can't figure this out.

Many thanks.

Best Answer

There are two choices: 1) install esint.sty (precise method depends on which LaTeX distro one uses); or 2) in LyX go to Document -> Settings... -> Math Options and uncheck "Use esint package automatically". This option will only work if you are not using any of the 'advanced' integral signs that esint provides (double integrals, path integrals, etc.), but it works fine for using basic integrals.