2

I would like to use Merriweather as my serif font but the default font size is too large and it makes the document look out of balance.

How can I make Merriweather smaller so that it fits better with other fonts? I don't want to scale all fonts (using relscale) because this would still not balance the fonts. If I make the sans-serif font larger, the footnotes and image captions are still bad.

Below is the sample document I'm using.

\documentclass{article}

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}

\usepackage{amsmath,amssymb}

% comment out this line to remove Merriweather
\usepackage{merriweather}

\usepackage{titlesec}
\titleformat*{\section}{\bfseries\Large\sffamily}
\titleformat*{\subsection}{\bfseries\large\sffamily}
\titleformat*{\subsubsection}{\bfseries\normalsize\sffamily}

\usepackage{hyperref}
\usepackage{lipsum}
\usepackage{microtype}

\title{Fonts for \LaTeX}

\begin{document}

\maketitle

\section{Section}

\lipsum[1]


Inline Math $x=4$ more text. An inline link \url{https://www.gogole.com}.

\begin{displaymath}
\Delta G^{\circ}= -R\,T\ln \dfrac{[S_1][S_2]}{[S_1S_2]}.
\end{displaymath}

Some text \texttt{Hello World} and more\footnote{A footnote to test the font size of footnotes.}. 

\subsection{Subsection Title}

\lipsum[2]

\subsubsection{Subsubsection Title}

\lipsum[3]

\end{document}

With Merriweather: With Merriweather

Default font: Default font

With libertine: With libertine

6
  • You can use scale= to scale the font (size) and one of the other package options to control the weight.
    – TeXnician
    Aug 13, 2018 at 20:24
  • 1
    The default maths font (Computer Modern) does not fit well Merriweather!
    – Bernard
    Aug 13, 2018 at 21:10
  • I really, really, really hope you won't be typesetting math in a document with Merriweather as the main text font. It's not just a question of relative size, as your first image clearly shows.
    – egreg
    Aug 14, 2018 at 8:33
  • @egreg You mean I should not typeset math at all if I use Merryweather or I should not set math in Merryweather? I'm not doing the latter.
    – dominik
    Aug 15, 2018 at 15:22
  • The Computer Modern math fonts are visually incompatible with Merryweather; if you don't find a matching math font, math in your document will be a punch in the eye.
    – egreg
    Aug 15, 2018 at 15:30

2 Answers 2

4

There is no option to scale the serif font, the scale option scales only the sans serif, but you can redefine the internal scale command:

\documentclass{article}

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}

\usepackage{amsmath,amssymb}

% comment out this line to remove Merriweather
\usepackage[]{merriweather}

\usepackage{titlesec}
\titleformat*{\section}{\bfseries\Large\sffamily}
\titleformat*{\subsection}{\bfseries\large\sffamily}
\titleformat*{\subsubsection}{\bfseries\normalsize\sffamily}

\usepackage{hyperref}
\usepackage{lipsum}
\usepackage{microtype}

\title{Fonts for \LaTeX}

\makeatletter
\renewcommand\Merriweather@scale{0.5} %adapt to your liking
\makeatother
\begin{document}

\maketitle

\section{Section}

\lipsum[1]


Inline Math $x=4$ more text. An inline link \url{https://www.gogole.com}.

\begin{displaymath}
\Delta G^{\circ}= -R\,T\ln \dfrac{[S_1][S_2]}{[S_1S_2]}.
\end{displaymath}

Some text \texttt{Hello World} and more\footnote{A footnote to test the font size of footnotes.}.

\subsection{Subsection Title}

\lipsum[2]

\subsubsection{Subsubsection Title}

\lipsum[3]

\end{document}

enter image description here

1

I decreased the font to 10 pt and slightly increased the character of the mathematical font. I hope it's okay. See also this link: http://www.ctex.org/documents/packages/special/moresize.pdf to page 5.

enter image description here

\documentclass[10pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}

\usepackage{amsmath,amssymb}

% comment out this line to remove Merriweather
\usepackage{merriweather}

\usepackage{titlesec}
\titleformat*{\section}{\bfseries\Large\sffamily}
\titleformat*{\subsection}{\bfseries\large\sffamily}
\titleformat*{\subsubsection}{\bfseries\normalsize\sffamily}
\usepackage{hyperref}
\usepackage{lipsum}
\usepackage{microtype}
\makeatletter
\DeclareMathSizes{\@xipt}{\@xiipt}{12}{14}
\makeatother


\title{Fonts for \LaTeX}

\begin{document}

\maketitle

\section{Section}

\lipsum[1]


Inline Math $x=4$ more text. An inline link \url{https://www.google.com}.

\begin{displaymath}
\Delta G^{\circ}= -R\,T\ln \dfrac{[S_1][S_2]}{[S_1S_2]}.
\end{displaymath}

Some text \texttt{Hello World} and more\footnote{A footnote to test the font size of footnotes.}. 

\subsection{Subsection Title}

\lipsum[2]

\subsubsection{Subsubsection Title}

\lipsum[3]

\end{document}

You must log in to answer this question.

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