If you use biblatex+biber
it's simple. The syntax for producing a bibliography is slightly different: you define the .bib files in the preamble with the \addbibresource
command, load biblatex, and simply write
\printbibliography where you want it to be. Note I changed the input encoding to utf8
as biber
understands it.
Also, times
is obsolete, you should use mathptmx
or even better, newtx
. I don't see why you should load psfig
and epsfig
, since you load `graphicx.
\documentclass[oneside,12pt,leqno]{book}
\oddsidemargin=0pt
\evensidemargin=0pt
\topmargin=-0.5in
\textwidth=6.5in
\textheight=9.5in
%\topmargin=-1.5in
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{mathptmx}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{endnotes}
\usepackage{makeidx}
\usepackage{caption}
\usepackage{epstopdf}
\usepackage{adjustbox}
\usepackage{array}
\usepackage{filecontents}
\begin{filecontents}{test.bib}
@book{abram1972,
author = {Abramowitz, M. I. and Stegun, I. A.},
owner = {ray},
publisher = {Dover Publications},
title = {Handbook of Mathematical Functions with Formulas,Graphs, and Mathematical Tables},
year = {1972},
}
@book{austrian1982,
__markedentry = {[rayn:1]},
author = {Austrian, Geoffrey D},
owner = {mine_design},
publisher = {Columbia University Press},
title = {Herman Hollerith: forgotten giant of information processing},
year = {1982},
}
@book{babbage1832,
__markedentry = {[rayn:1]},
author = {Babbage, Charles},
owner = {mine_design},
publisher = {Taylor \& Francis},
title = {On the economy of machinery and manufactures},
year = {1832},
}
\end{filecontents}
\usepackage[backend=biber]{biblatex}
\addbibresource{test.bib}
\DeclareNameAlias{default}{last-first}
\begin{document}
\chapter{Test}
Old day at school \cite{abram1972,austrian1982,babbage1832}
\printbibliography
\end{document}
![enter image description here](https://i.stack.imgur.com/o2vaB.png)
You need to (a) change the label of the doi
field to note
and (b) encase the doi string in a \url{...}
directive. (The IEEEtran
document class loads the url
package automatically.)
A full MWE:
![enter image description here](https://i.stack.imgur.com/G5BJm.png)
\RequirePackage{filecontents}
\begin{filecontents}{mybib.bib}
@ARTICLE{r6,
author = {A. C. Seabaugh and Q. Zhang},
journal = {Proceedings of the IEEE},
title = {Low-Voltage Tunnel Transistors for Beyond {CMOS} Logic},
year = {2010},
volume = {98},
number = {12},
pages = {2095-2110},
keywords= {CMOS logic circuits;MOSFET;},
note = {doi: \url{10.1109/JPROC.2010.2070470}},
ISSN = {0018-9219},
month = dec,
}
\end{filecontents}
\documentclass{IEEEtran}
\bibliographystyle{IEEEtran}
\usepackage[colorlinks,urlcolor=blue]{hyperref} % optional
\begin{document}
\nocite{*}
\bibliography{mybib}
\end{document}
Incidentally, you should change the month field from month={Dec}
to month=dec
(no curly braces, lowercase "d"). You should also encase the word "CMOS" in curly braces to prevent BibTeX from lowercasing it.
Best Answer
To change line-spacing in a LaTeX document, either for the document as a whole or for selected parts, it's a good idea to load the setspace package in the preamble. Then, if the linespacing needs to be increased just for the bibliography, simply issue the instruction
immediately before
\bibliography{...}
if you use BibTeX, or immediately before\printbibliography
if you usebiblatex
.Aside: Loading the
setspace
package and issuing a\setstretch
directive is safer, in general, than using the low-level TeX macros\baselineskip
and\linespread
.