From 6e24188b60d5f53147e0cb85af293aa0b7d70408 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 24 Aug 2017 22:02:21 +0000 Subject: pst-poker (24aug17) git-svn-id: svn://tug.org/texlive/trunk@45117 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/pst-poker/Changes | 3 ++- .../doc/latex/pst-poker/pst-poker-doc.pdf | Bin 2478038 -> 2466606 bytes .../doc/latex/pst-poker/pst-poker-doc.tex | 14 +++++++------ .../texmf-dist/tex/latex/pst-poker/pst-poker.sty | 22 +++++++++++++++++---- 4 files changed, 28 insertions(+), 11 deletions(-) (limited to 'Master') diff --git a/Master/texmf-dist/doc/latex/pst-poker/Changes b/Master/texmf-dist/doc/latex/pst-poker/Changes index bb5214ca89c..b57f2a34526 100644 --- a/Master/texmf-dist/doc/latex/pst-poker/Changes +++ b/Master/texmf-dist/doc/latex/pst-poker/Changes @@ -1,7 +1,8 @@ -%% $Id: Changes 459 2017-05-17 20:09:46Z herbert $ +%% $Id: Changes 524 2017-08-23 09:24:14Z herbert $ %% pst-poker.sty ----------- +0.02 2017-08-23 - do not load txfonts by default 0.01 2017-05-16 - first CTAN version diff --git a/Master/texmf-dist/doc/latex/pst-poker/pst-poker-doc.pdf b/Master/texmf-dist/doc/latex/pst-poker/pst-poker-doc.pdf index 8684cdeb36d..aa1c6ef4505 100644 Binary files a/Master/texmf-dist/doc/latex/pst-poker/pst-poker-doc.pdf and b/Master/texmf-dist/doc/latex/pst-poker/pst-poker-doc.pdf differ diff --git a/Master/texmf-dist/doc/latex/pst-poker/pst-poker-doc.tex b/Master/texmf-dist/doc/latex/pst-poker/pst-poker-doc.tex index cde8553d8c4..efbca2c0671 100644 --- a/Master/texmf-dist/doc/latex/pst-poker/pst-poker-doc.tex +++ b/Master/texmf-dist/doc/latex/pst-poker/pst-poker-doc.tex @@ -1,4 +1,4 @@ -%% $Id: pst-poker-doc.tex 459 2017-05-17 20:09:46Z herbert $ +%% $Id: pst-poker-doc.tex 524 2017-08-23 09:24:14Z herbert $ % \documentclass[11pt,english,BCOR10mm,DIV12,bibliography=totoc,parskip=false,smallheadings, headexclude,footexclude,oneside]{pst-doc} @@ -41,7 +41,9 @@ available in the \LaTeX\ \LPack{pst-poker} package. (\url{http://web.mit.edu/foley/games/Arcadia/sr/poker/pokersty}). \vfill \noindent -Thanks to: +Thanks to: \\ +Karl Berry + \end{abstract} \clearpage @@ -55,16 +57,16 @@ Thanks to: \section{Inline Poker symbols} There are several possible styles for inline cards. The default way is as small cards, i.e. -{\Ac\Kh\Qd\Js\tenc}. They can also be displayed as simple symbols -{\psset{inline=symbol}\Ac\Kh\Qd\Js\tenc} or as boxed symbols {\psset{inline=boxed}\Ac\Kh\Qd\Js\tenc}. +{\Ac{} \Kh{} \Qd{} \Js{} \tenc}. They can also be displayed as simple symbols +{\psset{inline=symbol}\Ac{} \Kh{} \Qd{} \Js{} \tenc} or as boxed symbols {\psset{inline=boxed}\Ac{} \Kh{} \Qd{} \Js{} \tenc}. A card back {\crdback[inline=symbol,backcolor=green]} is available, too. It is also possible to variate the used colorset. In addition to the standard red/black colors, a four color set {\psset{inline=card,colorset=4c}\Ac\Kh\Qd\Js\tenc} as often used in online poker can be chosen. When colors are not desired, i.e. for printing purposes, the possible -alternatives are a grayscale version {\psset{inline=symbol,colorset=gs}\Ac\Kh\Qd\Js\tenc} or -complete black/white {\psset{inline=boxed,colorset=bw}\Ac\Kh\Qd\Js\tenc} with outlined red symbols. +alternatives are a grayscale version {\psset{inline=symbol,colorset=gs}\Ac{} \Kh{} \Qd{} \Js{}\tenc} or +complete black/white {\psset{inline=boxed,colorset=bw}\Ac{} \Kh{} \Qd{} \Js{} \tenc} with outlined red symbols. %\psset{inline=card,colorset=2c} \section{Poker cards} diff --git a/Master/texmf-dist/tex/latex/pst-poker/pst-poker.sty b/Master/texmf-dist/tex/latex/pst-poker/pst-poker.sty index c40b76fcfdd..7a8b7674c51 100644 --- a/Master/texmf-dist/tex/latex/pst-poker/pst-poker.sty +++ b/Master/texmf-dist/tex/latex/pst-poker/pst-poker.sty @@ -1,4 +1,4 @@ -%% $Id: pst-poker.sty 459 2017-05-17 20:09:46Z herbert $ +%% $Id: pst-poker.sty 524 2017-08-23 09:24:14Z herbert $ %% % pst-poker.sty - LaTeX poker package % Copyright (C) 2017 Herbert Voß @@ -22,12 +22,12 @@ %%% \NeedsTeXFormat{LaTeX2e} -\RequirePackage{txfonts} +%\RequirePackage{txfonts} \RequirePackage{pstricks,pst-blur,multido} \RequirePackage[tiling]{pst-fill} -\def\filedate{2017/05/16} -\def\fileversion{0.01} +\def\filedate{2017/08/23} +\def\fileversion{0.02} \ProvidesFile{pst-poker}[\filedate\ v\fileversion\ [LaTeX poker package (HV)] % % basic definitions @@ -35,6 +35,8 @@ %\newlength\xyunit %\newlength\cprunit + + \newcommand\pkr@val{A} \newcommand\pkr@suit{\pspade} \newcommand\pkr@col{\crd@Colors} @@ -130,6 +132,18 @@ \newcommand\colorbackname{pkrblue} % % initialize suit variables + +\@ifundefined{varclubsuit}{% + \def\re@DeclareMathSymbol#1#2#3#4{% + \let#1=\undefined + \DeclareMathSymbol{#1}{#2}{#3}{#4}}% + \DeclareSymbolFont{symbolsC}{U}{txsyc}{m}{n}% + \SetSymbolFont{symbolsC}{bold}{U}{txsyc}{bx}{n}% + \re@DeclareMathSymbol{\varclubsuit}{\mathord}{symbolsC}{112}% + \re@DeclareMathSymbol{\vardiamondsuit}{\mathord}{symbolsC}{113}% + \re@DeclareMathSymbol{\varheartsuit}{\mathord}{symbolsC}{114}% + \re@DeclareMathSymbol{\varspadesuit}{\mathord}{symbolsC}{115}% +}{} \newcommand{\pspade}{\ensuremath{\spadesuit}} \newcommand{\pheart}{\ensuremath{\varheartsuit}} \newcommand{\pdiamond}{\ensuremath{\vardiamondsuit}} -- cgit v1.2.3