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.

I wanted to use the ebgaramond font and I can get it to work using 'latex' however, there is no boldface font available with this package. Is it possible to set up the LaTeX document such that it will get the boldfaced font from some other package (eg. times or euler, etc.)?

Many thanks!

share|improve this question
3  
Welcome to TeX SE! I can't help asking: why do you want to do this? It will be typographically horrible. I think it would be better to perhaps substitute the sans or bold sans font for bold serif. It is really not a good idea to use a different serif font for bold. Also, there is no really clean way of doing this for (pdf)LaTeX though you could obviously do it for Lua/XeLaTeX if you really wanted to. If you absolutely wanted to, I think it would be best to use substitute font definitions. That should work but it is pretty icky. –  cfr Mar 31 at 21:01
2  
Use Garamond Extended (garamondx) instead! If you are a TeX Live user run getnonfreefonts, as MiKTeX user install with the Package Manager. –  Speravir Apr 1 at 1:07
    
My usual comment: using boldface with Garamond is like Charlton Heston wearing a wristwatch when playing Ben Hur. –  egreg Apr 2 at 21:08

3 Answers 3

up vote 4 down vote accepted

EBGaramond with Monotype Garamond Bold

This example mixes EBGaramond with Monotype's Garamond in pdfLaTeX. Note that this code will not compile as written for you. You would need to substitute a suitable alternative for the bold Garamond I've used. (Or configure TeX support for it on your machine, if you have the same font.)

\documentclass{article}

\usepackage[T1]{fontenc}
\usepackage[scale=0.95]{ebgaramond}
\usepackage{kantlipsum}
\pdfmapfile{+mgm.map}
\usepackage{filecontents}
\begin{filecontents}{T1EBGaramond-OsF.fd}
\ProvidesFile{T1EBGaramond-OsF.fd}

\expandafter\ifx\csname EBGaramond@scale\endcsname\relax
    \let\EBGaramond@@scale\@empty
\else
    \edef\EBGaramond@@scale{s*[\csname EBGaramond@scale\endcsname]}%
\fi

\DeclareFontFamily{T1}{EBGaramond-OsF}{}

\DeclareFontShape{T1}{EBGaramond-OsF}{m}{sc}{
      <-> \EBGaramond@@scale EBGaramond12-Regular-osf-sc-t1
}{}

\DeclareFontShape{T1}{EBGaramond-OsF}{m}{n}{
      <-> \EBGaramond@@scale EBGaramond12-Regular-osf-t1
}{}

\DeclareFontShape{T1}{EBGaramond-OsF}{m}{it}{
      <-> \EBGaramond@@scale EBGaramond12-Italic-osf-t1
}{}

\DeclareFontShape{T1}{EBGaramond-OsF}{m}{scit}{
      <-> \EBGaramond@@scale EBGaramond12-Italic-osf-sc-t1
}{}

\DeclareFontShape{T1}{EBGaramond-OsF}{m}{sw}{
      <-> \EBGaramond@@scale EBGaramond12-Italic-osf-swash-t1
}{}

\DeclareFontShape{T1}{EBGaramond-OsF}{m}{nw}{
      <-> \EBGaramond@@scale EBGaramond12-Regular-osf-swash-t1
}{}

\DeclareFontShape{T1}{EBGaramond-OsF}{b}{n}{
     <-> mgmb8t
  }{}
\DeclareFontShape{T1}{EBGaramond-OsF}{b}{sc}{
     <-> mgmbc8t
  }{}
\DeclareFontShape{T1}{EBGaramond-OsF}{b}{it}{
     <-> mgmb8t
  }{}
\DeclareFontShape{T1}{EBGaramond-OsF}{b}{sl}{
     <-> mgmb8t
  }{}

