\documentclass[]{article}
\usepackage[natbib=true,backend=biber,style=apa]{biblatex}

\title{APA Guidance in \LaTeX} 

\addbibresource{sample.bib}

\begin{document} 

\maketitle 


\section{Introduction}
LaTeX supports the latest \textit{APA 7th edition} reference style through the \texttt{biblatex} package. By combining \texttt{biblatex} with the \texttt{biber} backend, citations and bibliographies are automatically formatted to meet current publishing standards. 

We have used the below command to get the references in APA style.
\verb+\usepackage[natbib=true,backend=biber,style=apa]{biblatex}+



\subsection{Formatting Citations}

\noindent\begin{tabular}{@{}ll}
\bf Type&\bf Results\\
\hline
\verb+\citet{ref2}+&\citet{Goossens1993}\\
\verb+\citet[chap. 2]{ref2}+&\citet[chap. 2]{Goossens1993}\\
    \verb+\citep{ref2}+	    &   	\citep{Goossens1993}\\
    \verb+\citep[chap. 2]{ref2}+ 	&    	\citep[chap. 2]{Goossens1993}\\
    \verb+\citep[see][]{ref2}+ 	 &    	\citep[see][]{Goossens1993}\\
    \verb+\citep[see][chap. 2]{ref2}+ 	&    	\citep[see][chap. 2]{Goossens1993}\\
    \verb+\citet*{ref2}+ 	    &    	\citet*{Goossens1993}\\
    \verb+\citep*{ref2}+	    &    	\citep*{Goossens1993} \\
\end{tabular}

Sample cross references are follows: \citet*{Einstein1905}, \citet*{Knuth1986}, \citet*{Chen2023}

\printbibliography

\section{Latex Compilation}
Run the following sequence

\noindent\verb+pdflatex sample.tex+\\
\verb+biber sample+\\
\verb+pdflatex sample.tex+\\
\verb+pdflatex sample.tex+\\


\end{document}

