summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/thaispec
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-03-01 22:36:54 +0000
committerKarl Berry <karl@freefriends.org>2021-03-01 22:36:54 +0000
commitcb7e589f4d6de0732a654dcacd8cb1273d519c28 (patch)
tree5f974774a1737f6a2d1d0b74e3dc1a7323f359d1 /Master/texmf-dist/tex/latex/thaispec
parent5f1f54a9110f9c39663d8ea100d2405d1f2f2627 (diff)
thaispec (1mar21)
git-svn-id: svn://tug.org/texlive/trunk@58019 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/thaispec')
-rw-r--r--Master/texmf-dist/tex/latex/thaispec/thaispec.sty63
1 files changed, 20 insertions, 43 deletions
diff --git a/Master/texmf-dist/tex/latex/thaispec/thaispec.sty b/Master/texmf-dist/tex/latex/thaispec/thaispec.sty
index 43f55494761..fdc1d68b8d0 100644
--- a/Master/texmf-dist/tex/latex/thaispec/thaispec.sty
+++ b/Master/texmf-dist/tex/latex/thaispec/thaispec.sty
@@ -7,7 +7,7 @@
%% thaispec.dtx (with options: `thaispec.sty,package')
%%
%% thaispec.dtx
-%% Copyright 2019 Ratthaprom_Promkam
+%% Copyright 2021 Ratthaprom_Promkam
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3
@@ -65,16 +65,14 @@
%%
%%\end{lstlisting}
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{thaispec}[2019/07/03 version 0.4 thaispec]
+\ProvidesPackage{thaispec}[version 2021.03.01]
\RequirePackage{kvoptions}
\RequirePackage[no-math]{fontspec}
\RequirePackage[Latin, Thai]{ucharclasses}
\RequirePackage{setspace}
\RequirePackage{polyglossia}
-\RequirePackage[calc]{datetime2}
\RequirePackage{xstring}
-\RequirePackage{afterpackage}
\RequirePackage{xpatch}
\SetupKeyvalOptions{
@@ -103,11 +101,15 @@ prefix=THL@
\ProcessKeyvalOptions{THL}
+\newcommand{\thaispecver}{2021.03.01}
+
\XeTeXlinebreaklocale "th"
\XeTeXlinebreakskip = 0pt plus 0pt
+
\ifTHL@sloppy
\sloppy
\fi
+
\defaultfontfeatures{Mapping=tex-text}
@@ -122,8 +124,19 @@ prefix=THL@
\setdefaultlanguage{english}
\setotherlanguage{thai}
+
\ifTHL@thaicaption
\AtBeginDocument\captionsthai
+\addto\captionsenglish{%
+ \renewcommand{\proofname}{พิสูจน์}%
+ \renewcommand{\chaptername}{บทที่}%
+ \renewcommand{\contentsname}{สารบัญ}%
+ \renewcommand{\listfigurename}{สารบัญรูปภาพ}%
+ \renewcommand{\listtablename}{สารบัญตาราง}%
+ \renewcommand{\figurename}{รูปภาพ}%
+ \renewcommand{\tablename}{ตาราง}%
+ \renewcommand{\refname}{เอกสารอ้างอิง}%
+}
\fi
\def\thaialph#1{\expandafter\thalph\csname c@#1\endcsname}
@@ -145,37 +158,9 @@ prefix=THL@
\fi
}
-\DTMsavenow{now}
-\newcommand{\dtdow}{\IfStrEqCase{\DTMfetchdow{now}}{{0}{วันจันทร์}
-{1}{วันอังคาร}
-{2}{วันพุธ}
-{3}{วันพฤหัสบดี}
-{4}{วันศุกร์}
-{5}{วันเสาร์}
-{6}{วันอาทิตย์}
-}}
-
-\newcommand{\dtmonth}{\IfStrEqCase{\DTMfetchmonth{now}}{{1}{มกราคม}
-{2}{กุมภาพันธ์}
-{3}{มีนาคม}
-{4}{เมษายน}
-{5}{พฤษภาคม}
-{6}{มิถุนายน}
-{7}{กรกฎาคม}
-{8}{สิงหาคม}
-{9}{กันยายน}
-{10}{ตุลาคม}
-{11}{พฤศจิกายน}
-{12}{ธันวาคม}
-}}
-
-\newcounter{yearbd}
-\setcounter{yearbd}{\DTMfetchyear{now}}
-\addtocounter{yearbd}{543}
-\AtBeginDocument{
-\def\Today{\dtdow\ \DTMfetchday{now}\ \dtmonth\ พ.ศ. \theyearbd}
-\def\today{\DTMfetchday{now}\ \dtmonth\ พ.ศ. \theyearbd}
-}
+
+
+
\@ifclassloaded{beamer}
{
@@ -226,7 +211,6 @@ prefix=THL@
\newtheorem{proposition}[theorem]{ทฤษฎีบทประกอบ}
\theoremstyle{definition}
\newtheorem{definition}[theorem]{บทนิยาม}
-\newtheorem{undefinedterm}[theorem]{อนิยาม}
\newtheorem{axiom}[theorem]{สัจพจน์}
\newtheorem{example}[theorem]{ตัวอย่าง}
\theoremstyle{remark}
@@ -240,7 +224,6 @@ prefix=THL@
\newtheorem*{proposition}{ทฤษฎีบทประกอบ}
\theoremstyle{definition}
\newtheorem*{definition}{บทนิยาม}
-\newtheorem*{undefinedterm}{อนิยาม}
\newtheorem*{axiom}{สัจพจน์}
\newtheorem*{example}{ตัวอย่าง}
\theoremstyle{remark}
@@ -254,7 +237,6 @@ prefix=THL@
\newtheorem{proposition}[theorem]{ทฤษฎีบทประกอบ}
\theoremstyle{definition}
\newtheorem{definition}[theorem]{บทนิยาม}
-\newtheorem{undefinedterm}[theorem]{อนิยาม}
\newtheorem{axiom}[theorem]{สัจพจน์}
\newtheorem{example}[theorem]{ตัวอย่าง}
\theoremstyle{remark}
@@ -268,7 +250,6 @@ prefix=THL@
\newtheorem{proposition}[theorem]{ทฤษฎีบทประกอบ}
\theoremstyle{definition}
\newtheorem{definition}[theorem]{บทนิยาม}
-\newtheorem{undefinedterm}[theorem]{อนิยาม}
\newtheorem{axiom}[theorem]{สัจพจน์}
\newtheorem{example}[theorem]{ตัวอย่าง}
\theoremstyle{remark}
@@ -282,7 +263,6 @@ prefix=THL@
\newtheorem{proposition}[theorem]{ทฤษฎีบทประกอบ}
\theoremstyle{definition}
\newtheorem{definition}[theorem]{บทนิยาม}
-\newtheorem{undefinedterm}[theorem]{อนิยาม}
\newtheorem{axiom}[theorem]{สัจพจน์}
\newtheorem{example}[theorem]{ตัวอย่าง}
\theoremstyle{remark}
@@ -296,7 +276,6 @@ prefix=THL@
\newtheorem{proposition}[theorem]{ทฤษฎีบทประกอบ}
\theoremstyle{definition}
\newtheorem{definition}{บทนิยาม}
-\newtheorem{undefinedterm}[definition]{อนิยาม}
\newtheorem{axiom}[definition]{สัจพจน์}
\newtheorem{example}{ตัวอย่าง}
\theoremstyle{remark}
@@ -310,7 +289,6 @@ prefix=THL@
\newtheorem{proposition}[theorem]{ทฤษฎีบทประกอบ}
\theoremstyle{definition}
\newtheorem{definition}{บทนิยาม}[section]
-\newtheorem{undefinedterm}[definition]{อนิยาม}
\newtheorem{axiom}[definition]{สัจพจน์}
\newtheorem{example}{ตัวอย่าง}
\theoremstyle{remark}
@@ -324,7 +302,6 @@ prefix=THL@
\newtheorem{proposition}[theorem]{ทฤษฎีบทประกอบ}
\theoremstyle{definition}
\newtheorem{definition}{บทนิยาม}[chapter]
-\newtheorem{undefinedterm}[definition]{อนิยาม}
\newtheorem{axiom}[definition]{สัจพจน์}
\newtheorem{example}{ตัวอย่าง}
\theoremstyle{remark}