# Customize Biblatex: Delete space before first author

How can I remove the marked space before the first author in my bibliography with any entry except for my self-made entry dinvdi (first entry) where there already is no space? Is this by default or did I add some code accidentially which causes this space?

This is my code:

% = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
%
%
% Preamble
%
%
% = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =

%Definition des Dokumentes
\documentclass[12pt,a4paper,twoside,openright]{report}

%Seitenlayout
\usepackage[top=2.5cm, bottom=2.5cm, left=2.5cm, right=2.5cm]{geometry} %showframe

%Deutsche Umlaute, Englisch, griechische Symbole
\usepackage[main=ngerman, english]{babel}

% = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
% Literaturverzeichnis und Zitationen
% = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =

%Literaturverzeichnis
\usepackage[style           = alphabetic-verb,
backend         = biber,
maxbibnames     = 2,
minbibnames     = 2,
maxalphanames   = 1,
minalphanames   = 1,
useeditor       = false,
giveninits      = true
]{biblatex}

%Name, V.
\DeclareNameAlias{default}{family-given}

%Doppelpunkt nach letztem Verfasser

%Änderungen von Strings
\DefineBibliographyStrings{ngerman}{
urlseen   = {Abruf\addcolon}, %Anpassung in "Abruf:" bei URLs
references   = {Literaturverzeichnis},
bibliography = {Literaturverzeichnis},
}

%Kapitälchen Nachame und Vorname von Autoren in Bibliografie und in Zitationen
\renewcommand*{\mkbibnamefamily}[1]{\ifmknamesc{\textsc{#1}}{#1}}
\renewcommand*{\mkbibnamegiven}[1]{\ifmknamesc{\textsc{#1}}{#1}}
\def\ifmknamesc{ \ifboolexpr{ test {\ifcurrentname{author}} } }
\DeclareFieldFormat{labelalpha}{\textsc{#1}}

%Komma bei mehreren Quellen in Zitation

%Semikolon bei mehreren Autoren
\AtBeginBibliography{%
}

%Formatierung von Regular Database Entry Types
\DeclareFieldFormat
[article,inbook,incollection,inproceedings,patent,thesis,unpublished,suppbook,suppcollection,suppperiodical]
{title}{\textit{#1\isdot}}

%Formatierung von Zitation bei mehreren Autoren
\renewcommand*{\labelalphaothers}{}

%Formatierung von DIN/ VDI Entries
\DeclareLabelalphaTemplate[dinvdi]{\labelelement{\field{note}}}

\DeclareBibliographyDriver{dinvdi}{%
\usebibmacro{bibindex}%
\usebibmacro{begentry}%
\usebibmacro{title}%
\printlist{location}
\printlist{organization}
\printdate
\usebibmacro{finentry}}

\DeclareFieldFormat
[dinvdi]

\usepackage{citeall} %Zum Testen von Literaturverzeichnis: \citeall

% = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
% Abstände und Platzierungen
% = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =

%Formatierung Inhaltsverzeichnis
\usepackage[notindex, nottoc]{tocbibind}
\usepackage{titletoc}
\contentsmargin{2em}

%add stretchable glue (Overfull-/ & Underfull-\hbox-Warnings)
\usepackage{microtype}
\emergencystretch=1em

% = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
%
%
% Anfang von Dokumententext
%
%
% = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
\begin{document}

\pagenumbering{Roman}

% = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
%
%
%
%
% Beginn des Inhalts
%
%
%
%
% = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
\pagenumbering{arabic}

\chapter{Einleitung}

\cites{DINEN12976-2}{GRA18}{WER17}

% = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
% Literaturverzeichnis - ACHTUNG: Use Biber (instead of BibTeX)!
% = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
\cleardoublepage
\end{document}


This is the extract of my biblatex-bibliography:

    @Dinvdi{DINEN12976-2,
annote         = {Din En 12976-2},
note           = {Din 12976},
title          = {Thermische Solaranlagen und ihre Bauteile - Vorgefertigte Anlagen - Teil 2: Pr{\"u}fverfahren},
year           = {2017},
date           = {2017-04},
organization   = {DIN Deutsches Institut f{\"u}r Normung e. V.},
location       = {Berlin},
}
@Book{GRA18,
author    = {Grassi, Walter},
title     = {Heat Pumps},
year      = {2018},
date      = {2018},
subtitle  = {Fundamentals and Applications},
series    = {Green Energy and Technology},
publisher = {Springer Nature},
location  = {Cham, Schweiz},
isbn      = {978-3-319-62198-2},
}
@Article{WER17,
author       = {Werner, Sven},
title        = {International review of district heating and cooling},
journal      = {Energy},
journaltitle = {Energy},
year         = {2017},
date         = {2017-04-12},
pages        = {617-631},
issue        = {137},
}

• Remove the irrelevant spaces from \ifmknamesc – daleif Jan 14 at 15:51

The macro

\def\ifmknamesc{ \ifboolexpr{ test {\ifcurrentname{author}} } }


leaves spaces behind.

If changed to

\def\ifmknamesc{\ifboolexpr{ test {\ifcurrentname{author}}}}


the spaces disappear

• Thanks a lot! This solved my problem. – TeXlearner Jan 14 at 16:19