I have small problem with my subsection.. Yeah it is fine, when i have small title as subsection, but when a longer title comes(i.e. when the title exceeds one line, then a line space is created between two titles). i think that is because of my definition of subsection.
Actually i want line space after every subsection title, but not in the case, if a title is about 2 lines.
If the title is 2 lines, then it should run countinously in the next line.
EX:
It should be,
2.1.1 ADVANTAGES OF INSTRUMENT TRANSFORMERS AS COMPARED WITH SHUNTS RESISTANCE AND MULTIPLIERS
This the relevant text........................
And not,
2.1.1 ADVANTAGES OF INSTRUMENT TRANSFORMERS AS COMPARED WITH SHUNTS
RESISTANCE AND MULTIPLIERS
This the relevant text........................
Code: Select all
\documentclass[10.5pt,english]{book}
\usepackage{fancybox,array,amsmath,amssymb,babel}
\usepackage[centering,
headheight=14pt,
headsep=10pt,
includehead,
papersize={18cm,24cm},
text={15.25cm,19.2cm},
dvips=false,
pdftex=false,
vtex=false]{geometry}
\usepackage[cam,a4,center,dvips]{crop}
\usepackage{graphicx,colortbl,textcomp,wrapfig}
\usepackage{fancyhdr,setspace}
\usepackage{ltxtable,tabularx,booktabs}
\fancyhf{}
\pagestyle{fancy}
\fancyhead[RO]{\small\fontfamily{phv}\textsc{Instrument Transformers}\hspace{15pt}\thepage}
\fancyhead[LE]{\thepage\hspace{15pt}\small\textsc{Electrical Measurements}}
%\fancyhead[LE,RO]{\thepage}
\headheight = 14pt
\headsep = 10pt
\hyphenpenalty=5000
% title formating %
\usepackage{titlesec}
\titleformat{\section}{\large \fontfamily{phv} \bfseries\uppercase}{\thesection}{1em}{\raggedbottom}
\titleformat{\subsection}{\fontfamily{phv}
\fontsize{11}{27.5}\bfseries}{\thesubsection}{1em}{\raggedbottom}
\titleformat{\subsubsection}{\fontfamily{phv} \bfseries}{\thesubsubsection}{1em}{\raggedbottom}
\titlespacing{\subsection}{0pt}{*2}{*1}
\titlespacing{\subsubsection}{0pt}{*2}{*1}
\begin{document}
\thispagestyle{empty}
\setcounter{chapter}{2}
\setcounter{secnumdepth}{3}
\setcounter{page}{1}
\section{Introduction}
A very general method of increasing the range of a.c. instruments is to use instrument transformers in.
\subsection{Advantages Of Instrument Transformers As Compared With Shunts And Multipliers}
A very general method of increasing the range of a.c. instruments is to use instrument transformers in.
\end{document}
Regards,
Muthu