From 54592d609e44d5cff9e5d940befbcb3330d92b10 Mon Sep 17 00:00:00 2001
From: Norbert Preining <norbert@preining.info>
Date: Sun, 17 Oct 2021 03:01:02 +0000
Subject: CTAN sync 202110170301

---
 macros/latex/contrib/projlib/ProjLib.dtx | 51 ++++++++++++++++++++++++--------
 1 file changed, 38 insertions(+), 13 deletions(-)

(limited to 'macros/latex/contrib/projlib/ProjLib.dtx')

diff --git a/macros/latex/contrib/projlib/ProjLib.dtx b/macros/latex/contrib/projlib/ProjLib.dtx
index fd3b252e1f..2d3f53d48b 100644
--- a/macros/latex/contrib/projlib/ProjLib.dtx
+++ b/macros/latex/contrib/projlib/ProjLib.dtx
@@ -18,47 +18,47 @@
 %
 %<*ProjLib>
 \ProvidesPackage{ProjLib}
-    [2021/08/19 The collective interface of ProjLib toolkit]
+    [2021/10/16 The collective interface of ProjLib toolkit]
 %</ProjLib>
 %
 %<*PJLauthor>
 \ProvidesPackage{PJLauthor}
-    [2021/08/19 Enhanced author information block]
+    [2021/10/16 Enhanced author information block]
 %</PJLauthor>
 %
 %<*PJLdate>
 \ProvidesPackage{PJLdate}
-    [2021/08/19 Convert yyyy-mm-dd to normal datetime format]
+    [2021/10/16 Convert yyyy-mm-dd to normal datetime format]
 %</PJLdate>
 %
 %<*PJLdraft>
 \ProvidesPackage{PJLdraft}
-    [2021/08/19 Some useful macros for the draft stage]
+    [2021/10/16 Some useful macros for the draft stage]
 %</PJLdraft>
 %
 %<*PJLlang>
 \ProvidesPackage{PJLlang}
-    [2021/08/19 Multi-language configuration]
+    [2021/10/16 Multi-language configuration]
 %</PJLlang>
 %
 %<*PJLlogo>
 \ProvidesPackage{PJLlogo}
-    [2021/08/19 The ProjLib logo]
+    [2021/10/16 The ProjLib logo]
 %</PJLlogo>
 %
 %<*PJLmath>
 \ProvidesPackage{PJLmath}
-    [2021/08/19 Useful math macros and shortcuts]
+    [2021/10/16 Useful math macros and shortcuts]
 %</PJLmath>
 %
 %<*PJLpaper>
 \ProvidesPackage{PJLpaper}
-    [2021/08/19 Paper style configuration]
+    [2021/10/16 Paper style configuration]
 %</PJLpaper>
 %
 %<*PJLthm>
 \ProvidesPackage{PJLthm}
-    [2021/08/19 Theorem setup and configuration]
+    [2021/10/16 Theorem setup and configuration]
 %</PJLthm>
 %
 %# 下面两行引入宏包的代码是所有文件共用的。
@@ -67,10 +67,6 @@
 \RequirePackage{etoolbox}
 %
 %<*PJLauthor>
-%# 在 AMS 文档类中不执行任何操作
-%# Do nothing if AMS class detected
-\ifdefined\subjclass\endinput\fi
-
 %# 这段代码定义了宏包中的选项。
 %# This code defines the options in the package.
 \SetupKeyvalOptions{
@@ -84,6 +80,10 @@
 %# Process options
 \ProcessKeyvalOptions*\relax
 
+%# 在 AMS 文档类中不执行任何操作
+%# Do nothing if AMS class detected
+\ifdefined\subjclass\endinput\fi
+
 %%================================
 %% Font and style
 %%================================
@@ -776,6 +776,20 @@
     \if@PJLlang@enable@FR
         \frenchsetup{PartNameFull=false}
     \fi
+    \if@PJLlang@enable@PT
+        \let\PJL@babelord\ord
+        \let\ord\relax
+        \AtBeginDocument{
+            \@ifundefined{ord}{}
+            {
+                \let\PJL@userord\ord
+                \let\ord\relax
+                \newcommand{\ord}{%
+                    \ifmmode\expandafter\PJL@userord\else\expandafter\PJL@babelord\fi%
+                }
+            }
+        }
+    \fi
 
     \babelprovide{schinese}
     \babelprovide{tchinese}
@@ -2234,6 +2248,7 @@
 \DeclareBoolOption[true]{regionalref}
 \DeclareBoolOption[false]{originalref}
 \DeclareBoolOption[false]{useosf}
+\DeclareBoolOption[false]{lmodern}
 \DeclareBoolOption[false]{palatino}
 \DeclareBoolOption[false]{times}
 \DeclareBoolOption[false]{garamond}
@@ -2305,6 +2320,16 @@
 % A message can then be shown as: Font "(font name)" has been set
 \ifdefined\PJL@font@alreadyset\else
 
+\if@ProjLib@lmodern
+    \RequirePackage{amssymb}
+    \if@ProjLib@useosf
+        \RequirePackage{cfr-lm}
+    \else
+        \RequirePackage{lmodern}
+    \fi
+    \PJLsetlinespacing{\setstretch{1.00}}
+\fi
+
 \if@ProjLib@palatino
     % \RequirePackage{amssymb}
     \RequirePackage{mathpazo}
-- 
cgit v1.2.3

