From cb7e589f4d6de0732a654dcacd8cb1273d519c28 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 1 Mar 2021 22:36:54 +0000 Subject: thaispec (1mar21) git-svn-id: svn://tug.org/texlive/trunk@58019 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/thaispec/thaispec.sty | 63 +++++++---------------- 1 file changed, 20 insertions(+), 43 deletions(-) (limited to 'Master/texmf-dist/tex/latex/thaispec') 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} -- cgit v1.2.3