BibTeX, biblatex and biberreferences only first letter of first name; double dot

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
Franzi_LaTeX
Posts: 10
Joined: Sun Jun 24, 2018 1:24 am

references only first letter of first name; double dot

Post by Franzi_LaTeX »

Hi everyone! :)

I am using biber for my references and it is working so far. Unfortunately, I am required to list my references as follows:

Moorkuhle, U. (1967): „Rezession und Präzession – Astronomie im Spiegel der Krise“; in: Philosophische Rundschau Nr. 83.

As you can see: Only the first letter of the first name and a double dot behind the year.
If possible, it would also be great to cite the author and year in bold.
Unfortunately, I did not find any citation / reference style that does references in this way. Therefore, I just used Apa. Do you know whether it is possible to do the references as required?
Thanks a lot for your help.
This is my tex so far:

Code: Select all

\usepackage[backend=biber, ´
style=authoryear-icomp, 
sorting=nyt, 
url=true,
natbib=true, 
hyperref=true, 
]{biblatex}

\DeclareLanguageMapping{english}{american-apa}
\bibliography{Terrorism_Bibliography.bib}
Last edited by Franzi_LaTeX on Sat Jun 30, 2018 5:26 pm, edited 2 times in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

references only first letter of first name; double dot

Post by Johannes_B »

Welcome to LaTeX.org,

it should be noted, that 96.7 % of LaTeX questions require a Minimal Working example to be answered. So with your recent three questions. How to create a MWE? <- Link that explains what is needed.

By the way, please markup the code. This way, anyone can clearly see where it starts and ends and compile your example on the run (waiting for a train, riding the subway etc.) using an online platform. Just put [<!-->code] before and [<!-->/code] after the code blocks. But do not include the <!-->.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Franzi_LaTeX
Posts: 10
Joined: Sun Jun 24, 2018 1:24 am

references only first letter of first name; double dot

Post by Franzi_LaTeX »

Hi Johannes,
thank you for your answer. I tried to create a Minimal Example. Unfortunately, now it does not give me the webpage references at all and I don´t understand why. Maybe you can help me...

Code: Select all

\documentclass[a4paper,12pt]{scrartcl} 

\usepackage[nottoc]{tocbibind}
\usepackage[backend=biber, 
style=authoryear-icomp, 
sorting=nyt, 
url=true,
natbib=true, 
hyperref=true, 
]{biblatex}

\DeclareLanguageMapping{english}{american-apa}
\bibliography{test1.bib} 

\usepackage{tocstyle} 
\newtocstyle[KOMAlike][leaders]{chapterwithdot}{
  \settocfeature{pagenumberbox}{\makebox[1em][r]}
  \settocfeature[-1]{leaders}{\hfill}
  \settocfeature[-1]{pagenumberbox}{\phantom}
  }
\usetocstyle{chapterwithdot}
\usepackage[automark,autooneside]{scrlayer-scrpage}
\clearpairofpagestyles
\ohead{\headmark}
\ofoot*{\pagemark}

\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage[T1]{fontenc}
\usepackage{blindtext}
\usepackage{hyperref}
\usepackage{setspace}
\setlength{\parindent}{0mm}
\usepackage[paper=a4paper,left=30mm,right=30mm,top=30mm,bottom=30mm]{geometry} 
\usepackage{graphicx}
\deffootnote{1em}{1em}{\textsuperscript{\thefootnotemark\ }}

\setcounter{tocdepth}{3}
\setcounter{secnumdepth}{3}

\begin{document}

\pagenumbering{roman}
\clearpage
\tableofcontents

\clearpage


\onehalfspacing
\pagestyle{plain}
\pagenumbering{arabic}
\setcounter{page}{3}

\section{Introduction}
introduction xx
\section{Definition}
just \footnote{Woodis in \cite[p.60]{coady1985morality}.} some\footnote{cf. \cite [772]{coady2004terrorism}.} footnotes\footnote\cite{sep-war}.} to\footnote\cite{sep-relativism}.} get the\footnote{\cite[253]{walzer2000just}.} references. 


\clearpage

\addcontentsline{toc}{section}{List of References}
\printbibliography[title={Book references},type=book]
\printbibliography[title={Article references},type=article]
\printbibliography[title={Webpage references}, nottype=article, nottype=book]
\end{document}
The biber document is: test1.bib

Code: Select all

@article{coady2004terrorism,
  title={Terrorism, morality, and supreme emergency},
  author={Coady, Cecil AJ},
  journal={Ethics},
  volume={114},
  number={4},
  pages={772--789},
  year={2004},
  publisher={The University of Chicago Press}
} 

@book{walzer2000just,
  title={Just and unjust wars: A moral argument with historical illustrations},
  author={Walzer, Michael},
  year={2000},
  publisher={New York: Basic books}
}

@article{coady1985morality,
  title={The morality of terrorism},
  author={Coady, Cecil AJ},
  journal={Philosophy},
  volume={60},
  number={231},
  pages={47--69},
  year={1985},
  publisher={Cambridge University Press}
}


