%% %% This is file `PJLamssim.sty', %% generated with the docstrip utility. %% Copyright (C) 2021 by Jinwen XU %% %% This is part of the ProjLib Toolkit. %% %% This work may be distributed and/or modified under the conditions of the %% LaTeX Project Public License, either version 1.3c 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.3c or later is part of all distributions of LaTeX version %% 2005/12/01 or later. %% \NeedsTeXFormat{LaTeX2e}[2020-10-01] \ProvidesPackage{PJLamssim} [2021/05/25 Simulate some features of amsart] \RequirePackage{kvoptions} \RequirePackage{etoolbox} \ifdefined\subjclass\endinput\fi \RequirePackage{PJLauthor} \RequirePackage{calc} \providecommand{\conditionalbfseries}{\bfseries} \def\keywordsnameEN{\textsc{Key words and phrases}} \def\keywordsnameFR{\textsc{Mots et phrases clés}} \def\keywordsnameDE{\textsc{Schlüsselwörter und Phrasen}} \def\keywordsnameCN{关键词} \def\keywordsnameTC{關鍵詞} \def\keywordsnameJP{キーワード} \def\keywordsnameRU{Ключевые слова и фразы} \ifdefined\keywords\else \def\PJL@keywords{} \newcommand*{\keywords}[1]{\def\PJL@keywords{#1}} \fi \ifdefined\dedicatory\else \def\PJL@dedicatory{} \newcommand*{\dedicatory}[1]{\def\PJL@dedicatory{#1}} \fi \AtEndPreamble{ \let\footnotemark@PJLoriginal\footnotemark% \let\footnotemark\relax% \let\thanks@PJLoriginal\thanks% \newlength\PJL@starlength \setlength{\PJL@starlength}{\widthof{*}} \newcommand*{\PJL@prethanks}[1]{\thanks@PJLoriginal{\hspace*{-\PJL@starlength}#1}} \renewcommand*{\thanks}[1]{% \ifx#1\@empty\else% \apptocmd{\@title}{% \thanks@PJLoriginal{\hspace*{-\PJL@starlength}#1}% }{}{\FAIL}% \fi} \let\author@PJLoriginal\author \renewcommand{\author}[1]{% \author@PJLoriginal{% \let\footnotemark\footnotemark@PJLoriginal% \let\thanks\thanks@PJLoriginal% #1% \let\footnotemark\relax% }% } } %% Modify abstract to allow it before maketitle \let\abstract@PJLoriginal\abstract% \let\endabstract@PJLoriginal\endabstract% \newif\if@PJLamssim@maketitle\@PJLamssim@maketitlefalse \newif\if@PJLamssim@absbefore\@PJLamssim@absbeforefalse \RequirePackage{fancyvrb} \providecommand*\protected@iwrite[3]{% \begingroup \let\thepage\relax #2% \let\protect\@unexpandable@protect \edef\reserved@a{\immediate\write#1{#3}}\reserved@a \endgroup \if@nobreak\ifvmode\nobreak\fi\fi } \patchcmd{\FVB@VerbatimOut} {\immediate\write\FV@OutFile} {\protected@iwrite\FV@OutFile{}} {}{} \renewenvironment{abstract}{% \VerbatimOut{\jobname.pjlabs}% }{ \endVerbatimOut% \if@PJLamssim@maketitle% \begin{abstract@PJLoriginal}% \input{\jobname.pjlabs}% \end{abstract@PJLoriginal}% % \ifx\PJL@keywords\@empty\else% % \par\smallskip\noindent{\conditionalbfseries\csname keywordsname\csname\languagename ABBR\endcsname\endcsname.}~\PJL@keywords% % \fi% \else% \global\@PJLamssim@absbeforetrue% \fi% } %% Modify maketitle \AtEndPreamble{% \patchcmd{\@maketitle}{\@date}{% \ifx\@date\@empty\vspace{-2\baselineskip}% \else\@date\fi% \ifx\PJL@dedicatory\@empty\else% \par\vspace{-\parskip}\bigskip% {\itshape\PJL@dedicatory}\fi} {}{\FAIL} \pretocmd{\maketitle}{% \ifx\PJL@keywords\@empty\else% \PJL@prethanks{{\protect\conditionalbfseries% \csname keywordsname\csname\languagename ABBR\endcsname\endcsname.}% ~\PJL@keywords}% \fi}{}{\FAIL} \apptocmd{\maketitle}{% \if@PJLamssim@absbefore% \begin{abstract@PJLoriginal}% \input{\jobname.pjlabs}% % \ifx\PJL@keywords\@empty\else% % \par\smallskip\noindent{\conditionalbfseries\csname keywordsname\csname\languagename ABBR\endcsname\endcsname.}~\PJL@keywords% % \fi% \end{abstract@PJLoriginal}% \fi% \global\let\address\relax \global\let\curraddr\relax \global\let\email\relax \global\let\dedicatory\relax \global\let\keywords\relax \global\@PJLamssim@maketitletrue }{}{\FAIL} } \newcommand*\subjclass[2][2020]{% \def\@subjclass{#2}% \@ifundefined{subjclassname@#1}{% \ClassWarning{\@currname}{Unknown edition (#1) of Mathematics Subject Classification; using '2020'}% \expandafter\let\expandafter\subjclassname\csname subjclassname@2020\endcsname }{% \expandafter\let\expandafter\subjclassname\csname subjclassname@#1\endcsname }% \PJL@prethanks{{\itshape\subjclassname.}\enspace\@subjclass{}.} } \@namedef{subjclassname@1991}{% \textup{1991} Mathematics Subject Classification} \@namedef{subjclassname@2000}{% \textup{2000} Mathematics Subject Classification} \@namedef{subjclassname@2010}{% \textup{2010} Mathematics Subject Classification} \@namedef{subjclassname@2020}{% \textup{2020} Mathematics Subject Classification} \endinput %% %% End of file `PJLamssim.sty'.