I have three questions:
-
how to remove the brackets in footnote?
-
how to edit the reference info in order to show the full name of author/institute? (solved)
-
how to show a citation as "[1]Author, book " in footcite and bibliography? I have tried \setcitestyle{square}, but it comes out error.
Thank you
\documentclass[12pt]{article}
\usepackage[english]{babel}
\usepackage[a4paper, text={16.5cm, 25.2cm}, centering]{geometry}
\usepackage[sfdefault]{ClearSans}
\usepackage[utf8]{inputenc}
\setlength{\parskip}{1.2ex}
\setlength{\parindent}{0em}
\usepackage{filecontents}
\usepackage[backend=bibtex,
style=authortitle-comp,
natbib=true,
]{biblatex}
\begin{filecontents}{\jobname.bib}
\documentclass[12pt]{article}
\usepackage[english]{babel}
\usepackage[a4paper, text={16.5cm, 25.2cm}, centering]{geometry}
\usepackage[sfdefault]{ClearSans}
\usepackage[utf8]{inputenc}
\usepackage{hyperref}
\usepackage{xcolor}
\hypersetup{
colorlinks,
linkcolor={black},
citecolor={blue!50!black},
}
\setlength{\parskip}{1.2ex}
\setlength{\parindent}{0em}
\usepackage{filecontents}
\usepackage[backend=bibtex,
style=authortitle-comp,
natbib=true,
]{biblatex}
\begin{filecontents}{\jobname.bib}
@Electronic{unintentional,
Title = {Accidents or Unintentional Injuries},
Author = {National Center for Health Statistics},
Note = {[Accessed on August 10, 2016]. Available on:\textcolor{blue}{http://www.cdc.gov/nchs/fastats/accidental-injury.htm}}
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
here is just a test . \footnote{\label{note1}\footcite{unintentional}}
\printbibliography
\end{document}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
here is just a test . \footnote{\label{note1}\footcite{unintentional}}
\printbibliography
\end{document}
Best Answer
The code of your example is broken (e.g. two
\documentclass
). After fixing this the problem persists, becausebiblatex
tries to split the organization name National Center for Health Statistics at theauthor
field into firstname and lastname. You can avoid this using extra braces:BTW:
\footcite
isn't made to be used inside\footnote
but makes a footnote itself.Generally I would suggest to use
biber
instead ofbibtex
. Newbiblatex
features needbiber
. It is time to change.To get cites with numbers in brackets you can use the
numeric
style ofbiblatex
. But\footcite
won't show the author and title in this case. Audrey has already shown in how to define such a footcite command:This will produce:
Note, I've also replaced the
Note
field byURL
andurldate
. See thebiblatex
manual for more information about these and about how to customize the output of the URL date.If you need a similar cite command, that does not create a footnote itself but can be used inside
\footnote
or somewhere else without creating a footnote just use the same definitions without the optional argument\mkbibfootnote
:With this you can use:
To create a footnote with label.
Please read the documentation of the used commands, i.e.,
\DeclareCiteCommand
in thebiblatex
manual for more information about creating new cite commands.