summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-02-25 21:29:06 +0000
committerKarl Berry <karl@freefriends.org>2018-02-25 21:29:06 +0000
commitc866cc1cc9d403e1ea81bea28950da1ac62494a7 (patch)
treefef0def1378bea30a0f9b9b23388ae7f1742d81d /Master/texmf-dist/source
parenteaeb7e1215c6dac950bfdc884c48478ea36afdc3 (diff)
thaispec (25feb18)
git-svn-id: svn://tug.org/texlive/trunk@46741 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source')
-rw-r--r--Master/texmf-dist/source/latex/thaispec/thaispec.dtx343
-rw-r--r--Master/texmf-dist/source/latex/thaispec/thaispec.ins4
2 files changed, 262 insertions, 85 deletions
diff --git a/Master/texmf-dist/source/latex/thaispec/thaispec.dtx b/Master/texmf-dist/source/latex/thaispec/thaispec.dtx
index 8d02ce39235..f34f5b68fe9 100644
--- a/Master/texmf-dist/source/latex/thaispec/thaispec.dtx
+++ b/Master/texmf-dist/source/latex/thaispec/thaispec.dtx
@@ -1,11 +1,11 @@
%\iffalse
-% thaispec.dtx generated using makedtx version 0.94b (c) Nicola Talbot
+% thaispec.dtx generated using makedtx version 1.2 (c) Nicola Talbot
% Command line args:
% -doc "thaispec.tex"
-% -src "thaispec\.sty=>thaispec.sty"
% -author "Ratthaprom Promkam"
+% -src "thaispec\.sty=>thaispec.sty"
% thaispec
-% Created on 2018/2/23 22:01
+% Created on 2018/2/25 18:17
%\fi
%\iffalse
%<*package>
@@ -38,13 +38,55 @@
%!TEX outputDirectory = OutputDir
%!TEX spellcheck = en_US
%!TEX encoding = UTF-8
+%!TEX enableShellEscape = yes
+
+\documentclass{article}
+
+\usepackage[thaispacing=false,thaicaption=false]{thaispec}
+\usepackage{metalogo}
+\usepackage{hyperref}
+\hypersetup{
+ colorlinks=true,
+ linkcolor=black,
+ filecolor=magenta,
+ urlcolor=blue,
+}
+%\usepackage{listings}
+\usepackage{color}
+\usepackage{longtable}
+\usepackage{minted}
+
+
+\newcommand{\pkgname}{\texttt{thaispec}}
+\newcommand{\showex}[1]{\par\vspace{0mm}\noindent{Example:}\par\noindent\texttt{#1}}
+\newcommand{\printcenter}[1]{\par\begin{center}#1\end{center}\par\noindent}
+
+\newcommand{\mopt}{%
+frame=single,
+linenos=true,
+autogobble=true,
+}
+
+%\lstdefinestyle{tex}{%
+%language=[LaTeX]{TeX},
+%basicstyle=\ttfamily\small\color{red},
+%keywordstyle=\bfseries\color{black},
+%frame=single,
+%backgroundcolor=\color{white},
+%extendedchars=true,
+%inputencoding=utf8,
+%breaklines=true,
+%postbreak=\mbox{\textcolor{red}{$\hookrightarrow$}\space},
+%showstringspaces=true,
+%}
-\documentclass[a4paper,10pt]{article}
-\usepackage{thaispec}
-\usepackage{mathtools,amssymb,amsthm}
+%\lstset{style=tex}
-\title{บทความภาษาไทย}
-\author{ชื่อผู้แต่ง}
+\newminted{latex}{frame=single}
+
+\title{The \pkgname\ package: \\Thai language typesetting in \XeLaTeX}
+\author{Ratthaprom Promkam\\{\texttt{\small ratthaprom@me.com}}}
+\date{Version 0.2 from February 25, 2018}
\begin{document}
\DocInput{thaispec.dtx}
@@ -52,78 +94,192 @@
%</driver>
%\fi
%\maketitle
-%คอนดักเตอร์ซีริลลิกคลอไรด์ ลินุกซ์ออกเทนดอปเพลอร์ไพธอนฮิรางานะ ไอพ็อดแอพพลิเคชัน
-%อินทิเกรตออกเทนแพลตฟอร์มดิจิตอล ไลเซนส์เวิร์กสเตชันไฮโดรลิกพาเนล พาร์ทิชันแท็กโมบายล์กูเกิลแล็ปท็อป
-%พาราโบลาโพรเซสเซอร์ พร็อกซีอินพุทแท็บ เซ็กเมนต์มัลแวร์ออกเทน เดลไฟไมถิลีทัชแพดชิป
-%ซีริลลิกโปรโตคอลเคอราตินแกนีมีด เทอร์โมฮาร์ดดิสก์ เทฟลอน กิกะไบต์สแต็กชิคุนกุนยา
-%เมลเอ็กซ์โพเนนเชียลไดออกไซด์ฟีโรโมนไบต์
%
-%เวกเตอร์ดีวีดีอินทิเกรตฮาร์ดแวร์ ธาลัสซีเมียกราฟิกแล็ปท็อปสปายแวร์ลิงก์โน้ตบุ๊ค
-%บลูเรย์เทฟลอนลินุกซ์โปรเซสเซอร์ ทรานแซ็กชันเวิร์คสเตชั่นไมถิลี อัปเดตดีบั๊กไอคอนแอนิเมชัน
-%พิกเซลอีเมลโพรโทคอลพร็อกซีสแกนเนอร์ กูเกิ้ลลินุกซ์แอพพลิเคชั่นมอดูล
-%ไฟล์เดลไฟริงโทนอาร์กิวเมนต์คลิปอาร์ต อูบุนตูโน้ตบุ๊คอัปโหลดแอสเซมเบลอร์
-%ไดเรกทอรีซัพพอร์ทไอโฟน มัลติทัชสล็อตอีเมล์พาเนลเน็ตเวิร์คยูนิโคดเรียลไทม์
+%This package allows you to input Thai characters directly to \LaTeX\ documents
+%and choose any (system wide) Thai fonts for typesetting in \XeLaTeX.
+%It also tries to appropriately justify paragraphs with no more external tools.
+%
+%\tableofcontents
+%
+%
+%\section{Prerequisite}
+%The package use \texttt{TH Sarabun New} font by default to typeset Thai characters
+%which included in the collection of Thai national fonts
+%\footnote{Thai national fonts, a.k.a. \texttt{SIPAFonts}.
+%See \url{https://github.com/epsilonxe/sipafonts}}.
+%At least this font must be installed to system wide in order to use this package.
+%Moreover the following \LaTeX\ package are essentially required for the default option: \texttt{fontspec}, \texttt{uchar­classes}, \texttt{poly­glos­sia}, \texttt{setspace}, \texttt{date­time2}, \texttt{kvop­tions}, \texttt{after­pack­age}, \texttt{xstring}, and \texttt{xpatch}.
+%
+%\section{Recommendation}
+%Install the collection of Thai national font said above and also \TeX\ Gyre font family
+%which possibly already included with your \TeX\ distribution.
+%These are basically assumed to be installed prior loading the package.
%
-%\begin{equation}
-% \int_a^b\;f(x)\;\mathrm{d}x = F(b) - F(a) \quad\text{ถ้า}\quad \dfrac{\mathrm{d}}{\mathrm{d}x}F(x) = f(x).
-%\end{equation}
-%\section{หัวข้อแรก}
-%ไลบรารีไอโฟนซีดีรอมเราเตอร์บิทเอนจิน ยูนิโคดบัฟเฟอร์เวิร์กสเตชั่น
-%โมบายล์เบราว์เซอร์์แอนะล็อกแพลตฟอร์ม
-%เอาต์พุตมัลติทัชแฮ็กเกอร์ไอโฟน เดลไฟแพกเก็ตเวิร์คสเตชั่นเวิร์คสเตชัน
-%บลูทูธอินเทอร์เฟซ เวิร์คสเตชัน เบราว์เซอร์บลูเรย์เอาท์พุตเน็ตเวิร์คมัลติ
-%ทวีตโค้ดซอฟท์แวร์ดอสโน้ตบุ๊กอีเมล์ บลูทูธพารามิเตอร์โมบายล์เอาต์พุต ชิปฟีเจอร์ทรานแซ็คชัน
-%\begin{equation}
-% \dfrac{\mathrm{d}}{\mathrm{d}x}\sin(2x) = 2\cos(2x).
-%\end{equation}
+%\section{Package loading}
+%In the preamble, add the command
+%\begin{minted}[frame=single]{latex}
+%\usepackage{thaispec}
+%\end{minted}
+%then you can input Thai characters in the document and typeset the document as usual.
+%By default the package set \texttt{thaifont} to \texttt{TH Sarabun New},
+%while set \texttt{mainfont}, \texttt{sansfont} and \texttt{monofont} to \TeX\ Gyre fonts.
%
-%\begin{definition}
-%เซ็กเมนต์ฟอสซิลครอสโนวาไดนามิคพาราเซตามอล ไฮเพอร์โบลาคูลอมบ์
-%ควอนตัมปฏิยานุพันธ์ไดนามิคโซนาร์เวกเตอร์ไดนามิกส์
-%ไดนามิกส์ควอนตัม ไททันไฮดรอลิกเทอร์โมยูเรียซิลิเกต ไฮเพอร์โบลาวีก้าไพรเมตเนกาตีฟ
-%เมทริกซ์เซ็กเมนต์ โมเมนตัมแอสพาร์แตมเมตริกซ์
-%\end{definition}
+%In case \TeX\ Gyre font family is not system wide installed, the package should be loaded
+%with the following option:
+%\begin{minted}[frame=single]{LaTeX}
+%\usepackage[texgyrefont = false]{thaispec}
+%\end{minted}
+%This will typeset the document by setting \texttt{mainfont} to \texttt{TH Sarabun New}.
%
-%\begin{theorem}
-%ไทฟอยด์ดอปเพลอร์เพอร์ออกไซด์ ฟิชชันฮิวมัสไดออกไซด์เอทานอล
-%ไดนามิคโอเซลทามิเวียร์เทฟลอนวีก้า อีโบลาแคโรทีนเมตริกซ์ออกเทน พันธุศาสตร์ยูริกอัลตราซาวนด์เคอราติน
-%อีโบล่าควอนตัม ดอปเปลอร์โพลาไรซ์มอนอกไซด์เวก้าอินทิกรัล ทามิฟลูทามิฟลูจุลชีววิทยาโครมาโทกราฟีฟอสซิล
-%ซัลไฟด์ฟิชชันกลีเซอรีนเอทิลีนแคสสินี ไดนามิกฟอสซิลทามิฟลูแอสพาร์แตม
-%\end{theorem}
+%The package also predefines \texttt{\textbackslash today} and \texttt{\textbackslash Today}
+%for today Thai date printing in short and long formats respectively.
%
-%\section{หัวข้อที่สอง}
-%เกตเวย์เอาต์พุทโหลด ไฟร์วอลล์สแปมเอาท์พุตอีเมลเวอร์ชวล
-%ไลบรารีพร็อกซีแอปพลิเคชันโปรเซสพร็อกซี ดิจิทัลแอนิเมชั่นไอพ็อด ไดโอดซอร์สเดลไฟเน็ตบุ๊ค
-%โฮสต์กราฟิกเอาท์พุตคอมไพเลอร์ อินพุทดาวน์โหลด แอสเซมเบลอร์อินเทอร์เน็ตเดเบียนเคอร์เซอร์อัพโหลด
-%เฟิร์มแวร์โพรโทคอลไลบรารีเอนจินโน้ตบุค โค้ดเชลล์ริงโทน แอพพลิเคชั่นมอนิเตอร์อีเมลสปายแวร์ไฟล์
-%เทเลคอมเน็ตเวิร์กโฮสต์โหลด
-%\begin{table}[!ht]
-%\begin{center}
-%\begin{tabular}{|c|c|}
+%\section{Loading options}
+%This section lists additional loading options by their features as follows.
+%The examples in the list are default and also initialized values for those options.
+%\renewcommand{\arraystretch}{1.8}
+%\begin{longtable}{l p{5.8cm}}
+%\caption{Loading options in \texttt{thaispec} package.} \label{table:loading_options}\\
%\hline
-%\textbf{ไลบรารีพร็อกซี} & \textbf{โค้ดเชลล์ริงโทน}\\ \hline
-%ดิจิตอลมินิมอล & $\tan(2x)-16x^2$ \\ \hline
-%อลูมิเนียมไลบรารี & $\cos(x^2)$ \\ \hline
-%\end{tabular}
-%\caption{ไลบรารีเอนจินโน้ตบุค}
-%\end{center}
-%\end{table}
-%ไฮดรอกไซด์พาร์ทิชัน เบงกาลี แล็ปท็อปกุมภาพันธ์พร็อกซีแคสสินี ตุลาคมทรานแซ็กชั่น
-%แพลตฟอร์มไดโอดอัปเดตพารามิเตอร์โพลาไรซ์ ไฟเบอร์เจ๊บอแรกซ์ดิจิทัล คลิกเยลลี่สงบสุขโมดูล
-%พาเนลเมตริกซ์ คอนโดมิเนียมคลัสเตอร์ เวิร์คสเตชั่น แท็บไอซีแฮปปี้ยีสต์ซัลฟิวริก โน้ตบุ๊กสงบสุขแอสพาร์แตม
-%ดิสเครดิตเตี๊ยมคลอไรด์สวาฮิลีสแกนเนอร์ ออโรร่าไบต์ฮันกึลสปีชีส์อัลตราซาวด์ อารบิกกิกะไบต์
-%แพตเทิร์นบาร์บีคิวมีเดียริงโทน
+%\textbf{Options} & \textbf{Features}
+%\\ \hline
+%\endfirsthead
+%\caption{(continued) Loading options in \texttt{thaispec} package.}\\
+%\hline
+%\textbf{Options} & \textbf{Features}
+%\\ \hline
+%\endhead
+%
+%\hline
+%\endfoot
+% \texttt{thainum}
+% & Uses Thai numbers for almost all number digits.
+% It is untoggled by defalut.
+% \\
+% \texttt{math}
+% & Additionally load the following packages:
+% \texttt{mathtools}, \texttt{amssymb}, \texttt{amsthm}, \texttt{mathspec} orderly.
+%
+% Normally \pkgname\ package loads \texttt{fontspec}\ with \texttt{no-math}\ option.
+% If your document consists of math objects, this option is then recommended.
+% \\
+% \texttt{thaifont = <SYSTEM\_FONT\_NAME>}
+% & Choose a system font for Thai characters.
+% \showex{thaifont = TH Sarabun New}
+% \\
+% \texttt{mainfont = <SYSTEM\_FONT\_NAME>}
+% & Choose a font for \texttt{mainfont} corresponding to \texttt{fontspec} package.
+% \showex{thaifont = TeX Gyre Termes}
+% \\
+% \texttt{sansfont = <SYSTEM\_FONT\_NAME>}
+% & Choose a font for \texttt{sansfont} corresponding to \texttt{fontspec} package.
+% \showex{thaifont = TeX Gyre Heros}
+% \\
+% \texttt{monofont = <SYSTEM\_FONT\_NAME>}
+% & Choose a font for \texttt{monofont} corresponding to \texttt{fontspec} package.
+% \showex{thaifont = TeX Gyre Cursors}
+% \\
+% \texttt{thaithm = <BOOL>}
+% & After loading \texttt{amsthm} package, \texttt{thaispec} package automatically defines
+% a set of theorem-like environments with Thai heading by default.
+% The automatic defined environments includes
+% \texttt{theorem}, \texttt{lemma}, \texttt{corollary},
+% \texttt{definition}, \texttt{axiom}, \texttt{undefinedterm},
+% \texttt{example}, \texttt{remark} and \texttt{note}.
+% If you prefer to set them yourself, just set its value to \texttt{false}.
+% \showex{thaithm = true}
+% \\
+% \texttt{thmcount = <VALUE>}
+% & If the option \texttt{thaithm = true} is prefered,
+% this package set the counter independently for each automatic defined environments.
+% The value of \texttt{<VALUE>} can be one of the following:
+% \texttt{default}, \texttt{no}, \texttt{full}, \texttt{section},
+% \texttt{chapter}, \texttt{kind}, \texttt{kind-section}, and \texttt{kind-chapter}.
+% \showex{thmcount = default}
+% \\
+%\end{longtable}
+%
+%\section{Usage Examples}
+%The following example is a basic example of using \texttt{thaispec} package.
+%It is loaded with the default setting for typesetting in \XeLaTeX, i.e.,
+%only Thai characters are typesetted with \texttt{TH Sarabun New} font,
+%other charaters are typesetted with \TeX\ Gyre fonts,
+%and paragraphs are justified by \texttt{\textbackslash sloppy} macro.
+%%\begin{lstlisting}[style=tex,numbers=left]
+%%\documentclass{article}
+%%\usepackage{thaispec}
+%%\begin{document}
+%%\section{Thai ภาษาไทย}
+%%Thai charaters can be input directly like this ทดสอบการพิมพ์ภาษาไทยในเอกสาร \XeLaTeX\
+%%
+%%\end{lstlisting}
+%\begin{minted}[
+%frame=single,
+%linenos=true,
+%autogobble=true,
+%highlightlines={2}
+%]{LaTeX}
+%\documentclass{article}
+%\usepackage{thaispec}
+%\begin{document}
+%\section{ภาษาไทย}
+%ทดสอบการพิมพ์ภาษาไทยในเอกสาร \XeLaTeX
+%
+%\end{minted}
+%In order to use another Thai font face for any charaters in a math document without
+%\texttt{\textbackslash sloppy} macro,
+%the following example can be used to achieve the goal.
+%%\begin{lstlisting}[style=tex,numbers=left]
+%%\documentclass{article}
+%%\usepackage[math,
+%%thaifont = Tahoma,
+%%texgyrefont = false,
+%%sloppy = false]{thaispec}
+%%\begin{document}
+%%\section{Math ภาษาไทย}
+%%Thai charaters can be input directly like this ทดสอบการพิมพ์ภาษาไทยในเอกสาร $ax^2+bx+c=0$
+%%
+%%\end{lstlisting}
+%\begin{minted}[%
+%frame=single,
+%linenos=true,
+%autogobble=true,
+%highlightlines={2-5}
+%]{LaTeX}
+%\documentclass{article}
+%\usepackage[math,
+%thaifont = Tahoma,
+%texgyrefont = false,
+%sloppy = false]{thaispec}
+%\begin{document}
+%\section{Math ภาษาไทย}
+%การพิมพ์ภาษาไทยในเอกสาร $ax^2+bx+c=0$
+%
+%\end{minted}
+%
+%
+%\section{Known Issues}
+%\subsection*{Incorrect Thai characters with \texttt{listing} package}
+%If you typeset some codes consisting of Thai characters in \texttt{lstlisting} environment provided by \texttt{listing} package, this will possibly cause you a problem with incorrect Thai characters.
+%The recommendation is choosing \texttt{minted} package instead of \texttt{listing} package.
+%However you need to additionally install \texttt{pygments} python module in order to use \texttt{minted} package.
+%
+%\section{Credits}
+%This package is motivated by a set of \LaTeX\ commands for typesetting Thai documents
+%provided by Dittaya Wanvarie
+%\footnote{See {\url{http://pioneer.netserv.chula.ac.th/~wdittaya/}} in \LaTeX\ section.} from Chulalongkorn University.
+%
+%\section{License}
+%This work may be distributed and/or modified under the
+%conditions of the LaTeX Project Public License, either version 1.3
+%of this license of (at your option) any later version.
+%The latest version of this license is in
+%\printcenter{\url{http://www.latex-project.org/lppl.txt}}
+%and version 1.3 or later is part of all distributions of LaTeX
+%version 2005/12/01 or later.
+%
%
-%กลีเซอรีนโน้ตบุค ชิพฟีโรโมนละตินอินเทอร์เฟซ เกตเวย์คอเลสเตอรอลแพตช์วีเจ ฮิวมัสโบกี้โนวาเวิร์ลด์
-%แจ๊กพอตป๋าไอโฟนทามิฟลูคอมพ์ ไดเรกทอรีเจ็ตทัชแพดคลาสโฮสต์ บอแรกซ์ไชน่าแบนด์วิดท์พอร์ทจุลชีววิทยา
-%ซัลฟิวริกเทคโนแครตโมเมนตัมโฮสต์ สต๊อคยีสต์โอริยา ภูมิทัศน์ดอสแคมเปญ เวกเตอร์คอเลสเตอรอลบึ้มสเปก
-%เปียโนฟิวชันไอพ็อดมิถุนายนชิคุนกุนยา นายพรานอินพุตพอร์ทปูอัด
%
-%ดิจิทัลสมิติเวชบอแรกซ์แพกเก็ต คลอไรด์ทัวริสต์ไชน่าโน้ตบุค คลาสสปายแวร์ไททันอะซีติกคอมพิวติ้ง
-%ไฟเบอร์จิ๊กเคลมตากาล็อก เวสิเคิลโมไบล์อ่วม อูบันตูบึ้มไอโฟนโอริยาชิป พะเรอดิจิทัลอัพเกรด
-%คลิกโซนาร์เลเยอร์มาร์เก็ต วอล์กเมลานินฮิรางานะธาลัสซีเมียภคันทลาพาธ กรีนฟอนต์
-%เกย์ไฮดรอกไซด์ครูเสดบาร์บีคิวคีย์ คอร์สเปกฟีโรโมนล็อบบี้ปูอัด เพทนาการดิจิทัลกรีน
-%ไอคอนบลูทูธไททันซาดิสม์ไฮดรอกไซด์ อัลกอริทึมไอซีโอริยามอนอกไซด์แอสพาร์แตม
%
%
%\StopEventually{}
@@ -134,7 +290,7 @@
% \end{macrocode}
%\fi
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{thaispec}[2018/02/23 thaispec version 0.1]
+\ProvidesPackage{thaispec}[2018/02/25 version 0.2 thaispec]
\RequirePackage{kvoptions}
\RequirePackage[no-math]{fontspec}
@@ -143,7 +299,6 @@
\RequirePackage{polyglossia}
\RequirePackage[calc]{datetime2}
\RequirePackage{xstring}
-\RequirePackage{fp-basic, fp-snap}
\RequirePackage{afterpackage}
\RequirePackage{xpatch}
@@ -157,8 +312,21 @@ prefix=THL@
\DeclareStringOption[TeX Gyre Heros]{sansfont}[TeX Gyre Heros]
\DeclareStringOption[TeX Gyre Cursor]{monofont}[TeX Gyre Cursor]
+
+\DeclareVoidOption{math}{%
+\RequirePackage{mathtools}
+\RequirePackage{amssymb}
+\RequirePackage{amsthm}
+\RequirePackage{mathspec}
+}
\DeclareVoidOption{thainum}{\renewcommand{\thesection}{\thainum{section}}}
+
+
\DeclareBoolOption[true]{texgyrefont}
+\DeclareBoolOption[true]{thaithm}
+\DeclareBoolOption[true]{sloppy}
+\DeclareBoolOption[true]{thaispacing}
+\DeclareBoolOption[true]{thaicaption}
\DeclareStringOption[default]{thmcount}[default]
@@ -172,7 +340,9 @@ prefix=THL@
% Set Thai language
\XeTeXlinebreaklocale "th"
\XeTeXlinebreakskip = 0pt plus 0pt
+\ifTHL@sloppy
\sloppy
+\fi
\defaultfontfeatures{Mapping=tex-text}
@@ -198,19 +368,22 @@ prefix=THL@
\setdefaultlanguage{english}
\setotherlanguage{thai}
+\ifTHL@thaicaption
\AtBeginDocument\captionsthai
+\fi
% In case of Beamer class
\@ifclassloaded{beamer}
-{
-% TODO: Serif math font in beamer
-}
-{
-%% Normally set onehalf spacing
+{}
+{%
+\ifTHL@thaispacing
\onehalfspacing
+\fi
}
+
+
% Define Thai alpha/number/digit for enumerated items
\def\thaialph#1{\expandafter\thalph\csname c@#1\endcsname}
\def\thalph#1{%
@@ -258,15 +431,19 @@ prefix=THL@
{12}{ธันวาคม}
}}
-\newcommand{\dtyearbd}{\FPadd{\tmpdtyearbd}{\DTMfetchyear{now}}{543}\FPclip{\rtmpdtyearbd}{\tmpdtyearbd}พ.ศ.\;\rtmpdtyearbd}
+\newcounter{yearbd}
+\setcounter{yearbd}{\DTMfetchyear{now}}
+\addtocounter{yearbd}{543}
+%\newcommand{\dtyearbd}{\FPadd{\tmpdtyearbd}{\DTMfetchyear{now}}{543}\FPclip{\rtmpdtyearbd}{\tmpdtyearbd}พ.ศ.\;\rtmpdtyearbd}
\AtBeginDocument{
-\def\Today{\dtdow\;\DTMfetchday{now}\;\dtmonth\;\dtyearbd}
-\def\today{\DTMfetchday{now}\;\dtmonth\;\dtyearbd}
+\def\Today{\dtdow\ \DTMfetchday{now}\ \dtmonth\ พ.ศ. \theyearbd}
+\def\today{\DTMfetchday{now}\ \dtmonth\ พ.ศ. \theyearbd}
}
% Thai theorem environments
+\ifTHL@thaithm
\AfterPackage{amsthm}{%
\IfStrEqCase{\THL@thmcount}{%
{default}{%
@@ -384,7 +561,7 @@ prefix=THL@
}%
\xpatchcmd{\@thm}{\thm@headpunct{.}}{\thm@headpunct{}}{}{}
}
-
+\fi
\endinput
%\iffalse
diff --git a/Master/texmf-dist/source/latex/thaispec/thaispec.ins b/Master/texmf-dist/source/latex/thaispec/thaispec.ins
index bd0a347baff..eab5ebcf533 100644
--- a/Master/texmf-dist/source/latex/thaispec/thaispec.ins
+++ b/Master/texmf-dist/source/latex/thaispec/thaispec.ins
@@ -1,4 +1,4 @@
-% thaispec.ins generated using makedtx version 0.94b 2018/2/23 22:01
+% thaispec.ins generated using makedtx version 1.2 2018/2/25 18:17
\input docstrip
\preamble
@@ -8,7 +8,7 @@
This work may be distributed and/or modified under the
conditions of the LaTeX Project Public License, either version 1.3
- of this license of (at your option) any later version.
+ of this license or (at your option) any later version.
The latest version of this license is in
http://www.latex-project.org/lppl.txt
and version 1.3 or later is part of all distributions of LaTeX