-
Notifications
You must be signed in to change notification settings - Fork 1
/
latexdemo.tex
48 lines (35 loc) · 1.22 KB
/
latexdemo.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
\documentclass[draft]{article}
\usepackage[utf8]{inputenc}
\usepackage[UKenglish]{babel}
% === citation configuration to meet CUHarvard ===
\input{HarvardCoventry}
% === creates the bib file ===
% for a real document you really should have your citations stored as a seperate file
\usepackage{filecontents}
\begin{filecontents*}{refs.bib}
@BOOK
{KandR,
AUTHOR = "Kernighan, Brian W. and Ritchie, Dennis M.",
TITLE = "{The C Programming Language Second Edition}",
PUBLISHER = "Prentice-Hall, Inc.",
YEAR = 1988
}
@ONLINE
{CUEDCplusplus,
AUTHOR = "Love, T.P.",
TITLE = "{CUED C++}",
YEAR = 2008,
URL = "http://www-h.eng.cam.ac.uk/help/tpl/languages/C++.html",
urlmonth = may,
URLYEAR = 2010
}
\end{filecontents*}
\addbibresource{refs.bib} %Imports bibliography file
\begin{document}
\section{First section}
The Einstein's journal paper \autocite{KandR} and the Dirac's book \autocite[42]{CUEDCplusplus} are physics related items. Next, a citation about \textit{The \LaTeX\ Companion} book \autocites{KandR}{CUEDCplusplus} .
% === uncomment if you are doing a bibliography rather than a list of references ===
%\nocite{*}
%\printbibliography[title=Bibliography]
\printbibliography
\end{document}