0

I'm using a template that I can't/shouldn't modify. This template forces a font which is not the normal font of latex, how can I restaure the automatic font (I think which is Serif by default)

The template:

\documentclass[12pt, openany]{report}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[a4paper,left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}
\usepackage[english]{babel}
\usepackage{libertine}
\usepackage[pdftex]{graphicx}


\setlength{\parskip}{1ex plus 0.5ex minus 0.2ex}
\newcommand{\hsp}{\hspace{20pt}}
\newcommand{\HRule}{\rule{\linewidth}{0.5mm}}

\begin{document}

\begin{titlepage}
  \begin{sffamily}
  \begin{center}

    % Upper part of the page. The '~' is needed because \\
    % only works if a paragraph has started.
    %\includegraphics[scale=0.04]{img1.JPG}~\\[1.5cm]

    \textsc{\LARGE HEC}\\[2cm]

    \textsc{\Large INTERNSHIP'S REPORT 2nd YEAR}\\[5cm]

    % Title
    \HRule \\[0.4cm]
    { \huge \bfseries System recommendations of Routes-
Experimentation In a dynamic research project\\[0.4cm] } 

\HRule \\[8cm]
    %\includegraphics[scale=0.2]{img2.JPG}
    Abstract
This document aims to give an overview of the internship I carried out from June 15 to September 11 2015 in xxxxx, in order to complete my 2nd year of engineering at xxxx.
KEYWORDS: Java, Maven, Iinerary, Recommendation, Context, Capsule, Collector, Application

    % Author and supervisor
    \begin{minipage}{0.4\textwidth}
      \begin{flushleft} \large 
        xxxx \textsc{xxxxx}\\
        Promo 2016\\
      \end{flushleft}
    \end{minipage}
    \begin{minipage}{0.4\textwidth}
      \begin{flushright} \large
        \emph{Supervisor :} Mme. \textsc{xxxxx}\\
        %\emph{Chef d'équipe : } M. Chef \textsc{D’Équipe}
      \end{flushright}
    \end{minipage}

    \vfill

    % Bottom of the page
    %{\large 1\ier{} Juillet 2013 — 30 Août 2013}

  \end{center}
  \end{sffamily}
\end{titlepage}





%\maketitle
\tableofcontents
\chapter*{Acknowledgments}
moewe
  • 175,683
Sino
  • 41

1 Answers1

1

This may be an old question but it is still missing a formal answer which I'd like to provide. As already mentioned in the comments, there are two commands affecting the choice of fonts:

  1. \usepackage{libertine}

  2. \begin{sffamily}...\end{sffamily}

Searching on the internet will reveal that the libertine package "pro­vides the Lib­er­tine and Bi­olinum fonts in both Type 1 and OTF styles, to­gether with sup­port macros for their use" as can be read here: https://ctan.org/pkg/libertine

You should use the lmodern package instead as the Latin Modern family successes the Computer Modern family (the latter being the default font family in LaTeX).

The sffamily "environment" sets every font in it (and all text after it because it is not an environment) to sans serif. You have to remove the sffamily command / "environment" if you want serif font.