I am trying to change the citation style from "acm" to "apa" and I can't figure it out. I already googled and looked in this forum and tried to apply the presented solutions but it is still not working properly. Changing back to acm solves the problems with the tables and document structure.
This is the tex file:
\documentclass[oneside, a4paper, 12pt]{article} % Gibt an: Papierformat, Schriftgröße
\usepackage{thesis}
\usepackage{caption}
\usepackage{multirow}
\usepackage{array} %notwendig um neue Spaltentypen zu definieren
\usepackage{tabularx}
\usepackage{longtable}
%\usepackage{apacite}
%\usepackage[colorlinks=true, urlcolor=blue,linkcolor=green]{hyperref}
% Hier werden die Abkürzungen definiert. Sofern ein Abkürzungsverzeichnis verwendet wird bitte entkommentieren.
%\include{sections/acronyms}
\begin{document}
\setlanguageEnglish % Sprache einstellen.
% Hier kommt der ganze Vorspann. Bei Verwendung von Abkürzungs-, Abbildungs- oder Tabellenverzeichnisse bitte in dieser Datei entsprechend entkommentieren.
\include{Master Thesis/sections/preamble}
\include{Master Thesis/sections/section1}
\include{Master Thesis/sections/section2}
\include{Master Thesis/sections/section3}
\include{Master Thesis/sections/section4}
\include{Master Thesis/sections/section5}
\include{Master Thesis/sections/section6}
% Anhang / Appendix
\appendix % Ab hier wird mit A, B, ... weiternummeriert.
% Für den Fall eines Anhangs entkommentieren
\include{sections/appendix}
% Literaturverzeichnis
\bibliographystyle{acm} %apacite
\bibliography{YOUR_thesis} % Datei mit Literaturangaben einbinden
% Schriftliche Erklärung
\newpage
\include{sections/assertion}
\end{document}
The package thesis looks like this
\ProvidesPackage{thesis}[2009/11/03 v0.1 Styledefinitionen]
\setlength{\parskip}{0.2cm}
\setlength{\parindent}{0cm}
\setlength{\headheight}{15pt} %-----------------------------------------------------------------------------------------------------------------------------
%Einstellung der Randabstände
\usepackage[lmargin={2.5cm},rmargin={2.5cm},tmargin={2.5cm},bmargin={2.5cm}]{geometry}
%zur Einbindung von Graphiken
\usepackage{graphicx}
%Bearbeitung von Kopf- und Fusszeile
\usepackage{fancyhdr}
%Schriftart
\usepackage{helvet}
%stellt unabhängige Textmarken zu Verfügung
\usepackage{extramarks}
%aktiviert eine Umgebung in der der Mathematikmodus aktiv ist
\usepackage{amsmath}
%coole Zeichentools
\usepackage{tikz}\usetikzlibrary{arrows.meta}
%aktiviert eine Umgebung in der der Mathematikmodus aktiv ist
\usepackage{amsthm}
%aktiviert eine Umgebung in der der Mathematikmodus aktiv ist
\usepackage{amssymb}
%aktiviert Hyperlinks
\usepackage{hyperref}
%Stellt das Eurozeichen ? zu Verfügung
\usepackage[right]{eurosym}
\usepackage[ngerman,english]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc} % Nur einbinden, wenn LuaLatex nicht vorhanden!
\usepackage[acronyms,ucmark=true]{glossaries}
\makenoidxglossaries
\usepackage{blindtext}
\usepackage{fancybox}
\usepackage{xcolor}
\usepackage{color}
\usepackage{float}
\usepackage{framed}
\usepackage{url}
\usepackage{newclude}
I added "\usepackage{apacite} and \bibliographystyle{apastyle}" which did the trick for the format BUT:
When changing to apa my whole document structure is altered, so for example 2 clear pages are added after each section and my long tables don't work anymore. If I just delete \usepackage{apacite} and change the style back to acm everything works perfectly. What am I missing here? Is the package apacite somehow changing the overall document structure?
I do believe that there is just a minor thing missing which I can't find out. I would really appreciate your help on this one!
Thanks
biblatexare\textcitewhich produces Author (Year) and\parencitewhich produces (Author, Year). If you're used tonatbibcommands\citetand\citepyou can loadbiblatexwith thenatbiboption to enable those commands too. – Alan Munn Aug 03 '22 at 19:07apastyle,\citeis aliased as\parencite*which removes the parentheses (an odd choice, IMO) which is why you're getting the output you see. – Alan Munn Aug 03 '22 at 19:12