\DeclareFontShape{T1}{EBGaramond-OsF}{m}{scsl}{ <-> ssub * EBGaramond-OSF/m/scit }{}
\DeclareFontShape{T1}{EBGaramond-OsF}{m}{sl}{ <-> ssub * EBGaramond-OsF/m/it }{}
\DeclareFontShape{T1}{EBGaramond-OsF}{b}{scit}{ <-> ssub * EBGaramond-OsF/b/sc }{}
\DeclareFontShape{T1}{EBGaramond-OsF}{b}{sw}{ <-> ssub * EBGaramond-OsF/b/it }{}
\DeclareFontShape{T1}{EBGaramond-OsF}{b}{nw}{ <-> ssub * EBGaramond-OsF/b/n }{}
\DeclareFontShape{T1}{EBGaramond-OsF}{b}{scsl}{ <-> ssub * EBGaramond-OsF/b/scit }{}
\DeclareFontShape{T1}{EBGaramond-OsF}{bx}{sc}{ <-> ssub * EBGaramond-OsF/b/sc }{}
\DeclareFontShape{T1}{EBGaramond-OsF}{bx}{n}{ <-> ssub * EBGaramond-OsF/b/n }{}
\DeclareFontShape{T1}{EBGaramond-OsF}{bx}{it}{ <-> ssub * EBGaramond-OsF/b/it }{}
\DeclareFontShape{T1}{EBGaramond-OsF}{bx}{scit}{ <-> ssub * EBGaramond-OsF/b/scit }{}
\DeclareFontShape{T1}{EBGaramond-OsF}{bx}{sw}{ <-> ssub * EBGaramond-OsF/b/sw }{}
\DeclareFontShape{T1}{EBGaramond-OsF}{bx}{nw}{ <-> ssub * EBGaramond-OsF/b/nw }{}
\DeclareFontShape{T1}{EBGaramond-OsF}{bx}{scsl}{ <-> ssub * EBGaramond-OsF/b/scit }{}
\DeclareFontShape{T1}{EBGaramond-OsF}{bx}{sl}{ <-> ssub * EBGaramond-OsF/b/it }{}

\endinput
\end{filecontents}

\begin{document}

\section{A section}

\kant[1]

\noindent{\bfseries \kant[1]}

ABC \textbf{ABC} abc \textbf{abc}

\end{document}

EBGaramond and Monotype Garamond bold

EBGaramond with Medium URW Garamond as Bold

This example takes the medium series from URW Garamond for bold text. You can install this using the getnonfreefonts-sys script which is part of TeX Live.

\documentclass{article}

\usepackage[T1]{fontenc}
\usepackage{ebgaramond}
\usepackage{kantlipsum}
\usepackage{filecontents}
\begin{filecontents}{T1EBGaramond-OsF.fd}
\ProvidesFile{T1EBGaramond-OsF.fd}

\expandafter\ifx\csname EBGaramond@scale\endcsname\relax
    \let\EBGaramond@@scale\@empty
\else
    \edef\EBGaramond@@scale{s*[\csname EBGaramond@scale\endcsname]}%
\fi

\DeclareFontFamily{T1}{EBGaramond-OsF}{}

\DeclareFontShape{T1}{EBGaramond-OsF}{m}{sc}{
      <-> \EBGaramond@@scale EBGaramond12-Regular-osf-sc-t1
}{}

\DeclareFontShape{T1}{EBGaramond-OsF}{m}{n}{
      <-> \EBGaramond@@scale EBGaramond12-Regular-osf-t1
}{}

\DeclareFontShape{T1}{EBGaramond-OsF}{m}{it}{
      <-> \EBGaramond@@scale EBGaramond12-Italic-osf-t1
}{}

\DeclareFontShape{T1}{EBGaramond-OsF}{m}{scit}{
      <-> \EBGaramond@@scale EBGaramond12-Italic-osf-sc-t1
}{}

\DeclareFontShape{T1}{EBGaramond-OsF}{m}{sw}{
      <-> \EBGaramond@@scale EBGaramond12-Italic-osf-swash-t1
}{}

\DeclareFontShape{T1}{EBGaramond-OsF}{m}{nw}{
      <-> \EBGaramond@@scale EBGaramond12-Regular-osf-swash-t1
}{}

