Brauche Hilfe: Eigenes LaTeX-Template nach Vorlage erstellen

Layout von Seiten, Rändern, Fusszeilen, usw, modifizieren


Lartech
Forum-Newbie
Forum-Newbie
Beiträge: 1
Registriert: Di 19. Dez 2023, 00:47

Brauche Hilfe: Eigenes LaTeX-Template nach Vorlage erstellen

Beitrag von Lartech »

Hallo,

Ich möchte gerne ein LaTeX-Template für einen wissenschaftlichen Artikel erstellen, da wir uns im Rahmen eines Seminars an anderen Artikeln orientieren sollen. Dabei wurde diese Website verlinkt und ich würde mich gerne direkt an diesem Design/Layout orientieren (ohne die Fußzeile!): https://ojs.uni-oldenburg.de/journals/ojs1/ojs/index.php/forsch/article/view/43/40

Mit ChatGPT, Google-Anfragen, und ein klein bisschen eigener Kopfarbeit bin ich schon mal soweit gekommen:
Oriignal version.png
meine version.png
\documentclass[a4paper,12pt]{article}
\usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm,headheight=5pt]{geometry}
\usepackage[utf8]{inputenc}
\usepackage{xcolor}
\usepackage{titlesec}
\usepackage{titling}
\usepackage{fancyhdr}
\usepackage{fontspec}
\usepackage{tikz}
\usepackage{lipsum}
\usepackage{comment}

% Define the lila color
\definecolor{lila}{HTML}{a2549c}

% Define the uppercase font
\newfontfamily\uppercasefont{EB Garamond}

% Set up the page style
\pagestyle{fancy}
\fancyhf{}
\fancyhead[L]{\uppercasefont WISSENSCHAFTLICHE ARTIKEL}
\fancyhead[R]{\thepage}
\renewcommand{\headrulewidth}{0pt}

% Set the section font to Arial
\titleformat*{\section}{\fontspec{Arial}\bfseries}

% Set the subsection font to Times
\titleformat*{\subsection}{\fontspec{Times New Roman}\bfseries}

% Set the title font to Arial
\renewcommand{\maketitlehooka}{\fontspec{Arial}}

% Set the title color to lila
\pretitle{\begin{center}\Huge\color{lila}\end{center}}
\posttitle{\par\vskip 0.5em}

% Set the author font to Arial
\preauthor{\begin{center}\large\fontspec{Arial}\bfseries\end{center}}
\postauthor{\par\vskip 0.5em}

% Set the date font to Arial
\predate{\begin{center}\footnotesize\fontspec{Arial}\end{center}}
\postdate{\par\vskip 0.5em}

\begin{document}

\fancyhead{}
\fancyfoot{}
\fancyhead[L]{\uppercasefont\small\bfseries WISSENSCHAFTLICHE ARTIKEL}
\fancyhead[R]{\thepage}
\renewcommand{\headrulewidth}{3pt}
\renewcommand{\headrule}{
\vskip-9pt
  \hbox to\headwidth{%
  \color{lila}\leaders\hrule height \headrulewidth\hfill}}

% Title and authors
% Set the section font to Arial with a moderate size
\titleformat{\section}
  {\fontspec{Arial}\Large\bfseries}
  {\thesection}{1em}{}

% Set the subsection font to Arial with a slightly smaller size
\titleformat{\subsection}
  {\fontspec{Arial}\large\bfseries}
  {\thesubsection}{1em}{}


\section*{Entwicklungsstand von Theory of Mind und Mikrostruktur der Erzählfähigkeit bei Kindergartenkindern}
\subsection*{Name 1, Name 2, Name 3 \& Name 4 (Universität Ort)}
\subsubsection*{Fachrichtung: Sonderpädagogik, Studienphase: Master}

% Abstract
\subsection*{\textit{Zusammenfassung}}
Hier unsere Zusammenfassung.

\textit{Schlagwörter:} 1,2,3,4,5

\subsection*{\textit{Abstract}}
Here is our abstract.

\textit{Keywords:} 1,2,3,4,5

% Sections
\section*{1 Theoretischer Hintergrund}
\lipsum[1]

\section*{2 Hypothesen}
\lipsum[2]

\section*{3 Methoden}
\lipsum[3]

\section*{4 Ergebnisse}
\lipsum[4]

\section*{5 Diskussion}
\lipsum[5]

\end{document}
Aber so richtig zufrieden bin ich noch nicht. Also die ganzen Kapitel sind in Ordnung, aber irgendwie kriege ich den Teil ganz am Anfang nicht so gut hin. Könnt ihr mir helfen, das zu verbessern? Würde mich riesig freuen!

Ach ja, und ich hatte noch versucht, am Anfang eine andere Schriftart zu verwenden, so wie in der oben verlinkten Vorlage, aber als ich bei Overleaf "Helvetica" statt "Arial" auswählte, bekam ich Compile Timeouts. :/