<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Thai LaTeX and MATLAB</title>
	<atom:link href="http://thailatex.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://thailatex.wordpress.com</link>
	<description>ThaiLaTeX Thai LaTeX MiKTeX MATLAB</description>
	<lastBuildDate>Tue, 27 Dec 2011 16:49:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='thailatex.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Thai LaTeX and MATLAB</title>
		<link>http://thailatex.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://thailatex.wordpress.com/osd.xml" title="Thai LaTeX and MATLAB" />
	<atom:link rel='hub' href='http://thailatex.wordpress.com/?pushpress=hub'/>
		<item>
		<title>A waiting for package &#8220;tcolorbox&#8221;</title>
		<link>http://thailatex.wordpress.com/2011/12/24/a-waiting-for-package-tcolorbox/</link>
		<comments>http://thailatex.wordpress.com/2011/12/24/a-waiting-for-package-tcolorbox/#comments</comments>
		<pubDate>Sat, 24 Dec 2011 15:07:00 +0000</pubDate>
		<dc:creator>tsvhh</dc:creator>
				<category><![CDATA[บันทึกช่วยจำ]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://thailatex.wordpress.com/?p=888</guid>
		<description><![CDATA[เวลาทำงานเอกสาร สิ่งที่อยากทำมาก ๆ คือการสร้างกรอบให้กับส่วนที่เราต้องการแบบนี้ การทำเช่นนี้ใน LaTeX นั้นยากพอสมควร คือต้องไปสร้างชุดคำสั่งของ TikZ (หรืออื่น ๆ)  ซึ่งมันก็ยากอยู่ดี  ปกติแล้วผมจะใช้แพ็กเกจ listings ในการจัดการเรื่องพวกนี้ ซึ่งมันก็ไม่ได้ดูดีแบบรูปที่เห็น อยู่ดี ๆ ฟ้าก็ส่งท่าน  Prof. Dr.rer.nat. Dr.-Ing. Thomas F. Sturm (ไม่ต้องตกใจนะครับ คนชาติตะวันตกการเรียน Dr. หลาย ๆ ใบนั้น ไม่ใช่เรื่องแปลก แต่คนเยอรมันนั้น จบอะไรก็ต้องใส่สาขาด้วย แสดงให้เห็นกันไปเลยว่าเชี่ยวชาญด้านไหน ไม่ใช่ว่ามีดีกรีด็อกเตอร์แล้วจะเก่งไปซะทุกเรื่อง และจริง ๆ มีดีอะไรก็บอกให้โลกรู้ไปซะ ไม่ต้องมาปกปิดทำลับ ๆ ล่อ &#8230; <a href="http://thailatex.wordpress.com/2011/12/24/a-waiting-for-package-tcolorbox/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thailatex.wordpress.com&amp;blog=440810&amp;post=888&amp;subd=thailatex&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>เวลาทำงานเอกสาร สิ่งที่อยากทำมาก ๆ คือการสร้างกรอบให้กับส่วนที่เราต้องการแบบนี้</p>
<p><a href="http://thaitug.daytag.org/wordpress/wp-content/uploads/2011/12/firstlisting.png"><img class="size-full wp-image-1104 aligncenter" title="firstlisting" src="http://thaitug.daytag.org/wordpress/wp-content/uploads/2011/12/firstlisting.png" alt="" width="564" height="161" /></a></p>
<p>การทำเช่นนี้ใน LaTeX นั้นยากพอสมควร คือต้องไปสร้างชุดคำสั่งของ TikZ (หรืออื่น ๆ)  ซึ่งมันก็ยากอยู่ดี  ปกติแล้วผมจะใช้แพ็กเกจ listings ในการจัดการเรื่องพวกนี้ ซึ่งมันก็ไม่ได้ดูดีแบบรูปที่เห็น</p>
<p>อยู่ดี ๆ ฟ้าก็ส่งท่าน <a href="http://forschung.unibw-muenchen.de/berichte/2006/profinfo.php-id=1657&amp;institut=42.htm"> Prof. Dr.rer.nat. Dr.-Ing. Thomas F. Sturm</a> (ไม่ต้องตกใจนะครับ คนชาติตะวันตกการเรียน Dr. หลาย ๆ ใบนั้น ไม่ใช่เรื่องแปลก แต่คนเยอรมันนั้น จบอะไรก็ต้องใส่สาขาด้วย แสดงให้เห็นกันไปเลยว่าเชี่ยวชาญด้านไหน ไม่ใช่ว่ามีดีกรีด็อกเตอร์แล้วจะเก่งไปซะทุกเรื่อง และจริง ๆ มีดีอะไรก็บอกให้โลกรู้ไปซะ ไม่ต้องมาปกปิดทำลับ ๆ ล่อ ๆ ) ท่านโปรเฟสเซอร์ได้สละเวลาที่ไม่ค่อยจะมีนั้น สร้างแพ็กเกจ <a href="http://www.mail-archive.com/ctan-ann@dante.de/msg04477.html">tcolorbox</a> ไว้ให้ผมได้เอาไว้ใช้ (ฮา)  น่าเสียดายที่คู่มือเป็นภาษาเยอรมัน แต่ถ้าชำนาญคำสั่งต่าง ๆ ของ LaTeX พอสมควรก็ไม่าน่าจะยากครับ</p>
<p>สำหรับการสร้างผลลัพธ์ให้ได้อย่างรูปที่เห็นนั้น สามารถทำได้ดังรหัสต้นต่อไปนี้ครับ</p>
<blockquote>
<pre style="border:1px solid #c8c8c8;background:#f9f7f3 none repeat scroll 0 0;padding:10px;">\documentclass[xcolor=dvipsnames,xcolor=svgnames]{report}
\usepackage[svgnames,dvipsname]{xcolor}
\usepackage[listings,theorems]{tcolorbox}
\usepackage{listings}
\tcbuselibrary{listings}

% กำหนดค่าตัวเลือกให้ listings
\lstset{%
    language=MATLAB,
    basicstyle=\ttfamily,
    keywordstyle=\color{Black},
    identifierstyle=,
    commentstyle=\color{Green},
    stringstyle=\ttfamily\color{DarkViolet},
    showstringspaces=false,
    numbers=left,
    xleftmargin=.3in,
    xrightmargin=.3in,
    framexleftmargin=0.2cm,
    framexrightmargin=0.2cm,
    float=h,
    aboveskip=1cm,
    belowskip=1cm
}%

\begin{document}

% การเรียกใช้คำสั่งของ tcolorbox เพื่อพิมพ์ listings
\begin{tcblisting}{colback=yellow!5,colframe=yellow!50!black,listing only,
    title= This is a MATLAB example}
    clc; clear all;
    s = tf('s');
    sys = 1/(s+5);
    bode(sys);
\end{tcblisting}

\end{document}</pre>
</blockquote>
<p>โดยส่วนต่าง ๆ ที่จำเป็นคือ ไฟล์ tcolorbox.sty, tcblistings.code.tex  ไฟล์เหล่านี้ยังไม่ได้อยู่บน MikTeX (ตอนนี้) ดังนั้นจะต้องโหลดเอามาไว้ในโฟลเดอร์ที่ต้องการเอง  การเรียกใช้เบื้องต้นก็ต้องปรับแต่งตัว listing ให้ได้ตามชอบใจก่อน แล้วก็เรียกพิมพ์ listing โดยใช้สิ่งแวดล้อม tcblisting  จุดสำคัญที่ต้องคำนึงถึงคือตัวเลือก listing only ตัวนี้ถ้าไม่ใส่ รหัสต่าง ๆ ที่เราพิมพ์ลงไปนั้นก็จะไปปรากฏบนเอกสารด้วย (เยี่ยมมาก)</p>
<p>เอาไปลองใช้ดูนะครับ ได้ผลดีอย่างไรก็บอกกล่าวมาด้วยแล้วกัน</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thailatex.wordpress.com/888/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thailatex.wordpress.com/888/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thailatex.wordpress.com/888/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thailatex.wordpress.com/888/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/thailatex.wordpress.com/888/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/thailatex.wordpress.com/888/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/thailatex.wordpress.com/888/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/thailatex.wordpress.com/888/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thailatex.wordpress.com/888/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thailatex.wordpress.com/888/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thailatex.wordpress.com/888/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thailatex.wordpress.com/888/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thailatex.wordpress.com/888/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thailatex.wordpress.com/888/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thailatex.wordpress.com&amp;blog=440810&amp;post=888&amp;subd=thailatex&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://thailatex.wordpress.com/2011/12/24/a-waiting-for-package-tcolorbox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1b448c03e2aaaaff71f2f99b808efe97?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tsvhh</media:title>
		</media:content>

		<media:content url="http://thaitug.daytag.org/wordpress/wp-content/uploads/2011/12/firstlisting.png" medium="image">
			<media:title type="html">firstlisting</media:title>
		</media:content>
	</item>
		<item>
		<title>ก้าวแรกสู่สังเวียน BibLaTeX ตอนที่ 1 Jabref</title>
		<link>http://thailatex.wordpress.com/2011/12/24/%e0%b8%81%e0%b9%89%e0%b8%b2%e0%b8%a7%e0%b9%81%e0%b8%a3%e0%b8%81%e0%b8%aa%e0%b8%b9%e0%b9%88%e0%b8%aa%e0%b8%b1%e0%b8%87%e0%b9%80%e0%b8%a7%e0%b8%b5%e0%b8%a2%e0%b8%99-biblatex-%e0%b8%95%e0%b8%ad%e0%b8%99/</link>
		<comments>http://thailatex.wordpress.com/2011/12/24/%e0%b8%81%e0%b9%89%e0%b8%b2%e0%b8%a7%e0%b9%81%e0%b8%a3%e0%b8%81%e0%b8%aa%e0%b8%b9%e0%b9%88%e0%b8%aa%e0%b8%b1%e0%b8%87%e0%b9%80%e0%b8%a7%e0%b8%b5%e0%b8%a2%e0%b8%99-biblatex-%e0%b8%95%e0%b8%ad%e0%b8%99/#comments</comments>
		<pubDate>Sat, 24 Dec 2011 15:04:30 +0000</pubDate>
		<dc:creator>tsvhh</dc:creator>
				<category><![CDATA[BiBTeX]]></category>

		<guid isPermaLink="false">http://thailatex.wordpress.com/?p=886</guid>
		<description><![CDATA[ตามที่ได้กล่าวไปแล้วว่าจะมีการพูดถึงการใช้ BibLaTeX ทั้งนี้เพื่อให้เราสามารถปรับปรุงรูปแบบการอ้างอิงเอกสารได้โดยไม่ต้องพึ่งพาไฟล์ bst (ที่อาจจะปรับปรุงแก้ไขได้ยาก) ซึ่งไม่คล่องตัวนัก ซึ่งการใช้ BibLaTeX จะทำให้มีความคล่องตัวมากกว่า และผู้ใช้สามารถเปลี่ยนแปลงแก้ไขได้อย่างสะดวกและบ่อยครั้ง ตัวอย่างเช่นรูปแบบการแสดงเอกสารอ้างอิงในวิทยานิพนธ์ของมหาวิทยาลัยไทยแห่งหนึ่งกำหนดดังในรูปข้างล่าง  ซึ่งถ้าใครใช้รูปแบบของ IEEE อยู่ก็จะรู้ว่ามันไม่เหมือนกัน  เนื้อหาในตอนนี้จะเป็นการเตรียมความพร้อมของผู้ใช้ให้พร้อมใช้ BibLaTeX ก่อน ในตอนที่ 1 นี้จะเป็นการปรับแต่ง Jabref ให้รอบรับภาษาไทยครับ เนื่องจากการใช้ Jabref เพื่อเก็บรายละเอียดของเอกสารอ้างอิงของเรานั้นเป็นเรื่องที่สะดวกที่สุดในสายตาผม วิธีการทำให้ Jabref รู้จักภาษาไทยก็สามารถทำได้ง่าย คือติดตั้งฟอนต์ภาษาไทยที่ต้องการจะใช้เข้าไปยังโฟลเดอร์ที่ติดตั้ง Java เอาไว้  สำหรับกรณีของผมก็คือที่ C:\Program Files\Java\jre6\lib\fonts  ซึ่งฟอนต์ที่ดีที่แนะนำก็คือฟอนต์ Garuda ครับ  เมื่อคัดลอกไฟล์ฟอนต์ไปวางไว้ในโฟลเดอร์ดังกล่าว ก็เป็นอันเสร็จพิธี  Jabref ของเราสามารถใช้ภาษาไทยได้อย่างราบรื่นครับ &#8230; <a href="http://thailatex.wordpress.com/2011/12/24/%e0%b8%81%e0%b9%89%e0%b8%b2%e0%b8%a7%e0%b9%81%e0%b8%a3%e0%b8%81%e0%b8%aa%e0%b8%b9%e0%b9%88%e0%b8%aa%e0%b8%b1%e0%b8%87%e0%b9%80%e0%b8%a7%e0%b8%b5%e0%b8%a2%e0%b8%99-biblatex-%e0%b8%95%e0%b8%ad%e0%b8%99/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thailatex.wordpress.com&amp;blog=440810&amp;post=886&amp;subd=thailatex&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:left;">ตามที่ได้กล่าวไปแล้วว่าจะมีการพูดถึงการใช้ BibLaTeX ทั้งนี้เพื่อให้เราสามารถปรับปรุงรูปแบบการอ้างอิงเอกสารได้โดยไม่ต้องพึ่งพาไฟล์ bst (ที่อาจจะปรับปรุงแก้ไขได้ยาก) ซึ่งไม่คล่องตัวนัก ซึ่งการใช้ BibLaTeX จะทำให้มีความคล่องตัวมากกว่า และผู้ใช้สามารถเปลี่ยนแปลงแก้ไขได้อย่างสะดวกและบ่อยครั้ง ตัวอย่างเช่นรูปแบบการแสดงเอกสารอ้างอิงในวิทยานิพนธ์ของมหาวิทยาลัยไทยแห่งหนึ่งกำหนดดังในรูปข้างล่าง</p>
<p style="text-align:center;"><a href="http://thaitug.daytag.org/wordpress/wp-content/uploads/2011/11/ref1.png"><img class="size-full wp-image-1094 aligncenter" title="ref1" src="http://thaitug.daytag.org/wordpress/wp-content/uploads/2011/11/ref1.png" alt="" width="537" height="158" /></a></p>
<p style="text-align:left;"> ซึ่งถ้าใครใช้รูปแบบของ IEEE อยู่ก็จะรู้ว่ามันไม่เหมือนกัน  เนื้อหาในตอนนี้จะเป็นการเตรียมความพร้อมของผู้ใช้ให้พร้อมใช้ BibLaTeX ก่อน ในตอนที่ 1 นี้จะเป็นการปรับแต่ง Jabref ให้รอบรับภาษาไทยครับ</p>
<p style="text-align:left;">เนื่องจากการใช้ Jabref เพื่อเก็บรายละเอียดของเอกสารอ้างอิงของเรานั้นเป็นเรื่องที่สะดวกที่สุดในสายตาผม วิธีการทำให้ Jabref รู้จักภาษาไทยก็สามารถทำได้ง่าย คือติดตั้งฟอนต์ภาษาไทยที่ต้องการจะใช้เข้าไปยังโฟลเดอร์ที่ติดตั้ง Java เอาไว้  สำหรับกรณีของผมก็คือที่ C:\Program Files\Java\jre6\lib\fonts  ซึ่งฟอนต์ที่ดีที่แนะนำก็คือฟอนต์ Garuda ครับ  เมื่อคัดลอกไฟล์ฟอนต์ไปวางไว้ในโฟลเดอร์ดังกล่าว ก็เป็นอันเสร็จพิธี  Jabref ของเราสามารถใช้ภาษาไทยได้อย่างราบรื่นครับ</p>
<p style="text-align:left;">คราวต่อไปจะแนะนำวิธีการตั้งค่าของ BibLaTeX เพื่อให้ได้ผลตามรูปข้างบนครับ</p>
<p style="text-align:left;">
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thailatex.wordpress.com/886/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thailatex.wordpress.com/886/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thailatex.wordpress.com/886/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thailatex.wordpress.com/886/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/thailatex.wordpress.com/886/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/thailatex.wordpress.com/886/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/thailatex.wordpress.com/886/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/thailatex.wordpress.com/886/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thailatex.wordpress.com/886/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thailatex.wordpress.com/886/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thailatex.wordpress.com/886/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thailatex.wordpress.com/886/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thailatex.wordpress.com/886/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thailatex.wordpress.com/886/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thailatex.wordpress.com&amp;blog=440810&amp;post=886&amp;subd=thailatex&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://thailatex.wordpress.com/2011/12/24/%e0%b8%81%e0%b9%89%e0%b8%b2%e0%b8%a7%e0%b9%81%e0%b8%a3%e0%b8%81%e0%b8%aa%e0%b8%b9%e0%b9%88%e0%b8%aa%e0%b8%b1%e0%b8%87%e0%b9%80%e0%b8%a7%e0%b8%b5%e0%b8%a2%e0%b8%99-biblatex-%e0%b8%95%e0%b8%ad%e0%b8%99/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1b448c03e2aaaaff71f2f99b808efe97?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tsvhh</media:title>
		</media:content>

		<media:content url="http://thaitug.daytag.org/wordpress/wp-content/uploads/2011/11/ref1.png" medium="image">
			<media:title type="html">ref1</media:title>
		</media:content>
	</item>
		<item>
		<title>แต่งเติมสีสันให้กับ environment</title>
		<link>http://thailatex.wordpress.com/2011/09/27/%e0%b9%81%e0%b8%95%e0%b9%88%e0%b8%87%e0%b9%80%e0%b8%95%e0%b8%b4%e0%b8%a1%e0%b8%aa%e0%b8%b5%e0%b8%aa%e0%b8%b1%e0%b8%99%e0%b9%83%e0%b8%ab%e0%b9%89%e0%b8%81%e0%b8%b1%e0%b8%9a-environment/</link>
		<comments>http://thailatex.wordpress.com/2011/09/27/%e0%b9%81%e0%b8%95%e0%b9%88%e0%b8%87%e0%b9%80%e0%b8%95%e0%b8%b4%e0%b8%a1%e0%b8%aa%e0%b8%b5%e0%b8%aa%e0%b8%b1%e0%b8%99%e0%b9%83%e0%b8%ab%e0%b9%89%e0%b8%81%e0%b8%b1%e0%b8%9a-environment/#comments</comments>
		<pubDate>Tue, 27 Sep 2011 11:55:17 +0000</pubDate>
		<dc:creator>tsvhh</dc:creator>
				<category><![CDATA[Advanced]]></category>
		<category><![CDATA[บันทึกช่วยจำ]]></category>
		<category><![CDATA[\newenvironment]]></category>

		<guid isPermaLink="false">http://thailatex.wordpress.com/?p=884</guid>
		<description><![CDATA[วันนี้เอาแพ็กเกจดี ๆ มาฝากเช่นเคยครับ (?) เรื่องมีอยู่ว่าเวลาเราเขียนหนังสือเรามักจะชอบทำให้ส่วนต่าง ๆ ของหนังสือให้มีความแตกต่างกัน ตัวอย่างเช่น เวลาที่เราต้องการให้มีเส้นกรอบปิดหัวท้ายของส่วนที่เป็นตัวอย่างดังในรูป ในการสร้างตัวสิ่งแวดล้อม (environment) ตัวอย่าง ดังในรูปนั้น โดยทั่วไปแล้วเราก็จะใช้รูปแบบมาตรฐานที่มีให้กับ LaTeX  และ amsmath ดังนี้ \newtheorem{theorem}{ตัวอย่างที่}[chapter] ซึ่งแน่นอนครับ การใช้คำสั่งมาตรฐานย่อมได้สิ่งที่เป็นมาตรฐาน (แน่นอนสวยงามในแบบมาตรฐาน) ซึ่งย่อมไม่ถูกใจคนนอกกรอบแน่นอน ถ้าเราไปเปิดหนังสือมีการออกแบบรูปแบบของหนังสือเป็นอย่างดีนั้น ในส่วนของทฤษฎีบท, ตัวอย่าง ฯลฯ ย่อมจะต้องมีรูปแบบที่ตายตัว มีการตกแต่งที่สวยงาม เปิดไปเจอก็จะรู้ว่าตรงนี้เป็นส่วนของตัวอย่าง  ตอนที่ผมเขียนวิทยานิพนธ์ก็ได้พยายามทำเช่นเดียวกัน โดยใช้แบบจากหนังสือของ Stephen Boyd หนึ่งในบุคคลแม่แบบของใครหลาย ๆ คน (ลอกกันทุกอณู (ถ้าทำได้)) แน่นอนผมไม่ได้ลอก &#8230; <a href="http://thailatex.wordpress.com/2011/09/27/%e0%b9%81%e0%b8%95%e0%b9%88%e0%b8%87%e0%b9%80%e0%b8%95%e0%b8%b4%e0%b8%a1%e0%b8%aa%e0%b8%b5%e0%b8%aa%e0%b8%b1%e0%b8%99%e0%b9%83%e0%b8%ab%e0%b9%89%e0%b8%81%e0%b8%b1%e0%b8%9a-environment/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thailatex.wordpress.com&amp;blog=440810&amp;post=884&amp;subd=thailatex&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:left;">วันนี้เอาแพ็กเกจดี ๆ มาฝากเช่นเคยครับ (?) เรื่องมีอยู่ว่าเวลาเราเขียนหนังสือเรามักจะชอบทำให้ส่วนต่าง ๆ ของหนังสือให้มีความแตกต่างกัน ตัวอย่างเช่น เวลาที่เราต้องการให้มีเส้นกรอบปิดหัวท้ายของส่วนที่เป็นตัวอย่างดังในรูป</p>
<p style="text-align:center;"><a href="http://thaitug.daytag.org/wordpress/wp-content/uploads/2011/09/mdframe1.png"><img class="aligncenter size-full wp-image-1065" title="mdframe1" src="http://thaitug.daytag.org/wordpress/wp-content/uploads/2011/09/mdframe1.png" alt="" width="246" height="200" /></a></p>
<p style="text-align:left;">ในการสร้างตัวสิ่งแวดล้อม (environment) ตัวอย่าง ดังในรูปนั้น โดยทั่วไปแล้วเราก็จะใช้รูปแบบมาตรฐานที่มีให้กับ LaTeX  และ amsmath ดังนี้</p>
<blockquote>
<pre style="border:1px solid #c8c8c8;background:#f9f7f3 none repeat scroll 0 0;padding:10px;">\newtheorem{theorem}{ตัวอย่างที่}[chapter]</pre>
</blockquote>
<p>ซึ่งแน่นอนครับ การใช้คำสั่งมาตรฐานย่อมได้สิ่งที่เป็นมาตรฐาน (แน่นอนสวยงามในแบบมาตรฐาน) ซึ่งย่อมไม่ถูกใจคนนอกกรอบแน่นอน</p>
<p>ถ้าเราไปเปิดหนังสือมีการออกแบบรูปแบบของหนังสือเป็นอย่างดีนั้น ในส่วนของทฤษฎีบท, ตัวอย่าง ฯลฯ ย่อมจะต้องมีรูปแบบที่ตายตัว มีการตกแต่งที่สวยงาม เปิดไปเจอก็จะรู้ว่าตรงนี้เป็นส่วนของตัวอย่าง  ตอนที่ผมเขียนวิทยานิพนธ์ก็ได้พยายามทำเช่นเดียวกัน โดยใช้แบบจากหนังสือของ Stephen Boyd หนึ่งในบุคคลแม่แบบของใครหลาย ๆ คน (ลอกกันทุกอณู (ถ้าทำได้)) แน่นอนผมไม่ได้ลอก Boyd เพราะผมต้องทำเองให้เหมือนหรือดีกว่า (ฮา) ตอนที่ผมทำนั้นผมใช้วิธีดังนี้ครับ</p>
<blockquote>
<pre style="border:1px solid #c8c8c8;background:#f9f7f3 none repeat scroll 0 0;padding:10px;">\newcounter{Examplecount}[chapter]
\setcounter{Examplecount}{0}
\renewcommand\theExamplecount{\arabic{chapter}.\arabic{Examplecount}}
\makeatletter%
\newenvironment{examplex}
{% This is the begin code
    \vspace{-.5em}
    \@tempdima0.0cm
    \def\endbit{}
    \advance\rightskip\@tempdima
    \hangindent\@tempdima
    \ignorespaces
    {\vspace{0.5cm} \begin{flushright}\rule{1\textwidth}{0.5pt}\end{flushright}}
     \vspace{-0.0cm}
         \refstepcounter{Examplecount}
         {  \noindent  \small\textbf{ตัวอย่างที่}
        \thechapter.\arabic{Examplecount}}
        \small
}
{% This is the end code
    \nolinebreak\hspace*{\stretch2}
    \parfillskip-\@tempdima
    \makebox[\@tempdima][r]{\endbit}\par
    \raggedleft$\Box$ \\[-0.5em]
    \hfill\hspace{0.03\textwidth}\rule{1\textwidth}{0.5pt}
}
</pre>
</blockquote>
<p>ขออนุญาตไม่อธิบายนะครับ เพราะนอกจากจะยุ่งยากแล้วเรายังจะไม่ใช้มันอีกด้วย (ผู้สนใจสามารถดูรายละเอียดได้จากคำสั่ง \newenvironment{}{}{}) สำหรับรหัสต้นข้างต้นนั้น มีปัญหาในหลายส่วนครับ เช่นในกรณีของตัวอย่างที่คร่อมสองหน้า บางครั้งเส้นขอบบนและเส้นขอบล่างจะไม่อยู่ในที่ ๆ มันควรจะอยู่ หรือบางครั้งเส้นขอบบนอยู่หน้าหนึ่ง ตัวเนื้อหาอยู่อีกหน้าหนึ่ง</p>
<p>เวลาผ่านไปนาน หลังจากที่ผมทนใช้รหัสต้นของผมอยู่ปีกว่า  ผมก็ได้เริ่มเขียนหนังสือเล่มใหม่ ปัญหาเดิม ๆ กลับมาหลอกหลอนผมอีกครั้งและแก้ยาก ผมเลยใช้วิธีค้นหา แน่นอนผมใช้ทั้ง bing, google และ Stack Exchange ผมก็ได้ผมกับแพ็กเกจ<a href="http://tug.ctan.org/tex-archive/macros/latex/contrib/mdframed"> mdframed</a> ซึ่งทำให้งานเหล่านี้ง่ายขึ้นมากทีเดียว สำหรับการทำให้สิ่งแวดล้อมตัวอย่าง มีลักษณะดังรูปข้างต้นนั้นทำดังนี้ครับ</p>
<blockquote>
<pre style="border:1px solid #c8c8c8;background:#f9f7f3 none repeat scroll 0 0;padding:10px;">\newtheorem{mdtheorem}{\textbf{ตัวอย่างที่}}[chapter]
\newenvironment{examplex}{%
    \begin{mdframed}%
	[linewidth=1pt, leftline=false, rightline=false,%
	outerlinewidth=2,leftmargin=50,rightmargin=0,%
	innertopmargin=-0.6cm, innerleftmargin=0, innerrightmargin=0%
	 backgroundcolor=white, outerlinecolor=black,%
	 splittopskip=\topskip, skipbelow=\baselineskip,%
	 skipabove=\baselineskip, ntheorem]%
	 \begin{mdtheorem} \small\normalfont}
     {\end{mdtheorem}\end{mdframed}}</pre>
</blockquote>
<p>ซึ่งการใช้งานก็ง่ายมากครับ อ่านคู่มือเอาเองได้เลย เวลาน้อยไม่ขออธิบายแล้วกัน  เจอกันใหม่คราวหน้าครับ</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thailatex.wordpress.com/884/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thailatex.wordpress.com/884/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thailatex.wordpress.com/884/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thailatex.wordpress.com/884/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/thailatex.wordpress.com/884/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/thailatex.wordpress.com/884/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/thailatex.wordpress.com/884/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/thailatex.wordpress.com/884/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thailatex.wordpress.com/884/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thailatex.wordpress.com/884/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thailatex.wordpress.com/884/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thailatex.wordpress.com/884/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thailatex.wordpress.com/884/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thailatex.wordpress.com/884/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thailatex.wordpress.com&amp;blog=440810&amp;post=884&amp;subd=thailatex&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://thailatex.wordpress.com/2011/09/27/%e0%b9%81%e0%b8%95%e0%b9%88%e0%b8%87%e0%b9%80%e0%b8%95%e0%b8%b4%e0%b8%a1%e0%b8%aa%e0%b8%b5%e0%b8%aa%e0%b8%b1%e0%b8%99%e0%b9%83%e0%b8%ab%e0%b9%89%e0%b8%81%e0%b8%b1%e0%b8%9a-environment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1b448c03e2aaaaff71f2f99b808efe97?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tsvhh</media:title>
		</media:content>

		<media:content url="http://thaitug.daytag.org/wordpress/wp-content/uploads/2011/09/mdframe1.png" medium="image">
			<media:title type="html">mdframe1</media:title>
		</media:content>
	</item>
		<item>
		<title>ปัญหาของ XeLaTeX กับ MiKTeX</title>
		<link>http://thailatex.wordpress.com/2011/09/27/%e0%b8%9b%e0%b8%b1%e0%b8%8d%e0%b8%ab%e0%b8%b2%e0%b8%82%e0%b8%ad%e0%b8%87-xelatex-%e0%b8%81%e0%b8%b1%e0%b8%9a-miktex/</link>
		<comments>http://thailatex.wordpress.com/2011/09/27/%e0%b8%9b%e0%b8%b1%e0%b8%8d%e0%b8%ab%e0%b8%b2%e0%b8%82%e0%b8%ad%e0%b8%87-xelatex-%e0%b8%81%e0%b8%b1%e0%b8%9a-miktex/#comments</comments>
		<pubDate>Tue, 27 Sep 2011 11:49:08 +0000</pubDate>
		<dc:creator>tsvhh</dc:creator>
				<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[XeLaTeX]]></category>

		<guid isPermaLink="false">http://thailatex.wordpress.com/?p=882</guid>
		<description><![CDATA[ในช่วงที่ผ่านมา ไม่ได้ยุ่งเกี่ยวอะไรกับ pdfLaTeX มานานมากแล้ว งานส่วนใหญ่หันไปใช้ XeLaTeX หมดแล้ว เพราะความสามารถที่มากกว่า ใช้ฟอนต์ของ OS นั้น ๆ ได้ ใช้งานกับภาษาไทยได้ดี  ช่วงนี้ถ้าใคร Update MiKTeX แล้วหล่ะก็ ก็จะมีปัญหากับแพ็กเกจสองตัวคือ expl3 กับ xpackages  ซึ่งถูกแทนที่ด้วย l3kernel กับ l3packages แต่ตอนนี้ MiKTeX ยังไม่ได้แก้ไข ผู้ใช้จะต้องลงเองนะครับ โดยใช้ตัวจัดการแพ็กเกจของ MiKTeX ครับ ปัญหาก็จะหมดไป &#160;<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thailatex.wordpress.com&amp;blog=440810&amp;post=882&amp;subd=thailatex&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>ในช่วงที่ผ่านมา ไม่ได้ยุ่งเกี่ยวอะไรกับ pdfLaTeX มานานมากแล้ว งานส่วนใหญ่หันไปใช้ XeLaTeX หมดแล้ว เพราะความสามารถที่มากกว่า ใช้ฟอนต์ของ OS นั้น ๆ ได้ ใช้งานกับภาษาไทยได้ดี  ช่วงนี้ถ้าใคร Update MiKTeX แล้วหล่ะก็ ก็จะมีปัญหากับแพ็กเกจสองตัวคือ expl3 กับ xpackages  ซึ่งถูกแทนที่ด้วย l3kernel กับ l3packages แต่ตอนนี้ MiKTeX ยังไม่ได้แก้ไข ผู้ใช้จะต้องลงเองนะครับ โดยใช้ตัวจัดการแพ็กเกจของ MiKTeX ครับ ปัญหาก็จะหมดไป</p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thailatex.wordpress.com/882/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thailatex.wordpress.com/882/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thailatex.wordpress.com/882/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thailatex.wordpress.com/882/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/thailatex.wordpress.com/882/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/thailatex.wordpress.com/882/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/thailatex.wordpress.com/882/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/thailatex.wordpress.com/882/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thailatex.wordpress.com/882/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thailatex.wordpress.com/882/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thailatex.wordpress.com/882/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thailatex.wordpress.com/882/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thailatex.wordpress.com/882/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thailatex.wordpress.com/882/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thailatex.wordpress.com&amp;blog=440810&amp;post=882&amp;subd=thailatex&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://thailatex.wordpress.com/2011/09/27/%e0%b8%9b%e0%b8%b1%e0%b8%8d%e0%b8%ab%e0%b8%b2%e0%b8%82%e0%b8%ad%e0%b8%87-xelatex-%e0%b8%81%e0%b8%b1%e0%b8%9a-miktex/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1b448c03e2aaaaff71f2f99b808efe97?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tsvhh</media:title>
		</media:content>
	</item>
		<item>
		<title>การใช้ pdfpages ร่วมกับ fancy header สร้างส่วน header+footer ให้กับเอกสาร pdf</title>
		<link>http://thailatex.wordpress.com/2011/09/27/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b9%83%e0%b8%8a%e0%b9%89-pdfpages-%e0%b8%a3%e0%b9%88%e0%b8%a7%e0%b8%a1%e0%b8%81%e0%b8%b1%e0%b8%9a-fancy-header-%e0%b8%aa%e0%b8%a3%e0%b9%89%e0%b8%b2%e0%b8%87%e0%b8%aa/</link>
		<comments>http://thailatex.wordpress.com/2011/09/27/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b9%83%e0%b8%8a%e0%b9%89-pdfpages-%e0%b8%a3%e0%b9%88%e0%b8%a7%e0%b8%a1%e0%b8%81%e0%b8%b1%e0%b8%9a-fancy-header-%e0%b8%aa%e0%b8%a3%e0%b9%89%e0%b8%b2%e0%b8%87%e0%b8%aa/#comments</comments>
		<pubDate>Tue, 27 Sep 2011 11:46:03 +0000</pubDate>
		<dc:creator>tsvhh</dc:creator>
				<category><![CDATA[บันทึกช่วยจำ]]></category>
		<category><![CDATA[pdfpages]]></category>

		<guid isPermaLink="false">http://thailatex.wordpress.com/?p=879</guid>
		<description><![CDATA[ปัญหา มีเหตุจากผมใช้งานโปรแกรม Office แล้วมีปัญหาบางประการในการจัดเลขหน้าและส่วนหัวและส่วนท้าย และจากขนาดของไฟล์ที่ใหญ่มาก ทำให้การทำงานของโปรแกรมไม่เสถียร โปรแกรมจะค้างบ่อย ๆ เมือแก้ไขเอกสารจะค่อยข้างเสียเวลาและเสียอารมณ์เป็นอย่างยิ่ง แนวทางแก้ ทำการสร้างเอกสารใหม่ด้วยโปรแกรม Office ที่ไม่มีส่วนหัวและท้ายกระดาษ และตั้งค่าขอบกระดาษเป็น 25 มม ทั้งหมด แล้วทำการส่งออกเป็นเอกสาร pdf ที่ไม่มีเลขหน้า ใช้งาน pdfLaTeX โดนการเรียกแพกเกจ pdfpages ร่วมกับ fancy header สร้างส่วน header และ footer ให้กับเอกสาร pdf หลังจากนั้นถึงใช้งาน LaTeX ในการแทรกส่วนหัวและท้ายกระดาษ พอจะแก้ปัญหาชั่วคราวไปก่อน ได้รหัสคำสั่งดังแสดงครับ แพกเกจ babel &#8230; <a href="http://thailatex.wordpress.com/2011/09/27/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b9%83%e0%b8%8a%e0%b9%89-pdfpages-%e0%b8%a3%e0%b9%88%e0%b8%a7%e0%b8%a1%e0%b8%81%e0%b8%b1%e0%b8%9a-fancy-header-%e0%b8%aa%e0%b8%a3%e0%b9%89%e0%b8%b2%e0%b8%87%e0%b8%aa/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thailatex.wordpress.com&amp;blog=440810&amp;post=879&amp;subd=thailatex&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>ปัญหา</strong><br />
มีเหตุจากผมใช้งานโปรแกรม Office แล้วมีปัญหาบางประการในการจัดเลขหน้าและส่วนหัวและส่วนท้าย และจากขนาดของไฟล์ที่ใหญ่มาก ทำให้การทำงานของโปรแกรมไม่เสถียร โปรแกรมจะค้างบ่อย ๆ เมือแก้ไขเอกสารจะค่อยข้างเสียเวลาและเสียอารมณ์เป็นอย่างยิ่ง</p>
<p><strong>แนวทางแก้</strong></p>
<ol>
<li>ทำการสร้างเอกสารใหม่ด้วยโปรแกรม Office ที่ไม่มีส่วนหัวและท้ายกระดาษ และตั้งค่าขอบกระดาษเป็น 25 มม ทั้งหมด แล้วทำการส่งออกเป็นเอกสาร pdf ที่ไม่มีเลขหน้า</li>
<li>ใช้งาน pdfLaTeX โดนการเรียกแพกเกจ <a href="http://www.ctan.org/tex-archive/macros/latex/contrib/pdfpages/">pdfpages </a>ร่วมกับ <a href="http://www.ctan.org/tex-archive/macros/latex/contrib/fancyhdr">fancy header</a> สร้างส่วน header และ footer ให้กับเอกสาร pdf หลังจากนั้นถึงใช้งาน LaTeX ในการแทรกส่วนหัวและท้ายกระดาษ  พอจะแก้ปัญหาชั่วคราวไปก่อน ได้รหัสคำสั่งดังแสดงครับ</li>
<li>แพกเกจ babel คงต้องมีไว้เพื่อให้แสดงภาษาไทยได้  และแพกเกจ color เอาไว้ควบคุมสีครับ</li>
</ol>
<blockquote>
<pre style="border:1px solid #c8c8c8;background:#f9f7f3 none repeat scroll 0 0;padding:10px;">\documentclass[11pt,twoside,a4paper]{book}

\usepackage[english,thai]{babel}  %% for pdflatex with thai
\usepackage[margin=20mm,top=25mm]{geometry} %% ต้องกำหนดระยะขอบ

\usepackage[final]{pdfpages}
\usepackage{fancyhdr}
\usepackage{color}

\pagestyle{fancy}
\fancyhead{}
\fancyfoot{}
\fancyhead[LE]{\colorbox{lightgray} {\color{white}{การออกแบบโครงสร้างคอนกรีตเสริมเหล็ก}}}
\fancyhead[RO]{บทที่ 2 การวิเคราะห์และออกแบบโครงสร้าง}
\fancyfoot[LE]{จักรี ติยะวงศ์สุวรรณ}
\fancyfoot[RO]{\today} %% วันที่ทำการสร้างเอกสาร

\fancyfoot[C]{\thepage} %% เลขหน้า

\renewcommand{\headrulewidth}{0.4pt} %% ไม่อยากได้เส้นก็ 0.0pt
\renewcommand{\footrulewidth}{0.4pt}

\begin{document}

\setcounter{page}{7}  %% ตั้งเลขหน้าเริ่มต้น ในกรณีที่เอกสารแยกเป็น บท ๆ

\includepdf[pages=1,fitpaper=true]{StructuralAnalysis.pdf}
%% หน้าแรกไม่ต้องมีส่วน Header แทรกก่อนแผ่นเดียว

\includepdfset{pages=2-,fitpaper=true , pagecommand={\thispagestyle{fancy}}}
\includepdf{StructuralAnalysis.pdf}

\end{document}</pre>
</blockquote>
<p>ถ้า <a href="http://thaitug.daytag.org/">กลุ่มคนไทยผู้ใช้ $$\LaTeX$$</a> มีปัญหาคล้าย ๆ กันจะได้มีแนวทางในการจัดทำเอกสารด้วย LaTeX ผมได้แนวทางแก้ปัญหาจากเว็บไซต์ต่างประเทศหลายที่ในตอนทำ แต่ไม่ได้บันทึกไว้ ต้องขออภัยไว้ด้วยครับ</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thailatex.wordpress.com/879/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thailatex.wordpress.com/879/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thailatex.wordpress.com/879/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thailatex.wordpress.com/879/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/thailatex.wordpress.com/879/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/thailatex.wordpress.com/879/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/thailatex.wordpress.com/879/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/thailatex.wordpress.com/879/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thailatex.wordpress.com/879/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thailatex.wordpress.com/879/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thailatex.wordpress.com/879/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thailatex.wordpress.com/879/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thailatex.wordpress.com/879/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thailatex.wordpress.com/879/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thailatex.wordpress.com&amp;blog=440810&amp;post=879&amp;subd=thailatex&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://thailatex.wordpress.com/2011/09/27/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b9%83%e0%b8%8a%e0%b9%89-pdfpages-%e0%b8%a3%e0%b9%88%e0%b8%a7%e0%b8%a1%e0%b8%81%e0%b8%b1%e0%b8%9a-fancy-header-%e0%b8%aa%e0%b8%a3%e0%b9%89%e0%b8%b2%e0%b8%87%e0%b8%aa/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1b448c03e2aaaaff71f2f99b808efe97?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tsvhh</media:title>
		</media:content>
	</item>
		<item>
		<title>แพ็กเกจ pgfpages with XeTeX</title>
		<link>http://thailatex.wordpress.com/2011/05/07/%e0%b9%81%e0%b8%9e%e0%b9%87%e0%b8%81%e0%b9%80%e0%b8%81%e0%b8%88-pgfpages-with-xetex/</link>
		<comments>http://thailatex.wordpress.com/2011/05/07/%e0%b9%81%e0%b8%9e%e0%b9%87%e0%b8%81%e0%b9%80%e0%b8%81%e0%b8%88-pgfpages-with-xetex/#comments</comments>
		<pubDate>Sat, 07 May 2011 07:27:51 +0000</pubDate>
		<dc:creator>tsvhh</dc:creator>
				<category><![CDATA[beamer]]></category>

		<guid isPermaLink="false">http://thailatex.wordpress.com/?p=871</guid>
		<description><![CDATA[วันก่อนอาจารย์ท่านหนึ่งได้ส่งคำถามเรื่องการสร้างเอกสารจาก beamer 4 หน้าลงใน 1 หน้า A4 โดยใช้แพ็กเกจ pgfpages บน XeTeX ซึ่งต้องบอกก่อนว่าแพ็กเกจ นี้สามารถใช้งานกับ LaTeX และ pdfLaTeX ได้เป็นอย่างดี  ส่วนตัวไม่เคยลองกับ XeTeX เลย  พึ่งได้มาลองก็ตอนที่ได้ไฟล์มาจากอาจารย์ท่านที่ส่งคำถามมาเนี่ยแหละครับ (XeTeX เป็นความหวังของชุมชนที่จะสามารถใช้ฟอนต์ภาษาไทยกับ LaTeX ได้อย่างอิสระ) เมื่อได้ลองแล้วก็หาทางแก้ไข ไม่ว่าจะทางเว็บ stack exchange และที่อื่น ๆ ก็ไม่สามารถแก้ปัญหาได้ แต่ได้รู้ปัญหาคือแพ็กเกจ pgf  ที่แพ็กเกจ pgfpages ใช้นั้น ไม่สนับสนุน XeTeX  วิธีแก้ไขมีทางเดียวครับคือเข้าไปแก้ไข &#8230; <a href="http://thailatex.wordpress.com/2011/05/07/%e0%b9%81%e0%b8%9e%e0%b9%87%e0%b8%81%e0%b9%80%e0%b8%81%e0%b8%88-pgfpages-with-xetex/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thailatex.wordpress.com&amp;blog=440810&amp;post=871&amp;subd=thailatex&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>วันก่อนอาจารย์ท่านหนึ่งได้ส่งคำถามเรื่องการสร้างเอกสารจาก beamer 4 หน้าลงใน 1 หน้า A4 โดยใช้แพ็กเกจ pgfpages บน XeTeX ซึ่งต้องบอกก่อนว่าแพ็กเกจ นี้สามารถใช้งานกับ LaTeX และ pdfLaTeX ได้เป็นอย่างดี  ส่วนตัวไม่เคยลองกับ XeTeX เลย  พึ่งได้มาลองก็ตอนที่ได้ไฟล์มาจากอาจารย์ท่านที่ส่งคำถามมาเนี่ยแหละครับ (XeTeX เป็นความหวังของชุมชนที่จะสามารถใช้ฟอนต์ภาษาไทยกับ LaTeX ได้อย่างอิสระ)</p>
<p>เมื่อได้ลองแล้วก็หาทางแก้ไข ไม่ว่าจะทางเว็บ stack exchange และที่อื่น ๆ ก็ไม่สามารถแก้ปัญหาได้ แต่ได้รู้ปัญหาคือแพ็กเกจ pgf  ที่แพ็กเกจ pgfpages ใช้นั้น ไม่สนับสนุน XeTeX  วิธีแก้ไขมีทางเดียวครับคือเข้าไปแก้ไข page layout ให้เหมาะสมกับ XeTeX  ในการแก้ไข page layout ของเพ็กเกจ pgf นั้นสิ่งที่ต้องทำคือทำใจยอมรับความทรมานที่จะต้องเข้าไปผจญกับคู่มือของ pgf (เยอะ แล้วอ่านแล้วไม่สื่อความหมาย)  ในที่สุดผมก็แก้ไขได้ครับ โดยใช้รหัสต้นดังนี้</p>
<p><span id="more-871"></span></p>
<blockquote>
<pre style="border:1px solid #c8c8c8;background:#f9f7f3 none repeat scroll 0 0;padding:10px;">\pgfpagesdeclarelayout{4 on 1 portrait}
{
	\def\pgfpageoptionborder{0pt}
}
{
	\pgfpagesphysicalpageoptions
	{%
		logical pages=4,%
		physical height=\paperwidth,%
		physical width=\paperheight%
	}
	\pgfpageslogicalpageoptions{1}
	{%
		resized width= 0.6\pgfphysicalwidth,%
		resized height= 0.6\pgfphysicalheight,%
		center=\pgfpoint{.33\pgfphysicalwidth}{.64\pgfphysicalheight}%
	}%
	\pgfpageslogicalpageoptions{2}
	{%
		resized width= 0.6\pgfphysicalwidth,%
		resized height= 0.6\pgfphysicalheight,%
		center=\pgfpoint{1\pgfphysicalwidth}{.64\pgfphysicalheight}%
	}%
	\pgfpageslogicalpageoptions{3}
	{%
		resized width= 0.6\pgfphysicalwidth,%
		resized height= 0.6\pgfphysicalheight,%
		center=\pgfpoint{.33\pgfphysicalwidth}{.25\pgfphysicalheight}%
	}%
	\pgfpageslogicalpageoptions{4}
	{%
		resized width= 0.6\pgfphysicalwidth,%
		resized height= 0.6\pgfphysicalheight,%
		center=\pgfpoint{1\pgfphysicalwidth}{.25\pgfphysicalheight}%
	}%
}

\pgfpagesuselayout{4 on 1 portrait}[a4paper,landscape, border shrink=1mm]</pre>
</blockquote>
<p>เพื่อความสะดวก ผมได้ทำเป็นแพ็กเกจให้ โดยตอนนี้สนับสนุนแค่ 4 on 1 เท่านั้น ไว้มีเวลาว่างจะทำแบบอื่นด้วยครับ</p>
<p>วิธีการใช้คือให้คัดลอกแพ็กเกจ <a href="http://thaitug.daytag.org/xetexhandout/xetexhandout.sty">xetexhandout.sty</a> ไปไว้ในโฟลเดอร์ที่บรรจุเอกสาร เวลาเรียกใช้ก็เพิ่มรหัสต้นเข้าไปในไฟล์เอกสารดังนี้ครับ</p>
<blockquote>
<pre style="border:1px solid #c8c8c8;background:#f9f7f3 none repeat scroll 0 0;padding:10px;">\usepackage{xetexhandout}
\pgfpagesuselayout{4 on 1 portrait}[a4paper,landscape, border shrink=1mm]</pre>
</blockquote>
<p>สำหรับไฟล์ตัวอย่างคือ <a href="http://thaitug.daytag.org/xetexhandout/beam.tex">beam.tex</a> และผลที่ได้คือ <a href="http://thaitug.daytag.org/xetexhandout/beam.pdf">beam.pdf</a> ครับ ซึ่งผลลัพธ์เป็นไปตามรูปครับ</p>
<p style="text-align:center;"><a href="http://thaitug.daytag.org/wordpress/wp-content/uploads/2011/05/beam.png"><img class="aligncenter size-full wp-image-1027" title="beam" src="http://thaitug.daytag.org/wordpress/wp-content/uploads/2011/05/beam.png" alt="" width="548" height="414" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thailatex.wordpress.com/871/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thailatex.wordpress.com/871/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thailatex.wordpress.com/871/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thailatex.wordpress.com/871/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/thailatex.wordpress.com/871/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/thailatex.wordpress.com/871/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/thailatex.wordpress.com/871/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/thailatex.wordpress.com/871/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thailatex.wordpress.com/871/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thailatex.wordpress.com/871/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thailatex.wordpress.com/871/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thailatex.wordpress.com/871/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thailatex.wordpress.com/871/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thailatex.wordpress.com/871/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thailatex.wordpress.com&amp;blog=440810&amp;post=871&amp;subd=thailatex&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://thailatex.wordpress.com/2011/05/07/%e0%b9%81%e0%b8%9e%e0%b9%87%e0%b8%81%e0%b9%80%e0%b8%81%e0%b8%88-pgfpages-with-xetex/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1b448c03e2aaaaff71f2f99b808efe97?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tsvhh</media:title>
		</media:content>

		<media:content url="http://thaitug.daytag.org/wordpress/wp-content/uploads/2011/05/beam.png" medium="image">
			<media:title type="html">beam</media:title>
		</media:content>
	</item>
		<item>
		<title>วาดแผนภาพ (diagram) ง่าย(ที่ไหน) ด้วย TikZ ตอนที่ 1</title>
		<link>http://thailatex.wordpress.com/2011/04/22/%e0%b8%a7%e0%b8%b2%e0%b8%94%e0%b9%81%e0%b8%9c%e0%b8%99%e0%b8%a0%e0%b8%b2%e0%b8%9e-diagram-%e0%b8%87%e0%b9%88%e0%b8%b2%e0%b8%a2%e0%b8%97%e0%b8%b5%e0%b9%88%e0%b9%84%e0%b8%ab%e0%b8%99-%e0%b8%94/</link>
		<comments>http://thailatex.wordpress.com/2011/04/22/%e0%b8%a7%e0%b8%b2%e0%b8%94%e0%b9%81%e0%b8%9c%e0%b8%99%e0%b8%a0%e0%b8%b2%e0%b8%9e-diagram-%e0%b8%87%e0%b9%88%e0%b8%b2%e0%b8%a2%e0%b8%97%e0%b8%b5%e0%b9%88%e0%b9%84%e0%b8%ab%e0%b8%99-%e0%b8%94/#comments</comments>
		<pubDate>Fri, 22 Apr 2011 12:23:51 +0000</pubDate>
		<dc:creator>tsvhh</dc:creator>
				<category><![CDATA[Graphics]]></category>
		<category><![CDATA[TikZ]]></category>

		<guid isPermaLink="false">http://thailatex.wordpress.com/?p=867</guid>
		<description><![CDATA[ถ้าใครเคยใช้ beamer, TikZ มาบ้าง แล้วเริ่มต้นด้วยการอ่านคู่มือโดยมีเป้าหมายเพื่อที่จำทำงานง่าย ๆ บางอย่างให้เสร็จในเวลาอันรวดเร็ว นั่นหมายความว่าคุณชอบทรมานตัวเอง คู่มือของ beamer และ TikZ นั้นหนา รายละเอียดเยอะ แล้วก็ &#8220;ต้องอ่านตั้งแต่ต้น&#8221; ใครไม่เคยใช้ beamer และ TikZ และไม่อยากแตะ แต่เคยสัมผัสคู่มือของอุปกรณ์จากเยอรมันเช่น Siemens, dSpace (อาจจะรวม SAP เข้าไปด้วย) ก็น่าจะรู้ดีว่า คู่มือเหล่านี้จะมี Quick Start ที่อ่านจบแล้วไปต่อไปไม่ได้ ตัวอย่างถัดไปไม่สามารถขยายต่อจากตัวอย่างใน Quick Start ได้ บางครั้งทำตามตัวอย่างในบทถัด ๆ ไปทุกอย่าง แต่ได้ &#8230; <a href="http://thailatex.wordpress.com/2011/04/22/%e0%b8%a7%e0%b8%b2%e0%b8%94%e0%b9%81%e0%b8%9c%e0%b8%99%e0%b8%a0%e0%b8%b2%e0%b8%9e-diagram-%e0%b8%87%e0%b9%88%e0%b8%b2%e0%b8%a2%e0%b8%97%e0%b8%b5%e0%b9%88%e0%b9%84%e0%b8%ab%e0%b8%99-%e0%b8%94/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thailatex.wordpress.com&amp;blog=440810&amp;post=867&amp;subd=thailatex&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>ถ้าใครเคยใช้ beamer, TikZ มาบ้าง แล้วเริ่มต้นด้วยการอ่านคู่มือโดยมีเป้าหมายเพื่อที่จำทำงานง่าย ๆ บางอย่างให้เสร็จในเวลาอันรวดเร็ว นั่นหมายความว่าคุณชอบทรมานตัวเอง คู่มือของ beamer และ TikZ นั้นหนา รายละเอียดเยอะ แล้วก็ &#8220;ต้องอ่านตั้งแต่ต้น&#8221; ใครไม่เคยใช้ beamer และ TikZ และไม่อยากแตะ แต่เคยสัมผัสคู่มือของอุปกรณ์จากเยอรมันเช่น Siemens, dSpace (อาจจะรวม SAP เข้าไปด้วย) ก็น่าจะรู้ดีว่า คู่มือเหล่านี้จะมี Quick Start ที่อ่านจบแล้วไปต่อไปไม่ได้ ตัวอย่างถัดไปไม่สามารถขยายต่อจากตัวอย่างใน Quick Start ได้ บางครั้งทำตามตัวอย่างในบทถัด ๆ ไปทุกอย่าง แต่ได้ error มั่วไปหมด วิธีก็คือตั้งอ่านคู่มือย้อนกลับไปเรื่อย ๆ จนกว่าจะหาสาเหตุเจอ (ซึ่งไม่ง่ายเหมือนคู่มือจากประเทศอื่น)</p>
<p>เรื่องนี้คงไม่ใช้เรื่องแปลก เพราะคำว่า user กับ power user ของเยอรมันนั้นไม่มีความแตกต่าง (ซึ่งต่างจากหลาย ๆ ประเทศที่ user กับ ยูสโง่ ไม่ต่างกันเท่าไหร่ ผมก็เป็นเพราะขี้เกียจอ่านคู่มือ) ยกตัวอย่างง่าย ๆ ครับ ธุรการในมหาวิทยาลัยของเยอรมันจะใช้ word เก่งอาจารย์เป็นสิบเท่า เพราะธุรการเหล่านี้อ่านคู่มือ และมีการอบรมกันโดยผู้ใช้เอง (การอบรมกลุ่มย่อยกันเองเป็นเรื่องที่ปกติสำหรับประเทศนี้) คนในประเทศนี้ส่วนใหญ่ก็จะเก่งในเรื่องที่ตัวเองรู้(เท่านั้น) นี่คือข้อดีของประเทศนี้ แต่ข้อเสียก็เต็มไปหมดและรับไม่ได้เหมือนกัน กลับมาที่ beamer ที่โยงกับย่อหน้านี้นิดหน่อยว่า beamer นั้นใช้ยาก แต่เราจะเห็นโปรเฟสเซอร์แก่ ๆ ในเยอรมัน สามารถใช้มันได้เหมือนกับ power user ในขณะที่ถ้าเป็นประเทศอื่นบางประเทศหล่ะก็ ธุรการ หรือ ลูกน้องทำให้ (แน่ ๆ)</p>
<p>บทความชุดนี้ สร้างขึ้นมาเพื่อให้เราสามารถสร้างผลงานด้วย TikZ ได้เหมือนกับกินบะหมี่สำเร็จรูป (แน่นอนคู่มือลักษณะนี้จะหนาพันหน้า ในขณะที่คู่มือต้นฉบับหนาแค่สองร้อยหน้า)</p>
<p><strong>แผนภาพง่าย ๆ เบื้องต้น</strong><br />
เริ่มต้นเราต้องวางแผนก่อน เช่นโหนดที่เราจะใช้นั้นควรจะมีรูปร่างหน้าตาอย่างไร ชื่ออะไร ตัวอย่างถ้าผมต้องการแผนภาพแบบในรูปข้างล่าง</p>
<p style="text-align:center;"><a href="http://thaitug.daytag.org/wordpress/wp-content/uploads/2011/04/simpledia.png"><img class="aligncenter size-full wp-image-1019" title="simpledia" src="http://thaitug.daytag.org/wordpress/wp-content/uploads/2011/04/simpledia.png" alt="" width="449" height="81" /></a></p>
<p>จะเห็นได้ว่าโหนดแต่ละอันนั้นเป็นรูปสี่เหลี่ยมผืนผ้าขอบโค้ง  ถ้าต้องการวาดแผนภาพแบบนี้ จะต้องมีการเรียกแฟ้มคำสั่ง (library) ก่อน ในกรณีนี้ที่จำเป็นมีสามตัวคือ</p>
<p><span id="more-867"></span></p>
<blockquote>
<pre style="border:1px solid #c8c8c8;background:#f9f7f3 none repeat scroll 0 0;padding:10px;">\usetikzlibrary{%
  shapes.geometric,%
  positioning, % for of
  calc%
}</pre>
</blockquote>
<p>คงจะเริ่มเห็นอนาคตลาง ๆ แล้วนะครับ ว่าค่าพวกนี้มาจากไหน รู้ได้อย่าง ซึ่งก็ต้องบอกได้เลยว่าต้องอ่านคู่มือโดยละเอียดอย่างเดียว (ไม่ขำนะครับ เคยมีคนไปถามในเว็บบอร์ด ปรากฏคนที่ตอบ ๆ ว่า ก็ไปอ่านคู่มือเอา หน้าที่ บลา บลา)</p>
<p>จากนั้นก็กำหนด รูปแบบของโหนดที่เราต้องการใช้ซ้ำ ในที่นี้ตั้งชื่อว่า sqbox แล้วกัน ดังนี้ครับ</p>
<blockquote>
<pre style="border:1px solid #c8c8c8;background:#f9f7f3 none repeat scroll 0 0;padding:10px;">sqbox/.style={rectangle, rounded corners,
    minimum size=6mm,thick,%
    draw=blue!50!black!50,%
    top color=white,%
    bottom color=blue!50!black!20}</pre>
</blockquote>
<p>ก็ตรงไปตรงมา ดังนั้นจะละคำอธิบายละเอียดไป เมื่อนำรหัสต้นไปปะติดปะต่อกันจะได้ดังนี้ครับ</p>
<blockquote>
<pre style="border:1px solid #c8c8c8;background:#f9f7f3 none repeat scroll 0 0;padding:10px;">\documentclass{report}
\usepackage{tikz}
\usepackage{pgf}

\usetikzlibrary{
	shapes.geometric,%
	positioning,%
	calc}

\begin{document}
\begin{tikzpicture}
	[auto,
        sqbox/.style={rectangle, rounded corners,%
                        minimum size=6mm,thick,%
                        draw=blue!50!black!50,
                        top color=white,%
                        bottom color=blue!50!black!20}]
    \node (LPV) [sqbox]
                                 {LPV Identification};
    \node (IO)  [sqbox, below left=of LPV,yshift=0.5cm]
    \node (SS)  [sqbox, below right=of LPV,yshift=0.5cm]
                                 {State-Space};

    \draw [-&gt;,very thick] ($ (LPV.south) $) -- ++(0,-0.25)
                                 -| ($ (IO.north) $);
    \draw [-&gt;,very thick] ($ (LPV.south) $) -- ++(0,-0.25)
                                 -| ($ (SS.north) $);

\end{tikzpicture}

\end{document}</pre>
</blockquote>
<p>คำสั่งที่ต้องการในการวาด sqbox คือคำสั่ง \node และในวงเล็บคือชื่อของโหนด ในที่นี้คือ (LPV), (IO), และ (SS)  ส่วนในวงเล็บก้ามปูคือประเภท และตำแหน่งของโหนด เช่น [sqbox, below left=0f LPV, yshift=0.5cm] ก็คือโหนดแบบ sqbox วางไว้ใต้ (LPV) แล้วเลื่อนขึ้นไปจากค่าปกติ 0.5cm และสำหรับคำในวงเล็บปีกา ก็คือข้อความที่จะบรรจุไว้ในโหนดนั้น ๆ</p>
<p>ในการเชื่อมต่อโนหดเข้าด้วยกันนั้นก็ใช้วิธีเดียวกัน กล่าวคือ ใช้คำสั่ง \draw ในการวาด และในวงเล็กก้ามปูคือ ประเภทและตำแหน่ง ในที่นี้คือ [-&gt;, very thick] นั่นหมายถึงเส้นตรงที่มีลูกศรที่ปลายจบ  แบบหน้ามาก ส่วนในวงเล็บนั้นเป็นการบอกจุดตั้งต้นไปจนจุดจบ กรณี ($ (LPV.south) $) &#8212; ++(0,-0.25) -| ($ (IO.north) $) คือการลากเส้นจากด้านล่างของโหนด LPV แบบเส้นตรงทึบไปด้านล่าง 0.25 หน่อย แล้วลากไปบรรจบกับโหนด IO ด้านบน  ซึ่งการคำนวนต่าง ๆ จะทำให้แบบกึ่งอัตโนมัติ และผลลัพธ์สุดท้ายก็จะได้ตามรูปที่ได้กำหนดไว้</p>
<p>ก่อนจบ การวาดรูปด้วย TikZ นั้นเป็นแบบ WYSIWYT (what you see is what you think) นั้นมีข้อดีในเรื่อง บรรณาธิกรณ์ ตัวเดียวจบ ทำได้ทุกอย่าง แต่ข้อเสียคือต้องการ ๆ เรียนรู้สูง แต่หลังจากพอเป็นแล้ว การแก้ไขเล็ก ๆ น้อย  ๆ นั้นทำได้ง่าย และสะดวก</p>
<p>ก็ได้แต่หวังว่าบทความวันนี้จะมีประโยชน์บ้างนะครับ</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thailatex.wordpress.com/867/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thailatex.wordpress.com/867/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thailatex.wordpress.com/867/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thailatex.wordpress.com/867/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/thailatex.wordpress.com/867/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/thailatex.wordpress.com/867/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/thailatex.wordpress.com/867/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/thailatex.wordpress.com/867/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thailatex.wordpress.com/867/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thailatex.wordpress.com/867/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thailatex.wordpress.com/867/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thailatex.wordpress.com/867/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thailatex.wordpress.com/867/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thailatex.wordpress.com/867/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thailatex.wordpress.com&amp;blog=440810&amp;post=867&amp;subd=thailatex&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://thailatex.wordpress.com/2011/04/22/%e0%b8%a7%e0%b8%b2%e0%b8%94%e0%b9%81%e0%b8%9c%e0%b8%99%e0%b8%a0%e0%b8%b2%e0%b8%9e-diagram-%e0%b8%87%e0%b9%88%e0%b8%b2%e0%b8%a2%e0%b8%97%e0%b8%b5%e0%b9%88%e0%b9%84%e0%b8%ab%e0%b8%99-%e0%b8%94/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1b448c03e2aaaaff71f2f99b808efe97?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tsvhh</media:title>
		</media:content>

		<media:content url="http://thaitug.daytag.org/wordpress/wp-content/uploads/2011/04/simpledia.png" medium="image">
			<media:title type="html">simpledia</media:title>
		</media:content>
	</item>
		<item>
		<title>Presentation Beamer and Video</title>
		<link>http://thailatex.wordpress.com/2011/04/15/presentation-beamer-and-video/</link>
		<comments>http://thailatex.wordpress.com/2011/04/15/presentation-beamer-and-video/#comments</comments>
		<pubDate>Fri, 15 Apr 2011 20:53:21 +0000</pubDate>
		<dc:creator>tsvhh</dc:creator>
				<category><![CDATA[beamer]]></category>
		<category><![CDATA[movie15]]></category>

		<guid isPermaLink="false">http://thailatex.wordpress.com/?p=865</guid>
		<description><![CDATA[เมื่อวานนั่นฉลาดน้อยอยู่ครึ่งคืนครับ เพราะว่าต้องการตัดต่อวิดีโอเพื่อเอาไปแสดงบน Beamer ผ่านแพ็กเกจ movie15 ซึ่งบอกว่าสนับสนุนไฟล์แบบ mwv  ของไมโครซอฟท์ด้วย ผมถ่ายวิดีโอด้วยกล้องที่บ้านเป็นไฟล์ avi ซึ่งสามารถนำมาตัดต่อแต่งเติมบน windows live movie maker ที่ติดมากับ windows 7 ได้ ซึ่งตัวโปรแกรมนั้นใช้ง่ายมาก ใช้เวลาไม่ทันชาเย็นก็สามารถทำงานตามที่ต้องการได้ (แบบง่าย ๆ) แต่จะด้วยเหตุและผลอะไรก็แล้วแต่ท่านไมโครซอฟท์นั้นให้บันทึกไฟล์ที่ตกแต่งแล้วได้รูปแบบเดียวคือ mwv พอเอาไปลองใช้งานกับ movie15 จริง ๆ แล้วใช้ไม่ได้ ทีนี้พอเอาไฟล์ avi กลับใช้งานได้ ค่อนคืนก็ไม่ได้ทำอะไร นั่งหาโปรแกรมฟรีแวร์ที่ใช้ในการแปลง mwv ไปเป็น avi  ก็ได้โปรแกรมหนึ่งไปใช้นะครับ ส่วนที่ให้ใช้ฟรีใช้งานได้ดีระดับหนึ่งทีเดียว แต่ว่าไฟล์ &#8230; <a href="http://thailatex.wordpress.com/2011/04/15/presentation-beamer-and-video/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thailatex.wordpress.com&amp;blog=440810&amp;post=865&amp;subd=thailatex&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:left;">เมื่อวานนั่นฉลาดน้อยอยู่ครึ่งคืนครับ เพราะว่าต้องการตัดต่อวิดีโอเพื่อเอาไปแสดงบน Beamer ผ่านแพ็กเกจ <a href="http://ctan.org/pkg/movie15">movie15</a> ซึ่งบอกว่าสนับสนุนไฟล์แบบ mwv  ของไมโครซอฟท์ด้วย ผมถ่ายวิดีโอด้วยกล้องที่บ้านเป็นไฟล์ avi ซึ่งสามารถนำมาตัดต่อแต่งเติมบน<a href="http://explore.live.com/windows-live-movie-maker?os=other"> windows live movie maker</a> ที่ติดมากับ windows 7 ได้ ซึ่งตัวโปรแกรมนั้นใช้ง่ายมาก ใช้เวลาไม่ทันชาเย็นก็สามารถทำงานตามที่ต้องการได้ (แบบง่าย ๆ) แต่จะด้วยเหตุและผลอะไรก็แล้วแต่ท่านไมโครซอฟท์นั้นให้บันทึกไฟล์ที่ตกแต่งแล้วได้รูปแบบเดียวคือ mwv พอเอาไปลองใช้งานกับ movie15 จริง ๆ แล้วใช้ไม่ได้ ทีนี้พอเอาไฟล์ avi กลับใช้งานได้ ค่อนคืนก็ไม่ได้ทำอะไร นั่งหาโปรแกรมฟรีแวร์ที่ใช้ในการแปลง mwv ไปเป็น avi  ก็ได้โปรแกรมหนึ่งไปใช้นะครับ ส่วนที่ให้ใช้ฟรีใช้งานได้ดีระดับหนึ่งทีเดียว แต่ว่าไฟล์ avi ที่ได้ใหญ่มาก ใหญ่เกินใจจะรับไหว เพราะไม่สามารถแชร์ไฟล์เข้า dropbox ได้แบบทันใจ  แต่ด้วยความง่วงก็เลยนอนไปก่อน</p>
<p><img class="aligncenter size-full wp-image-1013" title="freestudio" src="http://thaitug.daytag.org/wordpress/wp-content/uploads/2011/04/freestudio.png" alt="" width="478" height="297" /></p>
<p style="text-align:left;">ตื่นเช้ามาหัวสดใจ ก็เลยเข้าใจว่า ไม่ต้องใช้ avi ก็ได้ เพราะมีไฟล์อีกหลายประเภทที่ movie15 มันรองรับ สุดท้ายก็มาลงที่ไฟล์แบบ swf ซึ่งเป็น flash นั่นเอง การแปลงก็ไปโหลดโปรแกรมฟรีจาก<a href="http://www.dvdvideosoft.com/index.htm"> freestudio</a> ครับ  มีโปรแกรมเล็ก ๆ ฟรี ๆ ให้เป็นชุด ๆ ที่ผมเลือกใช้ก็ <a href="http://www.dvdvideosoft.com/products/dvd/Free-Video-to-Flash-Converter.htm">Free Video to Flash Converter 4.7.23</a> ตอนแรกก็ใช้วิธีโง่ ๆ คือแปลงจาก avi ไปเป็น swf ซึ่งทำให้ต้องทำสามขั้นตอนคือ ตัดต่อ แล้วแปลงเป็น avi จากนั้นก็แปลงเป็น swf อีกที ตอนหลังถึงรูปว่าแปลงจาก mwv ไปเป็น swf ได้โดยตรงเลย คุณภาพของวิดีโอที่ได้ก็ตามขนาดนะครับ เราไม่ได้ต้องการจะเอาไปทำอะไร แค่เอาไปใส่ใน Beamer</p>
<p style="text-align:left;">สุดท้ายนี้ก็ขอแสดงตัวอย่างรหัสเพื่อแทรกไฟล์วิดีโอลงใน Beamer เผื่อคนที่สนใจครับ</p>
<blockquote>
<pre style="border:1px solid #c8c8c8;background:#f9f7f3 none repeat scroll 0 0;padding:10px;">\begin{frame}

\centering
\includemovie[inline=false,poster,%
     text={\xfigpdf{0.5}{adip_lpv}},%
     autoplay,mouse=true]{8cm}{6cm}{filename.swf}

\end{frame}</pre>
</blockquote>
<p style="text-align:left;">วันนี้สำนวนการเขียนเป็นแบบลูกทุ่ง ๆ ขออภัยด้วย รีบ</p>
<p style="text-align:left;">&nbsp;</p>
<p style="text-align:left;">&nbsp;</p>
<p style="text-align:center;">&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thailatex.wordpress.com/865/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thailatex.wordpress.com/865/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thailatex.wordpress.com/865/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thailatex.wordpress.com/865/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/thailatex.wordpress.com/865/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/thailatex.wordpress.com/865/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/thailatex.wordpress.com/865/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/thailatex.wordpress.com/865/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thailatex.wordpress.com/865/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thailatex.wordpress.com/865/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thailatex.wordpress.com/865/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thailatex.wordpress.com/865/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thailatex.wordpress.com/865/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thailatex.wordpress.com/865/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thailatex.wordpress.com&amp;blog=440810&amp;post=865&amp;subd=thailatex&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://thailatex.wordpress.com/2011/04/15/presentation-beamer-and-video/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1b448c03e2aaaaff71f2f99b808efe97?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tsvhh</media:title>
		</media:content>

		<media:content url="http://thaitug.daytag.org/wordpress/wp-content/uploads/2011/04/freestudio.png" medium="image">
			<media:title type="html">freestudio</media:title>
		</media:content>
	</item>
		<item>
		<title>Beamer Theme: Boonto1</title>
		<link>http://thailatex.wordpress.com/2011/04/09/beamer-theme-boonto1/</link>
		<comments>http://thailatex.wordpress.com/2011/04/09/beamer-theme-boonto1/#comments</comments>
		<pubDate>Sat, 09 Apr 2011 10:31:23 +0000</pubDate>
		<dc:creator>tsvhh</dc:creator>
				<category><![CDATA[beamer]]></category>

		<guid isPermaLink="false">http://thailatex.wordpress.com/?p=863</guid>
		<description><![CDATA[ใน PracTeX Journal ฉบับ 2010-2 ได้ลงบทความเกี่ยวกับการทำ Presentation สำหรับงานวิทยาศาสตร์ โดยใช้วิธีสร้าง preamble และจัดการส่วนต่าง ๆ ให้เหมือนกับ Beamer โดยส่วนตัว เห็นว่ายุ่งยากไปหน่อยถ้า และถ้าเราต้องการใช้ความสามารถของ Beamer เราก็ไม่สามารถใช้ได้ ผมเลยลองดัดแปลงแม่แบบดังกล่าวให้เป็นธีมสำหรับ Beamer &#160; รูปข้างต้นเป็นผลลัพธ์ที่ได้ ถ้าอยากดูไฟล์ pdf ก็คลิ๊กที่รูปได้โดยตรงครับ  รูปโลโก้น่าเกลียด ๆ นั้นไม่ใช่ของผม แต่เป็นโลโก้ของ Beamer เขา สำหรับผู้ที่อยากจะนำไปใช้งานสามารถดาว์นโหลดไฟลสองไฟล์ดังนี้ครับ test.tex เป็นแม่แบบสำหรับนำไปใช้งาน  มีคำสั่ง \mybox{}{} ให้ใช้ beamerthemeBOONTO1.sty เป็นไฟล์ธีมหลัก &#8230; <a href="http://thailatex.wordpress.com/2011/04/09/beamer-theme-boonto1/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thailatex.wordpress.com&amp;blog=440810&amp;post=863&amp;subd=thailatex&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>ใน<a href="http://tug.org/pracjourn/2010-2/hofert.html"> PracTeX Journal ฉบับ 2010-2 </a>ได้ลงบทความเกี่ยวกับการทำ Presentation สำหรับงานวิทยาศาสตร์ โดยใช้วิธีสร้าง preamble และจัดการส่วนต่าง ๆ ให้เหมือนกับ Beamer โดยส่วนตัว เห็นว่ายุ่งยากไปหน่อยถ้า และถ้าเราต้องการใช้ความสามารถของ Beamer เราก็ไม่สามารถใช้ได้ ผมเลยลองดัดแปลงแม่แบบดังกล่าวให้เป็นธีมสำหรับ Beamer</p>
<p style="text-align:center;"><a href="http://thaitug.daytag.org/wordpress/wp-content/uploads/2011/04/test.pdf"><img class="aligncenter size-full wp-image-976" title="boonto1_1" src="http://thaitug.daytag.org/wordpress/wp-content/uploads/2011/04/boonto1_1.png" alt="" width="459" height="347" /></a></p>
<p style="text-align:center;"><img class="aligncenter size-full wp-image-977" title="boonto1_2" src="http://thaitug.daytag.org/wordpress/wp-content/uploads/2011/04/boonto1_2.png" alt="" width="461" height="346" /></p>
<p style="text-align:center;">&nbsp;</p>
<p style="text-align:left;">รูปข้างต้นเป็นผลลัพธ์ที่ได้ ถ้าอยากดูไฟล์ pdf ก็คลิ๊กที่รูปได้โดยตรงครับ  รูปโลโก้น่าเกลียด ๆ นั้นไม่ใช่ของผม แต่เป็นโลโก้ของ Beamer เขา</p>
<p style="text-align:left;">สำหรับผู้ที่อยากจะนำไปใช้งานสามารถดาว์นโหลดไฟลสองไฟล์ดังนี้ครับ</p>
<ol>
<li><a href="http://thaitug.daytag.org/test.tex">test.tex</a> เป็นแม่แบบสำหรับนำไปใช้งาน  มีคำสั่ง \mybox{}{} ให้ใช้</li>
<li><a href="http://thaitug.daytag.org/beamerthemeBOONTO1.sty">beamerthemeBOONTO1.sty</a> เป็นไฟล์ธีมหลัก</li>
</ol>
<p>วิธีการใช้ธีมนี้ ก็ทำได้ง่าย ๆ โดยการนำไฟล์ beamerthemeBOONTO1.sty ไปไว้ที่เดียวกับ test.tex ก็เป็นอันเสร็จพิธี  ถ้าจะเปลี่ยนโลโก้ก็ให้แก้ไขคำสั่งข้างล่างให้เป็นของตัวเองครับ</p>
<blockquote>
<pre style="border:1px solid #c8c8c8;background:#f9f7f3 none repeat scroll 0 0;padding:10px;">\leftlogo{logo/beamerlogo}
\leftscale{0.3}
\rightlogo{logo/beamerlogo}
\rightscale{0.3}</pre>
</blockquote>
<p>ก็แค่นั้นแหละครับ</p>
<p>ลองเอาไปใช้กันดู ชอบ ไม่ชอบ ก็ติชมกันมานะครับ ตอนนี้เป็นเวอร์ชัน 1.0 หรือพูดง่าย ๆ ว่าเวอร์ชันแรกที่ทำเสร็จ</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thailatex.wordpress.com/863/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thailatex.wordpress.com/863/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thailatex.wordpress.com/863/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thailatex.wordpress.com/863/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/thailatex.wordpress.com/863/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/thailatex.wordpress.com/863/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/thailatex.wordpress.com/863/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/thailatex.wordpress.com/863/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thailatex.wordpress.com/863/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thailatex.wordpress.com/863/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thailatex.wordpress.com/863/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thailatex.wordpress.com/863/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thailatex.wordpress.com/863/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thailatex.wordpress.com/863/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thailatex.wordpress.com&amp;blog=440810&amp;post=863&amp;subd=thailatex&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://thailatex.wordpress.com/2011/04/09/beamer-theme-boonto1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1b448c03e2aaaaff71f2f99b808efe97?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tsvhh</media:title>
		</media:content>

		<media:content url="http://thaitug.daytag.org/wordpress/wp-content/uploads/2011/04/boonto1_1.png" medium="image">
			<media:title type="html">boonto1_1</media:title>
		</media:content>

		<media:content url="http://thaitug.daytag.org/wordpress/wp-content/uploads/2011/04/boonto1_2.png" medium="image">
			<media:title type="html">boonto1_2</media:title>
		</media:content>
	</item>
		<item>
		<title>ความคืบหน้า Xe(La)TeX Thai Thesis Template</title>
		<link>http://thailatex.wordpress.com/2011/04/03/%e0%b8%84%e0%b8%a7%e0%b8%b2%e0%b8%a1%e0%b8%84%e0%b8%b7%e0%b8%9a%e0%b8%ab%e0%b8%99%e0%b9%89%e0%b8%b2-xelatex-thai-thesis-template/</link>
		<comments>http://thailatex.wordpress.com/2011/04/03/%e0%b8%84%e0%b8%a7%e0%b8%b2%e0%b8%a1%e0%b8%84%e0%b8%b7%e0%b8%9a%e0%b8%ab%e0%b8%99%e0%b9%89%e0%b8%b2-xelatex-thai-thesis-template/#comments</comments>
		<pubDate>Sun, 03 Apr 2011 11:06:31 +0000</pubDate>
		<dc:creator>tsvhh</dc:creator>
				<category><![CDATA[Just for Fun]]></category>
		<category><![CDATA[thai latex]]></category>
		<category><![CDATA[XeTeX]]></category>

		<guid isPermaLink="false">http://thailatex.wordpress.com/?p=861</guid>
		<description><![CDATA[ตามที่เคยแจ้งไปว่าขณะที่กำลังทำแม่แบบภาษาไทยสำหรับวิทยานิพนธ์ระดับปริญญาตรี โดยใช้ LaTeX (XeLaTeX) ความคืบหน้าขณะนี้คือ ฟอนต์ Angsana New ฟอนต์บังคับสำหรับวิทยานิพนธ์ (ฟอนต์ที่ดูดีฟอนต์แรก และชื่อจำง่าย ถ้าเป็น Thesis ภาษาอังกฤษจะใช้ฟอนต์ที่ทางการกว่า ซึ่งจะไปตรงกับ Browallia New มากกว่า น่าเสียดายจริง ๆ) นั้นมีปัญหากับ แพ็กเกจที่สำคัญสองตัว คือ polyglossia  และ xltxtra ซึ่งทำให้การแสดงผลสระอู สระอิ ผิดจากที่ควรเป็น ในขณะที่ฟอนต์อื่นไม่เป็น ข่าวดีเล็กน้อยคือแก้ปัญหานี้ได้แล้ว ด้วยการไม่ใช้แพ็กเกจทั้งสอง และกับไปใช้แพ็กเกจ fontspec แทน และการกำหนดฟอนต์หลักต้องใช้คำสั่ง \setmainfont{Angsana New:Script=Thai} น่าเศร้ามากที่การแก้ปัญหานี้ใช้เวลาถึงสองวัน ไฟล์ที่เกี่ยวข้องคือไฟล์ &#8230; <a href="http://thailatex.wordpress.com/2011/04/03/%e0%b8%84%e0%b8%a7%e0%b8%b2%e0%b8%a1%e0%b8%84%e0%b8%b7%e0%b8%9a%e0%b8%ab%e0%b8%99%e0%b9%89%e0%b8%b2-xelatex-thai-thesis-template/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thailatex.wordpress.com&amp;blog=440810&amp;post=861&amp;subd=thailatex&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>ตามที่เคยแจ้งไปว่าขณะที่กำลังทำแม่แบบภาษาไทยสำหรับวิทยานิพนธ์ระดับปริญญาตรี โดยใช้ LaTeX (XeLaTeX) ความคืบหน้าขณะนี้คือ</p>
<ol>
<li>ฟอนต์ Angsana New ฟอนต์บังคับสำหรับวิทยานิพนธ์ (ฟอนต์ที่ดูดีฟอนต์แรก และชื่อจำง่าย ถ้าเป็น Thesis ภาษาอังกฤษจะใช้ฟอนต์ที่ทางการกว่า ซึ่งจะไปตรงกับ Browallia New มากกว่า น่าเสียดายจริง ๆ) นั้นมีปัญหากับ แพ็กเกจที่สำคัญสองตัว คือ polyglossia  และ xltxtra ซึ่งทำให้การแสดงผลสระอู สระอิ ผิดจากที่ควรเป็น ในขณะที่ฟอนต์อื่นไม่เป็น</li>
<li>ข่าวดีเล็กน้อยคือแก้ปัญหานี้ได้แล้ว ด้วยการไม่ใช้แพ็กเกจทั้งสอง และกับไปใช้แพ็กเกจ fontspec แทน และการกำหนดฟอนต์หลักต้องใช้คำสั่ง<br />
<blockquote>
<pre style="border:1px solid #c8c8c8;background:#f9f7f3 none repeat scroll 0 0;padding:10px;">\setmainfont{Angsana New:Script=Thai}</pre>
</blockquote>
</li>
<li>น่าเศร้ามากที่การแก้ปัญหานี้ใช้เวลาถึงสองวัน ไฟล์ที่เกี่ยวข้องคือไฟล์ gloss-thai.ldf ซึ่งก็คือ thai.ldf เดิม ของ thailatex แพ็กเกจนั่นเอง ไว้จะทำให้เรียบร้อยต่อไปครับ</li>
</ol>
<p>คลาสไฟล์ยังให้ดาว์นโหลดนะครับ เพราะยังเต็มไปด้วยบัก ขอเวลาซักพักนึงก่อน</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thailatex.wordpress.com/861/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thailatex.wordpress.com/861/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thailatex.wordpress.com/861/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thailatex.wordpress.com/861/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/thailatex.wordpress.com/861/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/thailatex.wordpress.com/861/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/thailatex.wordpress.com/861/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/thailatex.wordpress.com/861/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thailatex.wordpress.com/861/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thailatex.wordpress.com/861/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thailatex.wordpress.com/861/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thailatex.wordpress.com/861/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thailatex.wordpress.com/861/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thailatex.wordpress.com/861/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thailatex.wordpress.com&amp;blog=440810&amp;post=861&amp;subd=thailatex&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://thailatex.wordpress.com/2011/04/03/%e0%b8%84%e0%b8%a7%e0%b8%b2%e0%b8%a1%e0%b8%84%e0%b8%b7%e0%b8%9a%e0%b8%ab%e0%b8%99%e0%b9%89%e0%b8%b2-xelatex-thai-thesis-template/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1b448c03e2aaaaff71f2f99b808efe97?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">tsvhh</media:title>
		</media:content>
	</item>
	</channel>
</rss>