\DeclareFontShape{T1}{EBGaramond-OsF}{b}{n}{
     <-> ugmm8t
  }{}
\DeclareFontShape{T1}{EBGaramond-OsF}{b}{it}{
     <-> ugmmi8t
  }{}

\DeclareFontShape{T1}{EBGaramond-OsF}{m}{scsl}{ <-> ssub * EBGaramond-LF/m/scit }{}
\DeclareFontShape{T1}{EBGaramond-OsF}{m}{sl}{ <-> ssub * EBGaramond-OsF/m/it }{}
\DeclareFontShape{T1}{EBGaramond-OsF}{b}{sl}{<->ssub * EBGaramond-OsF/b/it}{}
\DeclareFontShape{T1}{EBGaramond-OsF}{b}{sc}{ <-> ssub * EBGaramond-OsF/b/n }{}
\DeclareFontShape{T1}{EBGaramond-OsF}{b}{scit}{ <-> ssub * EBGaramond-OsF/b/sc }{}
\DeclareFontShape{T1}{EBGaramond-OsF}{b}{sw}{ <-> ssub * EBGaramond-OsF/b/sl }{}
\DeclareFontShape{T1}{EBGaramond-OsF}{b}{nw}{ <-> ssub * EBGaramond-OsF/b/n }{}
\DeclareFontShape{T1}{EBGaramond-OsF}{b}{scsl}{ <-> ssub * EBGaramond-OsF/b/scit }{}
\DeclareFontShape{T1}{EBGaramond-OsF}{bx}{sc}{ <-> ssub * EBGaramond-OsF/b/sc }{}
\DeclareFontShape{T1}{EBGaramond-OsF}{bx}{n}{ <-> ssub * EBGaramond-OsF/b/n }{}
\DeclareFontShape{T1}{EBGaramond-OsF}{bx}{it}{ <-> ssub * EBGaramond-OsF/b/it }{}
\DeclareFontShape{T1}{EBGaramond-OsF}{bx}{scit}{ <-> ssub * EBGaramond-OsF/b/scit }{}
\DeclareFontShape{T1}{EBGaramond-OsF}{bx}{sw}{ <-> ssub * EBGaramond-OsF/b/sw }{}
\DeclareFontShape{T1}{EBGaramond-OsF}{bx}{nw}{ <-> ssub * EBGaramond-OsF/b/nw }{}
\DeclareFontShape{T1}{EBGaramond-OsF}{bx}{scsl}{ <-> ssub * EBGaramond-OsF/b/scit }{}
\DeclareFontShape{T1}{EBGaramond-OsF}{bx}{sl}{ <-> ssub * EBGaramond-OsF/b/it }{}


\endinput
\end{filecontents}

\begin{document}

\section{A section}

\kant[1]

\noindent{\bfseries \kant[1]}

ABC \textbf{ABC} abc \textbf{abc}

\end{document}

EBGaramond with URW Garamond Medium

Note that URW Garamond includes a restricted set of font shapes in comparison with EBGaramond. So small-caps bold will be typeset in non-small-caps upright medium, for example, as there is no medium small-caps available.

EBGaramond with Extended URW Garamond Bold

This uses fonts from garamondx which extends the URW families provided in garamond. You may wish to adjust the scaling factor, as in the other examples. Like garamond which provides the standard URW Garamond, garamondx can be installed using getnonfreefonts-sys.

Olstyle Figures

EBGaramond and Extended URW Garamond bold

\documentclass{article}

\usepackage[T1]{fontenc}
\usepackage[scale=1.05]{ebgaramond}
\usepackage{kantlipsum}
\usepackage{filecontents}
\begin{filecontents}{T1EBGaramond-OsF.fd}
\ProvidesFile{T1EBGaramond-OsF.fd}

\expandafter\ifx\csname EBGaramond@scale\endcsname\relax
    \let\EBGaramond@@scale\@empty
\else
    \edef\EBGaramond@@scale{s*[\csname EBGaramond@scale\endcsname]}%
\fi

\expandafter\ifx\csname zgm@Scale\endcsname\relax
 \let\zgm@@Scale\@empty
