# Section number and name in italics

Note that I "inherited" a preamble that I would like to adapt:

\documentclass[a4paper,12pt]{book}
\usepackage{amsmath, amsthm, amssymb}
\usepackage{fancyhdr}
\pagestyle{fancy}
\renewcommand{\footrulewidth}{0.1pt} % for lower line
\fancyfoot[C]{\thepage}

\usepackage{fancybox}

\usepackage{xcolor}
\usepackage{framed}

\numberwithin{equation}{section} % numbering according to the section
\bibliographystyle{plain} %Choose a bibliograhpic style

%\parindent0em
\parskip1ex


Withe the above preamble, whenever I make new section, ie.,\section{My Section}, both the section number and the text My Section are displayed regularly. To make the text in italics, I put it in \textit{My Section}. This way, however, does not make the section number in italics. What should I change in order for the section number and name to always be in italics?

\makeatletter

• Or \usepackage{sectsty} and \allsectionsfont{\itshape} – egreg Apr 24 '12 at 20:07
• Or \usepackage[it]{titlesec}. – Thorsten Donig Apr 24 '12 at 20:12