1

I'm completely new to LaTeX and I was asked to write my capstone project using it. My advisor gave me a starting template that worked very well except for one thing: the chapter numbers are not bold even though the chapter names are.

Example:

1 INTRODUCTION

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

On the summary, both chapters numbers and chapter names are in bold.

Example:

1 INTRODUCTION

2 OBJECTIVES

Is there a way to turn the chapter numbers bold?

The MWE derives from abntex2 (version v-1.7.1 by laurocesar) and has two files:

ifpe-abntex2.cls

\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{ifpe-abntex2}[2017/07/31 v1.0 Modelo do Instituto Federal de Pernambuco baseado em abnTeX2]

\DeclareOption*{%
  \PassOptionsToClass{\CurrentOption}{abntex2}%
}
\ProcessOptions\relax
\LoadClass{abntex2}

\renewcommand{\imprimircapa}{%
    \begin{capa}%
        \begin{center}
            \vfill
            {\MakeUppercase{The title}}
            \vfill
            \imprimirdata
        \end{center}
    \end{capa}
}

\makeatletter
\renewcommand{\folhaderostocontent}{
    \begin{center}
        {\MakeUppercase{A}}
        \vfill
        \textbf{\MakeUppercase{The title}}
        \vfill
    \end{center}
}
\makeatother

and main.tex

\documentclass[
    12pt,
    openright,
    twoside,
    a4paper,
    chapter=TITLE,
    section=TITLE,
    subsection=TITLE,
    %subsubsection=TITLE,
    english,
    french, 
    spanish,
    brazil,
    ]{ifpe-abntex2}

\usepackage{cmap}
\usepackage{lmodern}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lastpage}
\usepackage{indentfirst}
\usepackage{color}
\usepackage{graphicx}
\usepackage{amssymb,amsmath,amsthm,amsfonts}

\usepackage{lipsum}

\usepackage{float}

\usepackage{listings}
\renewcommand{\lstlistingname}{}
\renewcommand{\lstlistlistingname}{\textbf{Source Codes}}
\begingroup\makeatletter
\let\newcounter\@gobble\let\setcounter\@gobbletwo
  \globaldefs\@ne \let\c@loldepth\@ne
  \newlistof{listings}{lol}{\lstlistlistingname}
  \newlistentry{lstlisting}{lol}{0}
\endgroup
\renewcommand{\cftlstlistingaftersnum}{\hfill--\hfill}
\let\oldlstlistoflistings\lstlistoflistings
\renewcommand{\lstlistoflistings}{%
   \begingroup%
   \let\oldnumberline\numberline%
   \renewcommand{\numberline}{\lstlistingname\space\oldnumberline}%
   \oldlstlistoflistings%
   \endgroup}

\usepackage{subfig}

\lstset{
  inputencoding=utf8,
  extendedchars=true,
  basicstyle=\footnotesize\ttfamily,
  showstringspaces=false,
  showspaces=false,
  numbers=left,
  numberstyle=\footnotesize,
  numbersep=5pt,
  tabsize=2,
  breaklines=true,
  showtabs=false,
  captionpos=t,
  xleftmargin=\parindent,
  literate={ö}{{\"o}}1 {ä}{{\"a}}1 {ü}{{\"u}}1 {ç}{{\c{c}}}1 {â}{{\^a}}1 {á}{{\'a}}1 {í}{{\'i}}1
}

\usepackage[T1]{fontenc}
\usepackage{uarial}
\renewcommand{\familydefault}{\sfdefault}

\usepackage[brazilian,hyperpageref]{backref}
\usepackage[alf,abnt-emphasize=bf,abnt-full-initials=yes,bibjustif]{abntex2cite}

\renewcommand{\backrefpagesname}{Citation on page(s):~}
\renewcommand{\backref}{}
\renewcommand*{\backrefalt}[4]{
    \ifcase #1 %
        %No citation on text.%
    \or
        %Citation on page #2.%
    \else
        %#1 citations on pages #2.%
    \fi}%
% ---


\definecolor{blue}{RGB}{41,5,195}

\makeatletter
\hypersetup{
        pdftitle={\@title}, 
        pdfauthor={\@author},
        pdfsubject={\imprimirpreambulo},
        pdfcreator={LaTeX with abnTeX2},
        pdfkeywords={abnt}{latex}{abntex}{abntex2}{trabalho acadêmico}, 
        colorlinks=false,
        linkcolor=blue,
        citecolor=blue,
        filecolor=magenta,
        urlcolor=blue,
        bookmarksdepth=4
}
\makeatother

\setlength{\parindent}{1.3cm}
:
\setlength{\parskip}{0.2cm}

\makeindex

\begin{document}

\frenchspacing 

\imprimircapa

\pdfbookmark[0]{\contentsname}{toc}
\tableofcontents*
\cleardoublepage

\textual

\chapter{INTRODUCTION}
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

\chapter{OBJECTIVES}
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

\printindex

\end{document}
  • 2
    could you add the MWE? – Raaja Feb 5 at 14:52
  • 2
    Without code we have no starting point or idea about what you are doing. Normal chapters does not loot like this, so please help us help you. – daleif Feb 5 at 14:57
  • 1
    \chapter{INTRODUCTION} Lorem ipsum dolor sit amet,... I think it would be more helpful if I attached the original template... Is there a way to do so? – acsn Feb 5 at 14:58
  • 2
    it is very helpful if you provide a minimal working example (mwe), a small complete document begining with \documentclass{...} and ending with \end{document}, which reproduce your problem. so, please edit your question and add mwe. – Zarko Feb 5 at 15:54
  • by default the number and words are in the same font, so unless you show an example it is hard to tell you what to change, – David Carlisle Feb 5 at 20:00

Your Answer

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

Browse other questions tagged or ask your own question.