📅  最后修改于: 2023-12-03 15:13:13.504000             🧑  作者: Mango
Prec-Tex is a package for LaTeX that adds functionality to typeset ordered pairs, triples, and n-tuples with proper spacing and parentheses. This package provides several new commands to help typeset these tuples in a consistent and organized manner.
The following commands are provided by the Prec-Tex package:
The \pair{x}{y}
command typesets an ordered pair (x, y)
with proper spacing and parentheses. For example:
\pair{x}{y}
becomes
$(x, y)$
The \triple{x}{y}{z}
command typesets an ordered triple (x, y, z)
with proper spacing and parentheses. For example:
\triple{x}{y}{z}
becomes
$(x, y, z)$
The \ntuple{a}{b}{c}{\dots}
command typesets an ordered n-tuple (a, b, c, \dots)
with proper spacing and parentheses. For example:
\ntuple{a}{b}{c}{d}
becomes
$(a, b, c, d)$
The \norm{x}
command typesets the norm of a vector x
with double vertical bars. For example:
\norm{x}
becomes
$\Vert x \Vert$
The \set{a}{b}{c}{\dots}
command typesets a set with braces and the elements separated by commas. For example:
\set{1}{2}{3}
becomes
${1,2,3}$
The \smallmatrix{a}{b}{c}{d}
command typesets a small matrix with parentheses as delimiters. For example:
\smallmatrix{a}{b}{c}{d}
becomes
$\begin{pmatrix}a & b \ c & d\end{pmatrix}$
The Prec-Tex package provides several useful commands for typesetting ordered pairs, triples, n-tuples, norms, sets, and small matrices. These commands can help programmers typeset complex mathematical equations with proper spacing and organization.