diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/pstricks/pst-doc.cls')
-rw-r--r-- | Master/texmf-dist/tex/latex/pstricks/pst-doc.cls | 107 |
1 files changed, 52 insertions, 55 deletions
diff --git a/Master/texmf-dist/tex/latex/pstricks/pst-doc.cls b/Master/texmf-dist/tex/latex/pstricks/pst-doc.cls index fb5d75fb457..e54d5e9893a 100644 --- a/Master/texmf-dist/tex/latex/pstricks/pst-doc.cls +++ b/Master/texmf-dist/tex/latex/pstricks/pst-doc.cls @@ -16,13 +16,13 @@ % \listfiles \ProvidesClass{pst-doc}[2017/04/18 v 0.20 PSTricks documentation class (hv)] -\DeclareOption*{\PassOptionsToClass{\CurrentOption,usegeometry}{scrartcl}} +\DeclareOption*{\PassOptionsToClass{\CurrentOption}{scrartcl}} \ProcessOptions\relax % \LoadClass{scrartcl} % \RequirePackage[dvipsnames,x11names,svgnames,table]{xcolor} -\RequirePackage{ifxetex} +\RequirePackage{iftex} \RequirePackage{amsmath, amssymb} \ifxetex \usepackage{unicode-math} @@ -115,7 +115,6 @@ \gdef\index@vals{#1}% \def\FancyVerbFormatLine##1{\FV@ObeyTabs{##1}\use@index@vals}} -\RequirePackage{filecontents} %\singlespace \RequirePackage{showexpl} \renewcommand*\SX@Info{}% @@ -451,64 +450,62 @@ xleftmargin=0pt,xrightmargin=0pt, \providecommand\bgTitle{} \providecommand\LenToUnit[1]{#1\@gobble} -\iffalse -\renewcommand\maketitle{% -\thispagestyle{empty}% -\begin{titlepage} -\ifpdf - \AddToShipoutPicture*{\includegraphics{pst-doc.pdf}} - \vspace*{0.3\textheight} - \parbox{17cm}{\sffamily\RaggedRight\bfseries\huge\@title}\\[5pt] - \parbox{15cm}{\sffamily\Large\@subtitle} +\def\settitle{% + \thispagestyle{empty}% + \begin{titlepage} + \ifpdf + \AddToShipoutPicture*{\includegraphics{pst-doc.pdf}} + \vspace*{0.3\textheight} + \parbox{17cm}{\sffamily\RaggedRight\bfseries\huge\@title}\\[5pt] + \parbox{15cm}{\sffamily\Large\@subtitle} - \vspace{5cm} - \parbox{10cm}{\sffamily\@date} + \vspace{5cm} + \parbox{10cm}{\sffamily\@date} - \vfill - ~\\ - \makebox[.5\textwidth]{\put(0,0){\bgImage}}\\ - ~ + \vfill + ~\\ + \makebox[.5\textwidth]{\put(0,0){\bgImage}}\\ + ~ - \vfill - \parbox[b]{19cm}{\sffamily\RaggedRight - \ifx\@docauthor\empty~\else Documentation by\fi\hfill\makebox[7cm][l]{Package author(s):}\\ - \ifx\@docauthor\empty~\else{\bfseries\tabular[t]{@{}l@{}}\@docauthor\endtabular}\fi\hfill\makebox[7cm][l]{% - \bfseries\tabular[t]{@{}l@{}}\@author\endtabular}} -\else - \psset{unit=1cm} - \begin{pspicture}(1.6in,0)(23cm,21.7cm) - \psframe[fillstyle=solid,linecolor=lightgray,fillcolor=lightgray,linestyle=solid](0,-5.75)(23,10) - \psframe[fillstyle=solid,linecolor=Orange!85!Red,fillcolor=Orange!85!Red,linestyle=solid](0,10)(23,10.5) - \psframe[fillstyle=solid,linecolor=Orange!85!Red,fillcolor=Orange!85!Red,linestyle=solid](0,21.1)(23,21.2) - \rput[lb](3,22){\Huge\sffamily\color{Orange!65!Red}\psscalebox{2}{\textbf{PSTricks}}} - \rput[lb](3,14.1){\parbox{17cm}{\sffamily\RaggedRight\bfseries\huge\@title}} - \rput[lb](3,12.6){\parbox{15cm}{\sffamily\Large\@subtitle}} - \rput[lb](3,7.6){\parbox{15cm}{\sffamily\@date}} - \rput[lb](3,-2.6){\parbox[b]{19cm}{\sffamily\RaggedRight + \vfill + \parbox[b]{19cm}{\sffamily\RaggedRight \ifx\@docauthor\empty~\else Documentation by\fi\hfill\makebox[7cm][l]{Package author(s):}\\ \ifx\@docauthor\empty~\else{\bfseries\tabular[t]{@{}l@{}}\@docauthor\endtabular}\fi\hfill\makebox[7cm][l]{% - \bfseries\shortstack[l]{\@author} - %\begin{tabular}[t]{@{}l@{}} \@author\end{tabular}% -}}} - \rput[C](11,4){\bgImage}% - \end{pspicture}% -\fi -\end{titlepage} -\setcounter{footnote}{0}% -\global\let\thanks\relax% -\global\let\maketitle\relax% -\global\let\@thanks\@empty% -\global\let\@author\@empty% -\global\let\@docauthor\@empty% -\global\let\@date\@empty% -\global\let\@title\@empty% -\global\let\@subtitle\@empty% -\global\let\title\relax% -\global\let\author\relax% -\global\let\date\relax% -\global\let\and\relax% + \bfseries\tabular[t]{@{}l@{}}\@author\endtabular}} + \else + \psset{unit=1cm} + \begin{pspicture}(1.6in,0)(23cm,21.7cm) + \psframe[fillstyle=solid,linecolor=lightgray,fillcolor=lightgray,linestyle=solid](0,-5.75)(23,10) + \psframe[fillstyle=solid,linecolor=Orange!85!Red,fillcolor=Orange!85!Red,linestyle=solid](0,10)(23,10.5) + \psframe[fillstyle=solid,linecolor=Orange!85!Red,fillcolor=Orange!85!Red,linestyle=solid](0,21.1)(23,21.2) + \rput[lb](3,22){\Huge\sffamily\color{Orange!65!Red}\psscalebox{2}{\textbf{PSTricks}}} + \rput[lb](3,14.1){\parbox{17cm}{\sffamily\RaggedRight\bfseries\huge\@title}} + \rput[lb](3,12.6){\parbox{15cm}{\sffamily\Large\@subtitle}} + \rput[lb](3,7.6){\parbox{15cm}{\sffamily\@date}} + \rput[lb](3,-2.6){\parbox[b]{19cm}{\sffamily\RaggedRight + \ifx\@docauthor\empty~\else Documentation by\fi\hfill\makebox[7cm][l]{Package author(s):}\\ + \ifx\@docauthor\empty~\else{\bfseries\tabular[t]{@{}l@{}}\@docauthor\endtabular}\fi\hfill\makebox[7cm][l]{% + \bfseries\shortstack[l]{\@author} + %\begin{tabular}[t]{@{}l@{}} \@author\end{tabular}% + }}} + \rput[C](11,4){\bgImage}% + \end{pspicture}% + \fi + \end{titlepage} + \setcounter{footnote}{0}% + \global\let\thanks\relax% + \global\let\maketitle\relax% + \global\let\@thanks\@empty% + \global\let\@author\@empty% + \global\let\@docauthor\@empty% + \global\let\@date\@empty% + \global\let\@title\@empty% + \global\let\@subtitle\@empty% + \global\let\title\relax% + \global\let\author\relax% + \global\let\date\relax% + \global\let\and\relax% } -\fi \newdimen\fullWidth \fullWidth=\linewidth |