viettug vietex-doc-goi-lnh-refchecksty-kim-soat-nhan

Post on 18-Dec-2014

26 Views

Category:

Documents

3 Downloads

Preview:

Click to see full reader

DESCRIPTION

 

TRANSCRIPT

Gói lệnh refcheck.sty - kiểm soát nhãn

Nguyễn Hữu ĐiểnKhoa Toán - Cơ - Tin học

ĐHKHTN Hà Nội, ĐHQGHN

Ta biết một gói lệnh showkeys.sty để hiện lên các loại nhãn gán số để kiểm soát. Nhưngcòn một khuyết điểm trong gói đó là không biết nhãn nào có dùng, hoặc chỗ đánh số lạikhông có nhãn, gói lệnh refcheck.sty làm thêm chức năng này nữa, gói lệnh có tại

http://tug.ctan.org/tex-archive/macros/latex/contrib/refcheck/

1. Như ví dụ

\begin{eqnarray}&&a=b\label{eq.1}\\&&b=c\label{eq.2}\\&&c=d,\end{eqnarray}

cho ta

a = b (1) eq.1

b = c (2) ?eq.2?

c = d, (3) {?}

Ta dùng 1 còn lại thì không. Ta thấy đóng khung nhãn 1, còn nhãn hai chưa dùng nên cóđấu hỏi ở xung quanh. Đảng thức thứ 3 có đánh số nhưng không có nhãn.

2. Đánh dấu ở bảng thì hơi khác

Họ Tên Ngày sinh Nơi sinh

Bảng 1: Bảng 1〈tbl:tab1〉

Họ Tên Ngày sinh Nơi sinh

Bảng 2: Bảng 2?〈tbl:tab2〉?

Bảng 1 đã tham chiếu.

\begin{table}\centering\begin{tabular}{|r|c|l|p{5cm}|@{\hspace{1cm}}|l|}\hlineHọ & Tên & Ngày sinh & Nơi sinh\\\hline

1

\end{tabular}\caption{Bảng 1}\label{tbl:tab1}\end{table}

\begin{table}\centering\begin{tabular}{|r|c|l|p{5cm}|@{\hspace{1cm}}|l|}\hlineHọ & Tên & Ngày sinh & Nơi sinh\\\hline\end{tabular}\caption{Bảng 2}\label{tbl:tab2}\end{table}Bảng \ref{tbl:tab1} đã tham chiếu

3. Các nhãn tham chiếu khác như định lý và lệnh trích dẫn tài liệu.〈th:th001〉

Định lý 1. Cho c cạnh huyền và a, b là độ dài hai cạnh góc vuông thì a2 + b2 = c2

f(x) = x2 (4) eq:eq1

g(y) = y2 (5) ?eq:eq2?

Phương trình 1

Đẳng thức (4) và (??)

Trong [1],[2]

Tài liệu

manual [1] Leslie Lamport. LATEX: A Document Preparation System. Addison-Wesley, Reading,Massachusetts, second edition, 1994, ISBN 0-201-52983-1.

texbook [2] Donald E. Knuth. The TEXbook, Volume A of Computers and Typesetting, Addison-Wesley, Reading, Massachusetts, second edition, 1984, ISBN 0-201-13448-9.

Với

\newtheorem{theo}{Định lý}\begin{theo}\label{th:th001}Cho $c$ cạnh huyền và $ a$, $b$ là độ dài hai cạnh góc vuông thì $ a^2+ b^2= c^2$\end{theo}

\begin{equation}\label{eq:eq1}f(x)=x^2\end{equation}

\begin{equation}\label{eq:eq2}g(y)=y^2\end{equation}

2

Phương trình \ref{th:th001}

Đẳng thức \eqref{eq:eq1} và \eqref{eq:eq3}

Trong \cite{manual},\cite{texbook}

\begin{thebibliography}{99}\bibitem{manual}Leslie Lamport. \newblock \emph{{\LaTeX:} A Document

Preparation System}. \newblock Addison-Wesley, Reading,Massachusetts, second edition, 1994, ISBN~0-201-52983-1.

\bibitem{texbook}Donald~E. Knuth. \newblock \textit{The \TeX{}book,}

Volume~A of \textit{Computers and Typesetting}, Addison-Wesley,Reading, Massachusetts, second edition, 1984, ISBN~0-201-13448-9.

\end{thebibliography}

4. Cũng có tùy chọn cho gói lệnh để hiện ra các nhãn \usepackage[norefs]{refcheck}không hiện ra nhãn, ...

Option Command Switch Functionshowrefs∗ \showrefnames on to put keys of labelsnorefs \norefnames off in the marginal notesshowcites∗ \showcitenames on to put bibitem keysnocites \nocitenames off in the marginal notesmsgs∗ \setonmsgs on to write RefCheck’snomsgs \setoffmsgs off messages to .logchkunlbld∗ \checkunlbld on to check unlabelledignoreunlbld \ignoreunlbld off equations

∗ default

3

top related