\documentclass{article}
% \usepackage{draftwatermark}
\usepackage{geometry}
\newgeometry{top=.84in, bottom=.7in, left=1in, right=.5in}
\setlength{\footskip}{15pt}
\usepackage{ulem}
\usepackage{fancyhdr}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
\usepackage{parskip}
\setlength{\parskip}{0mm}
\usepackage{pstricks}
\usepackage{quoting}
\quotingsetup{leftmargin=1in, rightmargin=1in, vskip=-1.5mm}
\makeatletter
\g@addto@macro\quoting\singlespacing
\g@addto@macro\quoting{\vspace{-2mm}}
\makeatother
\makeatletter
\renewenvironment{quotation}
{\list{}{\listparindent=0pt
\itemindent \listparindent
\leftmargin=1in
\rightmargin=1in
\topsep=-1mm
\parsep \z@ \@plus\p@}
\item\relax}
{\endlist}
\makeatother
\usepackage[T1]{pbsi}
\usepackage{times}
\renewcommand{\rmdefault}{ptm}
\renewcommand{\normalsize}{\fontsize{14}{14.5}\selectfont}
\newcommand*{\ptm}{
\fontfamily{ptm} \selectfont
\fontsize{14}{0}
\selectfont}
\newcommand*{\bsi}{
\bsifamily \selectfont
\fontsize{16}{15}
\selectfont}
\usepackage{setspace}
\doublespacing
\raggedright
\newcommand{\tab}{\hspace*{.5in}}
\newenvironment{tightcenter}{%
\setlength\topsep{0pt}
\setlength\parskip{0pt}
\begin{center}
}{%
\end{center}
}
% BEGIN left and right vertical lines, and line numbers.
\usepackage{eso-pic}
\usepackage{calc}
\newlength{\leftruleA}
\setlength{\leftruleA}{3.0\leftmargin-\marginparsep}
\newlength{\leftruleB}
\setlength{\leftruleB}{2.8\leftmargin-\marginparsep}
\newlength{\rightrule}
\setlength{\rightrule}{2.6\leftmargin+\textwidth+\marginparsep}
\AddToShipoutPicture{%
\AtPageLowerLeft {%
\put(\LenToUnit{\leftruleA},0){\rule{1pt}{\paperheight}} % First rule on the left
\put(\LenToUnit{\leftruleB},0){\rule{1pt}{\paperheight}} % Second rule on the left
\put(\LenToUnit{\rightrule},0){\rule{1pt}{\paperheight}} % Rule on the right
\rput(1.6,13.74) {
\begin{minipage}[t]{5mm}
\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.
% BEGIN footer
\pagestyle{fancy}
\cfoot{\vspace{-1mm} \ptm{-\thepage-} }
\rfoot{\makebox[2in]{\hrulefill}\\INSERT}%
% END footer
\begin{document}
\begin{singlespace*}
INSERT
~\\
Attorney for INSERT,
INSERT
\end{singlespace*}
\vspace*{18mm}
\begin{tightcenter}
SUPERIOR COURT OF THE STATE OF CALIFORNIA \\ FOR THE COUNTY OF LOS ANGELES
\end{tightcenter}
\vspace*{16.25mm}
% BEGIN caption.
{
\begin{minipage}[t]{3in}
In re the Marriage of
INSERT,
\tab \tab \tab Petitioner,
\tab \tab v.
INSERT,
\tab \tab \tab Respondent,
\makebox[3in]{\hrulefill}
\end{minipage}
\begin{minipage}[t]{5mm}
\begin{singlespace*}
)\\)\\)\\)\\)\\)\\)\\)\\)\\)\\)
\end{singlespace*}
\end{minipage}
\begin{minipage}[t]{3in}
Case Number: ~ INSERT
INSERT
\end{minipage}
}
% END caption.
\vspace{5mm}
\tab TO THE ABOVE-ENTITLED COURT AND TO THE PARTIES HEREIN AND THEIR ATTORNEYS OF RECORD:
\hspace*{3in}Respectfully submitted,\\
~\\
~\\
\begin{singlespace*}
Date: ~ \today \hspace*{30mm} By: ~ \makebox[3in]{\hrulefill}
\hspace*{3.5in}INSERT
\hspace*{3.5in}Attorney for INSERT,
\hspace*{3.5in}INSERT
\end{singlespace*}
\end{document}
Nothing in the code that was posted above contemplates an index, and the index is not something I am familiar with. What is an index and where are you trying to insert it?
Indexes are in this lyx pull down menu. I have a .lyx file which has indexes which I could send to you on this site or by email. You would then see how the indexes in lyx work.
I also have the same file with your program inserted. It prints the file great, with lined numbers down the left hand side. However, it won't work once I add an index from the lyx pulldown menu.
@lawquest -- I see now that you are using a "LyX – The Document Processor" from https://www.lyx.org/ . I briefly downloaded and took a look at that application today and decided that it would be too much time/effort to configure and familiarize myself with it, solely for the purpose of helping you out. Sorry, but I must gracefully bow-out and let another forum participant help you. I presently use Emacs to edit my LaTeX files manually and I run `pdflatex` through a Perl script called `latexmk`. Your question is not just about LaTeX code, but also about how to use that code in conjunction with the application mentioned above.
Thanks much for looking into the matter. I really appreciate it and understand why you have declined. I agree that someone in the Lyx forums is best source of help for my problem and I will pursue that.
Just so you know, we most appreciate the pleading paper template you uploaded a few years ago. We have been using it for about that long and it works great on lyx, so long as I don't add an index.
Joined just so I could answer your questions three years after the fact! To use the California Pleading template on say, Overleaf, you must compile to the correct target. Simply open the Menu and change the Compiler to LaTeX. @lawlist used the PSTricks package, which needs to compile to DVI format, not PDF. Overleaf converts it to PDF afterwards.