Seite 1 von 1

Fehlermeldung bei der Definition von Section

Verfasst: Mo 19. Aug 2013, 22:57
von braunaa
Hi Leute,

Ich hab mir in Latex ein Layout für meine Masterarbeit erstellt. Und jedesmal wenn ich ein section definieren will bekomme ich folgende Fehlermeldung

Extra \endcsname.
\@svsec ->csname arabic \endcsname
{section}\hskip 1em\relax \relax
l.122 \section{Amira}.

Hier ist mal mein latexcode mit dokumentiert:
\documentclass[10pt,a4paper]{report}

\usepackage[english]{babel}

\usepackage{fancyhdr}

\usepackage{color}

\usepackage{totpages}

\usepackage[pdftex] {graphicx}

\usepackage{romannum}

\newcommand{\RM}[1]{\MakeUppercase{\romannumeral #1{}}}

\pagestyle{fancy}

\fancyhead[L]{}
                        
 \fancyhead[R]{\bfseries Julius Wolff Institut \\ Campus Virchow Klinikum}
 				
\fancyfoot{}

\fancyfoot[L]{ \today}

\fancyfoot[C]{From: A.Braun}

\pagenumbering{arabic}

\fancyfoot[R]{\thepage{} of  \pageref{TotPages}}

\renewcommand{\headrulewidth}{0.6pt}
\renewcommand{\footrulewidth}{0.6pt}

\newcommand{\sectionnumbering}[1]{%
  \setcounter{section}{0}%
     \renewcommand{\thesection}{csname #1 \endcsname{section}}}

\begin{document}

\begin{titlepage}

\begin{figure}[ht ]\centering 

\includegraphics[width=12 cm]

\end{figure}

\begin{center}

Faculty \RM{2}  Mathemics Physics Chemisty \\  [36pt]

\begin{bfseries}

\bfseries {Master Thesis} \\ [36pt]

\end{bfseries}

from \\ [24pt]

blablabla \\ [24pt]

to graduate for \\ 

Master of Science (M.Sc.)\\ [24pt]

in the course of studies \\

Mathematics - Computational Engineering \\[24pt]

\end{center}

Topic:

\begin{center}

\bfseries{Investigation of the bone response to mechanical loading in SOST deficient mice using the FE-Method} \\ [24pt]

\end{center}

Supervising tutor:\hspace{2.9 cm}  blablabla

Supervising tutor external:\hspace{1.55 cm} blabla

Consultant:\hspace{3.9 cm} blablabla \\

Submitted:  \today

\end{titlepage}

\begin{abstract}

test test test test

\end{abstract}

\pagenumbering{Roman}

\sectionnumbering{Roman}

\tableofcontents

\clearpage

\listoffigures

\clearpage

\listoftables

\clearpage

\pagenumbering{arabic}

\sectionnumbering{arabic}

\chapter{Introduction}

\chapter{Basics principles}

\section{Amira}
 
blablblblblablballablabl

\chapter{Wild type vs. SOST knockout mice}

\chapter{Finite Element Model}

\chapter{Corollary}

\chapter{Compendium}

\chapter{Literature}



\begin{appendix}

\chapter  A
 
test test test

\end{appendix}

\end{document}

end code

Verfasst: Mo 19. Aug 2013, 23:43
von Stefan Kottwitz
Es fehlt der backslash vor \csname hier:
\renewcommand{\thesection}{\csname #1 \endcsname{section}}
Stefan

Verfasst: Di 20. Aug 2013, 00:05
von braunaa
Danke Stefan für die schnelle Antwort hat alles geklappt