Document Classespoker | xkeyval Error: value '\pkr@shad' is not allowed

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
User avatar
Sydney
Posts: 7
Joined: Tue Apr 05, 2011 7:33 pm

poker | xkeyval Error: value '\pkr@shad' is not allowed

Post by Sydney »

Hi all, :)

thanks very much for reading my post. This is my first post, so I'll try to make it as clear as possible. Please let me know if I missed a precious information. I really need your help guys regarding an issue I have got while using the package poker.sty

I downloaded this package on this website:
http://www.encke.net/UpDownload-req-vie ... 0.81a.html

Just for info, in case that's important, poker.sty uses the package PSTricks which makes the compilation impossible into PDF (I mean directly). Indeed, PSTricks uses PostScript \special commands, which are not supported by PDF(La)TeX. So, I compile into PS first, and then into PDF.

Anyway, I have got some error messages while compiling "LaTeX -> PS".

Here is my code:

Code: Select all

\documentclass{book}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc} 
\usepackage[francais]{babel} 

\usepackage{poker}%This package is based on PSTricks
%So the compilation has to be LaTeX=>DVI=>PS=>PDF
%This package uses PostScript \special commands, which are not supported by pfd compilation
\setkeys{poker}{cpr=8,colorset=4c,framebg=blue,corners=2,peek=right}

\begin{document}%On commence le document
Here is a Royal Flush:

\begin{cards}

\crdAs \crdKs \crdQs \crdJs \crdtens    %That's where I get the error messages      

\end{cards}

\end{document}
That's it for the code. Now, here are the error messages that I obtain after compilation. :roll: They are all of the same kind, an issue with the package xkeyval. I tried to download anew and reinstall the package xkeyval but it does not work.
  1. Code: Select all

    ! Package xkeyval Error: value '\pkr@shad' is not allowed.
    See the keyval package documentation for explanation.
    Type H <return> for immediate help.
    ...
    
    1.19 \crdAs \crdKs 
                         \crdQs \crdJs \crdtens
  2. Code: Select all

    ! Package xkeyval Error: value '\pkr@shad' is not allowed.
    See the keyval package documentation for explanation.
    Type H <return> for immediate help.
    ...
    
    1.19 \crdAs \crdKs
                         \crdQs \crdJs \crdtens
    <King-spade-color.eps>
  3. Code: Select all

    ! Package xkeyval Error: value '\pkr@shad' is not allowed.
    See the keyval package documentation for explanation.
    Type H <return> for immediate help.
    ...
    
    1.19 \crdAs \crdKs \crdQs 
                                \crdJs \crdtens
    <Queen-spade-color.eps>
  4. Code: Select all

    ! Package xkeyval Error: value '\pkr@shad' is not allowed.
    See the keyval package documentation for explanation.
    Type H <return> for immediate help.
    ...
    
    1.19 \crdAs \crdKs
                         \crdQs \crdJs \crdtens
    <Queen-spade-color.eps>
  5. Code: Select all

    ! Package xkeyval Error: value '\pkr@shad' is not allowed.
    See the keyval package documentation for explanation.
    Type H <return> for immediate help.
    ...
    
    1.19 \crdAs 
                 \crdKs   \crdQs \crdJs \crdtens
    <Queen-spade-color.eps>
Now, if you guys want to know what is the \pkr@shad thing, when I go into the package file "poker.sty", here is what I find:

Code: Select all

\newcommand{\pkr@shad}{true}  % line 38

% set card shadow  % from line 248
\define@choicekey{poker}{shadow}[\val\nr]{blurred,solid,none}[blurred]{%
 \ifcase\nr\relax%
   \renewcommand{\pkr@shad}{true}%
   \renewcommand{\pkr@shadblur}{true}%
 \or%
   \renewcommand{\pkr@shad}{true}%
   \renewcommand{\pkr@shadblur}{false}%
 \or%
   \renewcommand{\pkr@shad}{false}%
   \renewcommand{\pkr@shadblur}{false}%
 \fi%
}%
OK, I think this is it. I tried to do my best to solve this problem, but I can't make these warnings disappear.
Thanks very much for your help. :)

All the best.

Sydney

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

casperyc
Posts: 50
Joined: Thu Oct 15, 2009 11:23 pm

Re: poker | Several Errors

Post by casperyc »

I am having the same problem.

and i don't know if this package has been recycled or not. since it does not come with MiKTeX any more and we have to install it manually.

It seems that this package need to be update to be compatible with PDFLaTeX as well.

Not working! A bit disappointed.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

poker | xkeyval Error: value '\pkr@shad' is not allowed

Post by localghost »

Sydney wrote:[…] Anyway, I have got some error messages while compiling "LaTeX -> PS". […]
Could also be a matter of outdated PSTricks related packages. So an update of those packages might be helpful in this regard.
casperyc wrote:[…] It seems that this package need to be update to be compatible with PDFLaTeX as well. […]
This does not surprise since the package relies on PSTricks. Adding the auto-pst-pdf package to the preamble and reading its manual thoroughly might help to make a document compilable with PDFLaTeX. If this fails, the only possible compiling route is "LaTeX → DVI → PS → PDF".

If the package fails with up to date PSTricks packages, contact the maintainer and ask for the necessary modifications.


Thorsten
DonkeyShark
Posts: 1
Joined: Fri Mar 09, 2012 4:07 pm

Re: poker | Several Errors

Post by DonkeyShark »

Has anyone figured out a solution to this problem yet? I too am running into the same issue. I am compiling via TeXworks-> XeLaTeX to produce a pdf file and that works great, however I am only able to use the inline cards from this package, whenever I attempt to use the large cards I get the same error as the OP.

Thanks
DS
jdogg
Posts: 1
Joined: Sat Mar 10, 2012 12:44 am

poker | xkeyval Error: value '\pkr@shad' is not allowed

Post by jdogg »

I too had the same problem. So I started digging in to see if I could fix it. I had success.

There are 5 places in the poker.sty file that contain the line shadow=\pkr@shad, which to be honest seems perfectly fine to me. However, for some reason xkeyval complains.

Hence I changed all five of these lines to shadow=true and was able to get the package to work. Hope this helps.
Post Reply