after I resolved my earlier issue with the apa-style formatting of my bibliography, I ran into a problem regarding the DOIs. However, I think the problem rather concerns the package hyperref:
When I compile my tex-file, the references look like that:
However, in my preambel I load hyperref. I would have expected that the \url{...} that origins in my biblatex file would be compiled as a link. If I include links in my text, the output of the commandTrevino, L. K., Brown, M., & Hartman, L. P. (2003). A qualitative investigation of per-
ceived executive ethical leadership: perceptions from inside and outside the execu-
tive suite. Human Relations, 56 (1), 5{37. doi:\url{10.1177/0018726703056001448}
Code: Select all
\url{www.latex-community.org}
but without the hyperlink.www.latex-community.org
Do I use the wrong packages or are they conflicting? I don't get any errors regarding when compiling the file. And apart from the ugly \url{...} in the references everything looks fine.
Here is my preamble:
Code: Select all
\documentclass[a4paper,12pt]{article}
\usepackage[ansinew]{inputenc}
\usepackage[american]{babel}
% Verschiedene Pakete ----------------------------------------------
\usepackage{rotating} % Umdrehen von Objekten (Tabellen, etc.)
\usepackage{array} % Gleichungen untereinander ordnen und nummerieren
\usepackage{graphicx} % Grafiken einbinden
\usepackage{url} % Urls ohne Probleme einbinden
\usepackage{multirow} % Tabellenzeilen zusammenfassen
% Seitenformat-Pakete ---------------------------------------------------
\usepackage{geometry} %Ränder einstellen
\geometry{a4paper, top=25.4mm, left=25.4mm, right=25.4mm, bottom=25.4mm, % APA Format Style
headsep=10mm, footskip=7mm}
% Paket zum Einstellen des fancy-Designs
\usepackage{fancyhdr}
\pagestyle{fancy}
\lhead{} % Kopfzeile links
\chead{} % Kopfzeile mitte
\rhead{} % Kopfzeile rechts
\cfoot{\thepage} % Fußzeile mitte
\rfoot{} % Fußzeile rechts
\lfoot{} % Fußzeile links
% Einstellen, dass im Rechten header das Kapitel gezeigt wird
\renewcommand{\sectionmark}[1]{%
\markboth{\thesection.\ #1}{}}
\rhead{\nouppercase{\leftmark}}
\renewcommand{\headwidth}{\textwidth}
\renewcommand{\headrulewidth}{0.4pt}
% Zeilenabstände ---------------------------------------------
%\linespread{1.2}
\usepackage{setspace}
%\onehalfspacing
\renewcommand{\baselinestretch}{1.5}
% Literaturverwaltung------------------------------------------
\usepackage{csquotes}
\usepackage[backend=biber, style=apa]{biblatex}
\DeclareLanguageMapping{american}{american-apa}
\usepackage{hyperref}
\bibliography{Mastersample}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\pagenumbering{roman}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newpage
%%%
\tableofcontents
\newpage
%Inhalte
\pagenumbering{arabic}
%\appendix
%\chapter{}
%\input{Tables}
\newpage
\printbibliography
\end{document}
Tobi