Das ist mein erster Besuch in diesem Forum und ich bin auch noch recht neu in Latex. Der angehängte Code stammt von einem Freund, den ich nicht mehr kontaktieren kann. Ich bekomme beim Kompilieren Fehlermeldungen in den Zeilen 54 und 55 (\linespread und Folgezeile, hinter den packages)
Error in 54:there´s no line ghere to end. \\
Error in 55: there´s no line here to end.
Ich habe das Netzt nen Tag lang durchwühlt und kein Ansatz scheint auf mein Dokument zuzutreffen. Kann mir da jemand helfen?
Nebenbei: Habe ich den Forumsbeitrag angenehm gestaltet? Vielleicht kommen in den Folgemonaten weitere und ich will hier keinen nerven...
MfG
Dirk
%Das ist mein Latex- Dokument: \documentclass[a4paper]{scrartcl} %scrartcl \usepackage{etex} %erhöht den counter \reserveinserts{30} \usepackage[latin9]{inputenc} %latin9 \usepackage[T1]{fontenc} \usepackage{graphicx} \usepackage[ngerman]{babel} \usepackage{fancyhdr} \usepackage{amsmath} \usepackage{array} \usepackage{amssymb} \usepackage[paper=a4paper,left=3cm,right=2cm,top=2cm,bottom=2cm,includeheadfoot]{geometry} \usepackage{color} \usepackage{pdfpages} \usepackage{dcolumn} \usepackage{longtable} \usepackage{subfloat} \usepackage{lmodern} %\usepackage{subfig} \usepackage{subfigure} \usepackage{rotating} \usepackage{ulem} \usepackage{booktabs} \usepackage{tabularx} \usepackage[section]{placeins} %verhindert das gleiten über Kapitelgrenzen hinweg alternatic \usepackage{float} und dann stat h ein H \usepackage{eurosym} \usepackage[singlelinecheck=false]{caption} \usepackage{chngcntr} \usepackage{scalefnt} \usepackage{multirow} \usepackage{url} \urlstyle{tt} \usepackage{rccol} \usepackage{lscape} \usepackage{xcolor} \usepackage{tikz} \usetikzlibrary{arrows,positioning,shapes,shadows,decorations,calc} \usepackage[percent]{overpic} \usepackage{framed} \usepackage{colortbl} \usepackage{multicol} \usetikzlibrary{shapes} \usepackage{textcomp} \usepackage{pict2e} \usepackage[ngerman]{translator} \usepackage[printonlyused,withpage]{acronym} % \usepackage[colorlinks, linkcolor = black, citecolor = black, filecolor = black, urlcolor = blue]{hyperref} % \linespread {1.25}\selectfont %1.25 da er von Haus aus 1.2 ist und 1,25 * 1,2 = 1,5 % % Zitieren vereinfacht: setzt mit \myref{label} automatisch "Anhang B, Seite 12" \newcommand{\myref}[1]{\autoref{#1}, \autopageref{#1}} \addto{\extrasngerman}{% \renewcommand*{\sectionautorefname}{Kapitel} \renewcommand*{\subsectionautorefname}{Abschnitt} %umdefintion der ausgaben von autoref \renewcommand*{\subsubsectionautorefname}{Abschnitt} \renewcommand*{\figureautorefname}{Abb.} \renewcommand*{\tableautorefname}{Tab.}} \makeatletter \@removefromreset{footnote}{chapter} \makeatother \newlength{\marginWidth} %Längen für das Seitenlayout \setlength\marginWidth{\marginparwidth+\marginparsep} \newlength{\fulllinewidth} \setlength\fulllinewidth{\textwidth+\marginWidth} \footskip=1.6cm \makeatletter % = mache @ letter %\renewcommand{\bflabel}[1]{\normalfont{\normalsize{#1}}\hfill} \newcommand*\kreis[2]{\unitlength1ex\begin{picture}(2.5,2.5)% \put(0.75,0.75){\color{#1}\circle*{3}}\put(0.7,0.7){\makebox(0,0){#2}}\end{picture}} %farbige Kreise mit Text \newcommand*\kreisgruen{\begin{tikzpicture}[auto,thin]\node[shape=circle,ball color=green,fill=green,draw=none, text=white,shading=ball](tbl){\tiny $\checkmark$};\end{tikzpicture}} \newcommand*\kreisrot{\begin{tikzpicture}[auto,thin]\node[shape=circle,ball color=red,fill=red,draw=none, text=white,shading=ball](tbl){\tiny \texttimes};\end{tikzpicture}} \newcommand*\kreisplus{\begin{tikzpicture}[auto,thin]\node[shape=circle,ball color=green,fill=green,draw=none, text=white,shading=ball](tbl){\tiny $+$};\end{tikzpicture}} \newcommand*\kreisminus{\begin{tikzpicture}[auto,thin]\node[shape=circle,ball color=red,fill=red,draw=none, text=white,shading=ball](tbl){\tiny $-$};\end{tikzpicture}} \newcolumntype{M}[1]{>{\centering\arraybackslash}m{#1}} %Tabellenspalte mit vertikal zentriertem Inhalt \begin{document} %Silbentrennung verhindern \hyphenation{} \deffootnote{1.5cm}{1em}{\thefootnotemark\hspace{1em}} %abstand fußnote Text \newgeometry{left=3cm,right=2cm,top=2cm,bottom=2cm} \numberwithin{equation}{section} \numberwithin{figure}{section} \numberwithin{table}{section} %Farben \definecolor{blau}{rgb}{255,0,0} \definecolor{deepskyblue}{rgb}{0,191,255} \definecolor{steelblue}{rgb}{99,184,255} \definecolor{royalblue}{rgb}{65,105,205} \definecolor{dunkelblau}{rgb}{0.1,0.2,1} %0,0,205 \definecolor{grey}{rgb}{211,211,211} \definecolor{hintergrund}{rgb}{0.6,0.93,0.93} \setlength{\parindent}{0in} \newcommand*\dummyGraphic[2]{% {\mbox{\rule{0pt}{#2}\rule{#1}{0pt}}}} \newcolumntype{C}[1]{>{\centering\arraybackslash}p{#1}} %\titlehead{ \includegraphics[height=1.5cm]{Bilder/MPM_Logo.jpg} \hfill \includegraphics[height=1.5cm]{Bilder/TUBerlin_Schriftzug_sw.jpg} \vspace{+0.1cm} %\hrule\par }%\newline \hrule} \title{Masterarbeit} \subtitle{Aufbau, Inbetriebnahme und Optimierung eines 3D- Druckers} \author{\begin{tabular}{ll} Autor & \\ Dirk Wilhelm & 310601\\ \end{tabular}} \date{ \Large Berlin, den \today} \maketitle %\begin{figure}[!b] %\begin{center} %\includegraphics[width=\textwidth,trim=0.cm 0.cm 0.cm 0.cm,clip]{Bilder/Titelbild.jpg} %\end{center} %\end{figure} \thispagestyle{empty} \newgeometry{left=3cm,right=2cm,top=3cm,bottom=2cm} \newpage \renewcommand{\baselinestretch}{1.5} \pagenumbering{roman} \pagestyle{fancy} \fancyhf{} %\fancyhead[R]{\footnotesize Sebastian Werner | 320272} \fancyhead[R]{\small{ \leftmark}} %\fancyfoot[R]{|\thepage} \fancyfoot[R]{\hspace{-\marginWidth} \hbox to\marginWidth{\vbox{\hbox to\marginWidth{ \large \strut %unsichtbares Zeichen \hfill % \textsf{\thepage} %\hspace{5pt} \vrule width 1pt height 10pt \hspace{7pt} \textsf{\thepage} \vspace{10pt} }}}} \newpage \fancyhead[R]{\small{| \leftmark}} %\setcounter{page}{1} \tableofcontents \listoffigures \listoftables %\addtocontents{toc}{\protect\setcounter{tocdepth}{1}} %\addcontentsline{toc}{section}{Abk"urzungsverzeichniss} %\addtocontents{toc}{\protect\setcounter{tocdepth}{5}} \section*{Abk"urzungsverzeichnis} \begin{acronym}[SQL] \acro{FDM}{Fused Deposition Modelling} \acro{CNC}{computerized numeric control} \acro{RP}{Rapid Prototyping} \acro{RepRap}{Replicating Rapid- prototyper} \end{acronym} %\renewcommand{\baselinestretch}{1.5} %\glsaddall %\deftranslation[to=German]{Acronyms}{Abk"urzungsverzeichnis} %\printglossary[type=\acronymtype,style=listdottedskip] %altlist listdottedskip \newpage \newpage \pagenumbering{arabic} %arabische ziffern zur Seitenzählung \setcounter{page}{1} %Einbinden der Unterdateien \include{unterdateien/1_Einfuehrung} \include{unterdateien/2_Stand} \include{unterdateien/3_Aufbau} \include{unterdateien/4_Optimierung} \include{unterdateien/5_Betrieb} \include{unterdateien/6_Konzeption} \include{unterdateien/7_Zusammenfassung} \include{unterdateien/8_Anhang} \newpage \setcounter{page}{1} \pagenumbering{Roman} \fancyhead[R]{|Anhang} \renewcommand\appendix{\par \setcounter{section}{0}% %\setcounter{chapter}{0} %\renewcommand\thechapter{\Alph{chapter}} % ob mit oder ohne diese Zeile spielt irgendwie keine Rolle!?! \renewcommand\thesection{A\arabic{section}}} %\appendix %\addcontentsline{toc}{section}{Anhang} %\addtocontents{toc}{\protect\setcounter{tocdepth}{-1}} %\include{unterdateien/Anhang} \newpage \fancyhead[R]{\small{|\leftmark}} %Glossar ausgeben %\glsaddall %\addtocontents{toc}{\protect\setcounter{tocdepth}{1}} %\deftranslation[to=German]{Glossary}{Glossar} %\printglossary[style=altlist,title=Glossar] \newpage \fancyhead[R]{\small{|Literaturverzeichnis}} \addtocontents{toc}{\protect\setcounter{tocdepth}{1}} \addcontentsline{toc}{section}{Literaturverzeichnis} \renewcommand{\refname}{Literaturverzeichnis} \bibliographystyle{alphadin} %alphadin \bibliography{Literaturliste} \newpage \fancyhead[R]{\small{|\leftmark}} %Glossar ausgeben %\glsaddall %\deftranslation[to=German]{Glossary}{Glossar} %\printglossary[style=altlist,title=Glossar] %\deftranslation[to=German]{Acronyms}{Abk"urzungsverzeichnis} %\printglossary[type=\acronymtype,style=listdottedskip] %altlist listdottedskip \end{document}