\else
 \edef\zgm@@Scale{s*[\csname zgm@Scale\endcsname]}%
\fi

\def\zgm@tmp{\ifzgm@swq \def\zgm@@swq{-swq}\fi}
\let\zgm@@swq\@empty
\ifdefined\zgm@swqtrue
  \zgm@tmp
\fi

\DeclareFontFamily{T1}{EBGaramond-OsF}{}

\DeclareFontShape{T1}{EBGaramond-OsF}{m}{sc}{
      <-> \EBGaramond@@scale EBGaramond12-Regular-osf-sc-t1
}{}

\DeclareFontShape{T1}{EBGaramond-OsF}{m}{n}{
      <-> \EBGaramond@@scale EBGaramond12-Regular-osf-t1
}{}

\DeclareFontShape{T1}{EBGaramond-OsF}{m}{it}{
      <-> \EBGaramond@@scale EBGaramond12-Italic-osf-t1
}{}

\DeclareFontShape{T1}{EBGaramond-OsF}{m}{scit}{
      <-> \EBGaramond@@scale EBGaramond12-Italic-osf-sc-t1
}{}

\DeclareFontShape{T1}{EBGaramond-OsF}{m}{sw}{
      <-> \EBGaramond@@scale EBGaramond12-Italic-osf-swash-t1
}{}

\DeclareFontShape{T1}{EBGaramond-OsF}{m}{nw}{
      <-> \EBGaramond@@scale EBGaramond12-Regular-osf-swash-t1
}{}

  \DeclareFontShape{T1}{EBGaramond-OsF}{b}{n}{
   <-> \zgm@@Scale   T1-zgm-b-osfI\zgm@@swq
  }{}

  \DeclareFontShape{T1}{EBGaramond-OsF}{b}{it}{
   <-> \zgm@@Scale   T1-zgm-bi-osfI\zgm@@swq
  }{}

  \DeclareFontShape{T1}{EBGaramond-OsF}{b}{sc}{
   <-> \zgm@@Scale   T1-zgm-b-osfI-sc\zgm@@swq
  }{}

  \DeclareFontShape{T1}{EBGaramond-OsF}{b}{scit}{
   <-> \zgm@@Scale   T1-zgm-bi-osfI-sc\zgm@@swq
  }{}


\DeclareFontShape{T1}{EBGaramond-OsF}{m}{scsl}{ <-> ssub * EBGaramond-LF/m/scit }{}
\DeclareFontShape{T1}{EBGaramond-OsF}{m}{sl}{ <-> ssub * EBGaramond-OsF/m/it }{}
\DeclareFontShape{T1}{EBGaramond-OsF}{b}{scsl}{ <-> ssub * EBGaramond-OsF/b/scit }{}
\DeclareFontShape{T1}{EBGaramond-OsF}{b}{sl}{<->ssub * EBGaramond-OsF/b/it}{}
\DeclareFontShape{T1}{EBGaramond-OsF}{b}{sw}{ <-> ssub * EBGaramond-OsF/b/sl }{}
\DeclareFontShape{T1}{EBGaramond-OsF}{b}{nw}{ <-> ssub * EBGaramond-OsF/b/n }{}
\DeclareFontShape{T1}{EBGaramond-OsF}{bx}{sc}{ <-> ssub * EBGaramond-OsF/b/sc }{}
\DeclareFontShape{T1}{EBGaramond-OsF}{bx}{n}{ <-> ssub * EBGaramond-OsF/b/n }{}
\DeclareFontShape{T1}{EBGaramond-OsF}{bx}{it}{ <-> ssub * EBGaramond-OsF/b/it }{}
\DeclareFontShape{T1}{EBGaramond-OsF}{bx}{scit}{ <-> ssub * EBGaramond-OsF/b/scit }{}
\DeclareFontShape{T1}{EBGaramond-OsF}{bx}{sw}{ <-> ssub * EBGaramond-OsF/b/sw }{}
\DeclareFontShape{T1}{EBGaramond-OsF}{bx}{nw}{ <-> ssub * EBGaramond-OsF/b/nw }{}
\DeclareFontShape{T1}{EBGaramond-OsF}{bx}{scsl}{ <-> ssub * EBGaramond-OsF/bx/scit }{}
\DeclareFontShape{T1}{EBGaramond-OsF}{bx}{sl}{ <-> ssub * EBGaramond-OsF/bx/it }{}


