LaTeX forum ⇒ Page LayoutPleading Paper -- setting up a template Topic is solved

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
lawlist
Posts: 8
Joined: Sun Feb 24, 2013 11:00 pm

Pleading Paper -- setting up a template  Topic is solved

Postby lawlist » Wed Feb 27, 2013 5:35 am

Here is the code for anyone needing legal pleading paper -- the format is for California, U.S.A.:

  1. \documentclass{article}
  2. % \usepackage{draftwatermark}
  3. \usepackage{geometry}
  4. \newgeometry{top=.84in, bottom=.7in, left=1in, right=.5in}
  5. \setlength{\footskip}{15pt}
  6. \usepackage{ulem}
  7. \usepackage{fancyhdr}
  8. \renewcommand{\headrulewidth}{0pt}
  9. \renewcommand{\footrulewidth}{0pt}
  10. \usepackage{parskip}
  11. \setlength{\parskip}{0mm}
  12. \usepackage{pstricks}
  13. \usepackage{quoting}
  14. \quotingsetup{leftmargin=1in, rightmargin=1in, vskip=-1.5mm}
  15. \makeatletter
  16. \g@addto@macro\quoting\singlespacing
  17. \g@addto@macro\quoting{\vspace{-2mm}}
  18. \makeatother
  19. \makeatletter
  20. \renewenvironment{quotation}
  21. {\list{}{\listparindent=0pt
  22. \itemindent \listparindent
  23. \leftmargin=1in
  24. \rightmargin=1in
  25. \topsep=-1mm
  26. \parsep \z@ \@plus\p@}
  27. \item\relax}
  28. {\endlist}
  29. \makeatother
  30. \usepackage[T1]{pbsi}
  31. \usepackage{times}
  32. \renewcommand{\rmdefault}{ptm}
  33. \renewcommand{\normalsize}{\fontsize{14}{14.5}\selectfont}
  34.  
  35. \newcommand*{\ptm}{
  36. \fontfamily{ptm} \selectfont
  37. \fontsize{14}{0}
  38. \selectfont}
  39.  
  40. \newcommand*{\bsi}{
  41. \bsifamily \selectfont
  42. \fontsize{16}{15}
  43. \selectfont}
  44.  
  45. \usepackage{setspace}
  46. \doublespacing
  47.  
  48. \raggedright
  49.  
  50. \newcommand{\tab}{\hspace*{.5in}}
  51.  
  52. \newenvironment{tightcenter}{%
  53. \setlength\topsep{0pt}
  54. \setlength\parskip{0pt}
  55. \begin{center}
  56. }{%
  57. \end{center}
  58. }
  59.  
  60. % BEGIN left and right vertical lines, and line numbers.
  61. \usepackage{eso-pic}
  62. \usepackage{calc}
  63. \newlength{\leftruleA}
  64. \setlength{\leftruleA}{3.0\leftmargin-\marginparsep}
  65. \newlength{\leftruleB}
  66. \setlength{\leftruleB}{2.8\leftmargin-\marginparsep}
  67. \newlength{\rightrule}
  68. \setlength{\rightrule}{2.6\leftmargin+\textwidth+\marginparsep}
  69. \AddToShipoutPicture{%
  70. \AtPageLowerLeft {%
  71. \put(\LenToUnit{\leftruleA},0){\rule{1pt}{\paperheight}} % First rule on the left
  72. \put(\LenToUnit{\leftruleB},0){\rule{1pt}{\paperheight}} % Second rule on the left
  73. \put(\LenToUnit{\rightrule},0){\rule{1pt}{\paperheight}} % Rule on the right
  74. \rput(1.6,13.74) {
  75. \begin{minipage}[t]{5mm}
  76. \begin{flushright}
  77. \begin{doublespace}
  78. 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
  79. \end{doublespace}
  80. \end{flushright}
  81. \end{minipage}
  82. }
  83. }
  84. }
  85. % END left and right vertical lines, and line numbers.
  86.  
  87. % BEGIN footer
  88. \pagestyle{fancy}
  89. \cfoot{\vspace{-1mm} \ptm{-\thepage-} }
  90. \rfoot{\makebox[2in]{\hrulefill}\\INSERT}%
  91. % END footer
  92.  
  93. \begin{document}
  94.  
  95. \begin{singlespace*}
  96.  
  97. INSERT
  98.  
  99. ~\\
  100.  
  101. Attorney for INSERT,
  102.  
  103. INSERT
  104.  
  105. \end{singlespace*}
  106.  
  107. \vspace*{18mm}
  108.  
  109. \begin{tightcenter}
  110. SUPERIOR COURT OF THE STATE OF CALIFORNIA \\ FOR THE COUNTY OF LOS ANGELES
  111. \end{tightcenter}
  112.  
  113. \vspace*{16.25mm}
  114.  
  115. % BEGIN caption.
  116. {
  117. \begin{minipage}[t]{3in}
  118.  
  119. In re the Marriage of
  120.  
  121. INSERT,
  122.  
  123. \tab \tab \tab Petitioner,
  124.  
  125. \tab \tab v.
  126.  
  127. INSERT,
  128.  
  129. \tab \tab \tab Respondent,
  130.  
  131. \makebox[3in]{\hrulefill}
  132.  
  133. \end{minipage}
  134. \begin{minipage}[t]{5mm}
  135. \begin{singlespace*}
  136. )\\)\\)\\)\\)\\)\\)\\)\\)\\)\\)
  137. \end{singlespace*}
  138. \end{minipage}
  139. \begin{minipage}[t]{3in}
  140.  
  141. Case Number: ~ INSERT
  142.  
  143. INSERT
  144.  
  145.  
  146. \end{minipage}
  147. }
  148. % END caption.
  149.  
  150. \vspace{5mm}
  151.  
  152. \tab TO THE ABOVE-ENTITLED COURT AND TO THE PARTIES HEREIN AND THEIR ATTORNEYS OF RECORD:
  153.  
  154.  
  155. \hspace*{3in}Respectfully submitted,\\
  156.  
  157. ~\\
  158. ~\\
  159.  
  160. \begin{singlespace*}
  161.  
  162. Date: ~ \today \hspace*{30mm} By: ~ \makebox[3in]{\hrulefill}
  163.  
  164. \hspace*{3.5in}INSERT
  165.  
  166. \hspace*{3.5in}Attorney for INSERT,
  167.  
  168. \hspace*{3.5in}INSERT
  169.  
  170. \end{singlespace*}
  171.  
  172. \end{document}

Tags:

lawquest
Posts: 5
Joined: Sun May 27, 2018 2:21 am

Postby lawquest » Sun May 27, 2018 5:43 am

Can't insert index into the file.

John 775-313-9104

lawlist
Posts: 8
Joined: Sun Feb 24, 2013 11:00 pm

Postby lawlist » Sun May 27, 2018 5:47 am

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?

lawquest
Posts: 5
Joined: Sun May 27, 2018 2:21 am

Postby lawquest » Tue May 29, 2018 7:36 pm

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.

John

lawquest
Posts: 5
Joined: Sun May 27, 2018 2:21 am

Postby lawquest » Tue May 29, 2018 8:27 pm

Could tell me what to do to your code so that it will print the whole document rather than stopping at the end of page 1?

lawlist
Posts: 8
Joined: Sun Feb 24, 2013 11:00 pm

Postby lawlist » Tue May 29, 2018 9:50 pm

@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.

lawquest
Posts: 5
Joined: Sun May 27, 2018 2:21 am

Postby lawquest » Wed May 30, 2018 1:47 am

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.

John


Return to “Page Layout”

Who is online

Users browsing this forum: fhrttn and 1 guest