Gói Lê - NH Ulem - Sty - Các Du .. o .. ' NG Ga - CH Trên Tu .. ' Và Mô.t Câu Chu ..

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

..

.
Gi l.nh ulem.sty - cc du
o` ng ga.ch trn tu` v m.t
.
cu chu
Nguyn Hu.u in
Khoa Ton - Co. - Tin ho.c
HKHTN H N.i, HQGHN

Mu.c lu.c
1 Gio.i thi.u gi l.nh

2 Su. du.ng gi l.nh

Gio.i thi.u gi l.nh

Gi l.nh ulem.sty c ta.i


http://www.ctan.org/tex-archive/macros/latex/contrib/ulem
Tc gia l Donald Arseneau. Mu.c dch
l dng ga.ch cho cc tu`. trn dng.

Su. du.ng gi l.nh


1. Nhu.ng l.nh co. ban cua gi l.nh ny
Bang 1: ulem.sty
L.nh
\uline{important} \uline{Quan tro
.ng}
i m
\uuline{urgent}
\uuline{T
.t}
\uwave{boat}
\uwave{Go..n sng}
`i}
\sout{wrong}
\sout{Sai r
\xout{removed}
\xout{Xa i}
..
\dashuline{dashing}\dashuline{Ga
.ch du oi}
.
.

\dotuline{dotty} \dotuline{Chm du oi}

Kt qua
important Quan tro.ng
urgent Ti m.t
sng
boat Go..n ::::
:::: ::::
wrong Sai r`i
removed
////////// /////
Xa///
di

dashingGa.ch du.o.i
..
dotty
. . . . . Ch
. . . .m
. . .du
. . .o.i.

http://nhdien.wordpress.com - Nguyn Hu.u in

2. Gi l.nh cn cho php lm l.nh mo.i dng \markoverwith vo.i c php


\newcommand\cmd{\bgroup \markoverwith{<cch xa>}\ULon}

8 :

8 :

8 :

8 :

8 :

8 :

Ga.ch do

\newcommand\reduline{\bgroup\markoverwith
{\textcolor{red}{\rule[-0.5ex]{2pt}{0.4pt}}}\ULon}
}
\reduline{Ga
.ch o
3. C th dng tru..c tip cc l.nh t m`u

\textcolor{red}{
\uline{\textcolor{black}{important}}}\\
\textcolor{red}{
\uline{\textcolor{black}{AAAA}}}\\
\uline{BBBBBB}\\

\textcolor{blue}{
\uuline{\textcolor{black}{urgent}}}\\
\textcolor{blue}{
\uuline{\textcolor{lightgray}{CCCCC}}}\\
\uuline{CCCCC}

\textcolor{yellow}{
\uwave{\textcolor{black}{boat}}}\\
\textcolor{yellow}{
\uwave{\textcolor{black}{HHHHHHHHHH}}}\\
\uwave{VVVVVV}

\textcolor{green}{
\sout{\textcolor{black}{wrong}}}
\textcolor{green}{
\sout{\textcolor{darkgray}HHHHHHHHHHHHHHHH}}
\sout{KKKKKKKKKKKKKKKKKKK}

\textcolor{red}{
\xout{\textcolor{black}{removed}}}\\
\textcolor{red}{
\xout{\textcolor{black}{MMMMMMMMMMM}}}\\
\xout{BBBBBBBBBBB}

important
AAAA
BBBBBB

urgent
CCCCC
CCCCC

boat
::::
HHHHHHHHHH
::::::::::::::::
VVVVVV
::::::::::

wrong
HHHHHHHHHHHHHHHH
KKKKKKKKKKKKKKKKKKK

removed
//////////
MMMMMMMMMMM
/////////////////////////////
BBBBBBBBBBB
//////////////////////

4. Trong cng thu.c ton


\newcommand{\bs}{\texttt{\symbol{134}}}
\newcommand{\Bs}{\texttt{\Large\symbol{134}}}
\newcommand\cancel{\bgroup \markoverwith{\Bs}\ULon}
\newcommand\Cancel{\bgroup \markoverwith{\texttt{\Large{/}}}\ULon}
\newcommand{\cmd}[1]{\texttt{\def\{{\char\{}\def\}{\char\}}\bs#1}}

\begin{align*}
& \sum_{k=1}^n [1/k - 1/(k+1)] \\
&= [1-1/2]+[1/2-1/3]+\cdots+[1/n-1/(n+1)] \\
&= [1-\xout{12}]+[\xout{1/2}-\xout{1/3}]+
[\xout{ 1/3}-\xout{ 1/4}]\cdots+[\xout{1/n}-1/(n+1)]
& \qquad \qquad \text{(Dng \cmd{xout})} \\

\\

http://nhdien.wordpress.com - Nguyn Hu.u in

&= [1-\cancel{ 1/2}]+[\cancel{1/2}-\cancel{1/3}]+


[\cancel{ 1/3}-\cancel{ 1/4}]\cdots+[\cancel{1/n}-1/(n+1)]
& \qquad \qquad \text{(Dng \cmd{cancel})} \\
&= [1-\Cancel{1/2}]+[\Cancel{1/2}-\Cancel{1/3}]+
[\Cancel{ 1/3}-\Cancel{ 1/4}]\cdots+[\Cancel{1/n}-1/(n+1)]
& \qquad \qquad \text{(Dng \cmd{Cancel})} \\
&=1-1/(n+1)
\end{align*}

\\

\\

:
n
X

[1/k 1/(k + 1)]

k =1

= [1 1/2] + [1/2 1/3] + + [1/n 1/(n + 1)]


// ] + [1/2
= [1 12
//// 1/3
//// ] + [1/3
//// 1/4
//// ] + [1/n
//// 1/(n + 1)]
(Dng \xout)
= [1 1/2
\\ ] + [1/2
\\ 1/3
\\ ] + [1/3
\\ 1/4
\\ ] + [1/n
\\ 1/(n + 1)]
(Dng \cancel)
= [1 1/2
// ] + [1/2
// 1/3
// ] + [1/3
// 1/4
// ] + [1/n
// 1/(n + 1)]

(Dng \Cancel)
= 1 1/(n + 1)

$$
\cancel{\frac {22222}{88888}}
$$

8 :

2
22222

\\\\
88888

You might also like