This is a quick question. I wanted to change the font and to use baskervaldx
package: https://ctan.mirror.garr.it/mirrors/ctan/fonts/baskervaldx/doc/baskervaldx-doc.pdf. I have taken the same code of the pag. 3,
\documentclass[12pt]{article}
\usepackage[italian]{babel}
\usepackage[margin=2cm]{geometry}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[osf]{Baskervaldx} % tosf in text, tlf in math
\usepackage[vvarbb]{newtxmath} % math italic letters from Times
\usepackage[cal=boondoxo]{mathalfa} % mathcal from STIX, unslanted a bit
\usepackage{mathrsfs,graphicx,esint}
\usepackage{parskip}
\newcommand*{\starthfill}{\noindent\makebox[0pt]{}\hfill}
\newcommand*{\hfillend}{\hfill\makebox[0pt]{}}
\newcommand*{\esercizio}[1]{\par\bigskip
\noindent\textbf{Esercizio #1:}}
\newcommand*{\studente}[1]{\par\bigskip
\noindent\textbf{Studente/ssa: #1}}
\newcommand*{\riga}{\noindent\starthfill
\rule{5cm}{0.5pt}\hfillend\par}
\newcommand*{\problema}[1]{\par\bigskip
\noindent\textbf{Problema: #1}}
\begin{document}
\esercizio{pag. 115 n. 43}
\[\begin{split}
\cos \left(\alpha+240^{\circ \:}\right)+\sin \left(\alpha+30^{\circ \:}\right) & \\
= -\frac{1}{2}\cos \left(\alpha\right)+\frac{\sqrt{3}}{2}\sin \left(\alpha\right)+\sin \left(\alpha+30^{\circ \:}\right) & \\
= -\frac{1}{2}\cos \left(\alpha\right)+\frac{\sqrt{3}}{2}\sin \left(\alpha\right)+\sin \left(\alpha+30^{\circ \:}\right) & \\
=-\frac{1}{2}\cos \left(\alpha\right)+\frac{1}{2}\cos \left(\alpha\right)+\frac{\sqrt{3}}{2}\sin \left(\alpha\right)+\frac{\sqrt{3}}{2}\sin \left(\alpha\right) & \\
=\frac{\sqrt{3}}{2}\sin \left(\alpha\right)+\frac{\sqrt{3}}{2}\sin \left(\alpha\right) &\\
=\sqrt{3}\sin \left(\alpha\right)
\end{split}
\]
\riga
\end{document}
but I receive this error:
The log file hopefully contains the information to get MiKTeX going again:
C:\Users\utente\AppData\Local\MiKTeX\2.9\miktex\log\miktex-maketfm.log
! Font T1/Baskervaldx-TOsF/m/n/12=Baskervaldx-Reg-tosf-t1 at 12.0pt not loadabl
e: Metric (TFM) file not found.
<to be read again>
relax
l.24 \begin{document}
?
What are the possible solution and why I have this error?
PS: I have the newest updating of MikTeX of 1-8-2021.
Addendum:
If I take the MWE
\documentclass[12pt]{article}
\usepackage[italian]{babel}
\usepackage[margin=2cm]{geometry}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[osf]{Baskervaldx} % tosf in text, tlf in math
\usepackage[vvarbb]{newtxmath} % math italic letters from Times
\usepackage[cal=boondoxo]{mathalfa} % mathcal from STIX, unslanted a bit
\usepackage{mathrsfs,graphicx,esint}
\usepackage{parskip}
\begin{document}
Start $P(x)=xa^2+bc$
\end{document}
I have the same problem.
\left
and\right
command is useful in that context and the alignments are dubious.