Ishlab chiqarilgan stol ...
11 12 13
21 22 23
\documentclass{article}
\usepackage{array}
\begin{document}
\setlength{\extrarowheight}{16pt}
\begin{tabular}{|c|c|c|}
\hline
11 & 12 & 13\\
\hline
21 & 22 & 23 \\
\hline
\end{tabular}
\end{document}
Ishlab chiqarilgan stol ...
11 12 13
21 22 23
Asosiy nuqta: qator balandligini o'rnatish uchun massiv paketidagi \setlength dan foydalaning.
27.4 Kitoblar to'plami bilan chiroyli jadvallar
\documentclass{article}
\usepackage{booktabs}
\begin{document}
\begin{tabular}{ccc}
\toprule[1.5pt]
A & B & C \\
\midrule
11 & 12 & 13 \\
21 & 22 & 23 \\
31 & 32 & 33 \\
\bottomrule[1.5pt]
\end{tabular}
\end{document}
Ishlab chiqarilgan stol ...
A B C
11 12 13
21 22 23
31 32 33
Booktabs to'plami bilan chiroyli jadvallarga ega bo'ling!
27.5 jadvallarni ketma-ket birlashtirish
\documentclass{article}
\begin{document}
\begin{tabular}{ccc}
\hline
\multicolumn{2}{l}{Combined Column}&
\multicolumn{1}{l}{Last Column}\\
\hline
11 & 12 & 13 \\
21 & 22 & 23 \\
31 & 32 & 33 \\
\hline
\end{tabular}
\end{document}
Ishlab chiqarilgan stol ...
Birlashtirilgan ustun
Oxirgi ustun
11 12 13
21 22 23
31 32 33
Asosiy nuqta: qatordagi katakchalarni birlashtirish uchun \multiccolumn dan foydalaning. Buyruqning formati \multicolumn{cols}{pos}{text}
1.cols oraliq uchun ustunlar sonini belgilaydi.
2.pos yozuvning formatlanishini belgilaydi; markaz uchun c, chap uchun l, o'ng uchun r.
3.matn yozuvni qanday matn tuzish kerakligini belgilaydi.
Maslahat: Xuddi shunday, ustundagi jadvallarni birlashtirish uchun ko'p qatorli paket mavjud.
\documentclass{article}
\begin{document}
\begin{tabular}{ccc}
\hline
\multicolumn{2}{l}{Combined Column}&
\multicolumn{1}{l}{Last Column}\\
\cline{1-2}
11 & 12 & 13 \\
21 & 22 & 23 \\
31 & 32 & 33 \\
\hline
\end{tabular}
\end{document}
Do'stlaringiz bilan baham: |