How do i italicize the \subsubsection{Subsubsection}
1. section
1.1 subsection
1.1.1 subsubsection
I want the third line i.e. starting from 1.1.1 subsubsection
italicize.
Please help
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityAssuming you're using one of the "standard" LaTeX document classes (article
, report
, book
) or a document class that's based on one of the standard classes, you could load the sectsty
package and issue the directive
\subsubsectionfont{\normalfont\itshape}
in the preamble.
\documentclass{article}
\usepackage{sectsty}
\subsubsectionfont{\normalfont\itshape}
\begin{document}
\section{section}
\subsection{subsection}
\subsubsection{subsubsection}
\end{document}
\makeatletter \def\@seccntformat#1{\@ifundefined{#1@cntformat} {\csname the#1\endcsname\quad} {\csname #1@cntformat\endcsname}} \newcommand\section@cntformat{\thesection.\quad} \makeatother
.
You have a simple solution with titlesec
:
\documentclass{article}
\usepackage{titlesec}
\titleformat{\section}{\bfseries\Large}{\thesection.}{0.5em}{}
\titleformat{\subsubsection}{}{\thesubsubsection}{1em}{\itshape}
\begin{document}
\section{section}
\subsection{subsection}
\subsubsection{subsubsection}
\end{document}
\subsubsection{\textit{My subsubsection}}
? If it works, you could try : \let\mysubsubsection\subsubsection \renewcommand{\subsubsection}[1]{\textit{\mysubsubsection{#1}}}titlesec
andsectsty
-- that are designed to modify the appearance of sectioning headers.