\endinput
\end{filecontents}

\begin{document}

\section{A section}

\kant[1]

\noindent{\bfseries \kant[1]}

ABC \textbf{ABC} abc \textbf{abc}

\end{document}

Lining Figures

Here's a variation on the example above of EBGaramond with Extended URW Garamond bold. This one using lining, rather than oldstyle, figures.

EBGaramond with Extended URW Garamond bold and lining figures

\end{document}

\documentclass{article}

\usepackage[T1]{fontenc}
\usepackage[scale=1.05,lining]{ebgaramond}
\usepackage{filecontents}
\begin{filecontents}{T1EBGaramond-LF.fd}
\ProvidesFile{T1EBGaramond-LF.fd}

\expandafter\ifx\csname EBGaramond@scale\endcsname\relax
    \let\EBGaramond@@scale\@empty
\else
    \edef\EBGaramond@@scale{s*[\csname EBGaramond@scale\endcsname]}%
\fi

\expandafter\ifx\csname zgm@Scale\endcsname\relax
 \let\zgm@@Scale\@empty
\else
 \edef\zgm@@Scale{s*[\csname zgm@Scale\endcsname]}%
\fi

\def\zgm@tmp{\ifzgm@swq \def\zgm@@swq{-swq}\fi}
\let\zgm@@swq\@empty
\ifdefined\zgm@swqtrue
  \zgm@tmp
\fi

\DeclareFontFamily{T1}{EBGaramond-LF}{}

\DeclareFontShape{T1}{EBGaramond-LF}{m}{sc}{
      <-> \EBGaramond@@scale EBGaramond12-Regular-lf-sc-t1
}{}

\DeclareFontShape{T1}{EBGaramond-LF}{m}{n}{
      <-> \EBGaramond@@scale EBGaramond12-Regular-lf-t1
}{}

\DeclareFontShape{T1}{EBGaramond-LF}{m}{it}{
      <-> \EBGaramond@@scale EBGaramond12-Italic-lf-t1
}{}

\DeclareFontShape{T1}{EBGaramond-LF}{m}{scit}{
      <-> \EBGaramond@@scale EBGaramond12-Italic-lf-sc-t1
}{}

\DeclareFontShape{T1}{EBGaramond-LF}{m}{sw}{
      <-> \EBGaramond@@scale EBGaramond12-Italic-lf-swash-t1
}{}

\DeclareFontShape{T1}{EBGaramond-LF}{m}{nw}{
      <-> \EBGaramond@@scale EBGaramond12-Regular-lf-swash-t1
}{}

  \DeclareFontShape{T1}{EBGaramond-LF}{b}{n}{
   <-> \zgm@@Scale   T1-zgm-b-lf\zgm@@swq
  }{}

  \DeclareFontShape{T1}{EBGaramond-LF}{b}{it}{
   <-> \zgm@@Scale   T1-zgm-bi-lf\zgm@@swq
  }{}

  \DeclareFontShape{T1}{EBGaramond-LF}{b}{sc}{
   <-> \zgm@@Scale   T1-zgm-b-lf-sc\zgm@@swq
  }{}

  \DeclareFontShape{T1}{EBGaramond-LF}{b}{scit}{
   <-> \zgm@@Scale   T1-zgm-bi-lf-sc\zgm@@swq
  }{}


