I try to use Latex with Thai language. I found a few problems.
\usepackage[Lenny]{fncychap}does not completely support Thai font. (TH Sarabun New is an opentype font)\bibliography{bib}do not support Thai font.
There is something wrong with my preamble.
\documentclass[a4paper,12pt,twoside,onecolumn,openright,final]{memoir}
% Page Setup
\setlrmarginsandblock{3.81cm}{2.54cm}{*}
\setulmarginsandblock{2.54cm}{2.54cm}{*}
\checkandfixthelayout
% Header & Footer Setup
\nouppercaseheads
\makepagestyle{mystyle}
\setlength{\headwidth}{\dimexpr\textwidth}
\makerunningwidth{mystyle}{\headwidth}
% Header
\makeevenhead{mystyle}{\itshape\leftmark}{}{}
\makeoddhead{mystyle}{}{}{\itshape\leftmark}
% Footer
\makeevenfoot{mystyle}{}{\thepage}{}
\makeoddfoot{mystyle}{}{\thepage}{}
\makeatletter
% Text at Header
\makepsmarks{mystyle}{ %
\createmark{chapter}{left}{shownumber}{\@chapapp\ }{.\ }}
\makeatother
%%% Chapter Page
\makepagestyle{plain}
\makerunningwidth{plain}{\headwidth}
\makeevenfoot{plain}{}{\thepage}{}
\makeoddfoot{plain}{}{\thepage}{}
\pagestyle{mystyle}
% Add Package
\usepackage{amsfonts}
%\usepackage{amsmath}
\usepackage{mathtools}
\usepackage{amssymb}
\usepackage{amsthm}
\setcounter{MaxMatrixCols}{30}
\usepackage{breqn}
\usepackage{graphics}
\usepackage{graphicx}
\usepackage{wrapfig}
\usepackage{rotating}
\usepackage[Lenny]{fncychap} %********************
% Font Setup
\usepackage{xltxtra}
\usepackage{fontspec}
\defaultfontfeatures{Scale=1.35}
\setmainfont[Script=Thai]{TH Sarabun New} % Thai alphabet
\XeTeXlinebreaklocale “th_TH” % Thai alphabet
\XeTeXlinebreakskip = 0pt plus 1pt
\renewcommand{\baselinestretch}{1.4}
% Add Package For Thai Page Number
\usepackage{polyglossia}
\setdefaultlanguage[numerals=arabic]{thai} % Thai alphabet
\newfontfamily{\thaifont}[Script=Thai]{TH Sarabun New:script=thai} % Thai alphabet
% % % Set section number depth of ToC
\setsecnumdepth{subsection}
\settocdepth{subsection}
\usepackage{natbib}
\usepackage[
colorlinks=true,
linkcolor=blue,
citecolor=green,
anchorcolor=cyan,
filecolor=red,
urlcolor=blue,
bookmarksnumbered=true,
pdfview=FitB
]{hyperref}
\usepackage{lipsum}
% Begin of Document
\begin{document}
\frontmatter
% Table of Contents
\tableofcontents
\newpage
\listoftables
\newpage
\listoffigures
\newpage
\mainmatter
% Chapter
\chapter{Chapter title = ชื่อบท} %Thai alphabet
\section{Section title 1 = ส่วนที่ 1} %Thai alphabet
การสังเคราะห์ข้อมูลน้ำฝนรายวันแบบ สโตแคสติคโดยใช้ลูกโซ่มาร์คอฟ ชนิดสองสถานะ และฟังก์ชันการแจกแจงแบบต่อเนื่อง\\
means\\
Stochastic Generation of Daily Rainfall Using Two-state Markov Chain and Continuous Distribution Functions\\
\cite{AP2011}
% Bibliography %********************
\bibliographystyle{chicago}
\bibliography{bib}
\end{document}
bib file:
@article{AP2011,
title={การสังเคราะห์ข้อมูลน้ำฝนรายวันแบบ สโตแคสติคโดยใช้ลูกโซ่มาร์คอฟ ชนิดสองสถานะ และฟังก์ชันการแจกแจงแบบต่อเนื่อง = Stochastic Generation of Daily Rainfall Using Two-state Markov Chain and Continuous Distribution Functions},
author={Asasuppakit, Praopun},
year={2011}
}
Figures showed Chapter 1 and Bibliography
Chapter page showed a fine page, but it still has some errors when running XeLatex. Bibliography did not show anything.


fncychapis that it uses the deprecated command\rm; addoldfontcommandsto the options passed to thememoirclass. This if you really want the Lenny chapter style, which is, in my opinion, very poorly designed. For the bibliography problem, without a minimal example it's impossible to say anything. However, BibTeX doesn't support alphabets different from Latin (and with many limitations for diacritics, too). – egreg Jun 08 '13 at 21:48