Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

After a day of struggle I managed to install the full family of MinionPro font on LaTeX. After an hour of googling I cannot figure out how to use the medium (semibold) font. Ideally I would have something like a \sb command, eg., {\sb This is medium bold.}.

share|improve this question
    
Please provide a minimal working example (MWE). –  Marc van Dongen Mar 20 '13 at 9:08

2 Answers 2

Here's a fontspec solution, which needs XeTeX or LuaTeX:

\documentclass[a6paper]{memoir}
\usepackage{fontspec}
\setmainfont[%
    Numbers=OldStyle,
    Kerning=Uppercase,
    SizeFeatures={%
        {Size={-9},Font=* Caption},
        {Size={9-14},Font=*},
        {Size={14-24},Font=* Subhead},
        {Size={24-},Font=* Display}
    },
]{Minion Pro}
\newfontfamily\semibold[%
    Numbers=OldStyle,
    Kerning=Uppercase,
    SizeFeatures={%
        {Size={-9},Font=* Caption},
        {Size={9-14},Font=*},
        {Size={14-24},Font=* Subhead},
        {Size={24-},Font=* Display}
    },
]{Minion Pro Semibold}
\newcommand{\blah}{Once upon a time, 
    \textit{in a distant
    galaxy} called \textbf{Ööç},
    there lived a computer
    named {\bfseries\itshape R.~J. Drofnats.}\par}
\sloppypar
\begin{document}
\blah
\semibold
\blah
\end{document}

Notes:

  1. Text courtesy of Prof. Knuth.
  2. I've included the SizeFeatures just for illustration
  3. I should have (perhaps) used Minion Std Black for the bold version of semibold; "this is left as an exercise for the reader".

Here's the result (with XeLaTeX):

enter image description here

share|improve this answer

I assume you have set up the semibold variant like

   \DeclareFontShape{T1}{MinionPro}{sb}{n}{
      <-> T1--Adobe-Minion-Pro-Semibold
   }{}

in an .fd file. Then you can define a user interface for it like

\newcommand*{\sbdefault}{sb}
\DeclareRobustCommand{\sbshape}{%
  \not@math@alphabet\sbshape\relax
  \fontshape\sbdefault\selectfont}

\DeclareTextFontCommand{\textsb}{\sbshape}

A good description of all that is the Font Installation Guide.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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