\DeclareFontShape{T1}{EBGaramond-LF}{m}{scsl}{ <-> ssub * EBGaramond-LF/m/scit }{}
\DeclareFontShape{T1}{EBGaramond-LF}{m}{sl}{ <-> ssub * EBGaramond-LF/m/it }{}
\DeclareFontShape{T1}{EBGaramond-LF}{b}{scsl}{ <-> ssub * EBGaramond-LF/b/scit }{}
\DeclareFontShape{T1}{EBGaramond-LF}{b}{sl}{<->ssub * EBGaramond-LF/b/it}{}
\DeclareFontShape{T1}{EBGaramond-LF}{b}{sw}{ <-> ssub * EBGaramond-LF/b/sl }{}
\DeclareFontShape{T1}{EBGaramond-LF}{b}{nw}{ <-> ssub * EBGaramond-LF/b/n }{}
\DeclareFontShape{T1}{EBGaramond-LF}{bx}{sc}{ <-> ssub * EBGaramond-LF/b/sc }{}
\DeclareFontShape{T1}{EBGaramond-LF}{bx}{n}{ <-> ssub * EBGaramond-LF/b/n }{}
\DeclareFontShape{T1}{EBGaramond-LF}{bx}{it}{ <-> ssub * EBGaramond-LF/b/it }{}
\DeclareFontShape{T1}{EBGaramond-LF}{bx}{scit}{ <-> ssub * EBGaramond-LF/b/scit }{}
\DeclareFontShape{T1}{EBGaramond-LF}{bx}{sw}{ <-> ssub * EBGaramond-LF/b/sw }{}
\DeclareFontShape{T1}{EBGaramond-LF}{bx}{nw}{ <-> ssub * EBGaramond-LF/b/nw }{}
\DeclareFontShape{T1}{EBGaramond-LF}{bx}{scsl}{ <-> ssub * EBGaramond-LF/bx/scit }{}
\DeclareFontShape{T1}{EBGaramond-LF}{bx}{sl}{ <-> ssub * EBGaramond-LF/bx/it }{}


\endinput
\end{filecontents}

\begin{document}

ABCDEFGHIJKLMNOPQRSTUVWXYZ

\textbf{ABCDEFGHIJKLMNOPQRSTUVWXYZ}

abcdefghijklmnopqrstuvwxyz

\textbf{abcdefghijklmnopqrstuvwxyz}

0123456789

\textbf{0123456789}

\end{document}

Extended URW Garamond Medium and Bold

These examples do not use EBGaramond at all. Instead, they take Speravir's advice and use the extended fonts supplied by garamondx for both medium and bold.

Oldstyle Figures

Extended URW Garamond (OSF)

\documentclass{article}

\usepackage[full]{textcomp}
\usepackage[osfI]{garamondx}
\usepackage{kantlipsum}

\begin{document}

\section{A section}

\kant[1]

\noindent{\bfseries \kant[1]}

ABC \textbf{ABC} abc \textbf{abc}

Lining Figures

Extended URW Garamond (LF)

\documentclass{article}

\usepackage[full]{textcomp}
\usepackage{garamondx}

\begin{document}

ABCDEFGHIJKLMNOPQRSTUVWXYZ

\textbf{ABCDEFGHIJKLMNOPQRSTUVWXYZ}

abcdefghijklmnopqrstuvwxyz

\textbf{abcdefghijklmnopqrstuvwxyz}

0123456789

\textbf{0123456789}

\end{document}
share|improve this answer
    
Thanks!This does now work for me (on Fedora 20 linux). There are error messages: –  user3236841 Apr 1 at 1:41
    
mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input mgmb8t' failed to make mgmb8t.tfm. ! Font T1/EBGaramond-OsF/bx/n/10=mgmb8t at 10.0pt not loadable: Metric (TFM) fi le not found. <to be read again> relax l.80 \noindent{\bfseries \kant[1]} kpathsea: –  user3236841 Apr 1 at 1:41
    
@user3236841 Indeed. That is expected. As I said, you would need to substitute a font you actually have. My answer shows you how to do that but unless you have Monotype Garamond installed for use with pdfTeX, you'll need to substitute an alternative. All those mgm... are Monotype Garamond. I don't know what you wish to use instead. –  cfr Apr 1 at 8:40
    
