create context-beginner-vi
[cuteobr.git] / context-beginner-vi / vi / ma-cb-vi-alignments.tex
blob0014121988c9d6e9574cfa8e172515bfb9e8a872
1 \startcomponent ma-cb-vi-alignments
2 \project ma-cb
3 \product ma-cb-vi
4 \environment ma-cb-env-vi
6 %\chapter{Alignment}
7 \chapter{Gióng hàng}
9 \index{gióng hàng}
11 \Command{\tex{setupalign}}
12 \Command{\tex{setup tolerance}}
13 \Command{\tex{rightaligned}}
14 \Command{\tex{leftlines}}
15 \Command{\tex{midaligned}}
17 %Horizontal and vertical alignment can be set up with:
18 Việc gióng hàng dọc và ngang được làm với lệnh:
20 \shortsetup{setupalign}
22 %Single lines can be aligned with:
23 Các hàng đơn lẻ có thể được gióng với:
25 \starttyping
26 \rightaligned{}
27 \leftaligned{}
28 \midaligned{}
29 \stoptyping
31 %\startbuffer
32 %\leftaligned {Hasselt was built on a sandhill.}
33 %\midaligned {Hasselt was built on the crossing of two rivers.}
34 %\rightaligned {Hasselt's name stems from hazelwood.}
35 %\stopbuffer
36 \startbuffer
37 \leftaligned {Thành phố Hasselt được xây dựng trên một đồi cát.}
38 \midaligned {Thành phố Hasselt nằm bắc qua hai con sông.}
39 \rightaligned {Hasselt có tên từ thân cây gỗ phỉ.}
40 \stopbuffer
43 \typebuffer
45 %After processing this would look like:
46 Ví dụ trên sẽ cho ra thế này
48 \getbuffer
50 %Alignment of a paragraph is done with:
51 Gióng hàng một đoạn văn được làm với lệnh:
53 \shortsetup{startalignment}
55 %In case of alignment you can specify a tolerance and the
56 %direction (vertical or horizontal). Normally the tolerance
57 %is \type{verystrict}. In colums you could specify
58 %\type{verytolerant}. The tolerance in this manual is:
59 Khi gióng hàng, bạn có thể xác định phương hướng và mức sai lệch (dọc hay
60 ngang). Thông thường mức sai lệch là \type{verystrict}. Trong các cột, bạn có
61 thể xác định là \type{verytolerant}. Mức sai lệch trong sổ tay này là:
63 \starttyping
64 \setuptolerance[horizontal,verystrict]
65 \stoptyping
67 \stopcomponent