# Set period only after very last bib-item in bibliography

My university has some special format-rules for the bibliography:

The bib-items have no period at the end. Only the VERY LAST one has to end with a period!

This is how it should look like: )

I changed the finentrypoint with \renewcommand{\finentrypunct}{} - that works fine. But how do I get the period after the very last entry then??

I use biber.

Does any one have suggestions for me?

• Welcome to TeX.SX! Every day we learn new peculiar formatting rules. ;-) I can find no sense in such a direction, do you? You have all my sympathy. – egreg Feb 28 '14 at 12:00
• Would you mind telling us what style you use. Ideally, you would post a MWE. – moewe Feb 28 '14 at 12:28

You can redefine \defbibenvironment{bibliography} to include the final period. Note that this will most likely cause problems with empty bibliographies.

Keep \renewcommand{\finentrypunct}{}.

For numeric that is

\defbibenvironment{bibliography}
{\list
{\printtext[labelnumberwidth]{%
\printfield{prefixnumber}%
\printfield{labelnumber}}}
{\setlength{\labelwidth}{\labelnumberwidth}%
\setlength{\leftmargin}{\labelwidth}%
\setlength{\labelsep}{\biblabelsep}%
\setlength{\itemsep}{\bibitemsep}%
\setlength{\parsep}{\bibparsep}}%
\renewcommand*{\makelabel}[1]{\hss##1}}
{\item}

For authoryear it's

\defbibenvironment{bibliography}
{\list
{}
{\setlength{\leftmargin}{\bibhang}%
\setlength{\itemindent}{-\leftmargin}%
\setlength{\itemsep}{\bibitemsep}%
\setlength{\parsep}{\bibparsep}}}
{\item}

MWE

\documentclass[a4paper,12pt]{article}%
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[backend=biber]{biblatex}
\renewcommand{\finentrypunct}{}
\defbibenvironment{bibliography}
{\list
{\printtext[labelnumberwidth]{%
\printfield{prefixnumber}%
\printfield{labelnumber}}}
{\setlength{\labelwidth}{\labelnumberwidth}%
\setlength{\leftmargin}{\labelwidth}%
\setlength{\labelsep}{\biblabelsep}%
\setlength{\itemsep}{\bibitemsep}%
\setlength{\parsep}{\bibparsep}}%
\renewcommand*{\makelabel}[1]{\hss##1}}
{\item}

\begin{document}
\nocite{wilde,cicero,knuth:ct:a}
\printbibliography
\end{document}

• moewe, THANK YOU, THANK YOU!!!! It work´s perfect. Amazing! – Jonas Feb 28 '14 at 12:59

The output of the bibliography is done done inside an environment defined by

% {<name>}{<start code>}[<end code>]{<item code>}

\newrobustcmd*{\defbibenvironment}[4]{%
\long\csdef{blx@env@#1}{#2}%
\long\csdef{blx@endenv@#1}{#3}%
\long\csdef{blx@item@#1}{#4}}

Every style uses this definition of modify the environment. So for your needs you have to make sure that the final period is set at blx@endenv@#1. This can be globally achieved by:

Here the complete MWE:

\documentclass[]{article}
\usepackage[T1]{fontenc}
\usepackage[]{biblatex}