<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6311956904897262714</id><updated>2011-11-12T10:08:20.301-08:00</updated><category term='XeLaTeX'/><category term='XeTeX'/><title type='text'>with XeTeX</title><subtitle type='html'>ศึกษาการใช้งาน XeLaTeX กับเอกสารภาษาไทย</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://withxetex.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6311956904897262714/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://withxetex.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Chakkree T.</name><uri>http://www.blogger.com/profile/15631884840134578181</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='23' src='http://photos1.blogger.com/x/blogger2/7050/809909514078665/211/52745/gse_multipart57486.png'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>7</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6311956904897262714.post-9168781612386830223</id><published>2011-11-12T09:57:00.001-08:00</published><updated>2011-11-12T10:08:20.362-08:00</updated><title type='text'>ทดสอบ Bibtex กับ XeLaTeX</title><content type='html'>&lt;ul&gt;&lt;li&gt;สร้างไฟล์ test.tex&lt;/li&gt;&lt;/ul&gt;&lt;span style="background-color: #fff2cc; color: #3d85c6;"&gt;\documentclass[12pt,a4paper]{article}&lt;/span&gt;&lt;div style="background-color: #fff2cc; color: #3d85c6; margin: 0px; text-indent: 0px;"&gt;\usepackage{xltxtra}&lt;/div&gt;&lt;span style="background-color: #fff2cc; color: #3d85c6;"&gt;&lt;/span&gt;&lt;div style="background-color: #fff2cc; color: #3d85c6; margin: 0px; text-indent: 0px;"&gt;\usepackage{polyglossia}&lt;/div&gt;&lt;span style="background-color: #fff2cc; color: #3d85c6;"&gt;&lt;/span&gt;&lt;div style="background-color: #fff2cc; color: #3d85c6; margin: 0px; text-indent: 0px;"&gt;\usepackage[top=25mm, bottom=20mm, left=25mm, right=20mm]{geometry}&lt;/div&gt;&lt;span style="background-color: #fff2cc; color: #3d85c6;"&gt;&lt;/span&gt;&lt;div style="background-color: #fff2cc; color: #3d85c6; margin: 0px; text-indent: 0px;"&gt;\XeTeXlinebreaklocale "th"&lt;/div&gt;&lt;span style="background-color: #fff2cc; color: #3d85c6;"&gt;&lt;/span&gt;&lt;div style="background-color: #fff2cc; color: #3d85c6; margin: 0px; text-indent: 0px;"&gt;\XeTeXlinebreakskip = 0pt plus 1pt &lt;/div&gt;&lt;span style="background-color: #fff2cc; color: #3d85c6;"&gt;&lt;/span&gt;&lt;div style="background-color: #fff2cc; color: #3d85c6; margin: 0px; text-indent: 0px;"&gt;\defaultfontfeatures{Scale=1.23}&lt;/div&gt;&lt;span style="background-color: #fff2cc; color: #3d85c6;"&gt;&lt;/span&gt;&lt;div style="background-color: #fff2cc; color: #3d85c6; margin: 0px; text-indent: 0px;"&gt;\title{ชื่อบทความ}&lt;/div&gt;&lt;span style="background-color: #fff2cc; color: #3d85c6;"&gt;&lt;/span&gt;&lt;div style="background-color: #fff2cc; color: #3d85c6; margin: 0px; text-indent: 0px;"&gt;%% ใช้ร่วมกับ polyglossia เพื่อให้ได้วันที่ภาษาไทย&lt;/div&gt;&lt;span style="background-color: #fff2cc; color: #3d85c6;"&gt;&lt;/span&gt;&lt;div style="background-color: #fff2cc; color: #3d85c6; margin: 0px; text-indent: 0px;"&gt;\setdefaultlanguage{thai}&lt;/div&gt;&lt;span style="background-color: #fff2cc; color: #3d85c6;"&gt;&lt;/span&gt;&lt;div style="background-color: #fff2cc; color: #3d85c6; margin: 0px; text-indent: 0px;"&gt;\newfontfamily{\thaifont}[Script=Thai]{TH SarabunPSK:script=thai}&lt;/div&gt;&lt;span style="background-color: #fff2cc; color: #3d85c6;"&gt;&lt;/span&gt;&lt;div style="background-color: #fff2cc; color: #3d85c6; margin: 0px; text-indent: 0px;"&gt;\begin{document}&lt;/div&gt;&lt;span style="background-color: #fff2cc; color: #3d85c6;"&gt;&lt;/span&gt;&lt;div style="background-color: #fff2cc; color: #3d85c6; margin: 0px; text-indent: 0px;"&gt;\fontspec[&lt;/div&gt;&lt;span style="background-color: #fff2cc; color: #3d85c6;"&gt;&lt;/span&gt;&lt;div style="background-color: #fff2cc; color: #3d85c6; margin: 0px; text-indent: 0px;"&gt;ItalicFont={TH SarabunPSK Italic},&lt;/div&gt;&lt;span style="background-color: #fff2cc; color: #3d85c6;"&gt;&lt;/span&gt;&lt;div style="background-color: #fff2cc; color: #3d85c6; margin: 0px; text-indent: 0px;"&gt;BoldFont={TH SarabunPSK Bold},&lt;/div&gt;&lt;span style="background-color: #fff2cc; color: #3d85c6;"&gt;&lt;/span&gt;&lt;div style="background-color: #fff2cc; color: #3d85c6; margin: 0px; text-indent: 0px;"&gt;BoldItalicFont={TH SarabunPSK Bold Italic},&lt;/div&gt;&lt;span style="background-color: #fff2cc; color: #3d85c6;"&gt;&lt;/span&gt;&lt;div style="background-color: #fff2cc; color: #3d85c6; margin: 0px; text-indent: 0px;"&gt;]{TH SarabunPSK}&lt;/div&gt;&lt;span style="background-color: #fff2cc; color: #3d85c6;"&gt;&lt;/span&gt;&lt;div style="background-color: #fff2cc; color: #3d85c6; margin: 0px; text-indent: 0px;"&gt;\maketitle&lt;/div&gt;&lt;span style="background-color: #fff2cc; color: #3d85c6;"&gt;&lt;/span&gt;&lt;div style="background-color: #fff2cc; color: #3d85c6; margin: 0px; text-indent: 0px;"&gt;\section*{ลองดูสิ}&lt;/div&gt;&lt;span style="background-color: #fff2cc; color: #3d85c6;"&gt;&lt;/span&gt;&lt;div style="background-color: #fff2cc; color: #3d85c6; margin: 0px; text-indent: 0px;"&gt;ศึกษา \TeX\ อย่างละเอียด ให้ดู \cite{DK86} ถ้าต้องการเขียนสมการคณิตศาสตร์ให้ดู \cite{DK89}. แต่ถ้าเป็นของอาจารย์จักรี ลองอ้างอิงกับเล่มนี้ \cite{จักรีRC54} ดูนะครับ&lt;/div&gt;&lt;span style="background-color: #fff2cc; color: #3d85c6;"&gt;&lt;/span&gt;&lt;div style="background-color: #fff2cc; color: #3d85c6; margin: 0px; text-indent: 0px;"&gt;\bibliographystyle{plain}&lt;/div&gt;&lt;span style="background-color: #fff2cc; color: #3d85c6;"&gt;&lt;/span&gt;&lt;div style="background-color: #fff2cc; color: #3d85c6; margin: 0px; text-indent: 0px;"&gt;\bibliography{testBibXeTex}&lt;/div&gt;&lt;span style="background-color: #fff2cc; color: #3d85c6;"&gt;&lt;/span&gt;&lt;div style="background-color: #fff2cc; color: #3d85c6; margin: 0px; text-indent: 0px;"&gt;\end{document} &lt;/div&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;สร้างไฟล์ testBibXeTex.bib&lt;/li&gt;&lt;/ul&gt;&lt;span style="background-color: #fff2cc; color: #3d85c6;"&gt;@book{DK86,&lt;/span&gt;&lt;div style="background-color: #fff2cc; color: #3d85c6; margin: 0px; text-indent: 0px;"&gt;author = "D.E. Knuth",&lt;/div&gt;&lt;span style="background-color: #fff2cc; color: #3d85c6;"&gt;&lt;/span&gt;&lt;div style="background-color: #fff2cc; color: #3d85c6; margin: 0px; text-indent: 0px;"&gt;title = "The {\TeX}book",&lt;/div&gt;&lt;span style="background-color: #fff2cc; color: #3d85c6;"&gt;&lt;/span&gt;&lt;div style="background-color: #fff2cc; color: #3d85c6; margin: 0px; text-indent: 0px;"&gt;publisher = "Addison Wesley",&lt;/div&gt;&lt;span style="background-color: #fff2cc; color: #3d85c6;"&gt;&lt;/span&gt;&lt;div style="background-color: #fff2cc; color: #3d85c6; margin: 0px; text-indent: 0px;"&gt;year = 1986&lt;/div&gt;&lt;span style="background-color: #fff2cc; color: #3d85c6;"&gt;&lt;/span&gt;&lt;div style="background-color: #fff2cc; color: #3d85c6; margin: 0px; text-indent: 0px;"&gt;}&lt;/div&gt;&lt;span style="background-color: #fff2cc; color: #3d85c6;"&gt;&lt;/span&gt;&lt;div style="background-color: #fff2cc; color: #3d85c6; margin: 0px; text-indent: 0px;"&gt;@article{DK89,&lt;/div&gt;&lt;span style="background-color: #fff2cc; color: #3d85c6;"&gt;&lt;/span&gt;&lt;div style="background-color: #fff2cc; color: #3d85c6; margin: 0px; text-indent: 0px;"&gt;author = "D.E. Knuth",&lt;/div&gt;&lt;span style="background-color: #fff2cc; color: #3d85c6;"&gt;&lt;/span&gt;&lt;div style="background-color: #fff2cc; color: #3d85c6; margin: 0px; text-indent: 0px;"&gt;title = "Typesetting Concrete Mathematics",&lt;/div&gt;&lt;span style="background-color: #fff2cc; color: #3d85c6;"&gt;&lt;/span&gt;&lt;div style="background-color: #fff2cc; color: #3d85c6; margin: 0px; text-indent: 0px;"&gt;journal = "TUGboat",&lt;/div&gt;&lt;span style="background-color: #fff2cc; color: #3d85c6;"&gt;&lt;/span&gt;&lt;div style="background-color: #fff2cc; color: #3d85c6; margin: 0px; text-indent: 0px;"&gt;volume = 10,&lt;/div&gt;&lt;span style="background-color: #fff2cc; color: #3d85c6;"&gt;&lt;/span&gt;&lt;div style="background-color: #fff2cc; color: #3d85c6; margin: 0px; text-indent: 0px;"&gt;number = 1,&lt;/div&gt;&lt;span style="background-color: #fff2cc; color: #3d85c6;"&gt;&lt;/span&gt;&lt;div style="background-color: #fff2cc; color: #3d85c6; margin: 0px; text-indent: 0px;"&gt;pages = "31--36",&lt;/div&gt;&lt;span style="background-color: #fff2cc; color: #3d85c6;"&gt;&lt;/span&gt;&lt;div style="background-color: #fff2cc; color: #3d85c6; margin: 0px; text-indent: 0px;"&gt;month = apr,&lt;/div&gt;&lt;span style="background-color: #fff2cc; color: #3d85c6;"&gt;&lt;/span&gt;&lt;div style="background-color: #fff2cc; color: #3d85c6; margin: 0px; text-indent: 0px;"&gt;year = 1989&lt;/div&gt;&lt;span style="background-color: #fff2cc; color: #3d85c6;"&gt;&lt;/span&gt;&lt;div style="background-color: #fff2cc; color: #3d85c6; margin: 0px; text-indent: 0px;"&gt;}&lt;/div&gt;&lt;span style="background-color: #fff2cc; color: #3d85c6;"&gt;&lt;/span&gt;&lt;div style="background-color: #fff2cc; color: #3d85c6; margin: 0px; text-indent: 0px;"&gt;@book{จักรีRC54,&lt;/div&gt;&lt;span style="background-color: #fff2cc; color: #3d85c6;"&gt;&lt;/span&gt;&lt;div style="background-color: #fff2cc; color: #3d85c6; margin: 0px; text-indent: 0px;"&gt;author = "จักรี ติยะวงศ์สุวรรณ",&lt;/div&gt;&lt;span style="background-color: #fff2cc; color: #3d85c6;"&gt;&lt;/span&gt;&lt;div style="background-color: #fff2cc; color: #3d85c6; margin: 0px; text-indent: 0px;"&gt;title = "การออกแบบโครงสร้างคอนกรีตเสริมเหล็ก",&lt;/div&gt;&lt;span style="background-color: #fff2cc; color: #3d85c6;"&gt;&lt;/span&gt;&lt;div style="background-color: #fff2cc; color: #3d85c6; margin: 0px; text-indent: 0px;"&gt;publisher = "มปพ",&lt;/div&gt;&lt;span style="background-color: #fff2cc; color: #3d85c6;"&gt;&lt;/span&gt;&lt;div style="background-color: #fff2cc; color: #3d85c6; margin: 0px; text-indent: 0px;"&gt;year = 2554&lt;/div&gt;&lt;span style="background-color: #fff2cc; color: #3d85c6;"&gt;&lt;/span&gt;&lt;div style="background-color: #fff2cc; color: #3d85c6; margin: 0px; text-indent: 0px;"&gt;}&lt;/div&gt;&lt;br /&gt;ไฟล์ทั้งสองสร้างด้วย TexWorks แล้วไฟล์ test.tex ให้รันด้วยคำสั่ง xeletex+makeindex+bibtex จัดการรันสักสองรอบ เพื่อให้ได้เลขที่ถูกต้อง ผลลัพธ์ ดังแสดงในรูป&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/--0nA2n7k_b8/Tr61A2rTeHI/AAAAAAAAA6M/RfIaHilAYCQ/s1600/bibtex.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="276" src="http://3.bp.blogspot.com/--0nA2n7k_b8/Tr61A2rTeHI/AAAAAAAAA6M/RfIaHilAYCQ/s400/bibtex.JPG" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6311956904897262714-9168781612386830223?l=withxetex.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://withxetex.blogspot.com/feeds/9168781612386830223/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://withxetex.blogspot.com/2011/11/bibtex-xelatex.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6311956904897262714/posts/default/9168781612386830223'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6311956904897262714/posts/default/9168781612386830223'/><link rel='alternate' type='text/html' href='http://withxetex.blogspot.com/2011/11/bibtex-xelatex.html' title='ทดสอบ Bibtex กับ XeLaTeX'/><author><name>Chakkree T.</name><uri>http://www.blogger.com/profile/15631884840134578181</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='23' src='http://photos1.blogger.com/x/blogger2/7050/809909514078665/211/52745/gse_multipart57486.png'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/--0nA2n7k_b8/Tr61A2rTeHI/AAAAAAAAA6M/RfIaHilAYCQ/s72-c/bibtex.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6311956904897262714.post-7778620109351032894</id><published>2011-04-18T22:57:00.000-07:00</published><updated>2011-10-08T01:39:29.902-07:00</updated><title type='text'>XeLaTeX Template</title><content type='html'>บทความตอนนี้ไม่มีอะไรครับ เนื่องจากเวลาเริ่มเขียน XeLaTeX เอกสารชุดใหม่ ต้องคอยไปเปิดของเก่า ก๊อปปี้ แล้วตัดทอนส่วนที่ไม่ต้องการออก เลยคิดว่าจะทำเป็นแม่แบบ ใช้งานเอง เวลาจะทำใหม่ก็มาก๊อปปี้ได้เลย เพื่อความสะดวกในการใช้งานของผมเอง&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;แม่แบบที่ 1 อย่างง่าย&lt;br /&gt;&lt;br /&gt;&lt;div style="background-color: #fff2cc; color: blue;"&gt;\documentclass[12pt,a4paper]{article} &lt;/div&gt;&lt;div style="background-color: #fff2cc; color: blue; margin: 0px; text-indent: 0px;"&gt;\usepackage{xltxtra}&lt;/div&gt;&lt;div style="background-color: #fff2cc; color: blue; margin: 0px; text-indent: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="background-color: #fff2cc; color: blue; margin: 0px; text-indent: 0px;"&gt;\begin{document}&lt;/div&gt;&lt;div style="background-color: #fff2cc; color: blue; margin: 0px; text-indent: 0px;"&gt;\fontspec[&lt;/div&gt;&lt;div style="background-color: #fff2cc; color: blue; margin: 0px; text-indent: 0px;"&gt;ItalicFont={TH SarabunPSK Italic},&lt;/div&gt;&lt;div style="background-color: #fff2cc; color: blue; margin: 0px; text-indent: 0px;"&gt;BoldFont={TH SarabunPSK Bold},&lt;/div&gt;&lt;div style="background-color: #fff2cc; color: blue; margin: 0px; text-indent: 0px;"&gt;BoldItalicFont={TH SarabunPSK Bold Italic},&lt;/div&gt;&lt;div style="background-color: #fff2cc; color: blue; margin: 0px; text-indent: 0px;"&gt;]{TH SarabunPSK}&lt;/div&gt;&lt;div style="background-color: #fff2cc; color: blue;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="background-color: #fff2cc; color: blue;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="background-color: #fff2cc; color: blue;"&gt;%% เนื้อหา&lt;/div&gt;&lt;div style="background-color: #fff2cc; color: blue;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="background-color: #fff2cc; color: blue; margin: 0px; text-indent: 0px;"&gt;\end{document}&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;แม่แบบที่ 2 กรณีที่ต้องการใช้งานวันที่ภาษาไทย ให้ติด polyglossia เพิ่ม&lt;br /&gt;&lt;br /&gt;&lt;div style="background-color: #f4cccc; color: blue;"&gt;\documentclass[12pt,a4paper]{article} &lt;/div&gt;&lt;div style="background-color: #f4cccc; color: blue; margin: 0px; text-indent: 0px;"&gt;\usepackage{xltxtra}&lt;/div&gt;&lt;div style="background-color: #f4cccc; color: blue; margin: 0px; text-indent: 0px;"&gt;\usepackage{polyglossia}&lt;br /&gt;\usepackage[top=25mm, bottom=20mm, left=25mm, right=20mm]{geometry} &lt;/div&gt;&lt;div style="background-color: #f4cccc; color: blue; margin: 0px; text-indent: 0px;"&gt;\XeTeXlinebreaklocale "th"&lt;br /&gt;\XeTeXlinebreakskip = 0pt plus 1pt&amp;nbsp; &lt;br /&gt;&lt;div style="-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;"&gt;\defaultfontfeatures{Scale=1.23}&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="background-color: #f4cccc; color: blue;"&gt;&lt;span style="background-color: #f4cccc;"&gt;  &lt;/span&gt;&lt;/div&gt;&lt;div style="background-color: #f4cccc; color: blue; margin: 0px; text-indent: 0px;"&gt;\title{ชื่อบทความ}&lt;/div&gt;&lt;div style="background-color: #f4cccc; color: blue; margin: 0px; text-indent: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="background-color: #f4cccc; color: blue;"&gt;&lt;span style="background-color: #f4cccc;"&gt;   &lt;/span&gt;&lt;/div&gt;&lt;div style="background-color: #f4cccc; color: blue; margin: 0px; text-indent: 0px;"&gt;%% ใช้ร่วมกับ polyglossia เพื่อให้ได้วันที่ภาษาไทย&lt;/div&gt;&lt;div style="background-color: #f4cccc; color: blue; margin: 0px; text-indent: 0px;"&gt;\setdefaultlanguage{thai} &lt;/div&gt;&lt;div style="background-color: #f4cccc; color: blue; margin: 0px; text-indent: 0px;"&gt;\newfontfamily{\thaifont}[Script=Thai]{TH SarabunPSK:script=thai}&lt;/div&gt;&lt;div style="background-color: #f4cccc; color: blue; margin: 0px; text-indent: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="background-color: #f4cccc; color: blue;"&gt;&lt;span style="background-color: #f4cccc;"&gt;  &lt;/span&gt;&lt;/div&gt;&lt;div style="background-color: #f4cccc; color: blue; margin: 0px; text-indent: 0px;"&gt;\begin{document}&lt;/div&gt;&lt;div style="background-color: #f4cccc; color: blue; margin: 0px; text-indent: 0px;"&gt;\fontspec[&lt;/div&gt;&lt;div style="background-color: #f4cccc; color: blue; margin: 0px; text-indent: 0px;"&gt;ItalicFont={TH SarabunPSK Italic},&lt;/div&gt;&lt;div style="background-color: #f4cccc; color: blue; margin: 0px; text-indent: 0px;"&gt;BoldFont={TH SarabunPSK Bold},&lt;/div&gt;&lt;div style="background-color: #f4cccc; color: blue; margin: 0px; text-indent: 0px;"&gt;BoldItalicFont={TH SarabunPSK Bold Italic},&lt;/div&gt;&lt;div style="background-color: #f4cccc; color: blue; margin: 0px; text-indent: 0px;"&gt;]{TH SarabunPSK}&lt;/div&gt;&lt;div style="background-color: #f4cccc; color: blue; margin: 0px; text-indent: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="background-color: #f4cccc; color: blue;"&gt;&lt;span style="background-color: #f4cccc;"&gt;    &lt;/span&gt; &lt;/div&gt;&lt;div style="background-color: #f4cccc; color: blue; margin: 0px; text-indent: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="background-color: #f4cccc; color: blue; margin: 0px; text-indent: 0px;"&gt;\maketitle&lt;/div&gt;&lt;div style="background-color: #f4cccc; color: blue;"&gt;&lt;span style="background-color: #f4cccc;"&gt;  &lt;/span&gt;&lt;/div&gt;&lt;div style="background-color: #f4cccc; color: blue; margin: 0px; text-indent: 0px;"&gt;&amp;nbsp;%% เนื้อหา&lt;/div&gt;&lt;div style="background-color: #f4cccc; color: blue; margin: 0px; text-indent: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="background-color: #f4cccc; color: blue; margin: 0px; text-indent: 0px;"&gt;\end{document}&amp;nbsp;&lt;/div&gt;&lt;div style="margin: 0px; text-indent: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6311956904897262714-7778620109351032894?l=withxetex.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://withxetex.blogspot.com/feeds/7778620109351032894/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://withxetex.blogspot.com/2011/04/xelatex-template.html#comment-form' title='2 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6311956904897262714/posts/default/7778620109351032894'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6311956904897262714/posts/default/7778620109351032894'/><link rel='alternate' type='text/html' href='http://withxetex.blogspot.com/2011/04/xelatex-template.html' title='XeLaTeX Template'/><author><name>Chakkree T.</name><uri>http://www.blogger.com/profile/15631884840134578181</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='23' src='http://photos1.blogger.com/x/blogger2/7050/809909514078665/211/52745/gse_multipart57486.png'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6311956904897262714.post-2642243944578764643</id><published>2011-02-25T22:16:00.000-08:00</published><updated>2011-03-19T20:47:09.328-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='XeLaTeX'/><title type='text'>หัดใช้งาน XeLaTeX กับเอกสารปริญญานิพนธ์</title><content type='html'>ตอนนี้ผมเริ่มสนใจที่จะใช้งาน XeLaTeX ในการสร้างเอกสารปริญญนิพนธ์ ถือว่าเป็นการฝึกใช้งานคำสั่ง LaTeX ไปในตัว จะบันทึกคำสั่งที่น่าสนใจไว้ก้นลืม ในตอนนี้จะยังไม่เข้าใจมากนัก ค่อย ๆ ทำไป เริ่มจากการลงทุนไปซื้อคู่มือ การจัดทำเอกสารปริญญานิพนธ์ก่อน 36 บาท (แล้วทำไม?ไม่มีดาวน์โหลด) เนื่องจากรูปเล่มปริญญานิพนธ์ของประเทศไทยไม่ตรงกับต่างประเทศ แต่ละส่วนของรูปเล่มจะเขียนคำสั่งกำหนดรูปแบบเองใหม่หมด  วางเป็นโครงรูปเล่มไว้ก่อนหลังจากนั้นค่อยศึกษาวิธีการสร้างเป็น User Command ที่สามารถส่งผ่าน Arguments ได้&lt;br /&gt;&lt;br /&gt;ออกแบบให้มีโฟลด์เดอร์อยู่สามโฟลด์เดอร์ เพื่อให้สะดวกในการจัดการไฟล์เนื่องจากหลังจากคอมไพล์แล้วจะมีไฟล์ย่อย ๆ เกิดขึ้นมากเมื่อแยกโฟลด์เดอร์ ไฟล์ .aux และ .log ก็จะกระจายไปตามโฟลด์เดอร์ย่อยด้วย แล้วคุมบนสุดด้วย FullReport.tex ตัวเดียว แยกตามส่วนคือ&lt;br /&gt;&lt;ol&gt;&lt;li&gt;front ไว้จัดเก็บไฟล์ของส่วนหน้าของเอกสาร&lt;/li&gt;&lt;li&gt;body เก็บ chap01 - 05&lt;/li&gt;&lt;li&gt;ส่วนหลัง จะเก็บการอ้างอิง&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;&lt;span style="color: #000099; font-weight: bold;"&gt;ข้อกำหนด&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;ตัวอักษรภาษาไทยและภาษาอังกฤษ ใช้แบบ Angsana New ตลอดทั้งเล่ม ดังนั้นต้องใช้งาน XeLaTeX แน่นอน เพื่อดึง True Type Font ของระบบวินโดว์ แต่ต้องมีเทคนิคนิดหน่อยเกี่ยวกับวรรณยุกต์ลอย&lt;/li&gt;&lt;li&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;ส่วนประกอบของปริญญานิพนธ์&lt;br /&gt;&lt;ol&gt;&lt;li&gt;ส่วนนำ (Front Matter)&lt;/li&gt;&lt;li&gt;ส่วนเนื้อหา (Body Matter)&lt;/li&gt;&lt;li&gt;ส่วนอ้างอิง (Back Matter)&lt;/li&gt;&lt;/ol&gt;ส่วนนำ ยังแบ่งเป็นส่วนต่าง ๆ อีกดังนี้&lt;br /&gt;&lt;ol&gt;&lt;li&gt;ปกนอก&lt;/li&gt;&lt;li&gt;รองปกใน หน้าเปล่า&lt;br /&gt;&lt;/li&gt;&lt;li&gt;ปกใน ภาษาไทย&lt;/li&gt;&lt;li&gt;ปกใน ภาษาอังกฤษ&lt;/li&gt;&lt;li&gt;ใบรับรองปริญญานิพนธ์ ภาษาไทย&lt;/li&gt;&lt;li&gt;ใบรับรองปริญญานิพนธ์ ภาษาอังกฤษ&lt;/li&gt;&lt;li&gt;บทคัดย่อ ภาษาไทย&lt;/li&gt;&lt;li&gt;บทคัดย่อ ภาษาอังกฤษ&lt;/li&gt;&lt;li&gt;กิตติกรรมประกาศ&lt;/li&gt;&lt;li&gt;สารบัญเนื้อเรื่อง&lt;/li&gt;&lt;li&gt;สารบัญรูป&lt;/li&gt;&lt;li&gt;สารบัญตาราง (ถ้ามี)&lt;/li&gt;&lt;li&gt;สารบัญสัญลักษณ์ (ถ้ามี)&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;&lt;span style="color: #000099; font-weight: bold;"&gt;คำสั่ง&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;ไม่ต้องการให้แสดงเลขหน้า ใช้  &lt;span style="font-family: 'times new roman';"&gt; &lt;span style="color: #006600; font-family: arial;"&gt;\thispagestyle{empty}&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family: 'times new roman';"&gt;&lt;span style="color: #006600; font-family: arial;"&gt;&lt;span style="color: black;"&gt;ต้องการแสดงเลขหน้าเป็นภาษาไทย ใช้  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #006600; font-family: arial;"&gt;\pagenumbering{thaialph}&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family: 'times new roman';"&gt;&lt;span style="color: #006600; font-family: arial;"&gt;&lt;span style="color: black;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;ใช้งานแพกเกจ fancyhdr เพื่อควบคุมส่วนหัวกระดาษ ท้ายกระดาษ&lt;/li&gt;&lt;li&gt;แทรกหน้าเปล่าแบบไม่มีเลขหน้า&lt;span style="font-family: 'times new roman';"&gt;&lt;span style="color: #006600; font-family: arial;"&gt;&lt;span style="color: black;"&gt; ใช้  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #006600; font-family: arial;"&gt;\newpage\thispagestyle{empty}\mbox{}\newpage&lt;/span&gt;  &lt;/li&gt;&lt;li&gt;ซ่อนหมายเลขหน้าของแผ่นแรกแต่ละบท หลังคำสั่ง \chapter{....} ใช้ &lt;span style="color: #006600; font-family: arial;"&gt;\thispagestyle{empty}&lt;/span&gt;&lt;/li&gt;&lt;li&gt;การแทรกคำว่าหน้าใต้คำว่าสารบัญใช้แพกเกจ tocloft คำสั่ง &lt;span style="color: #38761d;"&gt;\renewcommand\cftaftertoctitle{\hfill\null\\\null\hfill\textbf{หน้า}}&lt;/span&gt;&amp;nbsp; ดูอ้างอิงได้&lt;a href="http://tex.stackexchange.com/questions/8296/add-page-above-page-numbers-in-table-of-contents"&gt;ที่นี่&lt;/a&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div style="color: #073763;"&gt;&lt;span style="color: #000099; font-weight: bold;"&gt;แพกเกจ&lt;/span&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;b style="background-color: #d9ead3;"&gt;&lt;span style="color: #274e13; font-size: small;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;tocloft&lt;/span&gt;&lt;/span&gt;&lt;/b&gt; ใช้ในการควบคุมสารบัญ ยังไม่แน่ใจวิธีใช้งาน แต่จะทดลองใช้แพกเกจนี้ก่อน เนื่องจากวิธีแก้ปัญหาแบบเดิมใช้ได้กับ LaTeX แต่มีปัญญากับ XeLaTeX และทดสอบดูแล้วใช้งานร่วมกับแพกเกจ polyglossia ได้ และเห็นว่าใช้แพกเกจ &lt;span style="color: red;"&gt;titletoc&lt;/span&gt; จะมีปัญหากับ XeLaTeX (แต่ยังไม่ได้ลอง) &lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #000099; font-weight: bold;"&gt; เว็บอ้างอิง&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://thaitug.daytag.org/"&gt;กลุ่มคนไทยผู้ใช้ LaTeX&lt;/a&gt;  ผู้ดูแล อาจารย์สุดชาย&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.ie.eng.chula.ac.th/~pramual/books/XeTeX/"&gt;คู่มือการใช้งาน XeTeX&lt;/a&gt; โดย อาจารย์ประมวล&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.grad.nu.ac.th/grad1/index.php/-online/116.html"&gt;รูปแบบการเขียนปริญญานิพนธ์ระดับบัณฑิตศึกษา โปรแกรม LATEX&lt;/a&gt;  บัณฑิตวิทยาลัย มหาวิทยาลัยนเรศวร&lt;/li&gt;&lt;li&gt;&lt;a href="http://kt-linux.blogspot.com/2011/01/latex.html"&gt;การเขียนวิทยานิพนธ์ ม.ข. ด้วย LaTeX - สร้างสารบัญ&lt;/a&gt;    อาจารย์กิตติพงษ์ มข.&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6311956904897262714-2642243944578764643?l=withxetex.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://withxetex.blogspot.com/feeds/2642243944578764643/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://withxetex.blogspot.com/2011/02/xelatex.html#comment-form' title='1 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6311956904897262714/posts/default/2642243944578764643'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6311956904897262714/posts/default/2642243944578764643'/><link rel='alternate' type='text/html' href='http://withxetex.blogspot.com/2011/02/xelatex.html' title='หัดใช้งาน XeLaTeX กับเอกสารปริญญานิพนธ์'/><author><name>Chakkree T.</name><uri>http://www.blogger.com/profile/15631884840134578181</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='23' src='http://photos1.blogger.com/x/blogger2/7050/809909514078665/211/52745/gse_multipart57486.png'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6311956904897262714.post-1198897507978987176</id><published>2011-02-25T00:44:00.000-08:00</published><updated>2011-04-18T23:44:54.912-07:00</updated><title type='text'>ทดสอบ MikTeX 2.9(XeLaTex) + 13 ฟอนต์ราชการ</title><content type='html'>&lt;a href="http://4.bp.blogspot.com/-iAx7ZDklQZA/TWduWCRqcCI/AAAAAAAAA54/MVChSCBfyeU/s1600/Capture3.JPG" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5577547988368781346" src="http://4.bp.blogspot.com/-iAx7ZDklQZA/TWduWCRqcCI/AAAAAAAAA54/MVChSCBfyeU/s400/Capture3.JPG" style="cursor: pointer; height: 400px; width: 335px;" /&gt;&lt;/a&gt;&lt;br /&gt;ใช้ MikTeX 2.9 Basic ทดสอบทั้งหมด 13 ฟอนต์&lt;br /&gt;&lt;br /&gt;&lt;div style="background-color: #fff2cc;"&gt;% ------ Test MikTeX 2.9(XeLaTex) + 13 ฟอนต์ ราชการ&lt;/div&gt;&lt;div style="background-color: #fff2cc;"&gt;% -----  2011 Jan 30 Chakkree Tiyawongsuwan&lt;/div&gt;&lt;div style="background-color: #fff2cc;"&gt;\documentclass[11pt,a4paper]{article}&lt;/div&gt;&lt;div style="background-color: #fff2cc;"&gt;\usepackage{xltxtra}&lt;/div&gt;&lt;div style="background-color: #fff2cc;"&gt;\usepackage{fontspec}&lt;/div&gt;&lt;div style="background-color: #fff2cc;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="background-color: #fff2cc;"&gt;\XeTeXlinebreaklocale "th"&lt;/div&gt;&lt;div style="background-color: #fff2cc;"&gt;\setmainfont{TH SarabunPSK}&lt;/div&gt;&lt;div style="background-color: #fff2cc;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="background-color: #fff2cc;"&gt;\newcommand{\bangkokfullname}{&lt;/div&gt;&lt;div style="background-color: #fff2cc;"&gt;\noindent กรุงเทพมหานคร     อมรรัตรโกสินทร์ \\&lt;/div&gt;&lt;div style="background-color: #fff2cc;"&gt;มหินทรายุธยา     มหาดิลกภพ \\&lt;/div&gt;&lt;div style="background-color: #fff2cc;"&gt;นพรัตนราชธานีบูรีรมย์\\&lt;/div&gt;&lt;div style="background-color: #fff2cc;"&gt;อุดมราชนิเวศน์มหาสถาน\\&lt;/div&gt;&lt;div style="background-color: #fff2cc;"&gt;อมรพิมานอวตารสถิต\\&lt;/div&gt;&lt;div style="background-color: #fff2cc;"&gt;สักกะทัตติยวิษณุกรรมประสิทธิ์\\&lt;/div&gt;&lt;div style="background-color: #fff2cc;"&gt;}&lt;/div&gt;&lt;div style="background-color: #fff2cc;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="background-color: #fff2cc;"&gt;\begin{document}&lt;/div&gt;&lt;div style="background-color: #fff2cc;"&gt;\noindent&lt;/div&gt;&lt;div style="background-color: #fff2cc;"&gt;1. TH SarabunPSK ออกแบบโดย คุณศุภกิจ เฉลิมลาภ \newline&lt;/div&gt;&lt;div style="background-color: #fff2cc;"&gt;\bangkokfullname&lt;/div&gt;&lt;div style="background-color: #fff2cc;"&gt;\newline&lt;/div&gt;&lt;div style="background-color: #fff2cc;"&gt;2. TH Charmonman ออกแบบโดยคุณเอกลักษ์ เพียรพนาเวช \newline&lt;/div&gt;&lt;div style="background-color: #fff2cc;"&gt;{\fontspec{TH Charmonman}  \bangkokfullname }&lt;/div&gt;&lt;div style="background-color: #fff2cc;"&gt;\newline&lt;/div&gt;&lt;div style="background-color: #fff2cc;"&gt;3. TH Krub ออกแบบโดยคุณเอกลักษณ์ เพียรพนาเวช\newline&lt;/div&gt;&lt;div style="background-color: #fff2cc;"&gt;{\fontspec{TH Krub}  \bangkokfullname }&lt;/div&gt;&lt;div style="background-color: #fff2cc;"&gt;\newline&lt;/div&gt;&lt;div style="background-color: #fff2cc;"&gt;4. TH Srisakdi ออกแบบโดย ทีม อักษราเมธี (คุณไพโรจน์ เปี่ยมประจักพงษ์,คุณบวร จรดล)\newline&lt;/div&gt;&lt;div style="background-color: #fff2cc;"&gt;{\fontspec{TH Srisakdi}  \bangkokfullname }&lt;/div&gt;&lt;div style="background-color: #fff2cc;"&gt;\newline&lt;/div&gt;&lt;div style="background-color: #fff2cc;"&gt;5. TH Niramit AS ออกแบบโดย ทีม อักษราเมธี (คุณไพโรจน์ เปี่ยมประจักพงษ์,คุณบวร จรดล)\newline&lt;/div&gt;&lt;div style="background-color: #fff2cc;"&gt;{\fontspec{TH Niramit AS}  \bangkokfullname }&lt;/div&gt;&lt;div style="background-color: #fff2cc;"&gt;\newline&lt;/div&gt;&lt;div style="background-color: #fff2cc;"&gt;6. TH Charm of AU ออกแบบโดย คุณกัลยาณมิตร นรรัตน์พุทธิ\newline&lt;/div&gt;&lt;div style="background-color: #fff2cc;"&gt;{\fontspec{TH Charm of AU}  \bangkokfullname }&lt;/div&gt;&lt;div style="background-color: #fff2cc;"&gt;\newline&lt;/div&gt;&lt;div style="background-color: #fff2cc;"&gt;7. TH Kodchasal  ออกแบบโดย คุณกัลย์สุดา เปี่ยมประจักพงษ์\newline&lt;/div&gt;&lt;div style="background-color: #fff2cc;"&gt;{\fontspec{TH Kodchasal}  \bangkokfullname }&lt;/div&gt;&lt;div style="background-color: #fff2cc;"&gt;\newline&lt;/div&gt;&lt;div style="background-color: #fff2cc;"&gt;8. TH K2D July8 (8 กรกฏา) ออกแบบโดย คุณกานต์ รอดสวัสดิ์\newline&lt;/div&gt;&lt;div style="background-color: #fff2cc;"&gt;{\fontspec{TH K2D July8}  \bangkokfullname }&lt;/div&gt;&lt;div style="background-color: #fff2cc;"&gt;\newline&lt;/div&gt;&lt;div style="background-color: #fff2cc;"&gt;9. TH Mali Grade 6 ออกแบบโดย คุณสุดารัตน์ เลิศสีทอง\newline&lt;/div&gt;&lt;div style="background-color: #fff2cc;"&gt;{\fontspec{TH Mali Grade 6}  \bangkokfullname }&lt;/div&gt;&lt;div style="background-color: #fff2cc;"&gt;\newline&lt;/div&gt;&lt;div style="background-color: #fff2cc;"&gt;10. TH Chakra Petch (จักรเพชร) ออกแบบโดย คุณธีรวัฒน์ พจน์วิบูลศิริ\newline&lt;/div&gt;&lt;div style="background-color: #fff2cc;"&gt;{\fontspec{TH Chakra Petch}  \bangkokfullname }&lt;/div&gt;&lt;div style="background-color: #fff2cc;"&gt;\newline&lt;/div&gt;&lt;div style="background-color: #fff2cc;"&gt;11. TH Baijam ออกแบบโดย ทีม PITA (คุณรพี สุวีรานนท์, คุณวิโรจน์ จิรพัฒนกุล)\newline&lt;/div&gt;&lt;div style="background-color: #fff2cc;"&gt;{\fontspec{TH Baijam}  \bangkokfullname }&lt;/div&gt;&lt;div style="background-color: #fff2cc;"&gt;\newline&lt;/div&gt;&lt;div style="background-color: #fff2cc;"&gt;12. TH KoHo ออกแบบโดย กลุ่ม ก-ฮ (คุณขาม จาตุรงคกุล, คุณกนกวรรณ แพนไธสง, คุณขนิษฐา สิทธิแย้ม)\newline&lt;/div&gt;&lt;div style="background-color: #fff2cc;"&gt;{\fontspec{TH KoHo}  \bangkokfullname }&lt;/div&gt;&lt;div style="background-color: #fff2cc;"&gt;\newline&lt;/div&gt;&lt;div style="background-color: #fff2cc;"&gt;13. TH Fah Kwang ออกแบบโดย ทีม สิบเอ็ด (คุณกิตติ ศิริรัตนบุญชัย, คุณนิวัฒน์ ภัทโรวาสน์)\newline&lt;/div&gt;&lt;div style="background-color: #fff2cc;"&gt;{\fontspec{TH Fah kwang}  \bangkokfullname }&lt;/div&gt;&lt;div style="background-color: #fff2cc;"&gt;\newline&lt;/div&gt;&lt;div style="background-color: #fff2cc;"&gt;\end{document}&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6311956904897262714-1198897507978987176?l=withxetex.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://withxetex.blogspot.com/feeds/1198897507978987176/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://withxetex.blogspot.com/2011/02/miktex-29xelatex-13.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6311956904897262714/posts/default/1198897507978987176'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6311956904897262714/posts/default/1198897507978987176'/><link rel='alternate' type='text/html' href='http://withxetex.blogspot.com/2011/02/miktex-29xelatex-13.html' title='ทดสอบ MikTeX 2.9(XeLaTex) + 13 ฟอนต์ราชการ'/><author><name>Chakkree T.</name><uri>http://www.blogger.com/profile/15631884840134578181</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='23' src='http://photos1.blogger.com/x/blogger2/7050/809909514078665/211/52745/gse_multipart57486.png'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-iAx7ZDklQZA/TWduWCRqcCI/AAAAAAAAA54/MVChSCBfyeU/s72-c/Capture3.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6311956904897262714.post-3524357902008114948</id><published>2011-01-28T20:10:00.001-08:00</published><updated>2011-04-18T23:45:27.012-07:00</updated><title type='text'>ทดสอบ MikTeX 2.9(XeLaTeX) + ฟอนต์  TH SarabunPSK</title><content type='html'>ตอนนี้ได้มีการออกรุ่น MikTeX 2.9 และมีข่าวการใช้งานของฟอนต์ราชการเป็นฟอนต์ TH SarabunPSK ผมเลยลองทดสอบดูครับ ไม่มีปัญหาเรื่องวรรณยุกต์ลอย และใช้คำสั่งตั้งฟอนต์ไม่ซับซ้อน แบบ Angsana เป็นข้อดีอย่างหนึ่งของการประกาศใช้ฟอนต์ใหม่&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="margin: 0px; text-indent: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="background-color: #fff2cc; margin: 0px; text-indent: 0px;"&gt;% ------ Test MikTeX 2.9 + ฟอนต์  TH SarabunPSK&lt;br /&gt;&lt;/div&gt;&lt;div style="background-color: #fff2cc; margin: 0px; text-indent: 0px;"&gt;%%              XeLaTeX&lt;br /&gt;&lt;/div&gt;&lt;div style="background-color: #fff2cc; margin: 0px; text-indent: 0px;"&gt;\documentclass[11pt,a4paper]{article}&lt;/div&gt;&lt;div style="background-color: #fff2cc; margin: 0px; text-indent: 0px;"&gt;\usepackage{xltxtra} &lt;/div&gt;&lt;div style="background-color: #fff2cc; margin: 0px; text-indent: 0px;"&gt;\XeTeXlinebreaklocale "th"&lt;/div&gt;&lt;div style="background-color: #fff2cc; margin: 0px; text-indent: 0px;"&gt;\setmainfont{TH SarabunPSK}&lt;/div&gt;&lt;div style="background-color: #fff2cc; margin: 0px; text-indent: 0px;"&gt;\title{ทดสอบ MikTeX 2.9 + ฟอนต์  TH SarabunPSK  }&lt;/div&gt;&lt;div style="background-color: #fff2cc; margin: 0px; text-indent: 0px;"&gt;\author{จักรี ติยะวงศ์สุวรรณ}&lt;/div&gt;&lt;div style="background-color: #fff2cc; margin: 0px; text-indent: 0px;"&gt;\begin{document}&lt;/div&gt;&lt;div style="background-color: #fff2cc; margin: 0px; text-indent: 0px;"&gt;\maketitle&lt;/div&gt;&lt;div style="background-color: #fff2cc; margin: 0px; text-indent: 0px;"&gt;\section{ทดสอบ MikTeX 2.9 + ฟอนต์  TH SarabunPSK  }&lt;/div&gt;&lt;div style="background-color: #fff2cc; margin: 0px; text-indent: 0px;"&gt;ตอนนี้ได้มีการออกรุ่น MikTeX 2.9 และมีข่าวการใช้งานของฟอนต์ราชการเป็นฟอนต์ TH SarabunPSK ผมเลยลองทดสอบดูครับ ไม่มีปัญหาเรื่องวรรณยุกต์ลอย&lt;/div&gt;&lt;div style="background-color: #fff2cc; margin: 0px; text-indent: 0px;"&gt;ป้ากะปู่กู้อีจู้ อ่ะ อี อี่ อี้ อี๊ อี๋ ปู ปู่ ปู้ ปู๊ ปู๋ ปี ปี่ &lt;/div&gt;&lt;div style="background-color: #fff2cc; margin: 0px; text-indent: 0px;"&gt;\end{document}&lt;/div&gt;&lt;div style="margin: 0px; text-indent: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin: 0px; text-indent: 0px;"&gt;ผลการรัน&lt;/div&gt;&lt;div style="margin: 0px; text-indent: 0px;"&gt;&lt;a href="http://2.bp.blogspot.com/-ZJNM1IZNgDU/TWdtyaUbkWI/AAAAAAAAA5w/Edjj4HInd4M/s1600/Capture2.JPG" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5577547376347550050" src="http://2.bp.blogspot.com/-ZJNM1IZNgDU/TWdtyaUbkWI/AAAAAAAAA5w/Edjj4HInd4M/s320/Capture2.JPG" style="cursor: pointer; height: 232px; width: 477px;" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6311956904897262714-3524357902008114948?l=withxetex.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://withxetex.blogspot.com/feeds/3524357902008114948/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://withxetex.blogspot.com/2011/01/miktex-29-th-sarabunpsk.html#comment-form' title='4 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6311956904897262714/posts/default/3524357902008114948'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6311956904897262714/posts/default/3524357902008114948'/><link rel='alternate' type='text/html' href='http://withxetex.blogspot.com/2011/01/miktex-29-th-sarabunpsk.html' title='ทดสอบ MikTeX 2.9(XeLaTeX) + ฟอนต์  TH SarabunPSK'/><author><name>Chakkree T.</name><uri>http://www.blogger.com/profile/15631884840134578181</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='23' src='http://photos1.blogger.com/x/blogger2/7050/809909514078665/211/52745/gse_multipart57486.png'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-ZJNM1IZNgDU/TWdtyaUbkWI/AAAAAAAAA5w/Edjj4HInd4M/s72-c/Capture2.JPG' height='72' width='72'/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6311956904897262714.post-5096927256826459098</id><published>2009-11-10T03:33:00.000-08:00</published><updated>2011-04-18T23:45:56.313-07:00</updated><title type='text'>XeTeX : การแก้ไขวรรณยุกต์ลอย</title><content type='html'>จากที่ทดลองเล่น XeTeX มาไดัสัก 1 เดือนก็เจอกับปัญหาเรื่องฟอนต์ ฟอนต์ Angsana ที่ใช้ใน Windows ถ้าเรากำหนดใช้ใน XeTeX จะมีปัญหาเรื่องวรรณยุกต์ลอย ก็ต้องแก้ไขด้วยการหาฟอนต์ที่ใช้งานได้ เช่น THNiramitAS มาทดแทน แต่ปัญหาที่บทความ หรือปริญญานิพนธ์+วิทยานิพนธ์ จะกำหนดให้ใช้ฟอนต์เป็น Angsana&lt;br /&gt;&lt;br /&gt;เมื่อทดลองติดตั้งฟอนต์ Angsana ด้วยวิธีแบบเดิมจะทำให้ตารางฟอนต์คลาดเคลื่อนไปไม่ควรทำเป็นอย่างยิ่ง จะทำให้ต้องติดตั้ง MikTeX ใหม่&lt;br /&gt;&lt;br /&gt;หลังจากค้นหา ลองผิดลองถูกมาก็ได้เจอบทความ X eTeX, the Multilingual Lion: TeX meets Unicode and smart font technologies  ของ Jonathan Kew  เลยได้คำสั่งมาทดลอง ก็ได้ผลคือต้องมีการกำหนดหลังชื่อฟอนต์ที่เราใช้ ต้องใส่  :script=thai ทำให้รู้สึกโ่ล่งอกเป็นอย่างยิ่ง&lt;br /&gt;ดังตัวอย่างไฟล์ดังนี้ครับ ข้างล่างเป็นไฟล์คำสั่ง ผมใช้ TeXwork ที่มากับ MikTeX 2.8 จะเป็น UTF-8 อยู่แล้ว แล้วตอนรันเลือกใช้ XeLaTeX&lt;br /&gt;&lt;div style="font-family: courier new;"&gt;——————- TestXeTeX_ScriptThai.tex ——————-&lt;br /&gt;&lt;span style="background-color: #fff2cc;"&gt;\documentclass[12pt,a4paper]{book}&lt;/span&gt;&lt;br style="background-color: #fff2cc;" /&gt;&lt;span style="background-color: #fff2cc;"&gt; \usepackage{fontspec}&lt;/span&gt;&lt;br style="background-color: #fff2cc;" /&gt;&lt;span style="background-color: #fff2cc;"&gt; \usepackage{xunicode}&lt;/span&gt;&lt;br style="background-color: #fff2cc;" /&gt;&lt;span style="background-color: #fff2cc;"&gt; \usepackage{xltxtra}&lt;/span&gt;&lt;br style="background-color: #fff2cc;" /&gt;&lt;span style="background-color: #fff2cc;"&gt; \XeTeXlinebreaklocale “th_TH” % สำหรับตัดคำ&lt;/span&gt;&lt;/div&gt;&lt;div style="background-color: #fff2cc; font-family: courier new;"&gt;\begin{document}&lt;br /&gt;\font\x=”Angsana New:script=thai”  at 16pt&lt;br /&gt;\x ป้า กะ ปู่ กู้อีจู้&lt;/div&gt;&lt;div style="background-color: #fff2cc; font-family: courier new;"&gt;\font\thai=”LilyUPC:script=thai”  at 14pt&lt;br /&gt;\thai $x^2+4$ ทดสอบภาษาไทย Test English Language&lt;br /&gt;\[ \int^\infty_0x^2dx \]&lt;/div&gt;&lt;div style="background-color: #fff2cc; font-family: courier new;"&gt;\end{document}&lt;/div&gt;&lt;div style="font-family: courier new; text-align: center;"&gt;ผลการรัน&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: courier new;"&gt;&lt;a href="http://4.bp.blogspot.com/_HND9VMehJqs/SvlTsUBDZmI/AAAAAAAAA3c/NjzmKcye6ZY/s1600-h/TestScriptThai.png" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5402441248760096354" src="http://4.bp.blogspot.com/_HND9VMehJqs/SvlTsUBDZmI/AAAAAAAAA3c/NjzmKcye6ZY/s320/TestScriptThai.png" style="cursor: pointer; display: block; height: 183px; margin: 0px auto 10px; text-align: center; width: 320px;" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="font-family: courier new;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: courier new;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6311956904897262714-5096927256826459098?l=withxetex.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://withxetex.blogspot.com/feeds/5096927256826459098/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://withxetex.blogspot.com/2009/11/xetex.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6311956904897262714/posts/default/5096927256826459098'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6311956904897262714/posts/default/5096927256826459098'/><link rel='alternate' type='text/html' href='http://withxetex.blogspot.com/2009/11/xetex.html' title='XeTeX : การแก้ไขวรรณยุกต์ลอย'/><author><name>Chakkree T.</name><uri>http://www.blogger.com/profile/15631884840134578181</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='23' src='http://photos1.blogger.com/x/blogger2/7050/809909514078665/211/52745/gse_multipart57486.png'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_HND9VMehJqs/SvlTsUBDZmI/AAAAAAAAA3c/NjzmKcye6ZY/s72-c/TestScriptThai.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6311956904897262714.post-5141223802218230460</id><published>2009-11-08T18:22:00.000-08:00</published><updated>2009-11-08T18:48:48.819-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='XeTeX'/><title type='text'>กลับมาเล่น TeX  อีกครั้ง</title><content type='html'>ตอนนี้สามารถ ดาวน์โหลด MikTeX 2.8 ผ่านไฟร์วอลล์ได้แล้ว เลยกลับมาลองเล่นดู พอค้นข้อมูลจากเว็บเห็นว่ามี XeTeX ที่ดึงฟอนต์ TrueType จากระบบได้เลยลองทดสอบ แล้วว่าจะมาบันทึกไว้ที่่ Blog กันลืม แต่กลับมาคราวนี้ไม่ค่อยเหงาแล้วเริ่มมีคนเล่นมากขึ้น แล้วบันทึกไว้ทำให้ค้นข้อมูลง่ายขึ้น&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;จากการทดลองคือยังมีปัญหาเรื่อง วรรณยุกต์ลอย กับบางฟอนต์ ซึ่งเป็นฟอนต์ที่ใช้ในงานทั่วไปด้วย แต่ถ้าใช้ฟอนต์ของ SIPA ก็ไม่มีปัญหา&lt;/li&gt;&lt;li&gt;ทดสอบ XeTeX กับ Beamer ก็สนุกดี เดี๋ยวต้องนำมาฝึกไปทำไป แล้วใช้กับงานสอนเราเลยดีกว่า&lt;br /&gt;&lt;/li&gt;&lt;li&gt;ใน XeTeX ยังไม่สามารถกำหนด \thaidate ได้&lt;/li&gt;&lt;li&gt;ใช้ตัว TeXworks ที่มากับ MikTeXทำให้สะดวกขึ้นมากใช้การทำงาน&lt;/li&gt;&lt;/ul&gt;ระวังอีกเรื่องคือ อย่าใช้วิธีการติดตั้งฟอนต์ Angsana ด้วยวิธีการลงแบบ MikTeX รุ่นเก่าอีกจะทำให้ตารางฟอนต์ของ XeTeX เพี้ยนไป&lt;br /&gt;&lt;br /&gt;ที่เหลือคือต้องทดสอบ เรื่อง&lt;br /&gt;&lt;ul&gt;&lt;li&gt;PGF/Tikz เห็นว่า Beamer แนะนำ&lt;br /&gt;&lt;/li&gt;&lt;li&gt;polyglossia  เห็นว่าเป็น  Modern multilingual typesetting with XeLaTeX ที่จะมาใช้งานแทน babel แต่ยังรันไม่ผ่านยังงงอยู่&lt;br /&gt;&lt;/li&gt;&lt;li&gt;ค้นหาฟอนต์ที่เหมาะที่จะใช้งานทดแทน&lt;/li&gt;&lt;li&gt;การทำ thaithesis.sty เห็นมีหลาย ๆ ที่เริ่มทำแ้ล้ว แ่ต่ใช้งานกับ ThaiLaTeX ต้องทดลองก่อน&lt;/li&gt;&lt;li&gt;ติดตั้งฟอนต์ให้ใช้งานกับระบบ ThaiLaTeX ด้วย&lt;/li&gt;&lt;li&gt;Lyx&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6311956904897262714-5141223802218230460?l=withxetex.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://withxetex.blogspot.com/feeds/5141223802218230460/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://withxetex.blogspot.com/2009/11/tex.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6311956904897262714/posts/default/5141223802218230460'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6311956904897262714/posts/default/5141223802218230460'/><link rel='alternate' type='text/html' href='http://withxetex.blogspot.com/2009/11/tex.html' title='กลับมาเล่น TeX  อีกครั้ง'/><author><name>Chakkree T.</name><uri>http://www.blogger.com/profile/15631884840134578181</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='23' src='http://photos1.blogger.com/x/blogger2/7050/809909514078665/211/52745/gse_multipart57486.png'/></author><thr:total>0</thr:total></entry></feed>
