The latex package "indentfirst" not working in R-markdown

I am trying to indent the first line after a section header using the indentfirst package but it is not working.

title: "Evaluation of Coaching Teachers by Program"
- \usepackage{indentfirst}
- \usepackage{booktabs}
- \usepackage{amsmath}
- \usepackage{pdflscape}
- \newcommand{\blandscape}{\begin{landscape}}
- \newcommand{\elandscape}{\end{landscape}}
- "Office of Assessment and Accreditation"
- "University of South Carolina"
date: "August 2019"
output: pdf_document

The purpose of this report is to provide an overview. 

\section{\textbf{Overview of all programs}}

Here is the latex output

\usepackage{fixltx2e} % provides \textsubscript
\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
\else % if luatex or xelatex
% use upquote if available, for straight quotes in verbatim environments
% use microtype if available
\UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
            pdftitle={Evaluation of Coaching Teachers by Program},
            pdfauthor={Office of Assessment and Accreditation; University of South Carolina},
            pdfborder={0 0 0},
\urlstyle{same}  % don't use monospace font for urls
\def\maxwidth{\ifdim\[email protected]@width>\linewidth\linewidth\else\[email protected]@width\fi}
\def\maxheight{\ifdim\[email protected]@height>\textheight\textheight\else\[email protected]@height\fi}
% Scale images if necessary, so that they will not overflow the page
% margins by default, and it is still possible to overwrite the defaults
% using explicit options in \includegraphics[width, height, ...]{}
}{% else
\setlength{\parskip}{6pt plus 2pt minus 1pt}
\setlength{\emergencystretch}{3em}  % prevent overfull lines
% Redefines (sub)paragraphs to behave more like sections

%%% Use protect on footnotes to avoid problems with footnotes in titles

%%% Change title format to be more compact

% Create subtitle command for use in maketitle


  \title{Evaluation of Coaching Teachers by Program}
    \author{Office of Assessment and Accreditation \\ University of South Carolina}
    \date{August 2019}





The purpose of this report is to provide an overview of in

\section{\textbf{Overview of all programs}}



I want the first line after the section header to be indented.


The indentfirst package works, but something added \setlength{\parindent}{0pt} to your code, so the indention of the first paragraph is not visible because it is zero.

To revert this try with


in your header includes.

Posted on by