On Thursday, May 31, 2018 6:58:43 AM PDT Rich Shepard wrote:
> On Wed, 30 May 2018, John White wrote:
> > lawlist was kind enough to send me the code which, he says, produses a
> > table of contents and list of authorties in latex, using pdflatex. But it
> > does not work in lyx. Do you have a suggestion regarding how I could get
> > TOC and indexes to work in lyx documents which have numbered lines along
> > the left-hand side of the paper? It is apparently not an easy thing to do.
> > Yet every lawyer who uses lyx to produce a brief with indexes and a table
> > of contents needs this function.
> 
> John,
> 
>    I'm far from a LaTeX expert, nor do I know how LyX might differ from the
> LaTeX verson of the class. I don't know how to look at the source to figure
> out why it's not working for you.
> 
>    My suggestion is to post the code as an attachment to the mail list and
> ask the devs and other LaTeX-perts if they could make it work as you (and
> other attorneys need it to) with LyX. Seems to me that would be a reasonable
> request and a useful extension to LyX's capabilities. CTAN shows 16
> packages for legal documents, but all in Europe.
> 
> Best regards,
> 
> Rich

Would the Devs and other lyx/LaTeX experts please take a look at the attached 
code.  Though I know little about LaTeX, I am told by lawlist that it works 
fine with pdflatex, generating pleading paper numbered along the left side, 
plus 
a table of authorities.  

And the same code works fine in a new blank lyx document.  However, as soon as 
I try to insert an index list in lyx 2.2.2, it blows up.  It would be most 
appreciated if the code could be altered so that it a lyx document could print 
lined pleading paper AND a table of contents and index list.

I am also attaching the pleadingpapercode I normally use.  It works fine and 
prints the TOC and inserting an index list does not blow it up.  However, 
actually indexing (insert/index entry) blows it up.

Thanks for assistance or suggestions.

John 

ps I remove 
\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

\usepackage{titlesec}
\titleformat*{\section}{\large\bfseries}
\titleformat*{\subsection}{\large\bfseries}
\titleformat*{\subsubsection}{\large\bfseries}
\setlength{\footskip}{15pt}
\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}

\let\OrgIndex\index

\renewcommand*{\index}[1]{\OrgIndex{#1}}

\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}

\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}
usepackage{titlesec}

\titleformat*{\section}{\large\bfseries}
\titleformat*{\subsection}{\large\bfseries}
\titleformat*{\subsubsection}{\large\bfseries}

 
\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}}
 

Reply via email to