0

I tried to use the Minion Pro font style in my document but TeXMaker gives me an error message saying that no MinionPro.sty can be found. When using \setmainfont{Minion Pro} TexMaker does not know the package although I installed minion2newtx in the package manager.

Does anybody know how I can fix this issue and make this my main font for the document?

Code:

\documentclass{article}

\usepackage{verbatim}
\usepackage{float}% If comment this, figure moves to Page 2
\usepackage{graphicx}
\usepackage{titling}
\usepackage{color}
\usepackage{hyperref}
\hypersetup{
    colorlinks,
    citecolor=blue,
    filecolor=black,
    linkcolor=black,
    urlcolor=blue
}
\setlength{\parindent}{0pt}

\usepackage[margin=25mm]{geometry}

%\date{\today}

\usepackage[numbered,framed]{matlab-prettifier}
\lstset{style = Matlab-editor}

\pretitle{%
  \begin{center}
  \LARGE
  \includegraphics[width=10cm,height=3cm]{logo}\\[\bigskipamount]
}
\posttitle{\end{center}}

\begin{document}

\title{Testdocument}

\end{document}
  • Please post a compilable code snippet to help us help you. – TeXnician May 18 '17 at 17:17
  • Added the code snippet that compiles. Now when I want to add the font, it gives me an error. If you need more information, please let me know. – MatlabNewb May 18 '17 at 17:29
  • Did you read the documentation to minion2newtx? You need to obtain the actual font (not only the support package) and install it, following the instructions in sections 1.1 to 1.3 – DG' May 18 '17 at 18:04
  • Sorry for the question but just download it from there: ctan.org/tex-archive/fonts/minionpro ? I am curious that I cannot download this directly from the Package Manager. Do I have to put ALL the files into a specific folder? – MatlabNewb May 18 '17 at 19:01
  • 1
    Off-topic: you are loading hyperref too early. – cfr May 19 '17 at 1:52
0

Solved by following the instructions on this page here: MPro-Installation-Guide-GitHub

I used the following PDF as a instructions: MikTeX Installation Guide

General steps:

1) Download all the software you most likely do not have on your PC.

2) Download all the LATEX-font-files (let’s call them “metrics”) for Minion Pro and Myriad Pro you most likely do not have on your PC.

3) Install LCDF typetools for MikTeX.

4) Convert the .otf-files.

5) Put the files into the right place.

6) Get ready

P.S.: Make sure you install/copy-paste everything into the right folder. Otherwise you will have a bad time. You have to make sure that you choose the right folders or TeXMaker will throw error messages. You can fix that by updating the packages given in the error message and "Refresh FNDB" in the MikTeX Settings.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.