I have the following LaTeX document being compiled in TeXstudio 2.3 on Windows 7 (mode is PdfLatex + PdfViewer):
\documentclass[a4paper,12pt]{report}
% Modified \part and \chapter from report.cls
\makeatletter
\def\@part[#1]#2{%
\ifnum \c@secnumdepth >-2\relax
\refstepcounter{part}%
\addcontentsline{toc}{part}{#1}%
\else
\addcontentsline{toc}{part}{#1}%
\fi
\markboth{}{}%
{\centering
\interlinepenalty \@M
\normalfont
\Huge \bfseries #2\par}%
\@endpart}
\def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne
\refstepcounter{chapter}%
\typeout{\@chapapp\space\thechapter.}%
\addcontentsline{toc}{chapter}%
{#1}%
\else
\addcontentsline{toc}{chapter}{#1}%
\fi
\chaptermark{#1}%
\addtocontents{lof}{\protect\addvspace{10\p@}}%
\addtocontents{lot}{\protect\addvspace{10\p@}}%
\if@twocolumn
\@topnewpage[\@makechapterhead{#2}]%
\else
\@makechapterhead{#2}%
\@afterheading
\fi}\makeatother
\def\@makechapterhead#1{%
\vspace*{50\p@}%
{\parindent \z@ \raggedright \normalfont
\interlinepenalty\@M
\Huge \bfseries #1\par\nobreak
\vskip 40\p@
}}
\renewcommand{\thesection}{\arabic{section}}% Remove \thechapter from \thesection}
\makeatother
\begin{document}
\tableofcontents
\part{Part One}
\chapter[Chapter Other One]{Chapter One}
\section{Section First}
\subsection{Subsection X}
Djigurda is here.
\subsection{Castles with Penguins}
Castles with penguins here.
\end{document}
Problem is, \chapter command produces 2 lines in resulting PDF:

So how do I turn off numbered headings? I want only Chapter One to appear.


Chapter One'sChapter 1? Also, do you want\partto show up in the ToC? – Werner Sep 7 '12 at 21:19