% Before compiling: run latex biblatex-asa.ins to create
% biblatex-asa.sty, biblatex-asa.bbx, and biblatex-asa.cbx
% (or use ./scripts/build.sh).
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[backend=biber]{biblatex-asa}

\addbibresource{biblatex-asa-example.bib}

\title{Using the biblatex-asa Package: A Demonstration}
\author{Example Author}
\date{\today}

\begin{document}

\maketitle

\section{Introduction}

This document demonstrates the usage of the \texttt{biblatex-asa} package, which provides American Sociological Association (ASA) citation and bibliography formatting for LaTeX documents.

\section{Citation Examples}

\subsection{Parenthetical Citations}

Basic parenthetical citations using \verb|\parencite|:
\begin{itemize}
    \item Single author: \parencite{brown2022}
    \item Two authors: \parencite{kao2003}
    \item Multiple citations: \parencite{brown2022,kao2003,smith2020a}
\end{itemize}

\subsection{Text Citations}

In-text citations using \verb|\textcite|:
\begin{itemize}
    \item \textcite{brown2022} argues that methodology is crucial.
    \item \textcite{kao2003} provide empirical evidence.
    \item According to \textcite{smith2020a}, recent developments suggest new directions.
\end{itemize}

\subsection{Different Entry Types}

The package handles various types of sources:
\begin{itemize}
    \item Journal articles: \parencite{brown2022}
    \item Books: \parencite{johnson2019}
    \item Book chapters: \parencite{wilson2021}
    \item Organizational reports: \parencite{WHO2022}
    \item Miscellaneous sources: \parencite{ASA1997}
\end{itemize}

\section{Package Options}

The \texttt{biblatex-asa} package supports several options:

\begin{itemize}
    \item \texttt{giveninits}: Use initials for given names
    \item \texttt{nogiveninits}: Use full given names (default)
    \item \texttt{backend=biber}: Use biber backend (recommended)
    \item \texttt{backend=bibtex}: Use bibtex backend
\end{itemize}

Example usage with options:
\begin{verbatim}
\usepackage[giveninits,backend=biber]{biblatex-asa}
\end{verbatim}

\section{Compilation}

To compile this document:
\begin{enumerate}
    \item \texttt{pdflatex biblatex-asa-with-package.tex}
    \item \texttt{biber biblatex-asa-with-package}
    \item \texttt{pdflatex biblatex-asa-with-package.tex}
    \item \texttt{pdflatex biblatex-asa-with-package.tex}
\end{enumerate}

\section{Conclusion}

The \texttt{biblatex-asa} package provides a convenient way to format citations and bibliographies according to ASA standards. It combines the power of biblatex with ASA-specific formatting requirements.

\nocite{*}

\section*{In-text Citation Examples}

As \textcite{bernard1957} argues, experimental medicine is foundational.

Urbanization trends are discussed by \textcite{lee2021a} and \textcite{lee2021b}.

\textcite{deschenes2000} provide a computer file resource for supervised release studies.

According to \textcite{WHO2022}, global health is a major concern.

Mystery remains about the unknown year \parencite{doe_nodate}.

The gender significance of class is explored in \textcite{szelenyiForthcoming}.

Goodman analyzed latent structure in 1947 \parencite{goodman1947a, goodman1947b}.

See \parencite[63--93]{sampson1992} for a discussion of family management.

Several works address this topic \parencite{brown2022,kao2003,smith2020a}.

See dataset \textcite{charles1990} for more details.

See \textcite{usbc1960} for census data.

See \textcite{ASA1997} for the ASA action alert.

For example, some classic studies \parencite[e.g., ][]{abbott1981,phillips2001} have discussed this topic.

\printbibliography[title={REFERENCES}]

\end{document}
