Skip to main content

LaTeX Legal Documents: Contracts, Briefs, and Legal Writing

Published: March 7, 2026 Updated: May 8, 2026 Larry Qu 3 min read

Introduction

Legal documents require precise formatting, numbered paragraphs, and professional appearance. LaTeX can handle legal writing with proper setup.

This guide covers legal document creation in LaTeX.

\documentclass[12pt]{article}
\usepackage[margin=1in]{geometry}
\usepackage{setspace}

\title{Court Brief}
\author{Attorney Name}
\date{\today}

\begin{document}

\begin{center}
\textbf{\uppercase{Brief for the Court}}
\end{center}

\doublespacing

\section{Statement of Facts}
\label{sec:facts}

Paragraph of facts here...

\section{Argument}
\label{sec:argument}

\subsection{Point I}
\label{sec:point1}

Supporting argument...

\subsection{Point II}
\label{sec:point2}

Supporting argument...

\section{Conclusion}
\label{sec:conclusion}

WHEREFORE, movant respectfully requests...

\end{document}

Numbered Paragraphs

\newcounter{paranum}
\newcommand{\parnum}{\stepcounter{paranum}\theparanum.}

\newenvironment{legaltext}
{\begin{list}{}{\setlength{\itemindent}{-2em}\setlength{\leftmargin}{2em}}}
{\end{list}}

\begin{legaltext}
\item First numbered paragraph...
\item Second numbered paragraph...
\item Third numbered paragraph...
\end{legaltext}

Table of Authorities

Legal briefs often require a table of authorities citing cases, statutes, and regulations. LaTeX automates this with the tocloft and custom indexing:

\usepackage{tocloft}
\renewcommand{\cfttoctitlefont}{\hspace*{\fill}\Large\bfseries}
\renewcommand{\cftaftertoctitle}{\hspace*{\fill}}

% Custom list for authorities
\newcommand{\listofauthoritiesname}{Table of Authorities}
\newlistof{authorities}{loa}{\listofauthoritiesname}
\newcommand{\authority}[1]{%
  \addcontentsline{loa}{authority}{#1}}

After compiling, run makeindex to generate the sorted authority list. This ensures every cited case appears in the table with the correct page reference.

Bluebook Citation Format

US legal writing follows the Bluebook citation system. Define citation commands to enforce consistency:

\newcommand{\casecite}[3]{#1, #2~U.S.~#3}
\newcommand{\statutecite}[2]{#1~U.S.C.~\S~#2}

% Usage
\casecite{Marbury v. Madison}{5}{137}
\statutecite{Securities Exchange Act}{78b}

For law review articles, the bluebook package provides full Bluebook-compliant formatting with automatic abbreviation of court names and reporter volumes. Combine it with biblatex-chicago for parallel citation support.

Cross-References in Contracts

Contracts require precise cross-referencing between sections. LaTeX’s \label and \ref mechanism keeps references accurate as sections are renumbered:

\section{Indemnification}
\label{sec:indemnification}

The Indemnitor shall indemnify the Indemnitee as set forth in Section~\ref{sec:indemnification}.

\subsection{Limitations}
\label{sec:limitations}

Notwithstanding Section~\ref{sec:indemnification}, liability is capped...

For complex agreements, the zref package adds page references and property lists, enabling conditional clauses like “this Section~\ref{sec:limitations} applies only if the transaction value exceeds $1M.”

PDF Metadata for E-Filing

Courts require PDF metadata for electronic filing. Set document metadata directly in the preamble:

\usepackage{hyperref}
\hypersetup{
  pdfauthor={Law Firm Name},
  pdftitle={Brief for the Court},
  pdfsubject={Civil Action No. 25-1234},
  pdfkeywords={legal brief, federal court, motion summary judgment},
  pdfapart={3},
  pdfaconformance={B}
}

The pdfapart and pdfaconformance options tag the document as PDF/A-3B compliant, satisfying most e-filing system requirements.

Line Numbering for Contracts

Contracts and deposition exhibits need line numbering. The lineno package adds line numbers that reset per page or run continuously:

\usepackage[pagewise]{lineno}
\linenumbers
\modulolinenumbers[5]

% For selective numbering (e.g., exhibits only)
\begin{linenumbers*}
\textbf{EXHIBIT A:} Employment Agreement
\end{linenumbers*}

Line numbering integrates with \label so deposition transcripts can reference “at line 45 of Exhibit A” accurately after reprinting.

Conclusion

LaTeX provides professional-grade tools for legal document preparation, from briefs and contracts to law review articles. The combination of precise formatting, automated cross-references, and PDF/A compliance makes it a strong choice for legal practices seeking consistency and reliability.

Resources

Comments

👍 Was this article helpful?