summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-03-12 20:33:36 +0000
committerKarl Berry <karl@freefriends.org>2022-03-12 20:33:36 +0000
commit2d2e317a75f264a366ebaaa1beebecd78c44e89b (patch)
tree6de3569e55f9d0dbaf8ec59d3731227e0953c9e4
parent40425797b1500ed980ef6764d72310cd021cbb0a (diff)
create-theorem (12mar22) (branch)
git-svn-id: svn://tug.org/texlive/branches/branch2021.final@62658 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf-dist/doc/latex/create-theorem/create-theorem-doc.pdfbin117097 -> 117260 bytes
-rw-r--r--Master/texmf-dist/doc/latex/create-theorem/create-theorem-doc.tex6
-rw-r--r--Master/texmf-dist/tex/latex/create-theorem/create-theorem.sty91
3 files changed, 91 insertions, 6 deletions
diff --git a/Master/texmf-dist/doc/latex/create-theorem/create-theorem-doc.pdf b/Master/texmf-dist/doc/latex/create-theorem/create-theorem-doc.pdf
index 5ec3992fbe3..c61567791b2 100644
--- a/Master/texmf-dist/doc/latex/create-theorem/create-theorem-doc.pdf
+++ b/Master/texmf-dist/doc/latex/create-theorem/create-theorem-doc.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/create-theorem/create-theorem-doc.tex b/Master/texmf-dist/doc/latex/create-theorem/create-theorem-doc.tex
index ef84ddfca5d..3a726e50e1c 100644
--- a/Master/texmf-dist/doc/latex/create-theorem/create-theorem-doc.tex
+++ b/Master/texmf-dist/doc/latex/create-theorem/create-theorem-doc.tex
@@ -85,7 +85,7 @@
\begin{document}
-\def\PackageVersion{2022/03/10}
+\def\PackageVersion{2022/03/11}
\title{\createtheorempackage{}\\\smallskip\itshape Initializing theorem-like environments with multilingual support}
\author{Jinwen XU}
@@ -287,7 +287,7 @@ Supported keys are:
\end{center}
\begin{tip}
- The names for the following environments have been preset: \texttt{assertion}, \texttt{assumption}, \texttt{axiom}, \texttt{conclusion}, \texttt{conjecture}, \texttt{convention}, \texttt{corollary}, \texttt{definition}, \texttt{example}, \texttt{exercise}, \texttt{fact}, \texttt{hypothesis}, \texttt{lemma}, \texttt{notation}, \texttt{observation}, \texttt{postulate}, \texttt{problem}, \texttt{property}, \texttt{proposition}, \texttt{question}, \texttt{remark} and \texttt{theorem}. If you are fine with the preset names, then you don't need to specify the key ``\commandoption{name}'' while creating them, otherwise you shall have to use the package option ``\packageoption{no preset names}'' to disable the presets and then define your own ones.
+ The names for the following environments have been preset: \texttt{assertion}, \texttt{assumption}, \texttt{axiom}, \texttt{conclusion}, \texttt{conjecture}, \texttt{convention}, \texttt{corollary}, \texttt{definition}, \texttt{definition-proposition}, \texttt{definition-theorem}, \texttt{example}, \texttt{exercise}, \texttt{fact}, \texttt{hypothesis}, \texttt{lemma}, \texttt{notation}, \texttt{observation}, \texttt{postulate}, \texttt{problem}, \texttt{property}, \texttt{proposition}, \texttt{question}, \texttt{remark} and \texttt{theorem}. If you are fine with the preset names, then you don't need to specify the key ``\commandoption{name}'' while creating them, otherwise you shall have to use the package option ``\packageoption{no preset names}'' to disable the presets and then define your own ones.
\end{tip}
\medskip
@@ -440,7 +440,7 @@ In each case, the two environments \texttt{idea} and \texttt{idea*} share the sa
\item There may be inaccuracies in the translation of those preset names.
\end{itemize}
-\medskip
+% \medskip
If you run into any issues or have ideas for improvement, feel free to discuss on:
\begin{center}
\url{https://github.com/Jinwen-XU/create-theorem/issues}
diff --git a/Master/texmf-dist/tex/latex/create-theorem/create-theorem.sty b/Master/texmf-dist/tex/latex/create-theorem/create-theorem.sty
index b7439ea4668..b0371749b83 100644
--- a/Master/texmf-dist/tex/latex/create-theorem/create-theorem.sty
+++ b/Master/texmf-dist/tex/latex/create-theorem/create-theorem.sty
@@ -13,7 +13,7 @@
\RequirePackage{l3keys2e}
\ProvidesExplPackage
{create-theorem}
- {2022/03/10} {}
+ {2022/03/11} {}
{Initializing theorem-like environments with multilingual support}
\keys_define:nn { create-theorem }
@@ -199,8 +199,8 @@
{
\tl_if_blank:eTF { #3 }
{
- \tl_gset:cn { g_crthm_name_ #7 ref_article_singular_ #1 _ #2 _tl } { \crefthemark{ \skip_horizontal:n { -1ex } } }
- \tl_gset:cn { g_crthm_name_ #7 ref_article_plural_ #1 _ #2 _tl } { \crefthemark{ \skip_horizontal:n { -1ex } } }
+ \tl_gset:cn { g_crthm_name_ #7 ref_article_singular_ #1 _ #2 _tl } { \crefthemark{ \skip_horizontal:n { -.5ex } } }
+ \tl_gset:cn { g_crthm_name_ #7 ref_article_plural_ #1 _ #2 _tl } { \crefthemark{ \skip_horizontal:n { -.5ex } } }
}
{
\tl_gset:cn { g_crthm_name_ #7 ref_article_singular_ #1 _ #2 _tl } { \crefthemark { #3 } }
@@ -1699,6 +1699,91 @@
}
}
+\NameTheorem { definition-proposition }
+ {
+ , heading = {
+ , english = Definition-Proposition
+ , french = Définition-Proposition
+ , ngerman = Definition-Proposition
+ , italian = Definizione-Proposizione
+ , portuguese = Definição-Proposição
+ , brazilian = Definição-Proposição
+ , spanish = Definición-Proposición
+ , schinese = 定义-命题
+ , tchinese = 定義-命題
+ , japanese = 定義-命題
+ , russian = Определение-Предложение
+ }
+ , crefname = {
+ , english = {definition-proposition}{definition-propositions}
+ , french = [la]{définition-proposition}[les]{définition-propositions}
+ , ngerman = {Definition-Proposition}{Definitionen-Propositionen}
+ , italian = [la]{definizione-proposizione}[le]{definizioni-proposte}
+ , portuguese = [a]{definição-proposição}[as]{definições-proposições}
+ , brazilian = [a]{definição-proposição}[as]{definições-proposições}
+ , spanish = [la]{definición-proposición}[las]{definiciones-proposiciones}
+ , schinese = {定义-命题}{定义-命题}
+ , tchinese = {定義-命題}{定義-命題}
+ , japanese = {定義-命題}{定義-命題}
+ , russian = {определение-предложение}{определения-предложения}
+ }
+ , Crefname = {
+ , english = {Definition-proposition}{Definition-propositions}
+ , french = [La]{définition-proposition}[Les]{définition-propositions}
+ , ngerman = {Definition-Proposition}{Definitionen-Propositionen}
+ , italian = [La]{definizione-proposizione}[Le]{definizioni-proposte}
+ , portuguese = [A]{definição-proposição}[As]{definições-proposições}
+ , brazilian = [A]{definição-proposição}[As]{definições-proposições}
+ , spanish = [La]{definición-proposición}[Las]{definiciones-proposiciones}
+ , schinese = {定义-命题}{定义-命题}
+ , tchinese = {定義-命題}{定義-命題}
+ , japanese = {定義-命題}{定義-命題}
+ , russian = {Определение-предложение}{Определения-предложения}
+ }
+ }
+
+\NameTheorem { definition-theorem }
+ {
+ , heading = {
+ , english = Definition-Theorem
+ , french = Définition-Théorème
+ , ngerman = Definition-Satz
+ , italian = Definizione-Teorema
+ , portuguese = Definição-Teorema
+ , brazilian = Definição-Teorema
+ , spanish = Definición-Teorema
+ , schinese = 定义-定理
+ , tchinese = 定義-定理
+ , japanese = 定義-定理
+ , russian = Определение-Теорема
+ }
+ , crefname = {
+ , english = {definition-theorem}{definition-theorems}
+ , french = [la]{définition-théorème}[les]{définition-théorèmes}
+ , ngerman = {Definition-Satz}{Definitionen-Sätze}
+ , italian = [la]{definizione-teorema}[le]{definizioni-teoremi}
+ , portuguese = [a]{definição-teorema}[as]{definições-teoremas}
+ , brazilian = [a]{definição-teorema}[as]{definições-teoremas}
+ , spanish = [la]{definición-teorema}[las]{definiciones-teoremas}
+ , schinese = {定义-定理}{定义-定理}
+ , tchinese = {定義-定理}{定義-定理}
+ , japanese = {定義-定理}{定義-定理}
+ , russian = {определение-теорема}{определения-теоремы}
+ }
+ , Crefname = {
+ , english = {Definition-theorem}{Definition-theorems}
+ , french = [La]{définition-théorème}[Les]{définition-théorèmes}
+ , ngerman = {Definition-Satz}{Definitionen-Sätze}
+ , italian = [La]{definizione-teorema}[Le]{definizioni-teoremi}
+ , portuguese = [A]{definição-teorema}[As]{definições-teoremas}
+ , brazilian = [A]{definição-teorema}[As]{definições-teoremas}
+ , spanish = [La]{definición-teorema}[Las]{definiciones-teoremas}
+ , schinese = {定义-定理}{定义-定理}
+ , tchinese = {定義-定理}{定義-定理}
+ , japanese = {定義-定理}{定義-定理}
+ , russian = {Определение-теорема}{Определения-теоремы}
+ }
+ }
\endinput
%%