GeneralLatex not recognizing my chapters

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Yeats
Posts: 62
Joined: Fri Nov 07, 2008 12:29 pm

Latex not recognizing my chapters

Post by Yeats »

I have problems with \chapter command. Latex it ignoring my chapters and he does not recognize my chapter command at all (in contents page and in text)

Here is my main file:

Code: Select all

\documentclass[12pt,a4paper]{scrartcl}
\usepackage[paper=a4paper,left=30mm,right=30mm,top=30mm,bottom=30mm]{geometry}
\deffootnote{1em} {1em}{\textsuperscript{\thefootnotemark\ }}
\setcounter{secnumdepth}{5}
\setcounter{tocdepth}{5}
%
%
\usepackage[utf8]{inputenc}
\usepackage[polutonikogreek,ngerman]{babel}
\usepackage[T1]{fontenc}
%
%
\usepackage{pslatex}
\let\ORIGtextgreek=\textgreek
%\renewcommand{\textgreek}[1]{{ \fontfamily{cmr}\selectfont\OR IGtextgreek{#1}}}
%\let\ORIGgreektext=\greektext
%\renewcommand{\greektext}{\fontfamily{cmr}\ORIGgreektext}
\newcommand{\grk}[1]{\selectlanguage{polutonikogreek}
#1\selectlanguage{ngerman}}
%
%
%
\usepackage{graphicx}
\usepackage{jurabib}
\usepackage{multibib}
\usepackage{StyleFiles/brechtbib}
\usepackage{tabularx}
\usepackage{color}
\usepackage{array}
\usepackage{setspace}
\usepackage{fancyhdr}
\renewcommand{\arraystretch}{1.2}
\renewcommand{\baselinestretch}{1.5}
\newcommand{\qm}[1]{``{#1}''}
\newcites{sec}{Quellenverzeichnis}
%\renewcommand{"{#1}"}[1]{``{#1}''}
%
%%%
%
\begin{document}
%
\pagestyle{fancy}
%\onehalfspacing
%
%
\fancyfoot[CO,CE]{Confidential}
\fancyfoot[RO, LE] {\thepage}
\lhead{}
\rhead{\nouppercase{\leftmark}}
\lfoot{}
\cfoot{}
%
%
\pagenumbering{roman}
\tableofcontents%{\nouppercase}
\clearpage
%
%
\pagenumbering{arabic}
\setcounter{page}{1}
\color{light-gray}
\include{Einleitung/einleitung}
\include{Kapitel3/kapitel3}
\color{black}
\include{Kapitel1/kapitel1}
\color{light-gray}
\include{Kapitel2/kapitel2}
\include{Kapitel4/kapitel4}
\color{black}
%\appendix
%\chapter{Anhangspunkt/anhangspunkt}
%%\pagebreak
%
\cleardoublepage
\addcontentsline{toc}{section}{Quellenverzeichnis}
\bibliographysec{Bibliographie/bibliographie} 
\bibliographystylesec{jurabib}
\pagebreak
\cleardoublepage
\addcontentsline{toc}{section}{Literaturverzeichnis}
\renewcommand{\refname}{Literaturverzeichnis}
\bibliography{Bibliographie/bibliographie}
\bibliographystyle{jurabib}
%
%
%
%\appendix
\end{document}
I write my document like this:

Code: Select all

\chapter{My First chapter}
text text texttext text texttext text texttext text texttext text texttext text text
\section{My First section}
text text texttext text texttext text texttext text texttext text texttext text text
\subsection{My First subseciton} 
I was searching the net but I just cant find what am I doing wrong :(

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Keta
Posts: 63
Joined: Tue Nov 25, 2008 1:00 pm

Latex not recognizing my chapters

Post by Keta »

You are using the scrartcl class, which does not recognize the Chapter sectioning command. That is what makes not to appear chapter titles. You might want to forget that command and rely on Section, or change to the scrreprt or scrbook classes instead.
Yeats
Posts: 62
Joined: Fri Nov 07, 2008 12:29 pm

Latex not recognizing my chapters

Post by Yeats »

Keta wrote:You are using the scrartcl class, which does not recognize the Chapter sectioning command. That is what makes not to appear chapter titles. You might want to forget that command and rely on Section, or change to the scrreprt or scrbook classes instead.
Oh ok... thank you for explanation. I will stick to the \section than.
Post Reply