bibliography_demo.tex

Download
latex 139 lines 4.3 KB
  1% bibliography_demo.tex
  2% Demonstrates BibLaTeX citation management with various citation styles
  3% Compile: pdflatex -> biber -> pdflatex -> pdflatex
  4
  5\documentclass[12pt,a4paper]{article}
  6
  7% BibLaTeX package for bibliography management
  8\usepackage[
  9    backend=biber,
 10    style=authoryear,  % Options: numeric, authoryear, alphabetic, apa
 11    sorting=nyt,       % Sort by name, year, title
 12    maxbibnames=99,
 13    maxcitenames=2,
 14    giveninits=true
 15]{biblatex}
 16
 17% Add the bibliography file
 18\addbibresource{references.bib}
 19
 20\usepackage[utf8]{inputenc}
 21\usepackage[T1]{fontenc}
 22\usepackage{hyperref}
 23\usepackage{csquotes}
 24
 25\title{Bibliography Management with BibLaTeX}
 26\author{LaTeX Student}
 27\date{\today}
 28
 29\begin{document}
 30
 31\maketitle
 32
 33\begin{abstract}
 34This document demonstrates various citation styles and bibliography management
 35using BibLaTeX. We explore different citation commands, reference types, and
 36formatting options commonly used in academic writing.
 37\end{abstract}
 38
 39\tableofcontents
 40
 41\section{Introduction}
 42
 43Proper citation is essential in academic writing. BibLaTeX provides a modern,
 44flexible system for managing bibliographies in LaTeX documents
 45\parencite{lamport1994latex}. This example demonstrates various citation
 46techniques.
 47
 48\section{Different Citation Styles}
 49
 50\subsection{Parenthetical Citations}
 51
 52The most common form of citation uses parentheses. For example, deep learning
 53has revolutionized computer vision \parencite{goodfellow2016deep}. When citing
 54multiple works, you can use \parencite{lecun2015deep, schmidhuber2015deep}.
 55
 56\subsection{Textual Citations}
 57
 58When the author is part of the sentence, use textual citations. As
 59\textcite{hinton2006fast} demonstrated, deep belief networks can learn
 60hierarchical representations. Similarly, \textcite{krizhevsky2012imagenet}
 61showed breakthrough results on ImageNet classification.
 62
 63\subsection{Author-Only and Year-Only}
 64
 65Sometimes you need just the author: \citeauthor{vaswani2017attention} introduced
 66the Transformer architecture. Or just the year: This was published in
 67\citeyear{vaswani2017attention}.
 68
 69\section{Reference Types}
 70
 71\subsection{Journal Articles}
 72
 73Recurrent neural networks have shown impressive results in sequence modeling
 74\parencite{hochreiter1997long}. The LSTM architecture addressed the vanishing
 75gradient problem \parencite{bengio1994learning}.
 76
 77\subsection{Books and Conference Papers}
 78
 79For comprehensive introductions to machine learning, refer to
 80\textcite{bishop2006pattern}. The ResNet architecture \parencite{he2016deep}
 81introduced skip connections that enabled training of very deep networks.
 82
 83\subsection{Online Resources}
 84
 85Many important papers are now published on arXiv \parencite{arxiv2020gpt3}.
 86The TensorFlow library documentation \parencite{tensorflow2015whitepaper}
 87provides practical implementation guidance.
 88
 89\section{Advanced Citation Features}
 90
 91\subsection{Multiple Citations}
 92
 93Recent work in transformer models \parencites{vaswani2017attention}%
 94{devlin2019bert}{brown2020language} has transformed natural language processing.
 95
 96\subsection{Prenotes and Postnotes}
 97
 98For specific page references, use postnotes: \parencite[p.~42]{goodfellow2016deep}.
 99You can also add prenotes: \parencite[see][ch.~6]{bishop2006pattern}.
100
101\subsection{Suppressing Author or Year}
102
103In some cases, you want to suppress the author \parencite*{lamport1994latex}
104or cite without parentheses \cite{lecun2015deep}.
105
106\section{Full Citations in Text}
107
108Sometimes you need a full citation in the text rather than at the end:
109\fullcite{hinton2006fast}
110
111\section{Nocite Examples}
112
113You can include references in the bibliography without citing them in text
114using \verb|\nocite|. This is useful for "recommended reading" sections.
115
116% Uncomment to include uncited reference
117% \nocite{schmidhuber2015deep}
118
119\section{Conclusion}
120
121BibLaTeX offers powerful and flexible bibliography management. The
122\texttt{biber} backend provides Unicode support, flexible sorting, and
123advanced features that surpass traditional BibTeX \parencite{lamport1994latex}.
124
125\subsection{Compilation Instructions}
126
127To compile this document:
128\begin{enumerate}
129    \item Run: \texttt{pdflatex bibliography\_demo}
130    \item Run: \texttt{biber bibliography\_demo}
131    \item Run: \texttt{pdflatex bibliography\_demo}
132    \item Run: \texttt{pdflatex bibliography\_demo}
133\end{enumerate}
134
135% Print the bibliography
136\printbibliography[title={References}]
137
138\end{document}