diff --git a/README.md b/README.md index f409b83..a660c88 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,7 @@ # QuartWSemTemplate -Quarto Template für W-Seminararbeit +Quarto Template für eine W-Seminararbeit + +- [ ] Template für ein Exposé +- [ ] Name der Schule, anpassbare Deckseite, sodass nichts im 'before-body.tex' geändert werden muss +- [ ] Template für eine Präsentation +- [ ] _matadata.yaml für "shared metadata" \ No newline at end of file diff --git a/Template.tex b/Template.tex index e8e07ea..e235706 100644 --- a/Template.tex +++ b/Template.tex @@ -1,29 +1,32 @@ % Options for packages loaded elsewhere +% Options for packages loaded elsewhere \PassOptionsToPackage{unicode}{hyperref} \PassOptionsToPackage{hyphens}{url} \PassOptionsToPackage{dvipsnames,svgnames,x11names}{xcolor} % \documentclass[ + ngerman, 12pt, a4paper, ]{article} - +\usepackage{xcolor} +\usepackage[lmargin=2.5cm,rmargin=2.5cm,tmargin=2.5cm,bmargin=2.5cm]{geometry} \usepackage{amsmath,amssymb} -\usepackage{setspace} +\setcounter{secnumdepth}{5} \usepackage{iftex} \ifPDFTeX \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{textcomp} % provide euro and other symbols \else % if luatex or xetex - \usepackage{unicode-math} + \usepackage{unicode-math} % this also loads fontspec \defaultfontfeatures{Scale=MatchLowercase} \defaultfontfeatures[\rmfamily]{Ligatures=TeX,Scale=1} \fi \usepackage{lmodern} -\ifPDFTeX\else - % xetex/luatex font selection - \setmainfont[]{Liberation Serif} +\ifPDFTeX\else + % xetex/luatex font selection + \setmainfont[]{Liberation Serif} \fi % Use upquote if available, for straight quotes in verbatim environments \IfFileExists{upquote.sty}{\usepackage{upquote}}{} @@ -31,10 +34,7 @@ \usepackage[]{microtype} \UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts }{} -\usepackage{xcolor} -\usepackage[lmargin=2.5cm,rmargin=2.5cm,tmargin=2.5cm,bmargin=2.5cm]{geometry} -\setlength{\emergencystretch}{3em} % prevent overfull lines -\setcounter{secnumdepth}{5} +\usepackage{setspace} % Make \paragraph and \subparagraph free-standing \makeatletter \ifx\paragraph\undefined\else @@ -100,8 +100,7 @@ \newcommand{\VerbatimStringTok}[1]{\textcolor[rgb]{0.13,0.47,0.30}{#1}} \newcommand{\WarningTok}[1]{\textcolor[rgb]{0.37,0.37,0.37}{\textit{#1}}} -\providecommand{\tightlist}{% - \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}\usepackage{longtable,booktabs,array} +\usepackage{longtable,booktabs,array} \usepackage{calc} % for calculating minipage widths % Correct order of tables after \paragraph or \subparagraph \usepackage{etoolbox} @@ -126,6 +125,8 @@ % Set default figure placement to htbp \def\fps@figure{htbp} \makeatother + + % definitions for citeproc citations \NewDocumentCommand\citeproctext{}{} \NewDocumentCommand\citeproc{mm}{% @@ -160,6 +161,33 @@ \newcommand{\CSLRightInline}[1]{\parbox[t]{\linewidth - \csllabelwidth}{\strut#1\strut}} \newcommand{\CSLIndent}[1]{\hspace{\cslhangindent}#1} +\ifLuaTeX +\usepackage[bidi=basic]{babel} +\else +\usepackage[bidi=default]{babel} +\fi +\ifPDFTeX +\else +\babelfont{rm}[]{Liberation Serif} +\fi +% get rid of language-specific shorthands (see #6817): +\let\LanguageShortHands\languageshorthands +\def\languageshorthands#1{} +\ifLuaTeX + \usepackage[german]{selnolig} % disable illegal ligatures +\fi + + +\setlength{\emergencystretch}{3em} % prevent overfull lines + +\providecommand{\tightlist}{% + \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}} + + + + + + % Hier kann zusätzlicher LaTeX-Code eingefügt werden, z. B. zur Anpassung von Überschriften \makeatletter \@ifpackageloaded{tcolorbox}{}{\usepackage[skins,breakable]{tcolorbox}} @@ -218,27 +246,9 @@ \@ifpackageloaded{caption}{}{\usepackage{caption}} \@ifpackageloaded{subcaption}{}{\usepackage{subcaption}} \makeatother - -\ifLuaTeX -\usepackage[bidi=basic]{babel} -\else -\usepackage[bidi=default]{babel} -\fi -\babelprovide[main,import]{ngerman} -\ifPDFTeX -\else -\babelfont{rm}[]{Liberation Serif} -\fi -% get rid of language-specific shorthands (see #6817): -\let\LanguageShortHands\languageshorthands -\def\languageshorthands#1{} -\ifLuaTeX - \usepackage[german]{selnolig} % disable illegal ligatures -\fi \usepackage{bookmark} - \IfFileExists{xurl.sty}{\usepackage{xurl}}{} % add URL line breaks if available -\urlstyle{same} % disable monospaced font for URLs +\urlstyle{same} \hypersetup{ pdftitle={Der Titel der Arbeit}, pdfauthor={Firstname Lastname}, @@ -254,7 +264,6 @@ \title{Der Titel der Arbeit} \author{Firstname Lastname} \date{11. November 2025} - \begin{document} \pagenumbering{gobble} %\maketitle @@ -321,7 +330,7 @@ schreiben, direkt zu sehen, wie sie aussehen, und sie professionell als PDF oder HTML zu exportieren. Quarto nutzt LaTeX für den PDF-Export, lässt sich aber viel leichter bedienen als reines LaTeX. -\begin{tcolorbox}[enhanced jigsaw, colback=white, breakable, left=2mm, toptitle=1mm, arc=.35mm, toprule=.15mm, opacityback=0, opacitybacktitle=0.6, bottomrule=.15mm, coltitle=black, colbacktitle=quarto-callout-note-color!10!white, title=\textcolor{quarto-callout-note-color}{\faInfo}\hspace{0.5em}{Hinweis}, rightrule=.15mm, leftrule=.75mm, colframe=quarto-callout-note-color-frame, bottomtitle=1mm, titlerule=0mm] +\begin{tcolorbox}[enhanced jigsaw, coltitle=black, leftrule=.75mm, colback=white, left=2mm, opacityback=0, rightrule=.15mm, colframe=quarto-callout-note-color-frame, colbacktitle=quarto-callout-note-color!10!white, bottomtitle=1mm, toprule=.15mm, opacitybacktitle=0.6, bottomrule=.15mm, toptitle=1mm, breakable, titlerule=0mm, title=\textcolor{quarto-callout-note-color}{\faInfo}\hspace{0.5em}{Hinweis}, arc=.35mm] Dies ist \textbf{kein} Leitfaden zum Schreiben einer wissenschaftlichen Arbeit, sondern eine Anleitung, wie man Quarto verwendet. @@ -385,7 +394,7 @@ verwenden}\label{quarto-mit-vs-code-verwenden} Mehr Infos gibt's im \href{https://quarto.org/docs/tools/vscode.html}{VS Code Kapitel des Leitfadens}. -\begin{tcolorbox}[enhanced jigsaw, colback=white, breakable, left=2mm, toptitle=1mm, arc=.35mm, toprule=.15mm, opacityback=0, opacitybacktitle=0.6, bottomrule=.15mm, coltitle=black, colbacktitle=quarto-callout-note-color!10!white, title=\textcolor{quarto-callout-note-color}{\faInfo}\hspace{0.5em}{Hinweis}, rightrule=.15mm, leftrule=.75mm, colframe=quarto-callout-note-color-frame, bottomtitle=1mm, titlerule=0mm] +\begin{tcolorbox}[enhanced jigsaw, coltitle=black, leftrule=.75mm, colback=white, left=2mm, opacityback=0, rightrule=.15mm, colframe=quarto-callout-note-color-frame, colbacktitle=quarto-callout-note-color!10!white, bottomtitle=1mm, toprule=.15mm, opacitybacktitle=0.6, bottomrule=.15mm, toptitle=1mm, breakable, titlerule=0mm, title=\textcolor{quarto-callout-note-color}{\faInfo}\hspace{0.5em}{Hinweis}, arc=.35mm] Die Vorschau in VS Code ist \textbf{nicht live}. Speichere die Datei, damit sie aktualisiert wird. Wenn Fehler auftreten, versuche den @@ -418,7 +427,7 @@ Falls du lieber mit RStudio arbeitest: Mehr Infos im \href{https://quarto.org/docs/tools/rstudio.html}{RStudio-Leitfaden}. -\begin{tcolorbox}[enhanced jigsaw, colback=white, breakable, left=2mm, toptitle=1mm, arc=.35mm, toprule=.15mm, opacityback=0, opacitybacktitle=0.6, bottomrule=.15mm, coltitle=black, colbacktitle=quarto-callout-note-color!10!white, title=\textcolor{quarto-callout-note-color}{\faInfo}\hspace{0.5em}{Hinweis}, rightrule=.15mm, leftrule=.75mm, colframe=quarto-callout-note-color-frame, bottomtitle=1mm, titlerule=0mm] +\begin{tcolorbox}[enhanced jigsaw, coltitle=black, leftrule=.75mm, colback=white, left=2mm, opacityback=0, rightrule=.15mm, colframe=quarto-callout-note-color-frame, colbacktitle=quarto-callout-note-color!10!white, bottomtitle=1mm, toprule=.15mm, opacitybacktitle=0.6, bottomrule=.15mm, toptitle=1mm, breakable, titlerule=0mm, title=\textcolor{quarto-callout-note-color}{\faInfo}\hspace{0.5em}{Hinweis}, arc=.35mm] Auch hier: Änderungen werden erst nach dem Speichern sichtbar. @@ -439,13 +448,13 @@ verwenden}\label{quarto-mit-jupyterlab-verwenden} Weitere Infos: \href{https://quarto.org/docs/tools/jupyter-lab.html}{JupyterLab-Leitfaden}. -\begin{tcolorbox}[enhanced jigsaw, colback=white, breakable, left=2mm, toptitle=1mm, arc=.35mm, toprule=.15mm, opacityback=0, opacitybacktitle=0.6, bottomrule=.15mm, coltitle=black, colbacktitle=quarto-callout-note-color!10!white, title=\textcolor{quarto-callout-note-color}{\faInfo}\hspace{0.5em}{Hinweis}, rightrule=.15mm, leftrule=.75mm, colframe=quarto-callout-note-color-frame, bottomtitle=1mm, titlerule=0mm] +\begin{tcolorbox}[enhanced jigsaw, coltitle=black, leftrule=.75mm, colback=white, left=2mm, opacityback=0, rightrule=.15mm, colframe=quarto-callout-note-color-frame, colbacktitle=quarto-callout-note-color!10!white, bottomtitle=1mm, toprule=.15mm, opacitybacktitle=0.6, bottomrule=.15mm, toptitle=1mm, breakable, titlerule=0mm, title=\textcolor{quarto-callout-note-color}{\faInfo}\hspace{0.5em}{Hinweis}, arc=.35mm] Auch hier gilt: Speichern aktualisiert die Vorschau. \end{tcolorbox} -\begin{tcolorbox}[enhanced jigsaw, colback=white, breakable, left=2mm, toptitle=1mm, arc=.35mm, toprule=.15mm, opacityback=0, opacitybacktitle=0.6, bottomrule=.15mm, coltitle=black, colbacktitle=quarto-callout-note-color!10!white, title=\textcolor{quarto-callout-note-color}{\faInfo}\hspace{0.5em}{Hinweis}, rightrule=.15mm, leftrule=.75mm, colframe=quarto-callout-note-color-frame, bottomtitle=1mm, titlerule=0mm] +\begin{tcolorbox}[enhanced jigsaw, coltitle=black, leftrule=.75mm, colback=white, left=2mm, opacityback=0, rightrule=.15mm, colframe=quarto-callout-note-color-frame, colbacktitle=quarto-callout-note-color!10!white, bottomtitle=1mm, toprule=.15mm, opacitybacktitle=0.6, bottomrule=.15mm, toptitle=1mm, breakable, titlerule=0mm, title=\textcolor{quarto-callout-note-color}{\faInfo}\hspace{0.5em}{Hinweis}, arc=.35mm] JupyterLab ist eine grafische Benutzeroberfläche zum Bearbeiten und Ausführen von \texttt{.ipynb}-Dateien (Notebooks). Du kannst JupyterLab @@ -466,14 +475,14 @@ Du kannst \texttt{.qmd}- und \texttt{.ipynb}-Dateien problemlos ineinander umwandeln: \texttt{quarto\ convert\ deine\_datei.qmd} oder \texttt{quarto\ convert\ deine\_datei.ipynb} -\begin{tcolorbox}[enhanced jigsaw, colback=white, breakable, left=2mm, toptitle=1mm, arc=.35mm, toprule=.15mm, opacityback=0, opacitybacktitle=0.6, bottomrule=.15mm, coltitle=black, colbacktitle=quarto-callout-note-color!10!white, title=\textcolor{quarto-callout-note-color}{\faInfo}\hspace{0.5em}{Hinweis}, rightrule=.15mm, leftrule=.75mm, colframe=quarto-callout-note-color-frame, bottomtitle=1mm, titlerule=0mm] +\begin{tcolorbox}[enhanced jigsaw, coltitle=black, leftrule=.75mm, colback=white, left=2mm, opacityback=0, rightrule=.15mm, colframe=quarto-callout-note-color-frame, colbacktitle=quarto-callout-note-color!10!white, bottomtitle=1mm, toprule=.15mm, opacitybacktitle=0.6, bottomrule=.15mm, toptitle=1mm, breakable, titlerule=0mm, title=\textcolor{quarto-callout-note-color}{\faInfo}\hspace{0.5em}{Hinweis}, arc=.35mm] Die Konvertierung ist \textbf{verlustfrei}. Du kannst frei zwischen den Formaten wechseln. \end{tcolorbox} -\begin{tcolorbox}[enhanced jigsaw, colback=white, breakable, left=2mm, toptitle=1mm, arc=.35mm, toprule=.15mm, opacityback=0, opacitybacktitle=0.6, bottomrule=.15mm, coltitle=black, colbacktitle=quarto-callout-important-color!10!white, title=\textcolor{quarto-callout-important-color}{\faExclamation}\hspace{0.5em}{Wichtig}, rightrule=.15mm, leftrule=.75mm, colframe=quarto-callout-important-color-frame, bottomtitle=1mm, titlerule=0mm] +\begin{tcolorbox}[enhanced jigsaw, coltitle=black, leftrule=.75mm, colback=white, left=2mm, opacityback=0, rightrule=.15mm, colframe=quarto-callout-important-color-frame, colbacktitle=quarto-callout-important-color!10!white, bottomtitle=1mm, toprule=.15mm, opacitybacktitle=0.6, bottomrule=.15mm, toptitle=1mm, breakable, titlerule=0mm, title=\textcolor{quarto-callout-important-color}{\faExclamation}\hspace{0.5em}{Wichtig}, arc=.35mm] Wenn du eine \texttt{.qmd}-Datei als PDF speicherst und eine \texttt{.ipynb}-Datei mit dem gleichen Namen existiert, wird diese @@ -636,7 +645,7 @@ Hallo Quarto! Hallo Quarto! \end{verbatim} -\begin{tcolorbox}[enhanced jigsaw, colback=white, breakable, left=2mm, toptitle=1mm, arc=.35mm, toprule=.15mm, opacityback=0, opacitybacktitle=0.6, bottomrule=.15mm, coltitle=black, colbacktitle=quarto-callout-important-color!10!white, title=\textcolor{quarto-callout-important-color}{\faExclamation}\hspace{0.5em}{Wichtig}, rightrule=.15mm, leftrule=.75mm, colframe=quarto-callout-important-color-frame, bottomtitle=1mm, titlerule=0mm] +\begin{tcolorbox}[enhanced jigsaw, coltitle=black, leftrule=.75mm, colback=white, left=2mm, opacityback=0, rightrule=.15mm, colframe=quarto-callout-important-color-frame, colbacktitle=quarto-callout-important-color!10!white, bottomtitle=1mm, toprule=.15mm, opacitybacktitle=0.6, bottomrule=.15mm, toptitle=1mm, breakable, titlerule=0mm, title=\textcolor{quarto-callout-important-color}{\faExclamation}\hspace{0.5em}{Wichtig}, arc=.35mm] Wenn Du keinen Jupyter-Kernel installiert hast, kannst du das Dokument so nicht rendern. Wenn du keinen ausführbaren Code für deine Arbeit @@ -813,7 +822,7 @@ Weitere Informationen zum Zitieren und zu Referenzen findest du in diesem Abschnitt der \href{https://quarto.org/docs/authoring/footnotes-and-citations.html}{Anleitung}. -\begin{tcolorbox}[enhanced jigsaw, colback=white, breakable, left=2mm, toptitle=1mm, arc=.35mm, toprule=.15mm, opacityback=0, opacitybacktitle=0.6, bottomrule=.15mm, coltitle=black, colbacktitle=quarto-callout-tip-color!10!white, title=\textcolor{quarto-callout-tip-color}{\faLightbulb}\hspace{0.5em}{Tipp}, rightrule=.15mm, leftrule=.75mm, colframe=quarto-callout-tip-color-frame, bottomtitle=1mm, titlerule=0mm] +\begin{tcolorbox}[enhanced jigsaw, coltitle=black, leftrule=.75mm, colback=white, left=2mm, opacityback=0, rightrule=.15mm, colframe=quarto-callout-tip-color-frame, colbacktitle=quarto-callout-tip-color!10!white, bottomtitle=1mm, toprule=.15mm, opacitybacktitle=0.6, bottomrule=.15mm, toptitle=1mm, breakable, titlerule=0mm, title=\textcolor{quarto-callout-tip-color}{\faLightbulb}\hspace{0.5em}{Tipp}, arc=.35mm] In deiner \texttt{.bib}-Datei (\texttt{assets/literatur.bib}) sollte der Eintrag für eine Webseite so aussehen: