I am working on my thesis in the book class, I work in Kile under Linux. So this is an overview of my latex code:
\documentclass[a4paper,10pt]{book}
\usepackage[utf8]{inputenc}
% ### Chapter title style ###
\makeatletter
\def\@makechapterhead#1{%
\vspace*{50\p@}%
{\parindent \z@ \raggedright \normalfont
\ifnum \c@secnumdepth >\m@ne
\if@mainmatter
%\huge\bfseries \@chapapp\space \thechapter
\Huge\bfseries \thechapter.\space%
%\par\nobreak
%\vskip 20\p@
\fi
\fi
\interlinepenalty\@M
\Huge \bfseries #1\par\nobreak
\vskip 40\p@
}}
\makeatother
% put section numbers in white marigin
\makeatletter
\def\@seccntformat#1{\llap{\csname the#1\endcsname\quad}}
\makeatother
\begin{document}
\chapter{Introduction}
\section{First section}
\section{Second section}
\end{document}
The code for suppressing the word chapter is from this topic on stachexchange.
This is what the document looks like:
So to be clear, I would like the number 1. to be in the white margins as well.


\@seccntformatis responsible for\sectionetc., but not for chapters. Please provide a compilable document, not just fragments – Mar 15 '16 at 10:50Edit: Thanks for the welcome btw! I am working on a compilable document now.
– Koen Mar 15 '16 at 10:51