![法庭表格的樣式文件:動議、宣誓書等?](https://rvso.com/image/420755/%E6%B3%95%E5%BA%AD%E8%A1%A8%E6%A0%BC%E7%9A%84%E6%A8%A3%E5%BC%8F%E6%96%87%E4%BB%B6%EF%BC%9A%E5%8B%95%E8%AD%B0%E3%80%81%E5%AE%A3%E8%AA%93%E6%9B%B8%E7%AD%89%EF%BC%9F.png)
答案1
一般來說,通常的方法是將頁面劃分為矩形區塊或框架,然後用樣板文字和巨集變數填充它們。
然而,兩個名字、一個日期和一組項目(子句/原因)是書目條目的結構,這表明使用 biblatex 及其資料模型功能的想法:...每個原因都是一個書目條目,有原因每個條目的集合:
總體看法;
細節:
上半部:
下半區:
可行的。
<<已編輯:原始版本的答案說:“仍有一些細微的調整要做。”調整已完成:新增邊框(透過 TikZ);刪除子清單之前的空白行;用於姓名和日期的保存箱;標誌位置略有移動,外觀更平衡;並cellspace
在表格中的線條下方添加一點空間。 MWE 代碼已更新。 >>
另外,頁面大小和字體需要根據需要進行設定。
盒子裝飾可以用 tikz 或背景層上的 eso-pic 來完成。
微量元素
\begin{filecontents*}[overwrite]{\jobname.bib}
@xdata{cc6,
courtname={CIRCUIT COURT OF ILLINOIS},
courtrank={Sixth Judicial Circuit},
courtjurisdiction={Champaign County},
}
@xdata{lsk,
clerkname={LSK},
clerkaddressa={address line 1},
clerkaddressb={address line 2},
}
@misc{A01,
petitioner = {D Ducke and M Mousse},
sepdate = {2020-09-16},
xdata = {cc6,lsk},
template = {standardu},
reasons = {irrdiff, imprec, livsep, waitwo, divprop, wairig, volact, ackatt,},
}
@misc{A02,
petitioner = {Jack Spratt and Jill Spratt},
xdata = {cc6,lsk},
sepdate = {1520-02-14},
reasons = {irrdiff, imprec, livsep, waitwo, divprop, wairig, volact, ackatt,},
}
@misc{item1,
itemdescription={item 1 description},
}
@misc{item2,
itemdescription={item 2 description},
}
@misc{irrdiff,
itemdescription={That irreconcilable differences have caused the irretrievable breakdown of their marriage.},
}
@misc{imprec,
itemdescription={That all efforts at reconciliation of the differences between the parties have heretofore failed or future attempts at reconciliation would be impractical and not in the best interest of the parties.},
}
@misc{livsep,
itemdescription={That the parties have lived separate and apart for a continuous period of more than six (6) months prior to the date of this Affidavit, having separated on or about \usebox{\sbdate}, and have remained living separate for all times thereafter.},
}
@misc{waitwo,
itemdescription={\vspace{-\itemsep}\vspace{-\baselineskip}\begin{enumerate}[topsep=0pt]\item That each of the parties hereto expressly waive the requirement that the continuous period of living separate and apart be in excess of two (2) years in order for the court to enter a Dissolution of Marriage based upon irreconcilable differences which have cause the irretrievable breakdown of their marriage.\item Each of the parties further stipulates that the requirement shall be reduced to a period of only in excess of six (6) months rather than in excess of two (2) years as provided by Section 401(a)(2) of the Illinois Marriage and Dissolution of Marriage Act. \end{enumerate}},
}
@misc{divprop,
itemdescription={That the marital property amd debt belonging to the parties has been divided according to the terms of the written agreement of the parties filed with the Joint Petition for Simplified Dissolution of Marriage in this cause, and that the parties have executed all documents required to carry out the agreement.},
}
@misc{wairig,
itemdescription={That the parties waive any right either may have to a bifurcated hearing in this cause.},
}
@misc{volact,
itemdescription={That each of the parties represents that the signing of the Affidavit is their individual, sole, and voluntary act.},
}
@misc{ackatt,
itemdescription={That each of the parties accknowledges that he/she has the right to consult with an attorney and wither done so or has freely chosen not so do so.},
}
\end{filecontents*}
\begin{filecontents*}[overwrite]{courtform.dbx}
\DeclareDatamodelEntryfields[misc]{%
courtname,
courtrank,
courtjurisdiction,
petitioner,
reasons,
clerkname,
clerkaddressa,
clerkaddressb,
itemdescription,
sepdate,
}
\DeclareDatamodelFields[type=list, datatype=name]{%
petitioner,
}
\DeclareDatamodelFields[type=field, format=xsv, datatype=entrykey]{%
reasons,
}
\DeclareDatamodelFields[type=field, datatype=literal]{%
courtname,
courtrank,
courtjurisdiction,
clerkname,
clerkaddressa,
clerkaddressb,
itemdescription,
}
\DeclareDatamodelFields[type=field, datatype=date]{%
sepdate,
}
\end{filecontents*}
\documentclass[legal]{article}
\usepackage[margin=1.5cm]{geometry}
\usepackage{enumitem}
\usepackage{cellspace}%for space under hlines in tables
\setlength{\cellspacetoplimit}{0.5em}
%\usepackage{xcolor}
\usepackage[english]{babel}%for American date format for biblatex
%
\newsavebox{\sbdate}
\newsavebox{\sbpeta}
\newsavebox{\sbpetb}
%
%
%for the frame
\usepackage{tikz}
%
\usepackage[datamodel=courtform,
sepdate=comp,
dateabbrev=false]{biblatex}
\addbibresource{\jobname.bib}
\DeclareFieldFormat[misc]{itemdescription}{#1}
\newcommand{\entry}[1]{
\item \entrydata{#1}{\printfield{itemdescription}}
}
\DeclareFieldFormat{reasons}{
\begin{enumerate}[topsep=0pt]
\forcsvfield{\entry}{reasons}
\end{enumerate}
}
\DefineBibliographyStrings{english}{%
andothers = {\unspace},%remove et al. from first name, and the preceeding space
}
\DeclareFieldFormat{courtname}{\hfill\mkbibbold{#1}\hfill\ }
\DeclareFieldFormat{courtrank}{\hfill\mkbibbold{#1}\hfill\ }
\DeclareFieldFormat{courtjurisdiction}{\ \hfill\mkbibbold{#1}\hfill\ }
\DeclareCiteCommand{\citeitem}%
{}
{\printfield{itemdescription}}
{}
{}
\DeclareCiteCommand{\citeform}%
{}
{%
%top right corner of frame border:
\hfill \tikz[overlay,remember picture]\node[xshift=1.2em](ttr){};
%the form:
\bfseries
\savebox{\sbdate}{\printsepdate}%for re-use
\savebox{\sbpeta}{\printnames[][1-1]{petitioner}}%for re-use
\savebox{\sbpetb}{\printnames[][2-2]{petitioner}}%for re-use
\begin{center}\begin{tabular}{c}
\printfield{courtname}\\%
\\%
\printfield{courtrank}\\%
\printfield{courtjurisdiction}\\%
\end{tabular}\end{center}
\begin{tabular}{Sl}%S for extra vertical space
IN RE: THE MARRIAGE OF:\\
\\
\usebox{\sbpeta}\\%
\hline CO-PETITIONER\\%
\\
\\
\usebox{\sbpetb}\\%
\hline CO-PETITIONER\\%
\\
\end{tabular}
\begin{tabular}{l}
\\
\\
\\%
\\
\\%
and \\
\\%
\\
\\%
\end{tabular}
\begin{tabular}{r}
\mbox{\hspace{2em}}\\
\\
)\\%
)\\
)\\%
)\\
)\\%
)\\
)\\%
\end{tabular}
\begin{tabular}{c}
\\
\\
\\%
\\
\\%
\hspace{3em}Case No. \underline{\hspace{12em}} \\
\\%
\\
\\%
\end{tabular}
\begin{center}\begin{tabular}{c}
JOINT AFFIDDAVIT REGARDING SEPARATION OF THE PARTIES, DIVISION OF\\
PROPERTY AND DEBT AND WAIVER OF BIFURCATED HEARING\\
\end{tabular}\end{center}
\mdseries
Co-Petitioners, \usebox{\sbpeta}, and \usebox{\sbpetb}, being first sworn on their oaths, depose and state as follows:
\printfield{reasons}
\vfill
\ \hspace{5em}
\begin{tabular}{Sc}%with vertical space
\hspace{40em}\\
\hline (Co-Petitioner's Signature)
\end{tabular}
\hfill
\begin{tabular}{Sc}
\hspace{4em}\\
\hline (Co-Petitioner's Signature)
\end{tabular}\hspace{7em}
%bottom left corner of frame border:
\tikz[overlay,remember picture]\node[xshift=-2em](bbl){};
\begin{center}\begin{tabular}{c}
\printfield{clerkname}\\
\printfield{clerkaddressa}\\
\printfield{clerkaddressb}\\
\end{tabular}\end{center}
%draw the frame:
\begin{tikzpicture}[overlay,remember picture]
\draw[black, thick] (bbl) rectangle (ttr);
\end{tikzpicture}
}%
{}
{}
%========================
\renewcommand\thepage{}% remove page number
\begin{document}
\nocite{irrdiff,imprec,livsep,waitwo,divprop,wairig,volact,ackatt}
\citeform{A01}
\newpage
\citeform{A02}
\end{document}
編輯新增:關於使用xsv
-list 欄位呼叫其他雙項的核心方法是從這裡改編的:Biblatex:引用複雜的嵌套未發表來源關於引用存檔組件的問題。
此方法可適用於展覽清單、吸引力書籍、框架論證權威依賴性、美術館的展覽目錄、電視節目的收藏品(或郵票或硬幣)、考古遺址發現、學生閱讀(或活動)清單以及按主題、年份、等級等排列。