@InCollection{sep-war,
	author       =	{Lazar, Seth},
	title        =	{War},
	booktitle    =	{The Stanford Encyclopedia of Philosophy}, \\
	howpublished =	{\url{https://plato.stanford.edu/archives/spr2017/entries/war}},
	year         =	{2017},
	edition      =	{https://plato.stanford.edu/entries/war},
publisher    =	{(Date accessed: 25.06.2018)}

}

@InCollection{sep-relativism,\\
	author       =	{Baghramian, Maria and Carter, J. Adam},
	title        =	{Relativism},
	booktitle    =	{The Stanford Encyclopedia of Philosophy},
	howpublished =	{\url{https://plato.stanford.edu/archives/sum2017/entries/relativism}},
	year         =	{2017},
	edition      =	{https://plato.stanford.edu/entries/relativism},
publisher    =	{(Date accessed: 28.06.2018)}
}

\end
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

references only first letter of first name; double dot

Post by Johannes_B »

Stefan already told you, you need \nocite{*} to get all uncited references in the list of references.

To get first name initials, you can use firstinits=true,. Concerning the colon after the year, i suggest to ask on goLaTeX, where one of the biblatex developers is active. It is our german sister forum.

Please have a look at the bib file below, there where several errors in yours.

Code: Select all

\begin{filecontents}{\jobname.bib}
@article{coady2004terrorism,
  title={Terrorism, morality, and supreme emergency},
  author={Coady, Cecil AJ},
  journal={Ethics},
  volume={114},
  number={4},
  pages={772--789},
  year={2004},
  publisher={The University of Chicago Press}
} 
 
@book{walzer2000just,
  title={Just and unjust wars: A moral argument with historical illustrations},
  author={Walzer, Michael},
  year={2000},
  publisher={New York: Basic books}
}
 
@article{coady1985morality,
  title={The morality of terrorism},
  author={Coady, Cecil AJ},
  journal={Philosophy},
  volume={60},
  number={231},
  pages={47--69},
  year={1985},
  publisher={Cambridge University Press}
}
 
 
@InCollection{sep-war,
	author       =	{Lazar, Seth},
	title        =	{War},
	booktitle    =	{The Stanford Encyclopedia of Philosophy}, 
	url  =	{https://plato.stanford.edu/archives/spr2017/entries/war},
	year         =	{2017},
urldate = {2018-06-25}
}
 
@InCollection{sep-relativism,
	author       =	{Baghramian, Maria and Carter, J. Adam},
	title        =	{Relativism},
	booktitle    =	{The Stanford Encyclopedia of Philosophy},
	url =	{https://plato.stanford.edu/archives/sum2017/entries/relativism},
	year         =	{2017},
urldate    =	{2018-06-28}
}
\end{filecontents}
    \documentclass[a4paper,12pt,listof=totoc%<- 
]{scrartcl} 
     
    \usepackage[utf8]{inputenc}
    \usepackage[english]{babel}
    \usepackage[T1]{fontenc}
%    \usepackage[nottoc]{tocbibind}% not needed with this class
    \usepackage[backend=biber, 
    style=authoryear-icomp, 
    sorting=nyt, 
    url=true,
    natbib=true, 
    hyperref=true, 
    firstinits=true,
    ]{biblatex}
     
    \DeclareLanguageMapping{english}{american-apa}
    \bibliography{\jobname.bib} 
     
    \usepackage{tocstyle} 
    \newtocstyle[KOMAlike][leaders]{chapterwithdot}{
      \settocfeature{pagenumberbox}{\makebox[1em][r]}
      \settocfeature[-1]{leaders}{\hfill}
      \settocfeature[-1]{pagenumberbox}{\phantom}
      }
    \usetocstyle{chapterwithdot}
    \usepackage[automark,autooneside]{scrlayer-scrpage}
    \clearpairofpagestyles
    \ohead{\headmark}
    \ofoot*{\pagemark}
     
    \usepackage{blindtext}
    \usepackage{setspace}
    \setlength{\parindent}{0mm}
    \usepackage[paper=a4paper,left=30mm,right=30mm,top=30mm,bottom=30mm]{geometry} 
    \usepackage{graphicx}
    \deffootnote{1em}{1em}{\textsuperscript{\thefootnotemark\ }}
     
    \setcounter{tocdepth}{3}
    \setcounter{secnumdepth}{3}
     
    \usepackage{hyperref}% usually the last package
    \begin{document}
     
    \pagenumbering{roman}
    \clearpage
    \tableofcontents
     
    \clearpage
     
     
    \onehalfspacing
    \pagestyle{plain}
    \pagenumbering{arabic}
    \setcounter{page}{3}
     
    \section{Introduction}
    introduction xx
    \section{Definition}
The wombat sits on the grass \footcite[have a closer look at][60]{coady1985morality}.
Capybaras are cool\footcite[cf.][772]{coady2004terrorism}
     
    \clearpage
\nocite{*}
    \addcontentsline{toc}{section}{List of References}
    \printbibliography[title={Book references},type=book]
    \printbibliography[title={Article references},type=article]
    \printbibliography[title={Webpage references}, nottype=article, nottype=book]
    \end{document}
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply