-
Notifications
You must be signed in to change notification settings - Fork 1
/
Bib.Article.tex
139 lines (100 loc) · 4.72 KB
/
Bib.Article.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
%% Kyle Davis, Ohio State University
% Using bibtex consider the following:
%! 1. you must have your .bib file and this working LaTeX document in the same location on your PC,
% I reccomend a seperate folder, neatly organized for your project.
%
%! 2. Consider setting up a Quick Build shortcut:
% Options -> Configure TexMaker -> Quick Build ->
% User Wizard -> Set order:: Latex, bibtex, pdflatex, pdflatex(again), pdfViewer. -> OK
%
% Then you can use quick build (up top) to generate updates and run your file!
%--------------------- Preamble ---------------------
\documentclass[12pt]{article}
% Packages used. Explained in some more details at:
% https://github.com/KyleDavisGithub/LaTeX-Templates/blob/master/Memo-template.tex
%\usepackage[T1]{fontenc}
%! tex tools: including "natbib" for our bibliography
\usepackage{graphicx, fullpage, natbib, float, relsize, epsfig}
% Math tools:
\usepackage{amsfonts, amsmath, amsthm, amssymb, mathtools}
% Margins:
\usepackage[top = 1in, left = 1in, right = 1in, bottom = 1in]{geometry}
\usepackage[bookmarks = false, hidelinks]{hyperref}
%\usepackage{baskervald}
%\usepackage[style = american]{csquotes}
%\usepackage[american]{babel}
\usepackage{wrapfig} % Wrap Figures and caption easier
\usepackage{caption}
%--------------------- Formatting ------------------------------
%% For longer projects, consider to-do notes for workflow
% Very helpful for picking up where you left off!
\usepackage{todonotes}
% \todo
% https://tex.stackexchange.com/questions/9796/how-to-add-todo-notes
% Table of Contents Formatting (babel) for renaming the Table of Contents (to "Navigation")
%\addto\captionsamerican{ \renewcommand*\contentsname{Navigation} }
%-------------------- Document ----------------------------
\begin{document}
%\graphicspath{ path for images/figures }
\begin{flushleft}
\setlength{\parindent}{1cm} %1cm indent
% Doesn't apply page number
\thispagestyle{empty}
\noindent \textbf{Introduction}\\
\hfill \\
Some Introduction before the table of contents.
\hfill \\
% To put this on the next page:
% \clearpage
% Table of Contents will read section titles and subtitles and list them alongside their associated page number.
\tableofcontents
% What's cool is that as your document grows you can simply click the TOC page to get to where you want to go!
%page style empty eliminates page count. The count I've set to begin later when it's page 1: onward.
\thispagestyle{empty}
%---------------------- Main Body --------------------------
\clearpage
\setcounter{page}{1}
\section{A Section To Begin All Sections:}
Some text.
\section{Nail Biting Conclusion:}
Ending text which will cite \citep{cary1967influence}.
\hfill \\
% To add a TOC item:
\addcontentsline{toc}{section}{Optional Sub-Section}
\noindent \textbf{Optional Sub-Section to be Paired With Table of Contents Line:}
% Citing via .bib:
This text will cite things differently \cite{cary1967influence}. Note these citation codes are different, one just uses parentheses and the other will cite the authors last name along the year in parentheses. Added example \citep{waltz2001man}. Multiple authors \citep{hibbing2013predisposed}.
%-----------------------Bibliography----------------------------
\clearpage
% Groups bibtex cite options:
\begingroup
% If commented out, this will not included references in
% the references page if not \cite'ed in paper.
%\nocite{*}
%\setlength{\bibsep}{12pt}
% To double space and stretch all cites:
%\setstretch{2}
% Have your file in the same location as this tex document, then just name the .bib file here:
\bibliography{BibFile}
% There's a ton of different options here, I prefer APSR but you can change this to anything!
% It will code everything automatically.
\bibliographystyle{plain}
% Or; apa
% ; plain
% ; apsr
% ; humannat
% ; chicago (?)
\endgroup
%---------------- Final Thoughts ----------------------
% Consider keeping a .bib file for projects and papers for a few different reasons:
% 1. Changing formatting just a click away for different journals or reviewers.
% 2. All of your citations are in one place, a .bib can keep notes on each cite and their take aways (talk about concise note spaces!)
% 3. If colleagues ever want to learn more about a topic the .bib file can really help them get a quick head-start!
% Or consider keeping all of the articles you read in a .bib file where you can have notes on everything, and can easily cite when needed.
%---------------- Common Errors: ----------------------
% - having more than one .bib file in the same location
% - not being case sensitve in the \bibliography location
% - The .bib file having a commented out citation
%-------------------------------------------------------
\end{flushleft}
\end{document}