Unless I take out flushright (near bottom of code), the Table of Contents won't
print.
If I take out flushright, everything works fine but I don't get pleading paper
with numbers down the left side.
Does anyone have a suggestion? I would most appreciate some help as I need
both (TOC and lined pleading paper)
Thanks in advance
John
\renewcommand\thesection{\Roman{section}}
% \renewcommand\thesubsection{\Alph{subsection}}
%\usepackage{titlesec}
\usepackage{sectsty}
\renewcommand\section{\@startsection {section}{1}{\z@}%
{-3.5ex \@plus -1ex \@minus -.2ex}%
{2.3ex \@plus.2ex}%
% {\normalfont\Large\bfseries}}
{\normalfont\bfseries}}
% {\normalfont\Large\bfseries\SS@sectfont}}
\renewcommand\subsection{\@startsection{subsection}{2}{\z@}%
{-3.25ex\@plus -1ex \@minus -.2ex}%
{1.5ex \@plus .2ex}%
% {\normalfont\large\bfseries}}
{\normalfont\bfseries}}
% {\normalfont\Large\bfseries\SS@subsectfont}}
\renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
{-3.25ex\@plus -1ex \@minus -.2ex}%
{1.5ex \@plus .2ex}%
{\normalfont\smallsize\bfseries}}
% {\normalfont\normalsize\bfseries\SS@subsubsectfont}}
\renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
{3.25ex \@plus1ex \@minus.2ex}%
{-1em}%
{\normalfont\normalsize\bfseries}}
% {\normalfont\normalsize\bfseries\SS@parafont}}
\renewcommand\subparagraph{\@startsection{subparagraph}{5}{\parindent}%
{3.25ex \@plus1ex \@minus .2ex}%
{-1em}%
{\normalfont\normalsize\bfseries}}
% {\normalfont\normalsize\bfseries\SS@subparafont}}
\renewenvironment{theindex}{%
\if@twocolumn\@restonecolfalse\else\@restonecoltrue\fi
\columnseprule \z@
\columnsep 35\p@
\@mkboth{\MakeUppercase\indexname}{\MakeUppercase\indexname}%
\thispagestyle{plain}\parindent\z@
\parskip\z@ \@plus .3\p@\relax
\let\item\@idxitem%
}{%
\if@restonecol\onecolumn\else\clearpage\fi}
\addtolength{\skip\footins}{6pt}
% ////////////////////////
\usepackage{geometry}
\newgeometry{top=.85in, bottom=.85in, left=1.30in, right=.65in}
\setlength{\footskip}{15pt}\usepackage{fancyhdr}
\usepackage{color}
\lhead{\small{www.dedoimedo.com}}
\rhead{\small{all rights reserved}}
\date{}
\usepackage{caption}
\captionsetup{labelfont=bf,format=plain,indention=0cm,justification=raggedright,singlelinecheck=false}
\usepackage{enumitem}
\usepackage[hang,splitrule]{footmisc}
\addtolength{\footskip}{0.5cm}
\setlength{\footnotemargin}{0.3cm}
\setlength{\footnotesep}{0.4cm}
\usepackage{multirow}
\usepackage{rotating}
\usepackage{listings}
\renewcommand{\arraystretch}{2}
\usepackage{watermark}
%\usepackage{geometry}
% \newgeometry{top=.85in, bottom=.85in, left=1.0in, right=1.0in}
\usepackage{ulem}
\usepackage{pstricks}
% BEGIN left and right vertical lines, and line numbers.
\usepackage{eso-pic}
\usepackage{calc}
\newlength{\leftruleA}
\setlength{\leftruleA}{3.2\leftmargin-\marginparsep}
\newlength{\leftruleB}
\setlength{\leftruleB}{3.0\leftmargin-\marginparsep}
\newlength{\rightrule}
\setlength{\rightrule}{3.0\leftmargin+\textwidth+\marginparsep}
\AddToShipoutPicture{%
\put(\LenToUnit{\leftruleA},0){\rule{.5pt}{\paperheight-.5in}} % First
rule on the left
\put(\LenToUnit{\leftruleB},0){\rule{.5pt}{\paperheight-.5in}} % Second
rule on the left
\put(\LenToUnit{\rightrule},0){\rule{.5pt}{\paperheight-.5in}} % Rule on
the right
\rput(1.6,13.74) {
\begin{minipage}[t]{20mm}
%\begin{flushright}
\begin{doublespace}
1\\2\\3\\4\\5\\6\\7\\8\\9\\10\\11\\12\\13\\14\\15\\16\\17\\18\
\19\\20\\21\\22\\23\\24\\25\\26\\27\\28
\end{doublespace}
% \end{flushright}
\end{minipage}
}
}
% END left and right vertical lines, and line numbers.
\let\OrgIndex\index
\renewcommand*{\index}[1]{\OrgIndex{#1}}