เรียนอาจารย์ครับ
-------------------------------------------------------------------------------------------------------------------------------------
\documentclass[12pt,a4paper]{article}
\usepackage{fontspec}
\usepackage{xunicode}
\usepackage{xltxtra}
\usepackage{tabularx}
\defaultfontfeatures{Scale=1.23}
\XeTeXlinebreaklocale “th_TH”
\setmainfont[Scale=1.23]{THNiramitAS}
\pagestyle{empty}
\setlength\topmargin{-.5in}
\setlength\oddsidemargin{-.5in}
\setlength\evensidemargin{-.5in}
\setlength\textwidth{7.3in}
\setlength\textheight{11.2in}
\setlength{\headheight}{0in}
\setlength{\headsep}{0in}
\begin{document}
\noindent
By 1975 so many countries were using the German system that it was established as an ISO standard, as well as the official United Nations document format. By 1977 A4 was the standard letter format in 88 of 148 countries. Today the standard has been adopted by all countries in the world except the United States and Canada. In Mexico, Colombia, Venezuela, Argentina, Chile and the Philippines the US letter format is still in common use, despite their official adoption of the ISO standard. \\
\noindent
\begin{tabular}{p{0.2\textwidth}p{0.3\textwidth}p{0.1\textwidth}p{0.4\textwidth}}\\ \hline
20\% & 30\% & 10\% & 40\% \\ \hline
\end{tabular}
\end{document}
----------------------------------------------------------------------------------------------------------------------------
ผมลอง run ดูได้ผลดังรูปครับ

ผมจึงขออนุญาติเรียนถามดังนี้ครับ
1. ทำยังไงให้เส้นตารางมันไม่เลยขอบกระดาษออกมาครับ
2. ถ้าจะใส่เส้นในแนวตั้ง ใส่อย่างไรครับ ผมลองใส่แบบ |p{0.2\textwidth}| มันก็ไม่ใช่นะครับ
3. ถ้าจะ set บางคอลัมภ์ให้มี alignment เป็น C R J ต้องสั่งอย่างไรครับ
4. ถ้าจะรวม 3 คอลัมภ์แรกในตารางให้เป็น คอลัมภ์เดียว สั่งยังไงครับ
แฮ่ ๆ ๆ รบกวนเยอะเรยยยย....
ขอบคุณครับ
สุขุม