Amsldoc-Vi Tex
Amsldoc-Vi Tex
\documentclass[11pt,leqno,titlepage,openany,oneside]{amsldoc}[1999/12/13]
\else
\documentclass[a4paper,11pt,leqno,titlepage,openany]{amsldoc}[1999/12/13]
\usepackage[monochrome]{color}
\advance \topmargin by -3\baselineskip
\advance \textheight by 5\baselineskip
\usepackage{lmodern}
\fi
% \ifx\UndEfiNed\url
% \ClassError{amsldoc}{%
% This version of amsldoc.tex must be processed\MessageBreak
% with a newer version of amsldoc.cls (2.02 or later)}{}
% \fi
% ----------------------------------------------------------------------
\pdfminorversion=3
\usepackage[utf8]{vietnam}
\usepackage{amsxtra}
\usepackage{shortvrb}
\usepackage{afterpage}
\usepackage{amsfonts,euscript}
\MakeShortVerb{|}
% hack \url
% cannot use package hyperref. Donknow why?
% \makeatletter
% \let\old@url=\url
% \def\url#1{\textcolor{blue}{\old@url{#1}}}
% \makeatother
% ----------------------------------------------------------------------
\DeclareMathOperator{\tg}{tg}
% ----------------------------------------------------------------------
\newcommand{\entrylabel}[1]{\mbox{\textsf{#1:}}\hfil}
\newenvironment{entry}%
{\begin{list}{}%
{\renewcommand{\makelabel}{\entrylabel}%
\setlength{\labelwidth}{100pt}%
\setlength{\leftmargin}{\labelwidth}
\addtolength{\leftmargin}{\labelsep}%
}%
}%
{\end{list}}
\newlength{\mylen}
\newcommand{\lentrylabel}[1]{%
\settowidth{\mylen}{\textsf{#1:}}%
\ifthenelse{\lengthtest{\mylen >\labelwidth}}%
{\parbox[b]{\labelwidth}%
{\makebox[0pt][l]{\textsf{#1\space:}}\\}}%
{\hfil\textsf{#1\space:}}%
\relax}
\newenvironment{lentry}%
{\renewcommand{\entrylabel}{\lentrylabel}%
\begin{entry}}%
{\end{entry}}
% ----------------------------------------------------------------------
% :: hack heading
\makeatletter
\def\ps@empty{\let\@mkboth\@gobbletwo
\let\@oddhead\@empty \let\@evenhead\@empty
\let\@oddfoot\@empty
\let\@evenfoot\@empty
\global\topskip\normaltopskip}
\def\ps@plain{\ps@empty
\def\@oddfoot{\normalfont\scriptsize \hfil\thepage\hfil}%
\let\@evenfoot\@oddfoot}
%\newswitch{runhead}
\def\ps@headings{\ps@empty
%% \def\@oddfoot{\hfil Vn\TeX\ (\url{http://vntex.org})\hfil}
\def\@oddfoot{}
%% \def\@evenhead{%
%% \normalfont\small%\scriptsize
%% %%% \hfil
%% \thesection.
%% \leftmark{}{}\hfil \llap{\thepage}}%
\def\@evenhead{%
\normalfont\small\thepage\hfil
\leftmark{}{}}%
\def\@oddhead{%
\normalfont\small
\rightmark{}{}\hfil \llap{\thepage}}%
%%% \let\@evenhead\@oddhead
\let\@mkboth\markboth
\def\partmark{\@secmark\markboth\partrunhead\partname}%
\def\chaptermark{%
\@secmark\markboth\chapterrunhead{}}%
\def\sectionmark{%
\@secmark\markright\sectionrunhead\sectionname}%
}
\let\sectionname\@empty
\let\subsectionname\@empty
\let\subsubsectionname\@empty
\let\paragraphname\@empty
\let\subparagraphname\@empty
\def\leftmark{\expandafter\@firstoftwo\topmark{}{}}
\def\rightmark{\expandafter\@secondoftwo\botmark{}{}}
\long\def\@nilgobble#1\@nil{}
\def\@secmark#1#2#3#4{%
\begingroup \let\protect\@unexpandable@protect
\edef\@tempa{\endgroup \toks@{\protect#2{#3}{\@secnumber}}}%
\@tempa
\toks@\@xp{\the\toks@{#4}}%
\afterassignment\@nilgobble\@temptokena\@themark{}\@nil
\edef\@tempa{\@nx\@mkboth{%
\ifx\markright#1\the\@temptokena\else\the\toks@\fi}{\the\toks@}}%
\@tempa}
\let\@secnumber\@empty
\def\markboth#1#2{%
\begingroup
\@temptokena{{#1}{#2}}\xdef\@themark{\the\@temptokena}%
\mark{\the\@temptokena}%
\endgroup
\if@nobreak\ifvmode\nobreak\fi\fi}
\newskip\normaltopskip
\normaltopskip=10pt \relax
\let\sectionmark\@gobble
\let\subsectionmark\@gobble
\let\subsubsectionmark\@gobble
\let\paragraphmark\@gobble
\def\partrunhead#1#2#3{%
\@ifnotempty{#2}{\textsc{\ignorespaces#1 #2\unskip}\@ifnotempty{#3}{. }}%
\def\@tempa{#3}%
\ifx\@empty\@tempa\else
\begingroup \def\\{ \ignorespaces}% defend against questionable usage
% \MakeUppercase{\@tempa}
\textsc{\@tempa}
\endgroup
\fi
}
\let\chapterrunhead\partrunhead
\let\sectionrunhead\partrunhead
\renewenvironment{thebibliography}[1]
{\chapter*{\bibname}%
\@mkboth{\textsc{\bibname}}{\textsc{\bibname}}%
\list{\@biblabel{\@arabic\c@enumiv}}%
{\settowidth\labelwidth{\@biblabel{#1}}%
\leftmargin\labelwidth
\advance\leftmargin\labelsep
\@openbib@code
\usecounter{enumiv}%
\let\p@enumiv\@empty
\renewcommand\theenumiv{\@arabic\c@enumiv}}%
\sloppy
\clubpenalty4000
\@clubpenalty \clubpenalty
\widowpenalty4000%
\sfcode`\.\@m}
{\def\@noitemerr
{\@latex@warning{Empty `thebibliography' environment}}%
\endlist}
\makeatother
% ----------------------------------------------------------------------
% :: title
%\title{User's Guide for the \pkg{amsmath} Package (Version~2.0)}
\title{Hướng dẫn sử dụng gói \pkg{amsmath} (phiên bản 2.0)}
%\author{American Mathematical Society}
\date{}
% Many of the command names used here are rather long and will
% contribute to poor linebreaking if we follow the \latex/ practice
% of not hyphenating anything set in tt font; instead we selectively
% allow some hyphenation.
%\allowtthyphens % defined in amsldoc.cls
\newcommand{\booktitle}[1]{\textit{#1}}
\newcommand{\journalname}[1]{\textit{#1}}
\newcommand{\seriesname}[1]{\textit{#1}}
\newenvironment{eqxample}{%
\par\addvspace\medskipamount
\noindent\begin{minipage}{.5\columnwidth}%
\def\producing{\end{minipage}\begin{minipage}{.5\columnwidth}%
\hbox\bgroup\kern-.2pt\vrule width.2pt%
\vbox\bgroup\parindent0pt\relax
% The 3pt is to cancel the -\lineskip from \displ@y
\abovedisplayskip3pt \abovedisplayshortskip\abovedisplayskip
\belowdisplayskip0pt \belowdisplayshortskip\belowdisplayskip
\noindent}
}{%
\par
% Ensure that a lonely \[\] structure doesn't take up width less than
% \hsize.
\hrule height0pt width\hsize
\egroup\vrule width.2pt\kern-.2pt\egroup
\end{minipage}%
\par\addvspace\medskipamount
}
\renewcommand{\chaptername}[1]{}
\newcommand{\chapnum}[1]{\mdash #1\mdash }
\makeatletter
\def\@makechapterhead#1{%
\vspace{1.5\baselineskip}%
{\parindent \z@ \raggedright \reset@font
\ifnum \c@secnumdepth >\m@ne
\large\bfseries \chapnum{\thechapter}%
\par\nobreak
\vskip.5\baselineskip\relax
\fi
#1\par\nobreak
\vskip\baselineskip
}}
\makeatother
\DeclareMathOperator{\ix}{ix}
\DeclareMathOperator{\nul}{nul}
\DeclareMathOperator{\End}{End}
\DeclareMathOperator{\xxx}{xxx}
\usepackage[colorlinks,draft=false,
pdftitle={AMSLaTeX Manual, v2.0, Vietnamese edition},
pdfauthor={American Mathematical Society, Translator: Ky Anh <[email protected]>},
pdfsubject={Advanced Math Typesetting},
pdfkeywords={math, typesetting, formulas}]{hyperref} \input pd1supp.def
\ifx\printversion\undefined
\RequirePackage{thumbpdf}
\hypersetup{pdfpagemode=UseThumbs}
\fi
\hypersetup{plainpages=false}
\hypersetup{pdfpagelabels=false}
%\hypersetup{hypertexnames=true}
\hypersetup{naturalnames=true}
%\pagenumbering{roman}
\pagestyle{headings}
\begin{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\pagestyle{empty}
\maketitle
%% \rightline{\emph{The only way to learn mathematics is to do mathematics.}}
%% \medskip
%% \rightline{{\rm P. R. HALMOS}}
\ifx\printversion\undefined
\newpage
\else
\cleardoublepage
\fi
\tableofcontents
\cleardoublepage % for better page number placement
\pagestyle{headings}
%\pagenumbering{arabic}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter{Thuật ngữ}
Dưới đây là một số thuật ngữ dùng trong tài liệu này.
\medskip
\begin{lentry}
\item[dimension] độ dài trong \latex/, ví dụ: |6pt|, |-2pc|, |5mm|,...
\item[font]kiểu chữ
\item[hyphen]tách một chữ (ở cuối dòng) với nhiều ký tự thành các phần nhỏ
ngăn cách bởi dấu gạch ngang (dấu |hyphen|).
Việc tách này giúp cho một chữ quá dài không tràn ra khỏi dòng.
\item[number] \emph{bla bla bla\ldots}
\item[preamble] phần nằm trước |\begin{document}| của tập tin nguồn \latex/.
\item[tag] chỉ số phương trình
\item[robust]\emph{bla bla bla\ldots}
\item[text] chuỗi các mã nguồn \latex/, ví dụ: "|xem Tiên đề~\ref{ax:1}|"
\item[typeset] sắp chữ nhờ \latex/
% biên dịch tài liệu \latex/ nhờ chương trình |latex|, |pdflatex|,...
\item[wrap] tự động chia một dòng quá dài thành nhiều dòng nhỏ, để chúng
bố trí vừa trên một chiều rộng cố định cho trước
\item[canh cột]bố trí các phần của phương trình theo cột (chiều đứng)
\item[dấu ngoặc](phân cách); thuật ngữ tiếng Anh là |delimiter|; là các dấu
(,),[,],\{,\},$\vert$,...
\item[chỉ số phương trình]nhãn dùng để phân biệt các phương trình
\item[phương trình] biểu thức toán học bất kỳ được biểu diễn nhờ \latex/
\item[v-khoảng cách] khoảng cách theo chiều đứng
\end{lentry}
\chapter{Giới thiệu}
\medskip
\rightline{\url{http://www.ams.org/tex/amsmath.html}}
\rightline{\url{ftp://ftp.ams.org/pub/tex/}}
\medskip
\medskip
\rightline{\url{http://www.ams.org/tex/amsfonts.html}}
\medskip
\noindent
Tài liệu về gói \pkg{amsthm}, các lớp\footnote{|documentclass|} AMS (\cls{amsart},
\cls{amsbook}, etc.\@) có thể tìm thấy trong \cite{amsthdoc}, \cite{instr-l}
và
\medskip
\rightline{\url{http://www.ams.org/tex/author-info.html}}
% If you are a long-time \latex/ user and have lots of mathematics in what
% you write, then you may recognize solutions for some familiar problems
% in this list of \pkg{amsmath} features:
\bigskip
Nếu bạn đã làm việc lâu dài với \latex/ và phải |typeset| rất nhiều các biểu thức
toán học, thì với gói \pkg{amsmath}, bạn có thể tìm thấy giải pháp
cho những vấn đề hay gặp nhất:
\medskip
\begin{itemize}
\item
% A convenient way to define new `operator name' commands analogous
% to \cn{sin} and \cn{lim}, including proper side spacing and automatic
% selection of the correct font style and size (even when used in
% sub- or superscripts).
Dễ dàng định nghĩa toán tử, hàm toán học mới (tương tự như \cn{sin}, \cn{cos});
các toán tử mới sẽ tự động canh chỉnh kích thước, kiểu |font|
và khoảng cách tương quan với các phần tử khác trong biểu thức.
\item
% Multiple substitutes for the \env{eqnarray} environment to make
% various kinds of equation arrangements easier to write.
Nhiều biến thể của môi trường \env{eqnarray}
để sắp xếp nhiều loại (hệ) phương trình khác nhau.
\item
% Equation numbers automatically adjust up or down to avoid
% overprinting on the equation contents (unlike \env{eqnarray}).
Các số chỉ phương trình tự động chuyển dịch lên, xuống để tránh
tình trạng tràn trang (khắc phục nhược điểm của \env{eqnarray}).
\item
% Spacing around equals signs matches the normal spacing in the
% \env{equation} environment (unlike \env{eqnarray}).
Khoảng cách xung quanh dấu bằng ($=$) giống hệt khoảng cách bình thường
trong môi trường \env{equation} (không giống như \env{eqnarray}).
\item
% A way to produce multiline subscripts as are often used with
% summation or product symbols.
Có thể tạo chỉ số dưới, chỉ số trên với nhiều dòng (thường gặp khi
làm việc với các ký hiệu tổng, tích)
\item
% An easy way to substitute a variant equation number for a given
% equation instead of the automatically supplied number.
Dễ dàng tạo các biến thể cho việc đánh số một phương trình cho trước
(nếu bạn không thích kiểu đánh số mặc định).
\item
% An easy way to produce subordinate equation numbers of the form
% (1.3a) (1.3b) (1.3c) for selected groups of equations.
Dễ dàng đánh số các phương trình con dạng (1.3a) (1.3b) (1.3c)
từ một nhóm các phương trình. Việc đánh số này là \emph{tự động.}
\end{itemize}
\begin{description}
\item[\pkg{amsmath}]
% Primary package, provides various features for
% displayed equations and other mathematical constructs.
Gói chính; cung cấp rất nhiều tiện ích để biễu diễn phương trình
và các biểu thức toán học từ đơn giản đến phức tạp.
\item[\pkg{amstext}]
% Provides a \cn{text} command for
% typesetting a fragment of text inside a display.
Cung cấp lệnh \cn{text} để sắp xếp các đoạn văn bên trong
biểu thức toán học.
\item[\pkg{amsopn}]
% Provides \cn{DeclareMathOperator} for defining new
% `operator names' like \cn{sin} and \cn{lim}.
Cung cấp lệnh \cn{DeclareMathOperator} để định nghĩa
các toán tử mới, như \cn{sin}, \cn{lim}.
\item[\pkg{amsbsy}]
% For backward compatibility this package continues
% to exist but use of the newer \pkg{bm} package that comes with \LaTeX{}
% is recommended instead.
Gói này vẫn tồn tại để bảo đảm tính tương thích; tuy nhiên,
bạn nên dùng gói \pkg{bm} để thay thế cho \pkg{amsbsy}.
\item[\pkg{amscd}]
% Provides a \env{CD} environment for simple
% commutative diagrams (no support for diagonal arrows).
Cung cấp môi trường \env{CD} để biểu diễn các biểu đồ giao hoán
đơn giản (với gói này, bạn không thể vẽ các mũi tên chéo).
\item[\pkg{amsxtra}]
% Provides certain odds and ends such as
% \cn{fracwithdelims} and \cn{accentedsymbol}, for compatibility with
% documents created using version 1.1.
Gói bổ sung, nhằm bảo đảm tương thích với tài liệu dùng phiên bản 1.1
của \pkg{amsmath}. Cung cấp: \cn{fracwithdelims}, \cn{accentedsymbol},...
\end{description}
Để dùng tùy chọn của gói, bạn để tên của tùy chọn vào trong phần tham
số bổ sung của lệnh nạp gói \cn{usepakage}. Các tùy chọn cách nhau bằng
dấu phảy. Ví dụ:
\medskip
\verb"\usepackage[intlimits]{amsmath}"\\
\indent\verb"\usepackage[sumlimits,intlimits]{amsmath}"
\medskip
% The \pkg{amsmath} package has the following options:
Gói \pkg{amsmath} có các tùy chọn sau đây:
\begin{description}
\item[\opt{tbtags}]
%`Top-or-bottom tags': For a split equation, place
%equation numbers\index{equation numbers!vertical placement} level with
%the last (resp.\@ first) line, if numbers are on the right (resp.\@
%left).
`Top-or-bottom tags': Đặt chỉ số của phương trình ở phía bên phải,
dòng cuối cùng; hoặc ở phía bên trái, dòng đầu tiên.
\item[\opt{nosumlimits}]
% Always place the subscripts and superscripts of
% summation-type symbols to the side, even in displayed equations.
Luôn đặt chỉ số trên và chỉ số dưới của các ký hiệu dạng tổng ($\sum$, $\prod$,...)
ở bên cạnh, ngay cả trong công thức riêng dòng. Ví dụ $\sum_0^1$.
\item[\opt{intlimits}]
% Like \opt{sumlimits}, but for
% integral\index{integrals!placement of limits} symbols.
Tương tự như \opt{sumlimits}, nhưng cho ký hiệu tích phân.
% To use one of these package options, put the option name in the optional
% argument of the \cn{usepackage} command\mdash e.g.,
% \verb"\usepackage[intlimits]{amsmath}".
\item[\opt{leqno}]
% Place equation numbers on the left.\index{equation
% numbers!left or right placement}
Đặt chỉ số phương trình bên trái.
\item[\opt{reqno}]
% Place equation numbers on the right.
Đặt chỉ số phương trình bên phải.
\item[\opt{fleqn}]
% Position equations at a fixed indent from the left
% margin rather than centered in the text column.\index{displayed
% equations!centering}
Biểu diễn phương trình với lề trái cố định; theo mặc định, các phương
trình được canh giữa (do đó, lề trái của chúng \emph{thay đổi}).
\end{description}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\chapter{Displayed equations}
\chapter{Biểu diễn phương trình}
\section{Giới thiệu}
% The \pkg{amsmath} package provides a number of additional displayed
% equation structures\index{displayed
% equations}\index{equations|see{displayed equations}} beyond the ones
% provided in basic \latex/. The augmented set includes:
Gói \pkg{amsmath} cung cấp thêm các môi trường biểu diễn phương trình sau
đây, bên cạnh các môi trường chuẩn của \latex/:
\begin{verbatim}
equation equation* align align*
gather gather* flalign flalign*
multline multline* alignat alignat*
split
\end{verbatim}
% (Although the standard \env{eqnarray} environment remains available,
% it is better to use \env{align} or \env{equation}+\env{split} instead.)
(Mặc dù môi trường chuẩn \env{eqnarray} vẫn dùng được, nhưng tốt hơn hết
nên dùng môi trường \env{align} hoặc tổ hợp \env{equation}+\env{split}.)
\medskip
% Except for \env{split}, each environment has both starred and unstarred
% forms, where the unstarred forms have automatic numbering using
% \latex/'s \env{equation} counter.
Ngoại trừ \env{split}, mỗi môi trường đều có hai dạng:
\emph{có sao (*)} và \emph{không sao};
các môi trường không sao sẽ sử dụng bộ đếm \env{equation} của \latex/
để đánh số các phương trình một cách tự động (do đó, ta gọi
chúng là \emph{môi trường có đánh số}).
% You can suppress the number on any
% particular line by putting \cn{notag} before the \cn{\\};
Bạn có thể bỏ qua việc đánh số cho bất kỳ dòng phương trình nào
bằng cách đặt lệnh \cn{notag} trước khi dùng \cn{\\};
% you can also
% override\index{equation numbers!overriding} it with a tag of your own
% using \cn{tag}|{|\<label>|}|, where \<label> means arbitrary text such
% as |$*$| or |ii| used to \qq{number} the equation.
cũng có thể thay đổi kiểu đánh số cho dòng phương trình cụ thể, bằng
cách dùng \cn{tag}|{|\<label>|}|, ở đây \<label> là |text| bất kỳ,
chẳng hạn |$*$| hoặc |ii|. Theo mặc định, \<label> của \cn{tag} sẽ được
đặt trong cặp dấu ngoặc đơn, ví dụ (3.32);
nếu không muốn điều này xảy ra, bạn có thể dùng \cn{tag*}.
% There is also a
% \cn{tag*} command that causes the text you supply to be typeset
% literally, without adding parentheses around it.
\emph{Để ý rằng,}
% \cn{tag} and \cn{tag*}
% can also be used within the unnumbered versions of all the \pkg{amsmath}
% alignment structures. Some examples of the use of \cn{tag} may be found
% in the sample files \fn{testmath.tex} and \fn{subeqn.tex} provided with
% the \pkg{amsmath} package.
\cn{tag} và \cn{tag*} có thể dùng với mọi môi trường đã liệt kê ở trên,
chứ không phải với chỉ các môi trường có đánh số (không sao).
Ví dụ về việc dùng \cn{tag} có thể tìm thấy trong \fn{testmath.tex}
và \fn{subeqn.tex} được phân phối cùng với tài liệu này.
\begin{table}[p]
\caption[]{
% Comparison of displayed equation environments (vertical lines
% indicating nominal margins)
So sánh các môi trường biểu diễn phương trình (đường thẳng đứng
dùng để chỉ lề trái, phải của tờ giấy tưởng tượng)
}
\label{displays}
\renewcommand{\theequation}{\arabic{equation}}
\begin{eqxample}
\begin{verbatim}
\begin{equation*}
a=b
\end{equation*}
\end{verbatim}
\producing
\begin{equation*}
a=b
\end{equation*}
\end{eqxample}
\begin{eqxample}
\begin{verbatim}
\begin{equation}
a=b
\end{equation}
\end{verbatim}
\producing
\begin{equation}
a=b
\end{equation}
\end{eqxample}
\begin{eqxample}
\begin{verbatim}
\begin{equation}\label{xx}
\begin{split}
a& =b+c-d\\
& \quad +e-f\\
& =g+h\\
& =i
\end{split}
\end{equation}
\end{verbatim}
\producing
\begin{equation}\label{xx}
\begin{split}
a& =b+c-d\\
& \quad +e-f\\
& =g+h\\
& =i
\end{split}
\end{equation}
\end{eqxample}
\begin{eqxample}
\begin{verbatim}
\begin{multline}
a+b+c+d+e+f\\
+i+j+k+l+m+n
\end{multline}
\end{verbatim}
\producing
\begin{multline}
a+b+c+d+e+f\\
+i+j+k+l+m+n
\end{multline}
\end{eqxample}
\begin{eqxample}
\begin{verbatim}
\begin{gather}
a_1=b_1+c_1\\
a_2=b_2+c_2-d_2+e_2
\end{gather}
\end{verbatim}
\producing
\begin{gather}
a_1=b_1+c_1\\
a_2=b_2+c_2-d_2+e_2
\end{gather}
\end{eqxample}
\begin{eqxample}
\begin{verbatim}
\begin{align}
a_1& =b_1+c_1\\
a_2& =b_2+c_2-d_2+e_2
\end{align}
\end{verbatim}
\producing
\begin{align}
a_1& =b_1+c_1\\
a_2& =b_2+c_2-d_2+e_2
\end{align}
\end{eqxample}
\begin{eqxample}
\begin{verbatim}
\begin{align}
a_{11}& =b_{11}&
a_{12}& =b_{12}\\
a_{21}& =b_{21}&
a_{22}& =b_{22}+c_{22}
\end{align}
\end{verbatim}
\producing
\begin{align}
a_{11}& =b_{11}&
a_{12}& =b_{12}\\
a_{21}& =b_{21}&
a_{22}& =b_{22}+c_{22}
\end{align}
\end{eqxample}
\begin{eqxample}
\begin{verbatim}
\begin{flalign*}
a_{11}& =b_{11}&
a_{12}& =b_{12}\\
a_{21}& =b_{21}&
a_{22}& =b_{22}+c_{22}
\end{flalign*}
\end{verbatim}
\producing
\begin{flalign*}
a_{11}& =b_{11}&
a_{12}& =b_{12}\\
a_{21}& =b_{21}&
a_{22}& =b_{22}+c_{22}
\end{flalign*}
\end{eqxample}
\end{table}
\afterpage{\clearpage}
%\section{Single equations}
\section{Phương trình đơn}
Hai môi trường này chỉ biểu diễn phương trình trên đúng một dòng;
bạn không thể dùng \cn{\\} bên trong hai môi trường đó.
Nếu biểu thức quá dài, sẽ xảy tràn trang. Hãy xem mục tiếp theo.
% It's possible to force one of the middle lines to the left or right with
% commands \cn{shoveleft}, \cn{shoveright}. These commands take the entire
% line as an argument, up to but not including the final \cn{\\}; for
% example
\medskip
Có thể làm cho các dòng giữa của môi trường dịch chuyển qua trái hoặc
qua phải bằng cách lệnh \cn{shoveleft} hay \cn{shoveright}.
Các lệnh này sẽ nhận cả dòng cần dịch chuyển làm tham số
(nhưng trừ ra \cn{\\} ở cuối dòng)
\begin{multline}
\framebox[.65\columnwidth]{A}\\
\framebox[.5\columnwidth]{B}\\
\shoveright{\framebox[.55\columnwidth]{C}}\\
\framebox[.65\columnwidth]{D}
\end{multline}
\begin{verbatim}
\begin{multline}
\framebox[.65\columnwidth]{A}\\
\framebox[.5\columnwidth]{B}\\
%
\shoveright{\framebox[.55\columnwidth]{C}}\\
%
\framebox[.65\columnwidth]{D}
\end{multline}
\end{verbatim}
\begin{verbatim}
\begin{equation}\label{e:barwq}
\begin{split}
H_c &=\frac{1}{2n} \sum^n_{l=0}(-1)^{l}(n-{l})^{p-2}
\sum_{l _1+\dots+ l _p=l}\prod^p_{i=1}\binom{n_i}{l _i}
\\ &\quad\cdot[(n-l )-(n_i-l _i)]^{n_i-l _i}
\cdot\Bigl[(n-l )^2-\sum^p_{j=1}(n_i-l _i)^2\Bigr].
\end{split}
\end{equation}
\end{verbatim}
\medskip
Giống như \env{array}, các biến thể \texttt{-ed} nhận tham số tùy chọn (bổ sung)
\verb'[t]' hoặc \verb'[b]' để chỉ vị trí biểu diễn (`t' cho top-ở trên;
`b' cho bottom-ở dưới)
\medskip
Cần nhớ: các biến thể \env{cases} và \env{-ed} chỉ được dùng bên trong
các môi trường phương trình khác\mdash tương tự như \env{split}.
%\section{Adjusting tag placement}
\section{Thay đổi vị trí chỉ số phương trình}
\medskip
Việc điều chỉnh ví trí chỉ số bằng \cn{raisetag} là công việc tỉ mỉ, cũng như việc
ngắt dòng, ngắt trang bằng \cn{linebreak}, \cn{pagebreak}. Bạn \emph{chỉ nên}
thực hiện điều chỉnh khi tài liệu của bạn gần như hoàn tất, và cần làm
lại mỗi khi bạn thay đổi nội dung tài liệu.
\medskip
Khi dùng gói \pkg{amsmath}, việc \ii{ngắt trang} giữa các dòng của phương trình
không (tự động) xảy ra; bởi việc ngắt trang như vậy sẽ làm cho phương trình trở nên
khó theo dõi đối với độc giả.
% To get an individual page break
% inside a particular displayed equation, a \cn{displaybreak} command is
% provided.
Để ngắt trang bên trong phương trình, bạn phải làm bằng tay nhờ lệnh
\cn{displaybreak}.
% \cn{displaybreak} is best placed immediately before the
% \cn{\\} where it is to take effect. Like \latex/'s \cn{pagebreak},
% \cn{displaybreak} takes an optional argument between 0 and 4 denoting
% the desirability of the pagebreak. |\displaybreak[0]| means \qq{it is
% permissible to break here} without encouraging a break;
% \cn{displaybreak} with no optional argument is the same as
% |\displaybreak[4]| and forces a break.
Nơi đặt \cn{displaybreak} tốt nhất là ngay trước \cn{\\} ở dòng cần ngắt trang.
Giống như lệnh \cn{pagebreak} của \latex/, lệnh \cn{displaybreak} nhận
tham số bổ sung (tùy chọn) là một trong các số 0, 1, 2, 3, 4;
tham số này cho biết mức độ ngắt trang. Dùng |\displaybreak[0]| để hàm ý
\qq{không được ngắt trang ở đây},...; trong khi |\displaybreak|
(không có tham số bổ sung), như |\displaybreak[4]|, hàm ý
\qq{ngắt trang ở đây}.
% If you prefer a strategy of letting page breaks fall where they may,
% even in the middle of a multi-line equation, then you might put
% \cn{allowdisplaybreaks}\texttt{[1]} in the preamble of your document. An
% optional argument 1\ndash 4 can be used for finer control: |[1]| means
% allow page breaks, but avoid them as much as possible; values of 2,3,4
% mean increasing permissiveness. When display breaks are enabled with
% \cn{allowdisplaybreaks}, the \cn{\\*} command can be used to prohibit a
% pagebreak after a given line, as usual.
\medskip
Việc ngắt trang dùng \cn{displaybreak} như trên chỉ có thể làm đối với
phương trình cụ thể. Nếu muốn cung cấp cho gói \pkg{amsmath} \qq{giấy phép ngắt
trang}
một cách toàn cục (cho mọi phương trình nhiều dòng),
bạn dùng \cn{allowdisplaybreaks}\texttt{[1]} trong phần |preamble| của tài liệu.
Tham số bổ sung của lệnh này nhận giá trị từ 1 đến 4: |[1]| có nghĩa là
cho phép ngắt trang, nhưng tránh việc đó nếu có thể được; các giá trị 2,3,4
càng tăng khả năng ngắt trang. Khi dùng \cn{allowdisplaybreaks}, thì lệnh
\cn{\\*} dùng để cấm xảy ra ngắt trang sau một dòng cụ thể.
\medskip
\begin{bfseries}
% Note: Certain equation environments wrap their contents in an
% unbreakable box, with the consequence that neither \cn{displaybreak} nor
% \cn{allowdisplaybreaks} will have any effect on them. These include
Các môi trường \env{split}, \env{aligned}, \env{gathered} và \env{alignedat}
có khả năng |wrap| nội dung phương trình trong các hộp không cho phép ngắt
(|unbreakable box|); hệ quả là trong trường hợp đó, cả hai lệnh
\cn{displaybreak} và \cn{allowdisplaybreaks} đều không có tác dụng.
\end{bfseries}
%\section{Interrupting a display}
\section{Xen liên từ vào giữa các phương trình}
%\section{Equation numbering}
\section{Đánh số phương trình}
%\subsection{Numbering hierarchy}
\subsection{Hệ thống chỉ số phương trình}
% In \latex/ if you wanted to have equations numbered within
% sections\mdash that is, have
% equation numbers (1.1), (1.2), \dots, (2.1), (2.2),
% \dots, in sections 1, 2, and so forth\mdash you could redefine
% \cn{theequation} as suggested in the \latex/ manual \cite[\S6.3, \S C.8.4]
{lamport}:
Với \latex/, nếu bạn muốn đánh số phương trình theo mục\mdash
nghĩa là chỉ số phương trình có dạng (1.1), (1.2), \dots, (2.1), (2.2), \dots,
trong chương 1, 2, v.v...\mdash bạn có thể định nghĩa lại lệnh
\cn{theequation} như lời khuyên trong sổ tay (manual) \latex/
\cite[\S6.3, \S C.8.4]{lamport}:
\medskip
\begin{verbatim}
\renewcommand{\theequation}{\thesection.\arabic{equation}}
\end{verbatim}
% This works pretty well, except that the equation counter won't be reset
% to zero at the beginning of a new section or chapter, unless you do it
% yourself using \cn{setcounter}.
\medskip
Cách làm như trên cho kết quả như ý, nhưng có điều bất tiện là chỉ số
phương trình sẽ không tự động đặt về 0 khi chuyển%
\footnote{ở mục 1, các phương trình được đánh số (1.1), (1.2), \ldots;
còn qua mục 2, chỉ số phải bắt đầu từ (2.1) rồi đến (2.2), \ldots;
nghĩa là ta phải đặt bộ đếm về 0 khi vừa qua mục 2.}
% ----------------------------------------------------------------------
từ mục này qua mục khác, và bạn phải làm điều đó bằng tay nhờ lệnh \cn{setcounter}.
% To make this a little more convenient,
% the \pkg{amsmath} package provides a command\index{equation
% numbers!hierarchy} \cn{numberwithin}. To have equation numbering tied to
% section numbering, with automatic reset of the equation counter, write
Để cuộc sống dễ dàng hơn, gói \pkg{amsmath} cung cấp lệnh \cn{numberwithin};
nhờ lệnh này, bạn có thể đánh số phương trình theo mục, với chỉ số phương trình
\emph{tự động đặt về 0} khi sang mục mới.
\medskip
\begin{verbatim}
\numberwithin{equation}{section}
\end{verbatim}
\medskip
% As its name implies, the \cn{numberwithin} command can be applied to
% any counter, not just the \texttt{equation} counter.
Để ý rằng, lệnh \cn{numberwithin} có tác dụng đối với mọi bộ đếm, chứ
không riêng gì bộ đếm \texttt{equation}.
\medskip
\begin{verbatim}
\begin{subequations}
...
\end{subequations}
\end{verbatim}
\medskip
\begin{verbatim}
\begin{subequations}
\renewcommand{\theequation}{\theparentequation \roman{equation}}
...
\end{verbatim}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Ma trận}\label{ss:matrix}
\medskip
Các môi trường ma trận của \pkg{amsmath} sử dụng thuật toán
điều chỉnh khoảng cách và canh cột tinh tế, tiết kiệm hơn cách làm hoang phí%
\footnote{|prodigal|} của môi trường \env{array}.
% Also, unlike the \env{array} environment, you
% don't have to give column specifications for any of the matrix
% environments; by default you can have up to 10 centered columns.%
Hơn nữa, không giống như \env{array}, bạn không cần chỉ ra \emph{số cột}
khi dùng các môi trường \env{-matrix}; theo mặc định, số cột tối đa của
các ma trận là 10\mdash con số này có thể thay đổi được%
\footnote{%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% More precisely: The maximum number of columns in a matrix is determined
% by the counter |MaxMatrixCols| (normal value = 10), which you can change
% if necessary using \latex/'s \cn{setcounter} or \cn{addtocounter}
% commands.%
\emph{Cụ thể hơn:} số tối đa các cột của ma trận được xác định bởi bộ đếm |
MaxMatrixCols|
(mặc định là 10); để thay đổi số này, bạn dùng các lệnh của \latex/ là
\cn{setcounter} hoặc \cn{addtocounter}.
}.
% (If you need left or right alignment in a column or other special
% formats you must resort to \env{array}.)
(Nếu bạn muốn canh phải, trái các cột hoặc muốn tinh chỉnh ma trận theo ý bạn,
không còn cách nào khác hơn là bạn phải quay lại dùng môi trường \env{array}.)
\medskip
\begin{verbatim}
\bigl( \begin{smallmatrix}
a&b\\ c&d
\end{smallmatrix} \bigr)
\end{verbatim}
\medskip
Chú ý rằng các dấu ngoặc phải được chỉ ra khi dùng \env{smallmatrix};
không có các biến thể |p|,|b|,|B|,|v|,|V| của \env{smallmatrix}.
\medskip
\begin{center}
\begin{minipage}{.3\columnwidth}
\noindent$\begin{matrix} a&b&c&d\\
e&\hdotsfor{3} \end{matrix}$
\end{minipage}%
\qquad
\begin{minipage}{.45\columnwidth}
\begin{verbatim}
\begin{matrix} a&b&c&d\\
e&\hdotsfor{3} \end{matrix}
\end{verbatim}
\end{minipage}%
\end{center}
\begin{verbatim}
\begin{pmatrix} D_1t&-a_{12}t_2&\dots&-a_{1n}t_n\\
-a_{21}t_1&D_2t&\dots&-a_{2n}t_n\\
%
\hdotsfor[2]{4}\\% tăng gấp đôi khoảng cách giữa các dấu chấm
%
-a_{n1}t_1&-a_{n2}t_2&\dots&D_nt\end{pmatrix}
\end{verbatim}
\medskip
\begin{center}
\begin{tabular}{@{}l@{}l@{}}
\begin{minipage}[t]{.54\textwidth}
\begin{verbatim}
Ta có chuỗi $A_1, A_2, \dotsc$,
tổng vô hạn $A_1 +A_2 +\dotsb $,
tích vô hạn $A_1 A_2 \dotsm $,
và tích phân không xác định
\[\int_{A_1}\int_{A_2}\dotsi\]
\end{verbatim}
\end{minipage}
&
\begin{minipage}[t]{.45\textwidth}
\noindent
Ta có chuỗi $A_1, A_2, \dotsc$,
tổng vô hạn $A_1 +A_2 +\dotsb $,
tích vô hạn $A_1 A_2 \dotsm $,
và tích phân không xác định
\[\int_{A_1}\int_{A_2}\dotsi\]
\end{minipage}
\end{tabular}
\end{center}
%\section{Nonbreaking dashes}
\section{Gạch ngang không vỡ}
\medskip
\begin{verbatim}
\newcommand{\p}{$p$\nobreakdash}% cho "\p-adic"
\newcommand{\Ndash}{\nobreakdash--}% cho "các trang 1\Ndash 9"
% Cho không gian "\n chiều" ("n-chiều"):
\newcommand{\n}[1]{$n$\nobreakdash-\hspace{0pt}}
\end{verbatim}
% The last example shows how to prohibit a linebreak after the hyphen but
% allow normal hyphenation in the following word. (It suffices to add a
% zero-width space after the hyphen.)
\medskip
Ví dụ cuối cùng ở trên cho biết cách làm thế nào để ngăn cản ngắt dòng sau dấu
|hyphen| nhưng cho phép tách chữ bình thường ở từ tiếp theo dấu |hyphen| đó.
(Chỉ cần thêm một độ rộng 0 sau dấu |hyphen|.)
%\section{Accents in math}
\section{Dấu nhấn trong toán học}
%\section{Roots}
\section{Căn số}
\medskip
\begin{verbatim}
\sqrt[\leftroot{-2}\uproot{2}\beta]{k}
\end{verbatim}
%will move the beta up and to the right:
% $\sqrt[\leftroot{-2}\uproot{2}\beta]{k}$. The negative argument used
% with \cn{leftroot} moves the $\beta$ to the right. The units are a small
% amount that is a useful size for such adjustments.
\medskip\noindent
sẽ cho $\sqrt[\leftroot{-2}\uproot{2}\beta]{k}$. Nếu bạn dùng |dimension|
âm làm tham số của \cn{leftroot} (như trong ví dụ trên),
thì bậc căn số sẽ dịch chuyển qua phải.
%\section{Boxed formulas}
\section{Đóng khung biểu thức}
\begin{tabbing}
\qquad\=\ncn{overleftrightarrow}\qquad\=\kill
\> \cn{overleftarrow} \> \cn{underleftarrow} \+\\
\cn{overrightarrow} \> \cn{underrightarrow} \\
\cn{overleftrightarrow}\> \cn{underleftrightarrow}
\end{tabbing}
%\section{Extensible arrows}
%\section{Mũi tên có chỉ số. Bổ sung của ccc}
\section{Mũi tên có chỉ số.}
%% \medskip
%% Để có chẳng hạn,
%% \begin{equation}
%% A\xlongequal[ccc]{\text{theo (1)}}B,\qquad
%% A\xLongrightarrow{\text{theo Tiên đề 2}}B,
%% \end{equation}
%% bạn có thể dùng gói \pkg{ccc-arrows} (của |ccc|;
%% tải về: \url{http://vntex.org/download}).
\medskip
%See also the description of \cn{sideset} in \secref{sideset}.
Xem thêm cách dùng \cn{sideset} ở Mục~\secref{sideset}.
\medskip
\begin{center}\begin{minipage}{\columnwidth}
\raggedright \normalfont\ttfamily \exhyphenpenalty10000
\newcommand{\ma}[1]{%
\string{{\normalfont\itshape#1}\string}\penalty9999 \ignorespaces}
\string\genfrac \ma{left-delim} \ma{right-delim} \ma{thickness}
\ma{mathstyle} \ma{numerator} \ma{denominator}
\end{minipage}\end{center}
\medskip
\begin{verbatim}
\newcommand{\frac}[2]{\genfrac{}{}{}{}{#1}{#2}}
\newcommand{\tfrac}[2]{\genfrac{}{}{}{1}{#1}{#2}}
\newcommand{\binom}[2]{\genfrac{(}{)}{0pt}{}{#1}{#2}}
\end{verbatim}
% If you find yourself repeatedly using \cn{genfrac} throughout a document
% for a particular notation, you will do yourself a favor (and your
% publisher) if you define a meaningfully-named abbreviation for that
% notation, along the lines of \cn{frac} and \cn{binom}.
%\section{Continued fractions}
\section{Phân số liên tục}
Phân số liên tục\index{phân số liên tục}
\begin{equation}
\cfrac{1}{\sqrt{2}+
\cfrac{1}{\sqrt{2}+
\cfrac{1}{\sqrt{2}+\cdots
}}}
\end{equation}
%can be obtained by typing
có thể thu đựơc nhờ
{\samepage
\begin{verbatim}
\cfrac{1}{\sqrt{2}+
\cfrac{1}{\sqrt{2}+
\cfrac{1}{\sqrt{2}+\dotsb
}}}
\end{verbatim}
}% End of \samepage
% This produces better-looking results than straightforward use of
% \cn{frac}. Left or right placement of any of the numerators is
% accomplished by using \cn{cfrac}|[l]| or \cn{cfrac}|[r]| instead of
% \cn{cfrac}.
\medskip\noindent
Việc dùng \cn{cfrac} cho kết quả dễ nhìn hơn so với khi bạn tạo phân số
liên tục bằng \cn{frac}. Bạn có thể đặt vị trí của tử số ở bên trái hoặc
bên phải tùy ý, bằng cách dùng \cn{cfrac}|[l]| hoặc \cn{cfrac}|[r]| thay vì
\cn{cfrac}.
%\section{Smash options}
\section{Lệnh \cn{smash} đặt độ cao/sâu về 0}
\medskip
Ví dụ, chiều cao của các dấu căn bậc hai trong một biểu thức
không bằng nhau vì chiều cao đó tùy thuộc vào nội dung bên dưới dấu căn.
(Xem ở độ phóng đại lớn,) bạn sẽ thấy dấu căn trong $\sqrt y$ trong biểu thức
$\sqrt{x}+\sqrt{y}+\sqrt{z}$ đi xuống phía dưới chân dòng hơn so với
hai dấu căn còn lại. Ta sẽ dùng \cn{smash[b]} để đặt độ sâu của chữ $y$
về 0, nhờ đó, dấu căn trong $\sqrt y$ sẽ giống hệt dấu căn trong $\sqrt x$:
\medskip
\verb"$\sqrt{x}" \verb"+"
\verb"\sqrt{"\5\verb"\smash[b]{y}}" \verb"+" \verb"\sqrt{z}$".
\medskip\noindent
Bây giờ, bạn có $\sqrt{x}+\sqrt{\smash[b]{y}}+\sqrt{z}$. Bạn có thấy
sự khác biệt ở biểu thức này với biểu thức trước kia không?
%\section{Delimiters}
%
\section{Dấu ngoặc}
% The automatic delimiter sizing done by \cn{left} and \cn{right} has two
% limitations: First, it is applied mechanically to produce delimiters
% large enough to encompass the largest contained item, and second, the
% range of sizes is not even approximately continuous but has fairly large
% quantum jumps.
Việc dùng dấu ngoặc tự động điều chỉnh kích cỡ với \cn{left} và \cn{right}
có hai hạn chế: \emph{thứ nhất,} các lệnh này máy móc điều chỉnh cho dấu ngoặc
có chiều cao vừa bằng với chiều cao của nội dung cao nhất,
và \emph{thứ hai,} tập hợp các kích cỡ do chúng tạo ra không biến thiên
đều đặn, mà có những bước nhảy quá lớn\footnote{\emph{Nghĩa là:} hai dấu ngoặc kế
tiếp nhau
trong cùng biểu thức tạo bởi \cn{left} hoặc \cn{right} có thể có chiều cao
chênh nhau đến 3pt hoặc nhiều hơn, và như thế sẽ quá xấu!}.
% This means that a math fragment that is infinitesimally
% too large for a given delimiter size will get the next larger size, a
% jump of 3pt or so in normal-sized text.
\emph{Trường hợp đầu tiên,} là khi xảy ra sự chồng chất (|cumulative|) các
toán tử với chỉ số trên và dưới. Với \cn{left} và \cn{right}, các dấu ngoặc
tạo ra thường lớn hơn nhiều so với ý muốn; việc dùng |Big| or |bigg| thay
thế cho \cn{left} và \cn{right} cho kết quả khả quan hơn hẳn:
\begin{equation*}
\left[\sum_i a_i\left\lvert\sum_j x_{ij}\right\rvert^p\right]^{1/p}
\quad\text{so với}\quad
\biggl[\sum_i a_i\Bigl\lvert\sum_j x_{ij}\Bigr\rvert^p\biggr]^{1/p}
\end{equation*}
\begin{verbatim}
\biggl[\sum_i a_i\Bigl\lvert\sum_j x_{ij}\Bigr\rvert^p\biggr]^{1/p}
\end{verbatim}
% The second kind of situation is clustered pairs of delimiters where
% \cn{left} and \cn{right} make them all the same size (because that is
% adequate to cover the encompassed material) but what you really want
% is to make some of the delimiters slightly larger to make the nesting
% easier to see.
\medskip
\emph{Trường hợp thứ hai,} là khi các dấu ngoặc lồng nhau liên tiếp.
Trong trường hợp này, lệnh \cn{left} và \cn{right} cho ra các dấu ngoặc
cùng một kích cỡ\footnote{%
because that is adequate to cover the encompassed material.},
trong dấu ngoặc càng ở bên ngoài càng cần có kích thước lớn hơn.
\begin{equation*}
\left((a_1 b_1) - (a_2 b_2)\right)
\left((a_2 b_1) + (a_1 b_2)\right)
\quad\text{versus}\quad
\bigl((a_1 b_1) - (a_2 b_2)\bigr)
\bigl((a_2 b_1) + (a_1 b_2)\bigr)
\end{equation*}
\begin{verbatim}
\left((a_1 b_1) - (a_2 b_2)\right)
\left((a_2 b_1) + (a_1 b_2)\right)
\quad\text{so với}\quad
\bigl((a_1 b_1) - (a_2 b_2)\bigr)
\bigl((a_2 b_1) + (a_1 b_2)\bigr)
\end{verbatim}
% The third kind of situation is a slightly oversize object in running
% text, such as $\left\lvert\frac{b'}{d'}\right\rvert$ where the
% delimiters produced by \cn{left} and \cn{right} cause too much line
% spreading. In that case \ncn{bigl} and \ncn{bigr}\index{big@\cn{big},
% \cn{Big}, \cn{bigg}, \dots\ delimiters} can be used to produce
% delimiters that are slightly larger than the base size but still able to
% fit within the normal line spacing:
\medskip
\emph{Trường hợp thứ ba,} là khi biểu diễn các biểu thức quá khổ trong một
dòng, chẳng hạn biểu thức $\left\lvert\frac{b'}{d'}\right\rvert$ trong dòng này.
Các dấu ngoặc tạo bởi \cn{left} và \cn{right}, như bạn thấy, sẽ làm cho dòng
bị dãn quá nhiều theo chiều đứng. Khi đó, việc dùng \ncn{bigl} và \ncn{bigr}
chỉ cho ra dấu ngoặc vừa đủ cao và nhờ đó dòng không bị v-dãn nhiều quá,
như trong $\bigl\lvert\frac{b'}{d'}\bigr\rvert$.
\medskip
Ví dụ, bạn nên định nghĩa
\begin{verbatim}
\providecommand{\abs}[1]{\lvert#1\rvert}
\providecommand{\norm}[1]{\lVert#1\rVert}
\end{verbatim}
% whereupon the document would contain |\abs{z}| to produce $\lvert
% z\rvert$ and |\norm{v}| to produce $\lVert v\rVert$.
và suốt trong tài liệu của mình, bạn dùng |\abs{z}| để có
$\lvert z\rvert$ và dùng |\norm{v}| để có $\lVert v\rVert$.
%\chapter{Operator names}
\chapter{Tên toán tử}
%\section{Defining new operator names}
\section{Định nghĩa toán tử mới}\label{s:opname}
\begin{verbatim}
\DeclareMathOperator{\tg}{tg}
\end{verbatim}
% whereupon ensuing uses of \ncn{xxx} will produce {\upshape xxx} in the
% proper font and automatically add proper spacing\index{horizontal
% space!around operator names} on either side when necessary, so that you
% get $A\xxx B$ instead of $A\mathrm{xxx}B$. In the second argument of
% \cn{DeclareMathOperator} (the name text), a pseudo-text mode prevails:
% the hyphen character \qc{\-} will print as a text hyphen rather than a
% minus sign and an asterisk \qc{\*} will print as a raised text asterisk
% instead of a centered math star. (Compare
% \textit{a}-\textit{b}*\textit{c} and $a-b*c$.) But otherwise the name
% text is printed in math mode, so that you can use, e.g., subscripts and
% superscripts there.
nhờ đó, việc dùng \ncn{tg} sẽ cho ra $\tg$ với |font| chính xác
đồng thời tự động thêm cách khoảng cách xung quanh toán tử {\upshape tg}
khi cần thiết, nhờ đó, ta thu được $A(\tg x)B$ thay vì $A(\mathrm{tg}x)B$.
\medskip
\begin{verbatim}
\DeclareMathOperator*{\Lim}{Lim}
\end{verbatim}
%See also the discussion of subscript placement in
\medskip\noindent
Xem thêm ở Mục~\ref{subplace} về việc đặt chỉ số dưới.
\medskip
%The following operator names are predefined:
Các toán tử được định nghĩa trước là
\begin{ctab}{rlrlrlrl}
\cn{arccos}& $\arccos$ &\cn{deg}& $\deg$ & \cn{lg}& $\lg$ & \
cn{projlim}& $\projlim$\\
\cn{arcsin}& $\arcsin$ &\cn{det}& $\det$ & \cn{lim}& $\lim$ & \cn{sec}&
$\sec$\\
\cn{arctan}& $\arctan$ &\cn{dim}& $\dim$ & \cn{liminf}& $\liminf$ &\cn{sin}&
$\sin$\\
\cn{arg}& $\arg$ & \cn{exp}& $\exp$ & \cn{limsup}& $\limsup$ &\cn{sinh}&
$\sinh$\\
\cn{cos}& $\cos$ & \cn{gcd}& $\gcd$ & \cn{ln}& $\ln$ & \cn{sup}&
$\sup$\\
\cn{cosh}& $\cosh$ & \cn{hom}& $\hom$ & \cn{log}& $\log$ & \cn{tan}&
$\tan$\\
\cn{cot}& $\cot$ & \cn{inf}& $\inf$ & \cn{max}& $\max$ & \cn{tanh}&
$\tanh$\\
\cn{coth}& $\coth$ & \cn{injlim}& $\injlim$ &\cn{min}& $\min$\\
\cn{csc}& $\csc$ & \cn{ker}& $\ker$ & \cn{Pr}& $\Pr$
\end{ctab}
\begin{ctab}{rlrl}
\cn{varlimsup}& $\displaystyle\varlimsup$&
\cn{varinjlim}& $\displaystyle\varinjlim$\\
\cn{varliminf}& $\displaystyle\varliminf$&
\cn{varprojlim}& $\displaystyle\varprojlim$
\end{ctab}
\medskip
\begin{verbatim}
\operatorname{abc}
\end{verbatim}
%in a math formula is equivalent to a use of \ncn{abc} defined by
\medskip\noindent
trong biểu thức toán học tương đương với việc khai báo nhờ
\cn{DeclareMathOperator} rồi dùng \ncn{abc}. Lệnh \cn{operatorname}
chỉ nên dùng nếu toán tử thi thoảng gặp trong tài liệu;
còn nếu toán tử xuất hiện nhiều lần, bạn nên khai báo toán tử mới
nhờ \cn{DeclareMathOperator}.
% This may be occasionally useful for
% constructing more complex notation or other purposes.
\medskip
%(Use the variant \cn{operatorname*} to get limits.)
Để ý dùng \cn{operatorname*} trong trường hợp toán tử cần chỉ số.
\medskip
\begin{ctab}{ll}
\begin{minipage}[t]{.6\columnwidth}
\begin{verbatim}
\sideset{}{'}
\sum_{n<k,\;\text{$n$ odd}} nE_n
\end{verbatim}
\end{minipage}
&$\displaystyle
\sideset{}{'}\sum_{n<k,\;\text{$n$ odd}} nE_n
$
\end{ctab}
% The extra pair of empty braces is explained by the fact that
% \cn{sideset} has the capability of putting an extra symbol or symbols at
% each corner of a large operator; to put an asterisk at each corner of a
% product symbol, you would type
Phải dùng cặp dấu ngoặc rỗng (|{}|) như trên, là bởi lệnh \cn{sideset}
có khả năng đặt các ký hiệu vào bốn góc của toán tử lớn. Hãy học hỏi ví
dụ rất thú vị sau đây:
\medskip\begin{ctab}{ll}
\begin{minipage}[t]{.6\columnwidth}
\begin{verbatim}
\sideset{_*^*}{_*^*}\prod_{n=1}^{\infty}
\end{verbatim}
\end{minipage}
&$\displaystyle
\sideset{_*^*}{_*^*}\prod_{n=1}^{\infty}
$
\end{ctab}
%\chapter{Commutative diagrams}
\chapter{Biểu đồ giao hoán}\label{s:commdiag}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\chapter{Using math fonts}
\chapter{Sử dụng `font' toán}
\section{Giới thiệu}
\medskip
\begin{verbatim}
\newcommand{\vect}[1]{\mathbf{#1}}
\end{verbatim}
\medskip\noindent
bạn có thể viết |\vect{a} + \vect{b}| để có $\vect{a}+\vect{b}$;
bạn không nên dùng, chẳng hạn \cn{mb}|{a}|+\ncn{mb}|{b}| với lệnh \ncn{mb}
là dạng viết tắt của \cn{mathbf}.
% If you decide several months down the road that you want to use the bold
% font for some other purpose, and mark vectors by a small over-arrow
% instead, then you can put the change into effect merely by changing the
% definition of \ncn{vect}; otherwise you would have to replace all
% occurrences of \cn{mathbf} throughout your document, perhaps even
% needing to inspect each one to see whether it is indeed
% an instance of a vector.
Sau một vài tháng chẳng hạn, bạn thấy cần phải dùng |font| đậm cho mục đích khác,
chứ không phải để chỉ các véctơ, và muốn các véctơ bây giờ có thêm các mũi tên,
thì bạn có thể dễ dàng thực hiện được ý đồ của mình nếu bạn dùng định nghĩa
\cn{vect} để tạo véctơ; còn nếu ngược lại, bạn phải thay thế toàn bộ các lệnh
\cn{mb} trong tài liệu của bạn\mdash điều này nguy hiểm ở chỗ, việc thay thế
có thể ảnh hưởng đến các đối tượng không là véctơ nhưng được biểu diễn bằng
\cn{mb}.
\medskip
\begin{verbatim}
\DeclareSymbolFont{AMSb}{U}{msb}{m}{n}% or use amsfonts package
\DeclareMathSymbol{\C}{\mathalpha}{AMSb}{"43}
\DeclareMathSymbol{\R}{\mathalpha}{AMSb}{"52}
\end{verbatim}
% These statements would define the commands \cn{C} and \cn{R} to produce
% blackboard-bold letters from the `AMSb' math symbols font. If you refer
% often to the\break complex numbers or real numbers in your document, you
% might find this method more convenient than (let's say) defining a
% \ncn{field} command and writing\break |\field{C}|, |\field{R}|. But for
% maximum flexibility and control, define such a \ncn{field} command and
% then define \ncn{C} and \ncn{R} in terms of that
% command:\index{mathbb@\cn{mathbb}}
\medskip\noindent
Các dòng ở trên định nghĩa các lệnh \cn{C}, \cn{R} để lấy ra ký hiệu
`blackboard' từ bộ `AMSb' là |font| các ký hiệu. Nếu bạn thường xuyên
làm việc với các trường số thực, phức, bạn có thể có một cách tiện lợi, là
định nghĩa lệnh \ncn{field} và sau đó dùng |\field{C}|, |\field{R}|,...
để có các trường số mong muốn. Nhưng để \emph{tăng tối đa tính uyển chuyển
và khả năng điều khiển}, bạn hãy định nghĩa lệnh \ncn{field} rồi sau đó
định nghĩa các lệnh \ncn{C}, \ncn{R} dựa trên \ncn{field} như sau:
\medskip
\begin{verbatim}
\usepackage{amsfonts}% to get the \mathbb alphabet
\newcommand{\field}[1]{\mathbb{#1}}
\newcommand{\C}{\field{C}}
\newcommand{\R}{\field{R}}
\end{verbatim}
\medskip
\begin{verbatim}
\Delta \mathbf{\Delta}\mathbf{+}\delta \mathbf{\delta}
\end{verbatim}
\medskip\noindent
sẽ cho bạn $\Delta \mathbf{\Delta}\mathbf{+}\delta \mathbf{\delta}$;
%the \cn{mathbf} has no effect on the plus sign or the small delta.
để ý rằng, trong kết quả thu được, các dấu cộng và dấu $\delta$ không
bị ảnh hưởng bởi \cn{mathbf}.
% The \pkg{amsmath} package therefore provides two additional commands,
% \cn{boldsymbol} and \cn{pmb}, that can be applied to other kinds of math
% symbols. \cn{boldsymbol} can be used for a math symbol that remains
% unaffected by \cn{mathbf} if (and only if) your current math font set
% includes a bold version of that symbol. \cn{pmb} can be used as a last
% resort for any math symbols that do not have a true bold version
% provided by your set of math fonts; \qq{pmb} stands for \qq{poor man's
% bold} and the command works by typesetting multiple copies of the symbol
% with slight offsets. The quality of the output is inferior, especially
% for symbols that contain any hairline strokes. When the standard default set of
% \latex/ math fonts are in use (Computer Modern), the only symbols that
% are likely to require \cn{pmb} are large operator symbols like \cn{sum},
% extended delimiter symbols, or the extra math symbols provided by
% the \pkg{amssymb} package \cite{amsfonts}.
\medskip
Gói \pkg{amsmath} vì vậy cung cấp thêm hai lệnh mới, là
\cn{boldsymbol} và \cn{pmb}; các lệnh này có tác dụng làm đậm mọi loại
ký hiệu. Lệnh \cn{boldsymbol} có thể được dùng cho các ký hiệu toán không
bị ảnh hưởng bởi lệnh \cn{mathbf} \emph{nếu và chỉ nếu} |font| toán
đang dùng có phiên bản |đậm| tương ứng của ký hiệu đó. Lệnh \cn{pmb}
được dùng, như là giải pháp cuối cùng, cho trường hợp lệnh \cn{boldsymbol}
bất lực; \qq{pmb} là viết tắt của \qq{poor man's bold};
nguyên lý làm việc của lệnh \cn{pmb} là |typeset| nhiều bản sao của
ký hiệu và sắp xếp các bản sao đó sát bên nhau (giống như khi bạn
dùng bút kẻ nhiều đường liên tiếp nhau trên giấy để có một đường đậm nét).
Rõ ràng, chất lượng kết quả của lệnh \cn{pmb} là không tốt lắm, nhất là
độ nét của ký hiệu. Trong khi bộ |font| chuẩn của \latex/ được dùng để
|typeset| các biểu thức toán, là bộ |font| CM (Computer Modern), thì cần đến
lệnh \cn{pmb} chỉ là các ký hiệu toán tử lớn, như \cn{sum},
các dấu ngoặc quá cỡ, hay là các ký hiệu toán học bổ sung bởi gói
\pkg{amssymb} (xem \cite{amsfonts}).
% The following formula shows some of the results that are possible:
\medskip
Các biểu thức sau cho thấy một số kết quả khả dĩ:
\begin{verbatim}
A_\infty + \pi A_0
\sim \mathbf{A}_{\boldsymbol{\infty}} \boldsymbol{+}
\boldsymbol{\pi} \mathbf{A}_{\boldsymbol{0}}
\sim\pmb{A}_{\pmb{\infty}} \pmb{+}\pmb{\pi} \pmb{A}_{\pmb{0}}
\end{verbatim}
\begin{equation*}
A_\infty + \pi A_0
\sim \mathbf{A}_{\boldsymbol{\infty}} \boldsymbol{+}
\boldsymbol{\pi} \mathbf{A}_{\boldsymbol{0}}
\sim\pmb{A}_{\pmb{\infty}} \pmb{+}\pmb{\pi} \pmb{A}_{\pmb{0}}
\end{equation*}
% If you want to use only the \cn{boldsymbol} command without loading the
% whole \pkg{amsmath} package, the \pkg{bm} package is recommended (this
% is a standard \latex/ package, not an AMS package; you probably have it
% already if you have a 1997 or newer version of \latex/).
\medskip\noindent
Nếu bạn muốn dùng lệnh \cn{boldsymbol} độc lập mà không tải gói \pkg{amsmath},
thì hãy dùng gói \pkg{bm}; đây là gói thuộc chuẩn \latex/, không thuộc bộ
phân phối của các gói AMS. Gói này tích hợp trong bộ \latex/ phiên
bản năm 1997 hoặc cao hơn.
%\section{Italic Greek letters}
\section{Các chữ cái Hy Lạp in nghiêng}
% For italic versions of the capital Greek letters, the following commands
% are provided:
\begin{ctab}{rlrl}
\cn{varGamma}& $\varGamma$& \cn{varSigma}& $\varSigma$\\
\cn{varDelta}& $\varDelta$& \cn{varUpsilon}& $\varUpsilon$\\
\cn{varTheta}& $\varTheta$& \cn{varPhi}& $\varPhi$\\
\cn{varLambda}& $\varLambda$& \cn{varPsi}& $\varPsi$\\
\cn{varXi}& $\varXi$& \cn{varOmega}& $\varOmega$\\
\cn{varPi}& $\varPi$
\end{ctab}
\section{General remarks}
\section{Error messages}
l.8 \begin{split}
? h
\Did you forget a preceding \begin{equation}?
If not, perhaps the `aligned' environment is what you want.
?
\end{verbatim}
\errexpl
The \env{split} environment does not construct a stand-alone displayed
equation; it needs to be used within some other environment such as
\env{equation} or \env{gather}.
\end{error}
l.9 \end{alignat}
? h
\An extra & here is so disastrous that you should probably exit
and fix things up.
?
\end{verbatim}
\errexpl
In an \env{alignat} structure the number of alignment points per line
is dictated by the numeric argument given after |\begin{alignat}|.
If you use more alignment points in a line it is assumed that you
accidentally left out a newline command \cn{\\} and the above error is
issued.
\end{error}
?
\end{verbatim}
\errexpl
This usually follows a previous error |Font ... not loadable|; see the
discussion of that error (above) for solutions.
\end{error}
? h
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)
?
\end{verbatim}
\errexpl
There are many possibilities that can lead to this error. However, one
possibility that is relevant for the \pkg{amsmath} package is that you
forgot to give the number argument of an \env{alignat} environment, as
in:
\begin{verbatim}
\begin{alignat}
a& =b& c& =d\\
a'& =b'& c'& =d'
\end{alignat}
\end{verbatim}
where the first line should read instead
\begin{verbatim}
\begin{alignat}{2}
\end{verbatim}
\end{error}
? h
I've inserted something that you may have forgotten.
(See the <inserted text> above.)
With luck, this will get me unwedged. But if you
really didn't forget anything, try typing `2' now; then
my insertion and my current dilemma will both disappear.
\end{verbatim}
\errexpl
This error typically arises when you try to insert a linebreak inside a
\cn{left}-\cn{right} pair of delimiters in a \env{multline} or
\env{split} environment:
\begin{verbatim}
\begin{multline}
AAA\left(BBB\\
CCC\right)
\end{multline}
\end{verbatim}
There are two possible solutions: (1)~instead of using \cn{left} and
\cn{right}, use `big' delimiters of fixed size (\cn{bigl} \cn{bigr}
\cn{biggl} \cn{biggr} \dots; see \secref{bigdel}); or (2)~use null
delimiters to break up the \cn{left}-\cn{right} pair into parts for each
line:
\begin{verbatim}
AAA\left(BBB\right.\\
\left.CCC\right)
\end{verbatim}
The latter solution may result in mismatched delimiter sizes;
ensuring that they match requires using \cn{vphantom} in the line
that has the smaller delimiter (or possibly \cn{smash} in the line that
has the larger delimiter). In the argument of \cn{vphantom} put a copy
of the tallest element that occurs in the other line, e.g.,
\begin{verbatim}
xxx \left(\int_t yyy\right.\\
\left.\vphantom{\int_t} zzz ... \right)
\end{verbatim}
\end{error}
? h
I suspect you've forgotten a `}', causing me to apply this
control sequence to too much text. How can we recover?
My plan is to forget the whole thing and hope for the best.
?
\end{verbatim}
\errexpl
This might be produced by a misspelling in the |\end{multline}| command,
e.g.,
\begin{verbatim}
\begin{multline}
...
\end{multiline}
\end{verbatim}
or by using abbreviations for certain environments, such as |\bal| and
|\eal| for |\begin{align}| and |\end{align}|:
\begin{verbatim}
\bal
...
\eal
\end{verbatim}
For technical reasons that kind of abbreviation does not work with
the more complex displayed equation environments of the \pkg{amsmath} package
(\env{gather}, \env{align}, \env{split}, etc.; cf.\@ \fn{technote.tex}).
\end{error}
\begin{error}{Runaway argument?}
See the discussion for the error message
\texttt{Paragraph ended before \ncn{xxx} was complete}.
\end{error}
l.260 \end{alignat*}
\end{equation*}
\end{verbatim}
\errexpl
The structures \env{align}, \env{alignat}, etc., are designed
for top-level use and for the most part cannot be nested inside some
other displayed equation structure. The chief exception is that
\env{align} and most of its variants can be used inside the
\env{gather} environment.
\end{error}
\section{Warning messages}
\section{Wrong output}
This most likely means that you have the arguments for \cn{numberwithin}
in reverse order:
\begin{verbatim}
\numberwithin{section}{equation}
\end{verbatim}
That means `print the section number as \textit{equation
number}.\textit{section number} and reset to 1 every time an equation
occurs' when what you probably wanted was the inverse
\begin{verbatim}
\numberwithin{equation}{section}
\end{verbatim}
Are you looking at the first section in your document? Check the section
numbers elsewhere to see if the problem is the one described in
\secref{numinverse}.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newpage
\begin{thebibliography}{9}
\addcontentsline{toc}{chapter}{Tài liệu tham khảo}
\end{thebibliography}
%\begin{theindex}
%\end{theindex}
\end{document}
% Local Variables:
% coding: utf-8
% eval: (set-input-method "vietnamese-viqr")
% End: