1

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,

enter image description here

\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.

enter image description here

Addendum 2

enter image description here

18
  • 1
    No problem with a fully updated TeX Live. By the way, none of the \left and \right command is useful in that context and the alignments are dubious.
    – egreg
    Commented Jan 9, 2021 at 23:05
  • 1
    Just FYI: I just tested it on Overleaf (just "copy & paste" your code). No error - it worked. Commented Jan 9, 2021 at 23:55
  • 1
    I switched from MikTeX to TeXLive after similar problems about a year ago. Commented Jan 10, 2021 at 0:01
  • 2
    doing it by hand seems odd but obviously if you do, you will need the latex package and the tfm fonts and the type1 (pfb) fonts and the map files, it is not at all clear what you have installed so far, but the whole point of a distribution like miktex or texlive is that you do not have to do this. if the miktex package install hasn't installed a working package file a bug with miktex Commented Jan 10, 2021 at 0:18
  • 2
    OK glad it works, self answer if you think it is generally useful, or delete if not:-) Commented Jan 10, 2021 at 0:26

2 Answers 2

2

It is a packaging bug. I reported it to the miktex issue tracker:

https://github.com/MiKTeX/miktex-packaging/issues/215

It should be resolved soon.

1
  • Great Fischer! :-)...and thank you very much to have open the miktex issue. Thank you again.
    – Sebastiano
    Commented Jan 10, 2021 at 12:57
1

I have solved the question with the help of the very nice users (see the comments). I have put, quickly, all the files into the same folder where I have the file .tex and all works perfectly. See the image and the output.

enter image description here

enter image description here

...and zac.or puff..I have the output....:-)

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .