Research
- Crime Categories
- Murder Circumstances
- Charges
- Murder Numbers by SHR
- Definitions of Murder
- Crime Literature
- Other Literature
- Seminars
- Journal Ranking
- Laws
- Changes in Law and Reporting in Michigan
- Citation Guides
- Datasets
Writing
Methods
- BLP
- Econometrics Models
- Econometrics Tests
- Econometrics Resources
- Event Study Plots
- Metrics Literature
- Machine Learning
Python-related
- Python Basic Commands
- Pandas Imports and Exports
- Pandas Basic Commands
- Plotting in Python
- Python web scraping sample page
- Two Sample t Test in Python
- Modeling in Python
R-related
- R Basics
- R Statistics Basics
- RStudio Basics
- R Graphics
- R Programming
- Accessing MySQL Databases from R
Latex-related
Stata-related
SQL
Github
Linux-related
Conda-related
AWS-related
Webscraping
Interview Prep
Other
Citations in LaTeX
There are multiple ways to incorporate citation information in LaTeX. One of them is BibTeX and another one is BibLaTeX.
First, store bibliography items in .bib file. Google Scholars will generate BibTeX style citations.
BibTeX
In the header of the file, add
\usepackage{natbib}
Add the following commands in the LaTeX document, usually at the end of the file:
\bibliography{bibfilename}
\bibliographystyle{bstfilename}
The usual bibliography style is “plain”.
My own setup is:
\bibliography{D:/OneDrive/SYG Writeup/References}
\bibliographystyle{plain}
AEA style
If you are going with the AEA style, you can write:
\bibliographystyle{aea}
Of course, you would have downloaded the aea.bst file from the AEA website.
Cite webpages
Citation of webpages in natbib should be the following format (ref):
@Misc{Tho98w,
Author = "Len Thomas",
Title = "\emph{Statistical power analysis software}",
Note = "\url{http://www.forestry.ubc.ca/conservation/power/}
[Accessed: Whenever]",
year = 1998,
}
Abbreviations for author names
% use abbreviation for author name
\newcommand\mycitep[1]{\citepalias[\citeyear{#1}]{#1}}
\newcommand\mycitet[1]{\citetalias{#1} (\citeyear{#1})}
\defcitealias{aurora1994summary}{Aurora PD}
\defcitealias{fbi2012convert}{FBI}
BibLaTeX
\usepackage{biblatex}
\addbibresource{database.bib}
\begin{document}
\printbibliography
\end{document}
If you’re using TeXstudio to edit LaTeX files, make sure to change the configurations to allow Biber to compile bibliography rather than BibTeX. The way to do it is as follows:
Options -> Configure TeXstudio -> Build -> Default Bibliography Tool -> Biber
The compiling process goes like this:
Compile Bibliography Compile
My own setup is as follows:
\usepackage[authordate, backend = biber, sorting=nyt]{biblatex-chicago}
\addbibresource{D:/Dropbox/StandYourGroundLawWriteup/references.bib}
Law Citations
Citing statutes:
\footnote{\href{http://www.leg.state.fl.us/Statutes/index.cfm?App_mode=Display_Statute&URL=0700-0799/0776/Sections/0776.012.html}{\textsection 776.012, Fla. Stat. (2005)}.}