@user3236841 I've added an example using URW Garamond's medium weight for bold text. You can install this more easily by just using the script included in TeX Live, for example. –  cfr Apr 1 at 9:40
    
Thanks! I was able to get getnonfreefonts following: tug.org/fonts/getnonfreefonts but the above code does not work.Specifically, I use latex test.tex where test.tex is the above and I get no pages of output. –  user3236841 Apr 1 at 22:10
\documentclass{article}

\usepackage{ebgaramond}


\begin{document}

abc \textbf{xyz}

\end{document}

warns you there is no bold:

LaTeX Font Info:    Font shape `OT1/EBGaramond-OsF/bx/n' in size <10> not avail
able
(Font)              Font shape `OT1/EBGaramond-OsF/m/n' tried instead on input 
line 7.

This comes from

\DeclareFontShape{OT1}{EBGaramond-OsF}{bx}{n}{ <-> ssub * EBGaramond-OsF/m/n }{}

So you could (but I wouldn't) specify a different substitution:

\documentclass{article}

\usepackage{ebgaramond}


\begin{document}
\DeclareFontShape{OT1}{EBGaramond-OsF}{bx}{n}{ <-> ssub * cmr/bx/n }{}
abc \textbf{xyz}

\end{document}

use bold computer modern and looks like this:

enter image description here

share|improve this answer
    
Thanks, this works! I need this because I want a narrow font which will take less space, yet I also want to have boldface characters. –  user3236841 Apr 1 at 1:37
    
Btw, there are some fonts at this website: gael-varoquaux.info/computers/garamond/index.html How do I get the document to substitute the boldface from there (while keeping all the other ebgaramond fonts to be the same). Thanks! –  user3236841 Apr 1 at 1:58
    
How do I substitute with the boldfaced from garamondx (instead of computer modern as in the above example)? –  user3236841 Apr 2 at 20:53
    
If you have a package that loads those fonts just look what the internal family name is instead of cmr –  David Carlisle Apr 2 at 21:00
1  
@user3236841 you can see the fd files in the log file (the encoding and family name makes the filename) but the other answer has a fully worked example of this –  David Carlisle Apr 2 at 23:27

I would really really like to discourage you from mixing a Garamond medium-weight upright and italic font with a Times-like bold and bold-italics font. (Incidentally, I'm not sure why you mention euler in your query, as it's a pure math font and thus completely unsuited for running text.)

If you must mix and match EB Garamond with another Garamond, you're probably best off doing so in LuaLaTeX or XeLaTeX. Care must definitely be exercised to equalize the x-heights of the various fonts being used. In the example below, EB Garamond is the font for upright and italics, and Adobe Garamond Pro is used for bold and bold-italics. There are two \setmainfont instructions; the first just loads EB Garamond, and the second uses the Scale=MatchLowercase font features on the Bold and Bold-Italics fonts.

enter image description here

% !TEX TS-program = lualatex   %% xelatex works too
\documentclass{article}
\usepackage{fontspec}
\setmainfont{EB Garamond}
\setmainfont[BoldFeatures = {Scale=MatchLowercase},
             BoldFont = Adobe Garamond Pro Bold,
             BoldItalicFeatures = {Scale=MatchLowercase},
             BoldItalicFont = Adobe Garamond Pro Bold Italic,
             Ligatures = {TeX,Common}]
            {EB Garamond}
\begin{document}
\section*{A section title}

Normal \emph{italics} {\bfseries bold} {\itshape\bfseries bold-italics}
\end{document}
share|improve this answer
    
This gives errors, using xelatex:"xparse/redefine-command" * Redefining document command \oldstylenums with arg. spec. 'm' on line 128. ************************************************* ) (/usr/share/texlive/texmf-dist/tex/latex/fontspec/fontspec-xetex.sty (/usr/share/texlive/texmf-dist/tex/latex/base/fontenc.sty ! Package fontenc Error: Encoding file `eu1enc.def' not found. (fontenc) You might have misspelt the name of the encoding. See the fontenc package documentation... l.99 \ProcessOptions* –  user3236841 Apr 1 at 22:25

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.