MiKTeX and proTeXtxkeyval package

Information and discussion about MikTeX distribution for Windows and the related proTeXt: Installing, updating, configuring
Post Reply
ofeyrpf
Posts: 7
Joined: Wed Feb 18, 2009 7:19 pm

xkeyval package

Post by ofeyrpf »

I am using Miktex 2.7 on WinXP. Using the 2003 PSTricks (http://www.esnips.com/doc/441f8168-4997 ... -Van-Zandt) user's guide by Tim Van Zandt. I am trying to run the following program, (p.165 of that guide) but am not sure if the packages in the preamble are correct.

It appears from the xkeyval documentation (http://www-hep2.fzu.cz/tex/texmf-dist/d ... keyval.pdf) that it overrides keyval. I know xkeyval is an extension of keyval but that that mean it needs keyval or does it work on its own?

Code: Select all

\documentclass[a4paper,12pt]{article}
\usepackage{pstricks} 
%\usepackage{pst-key} 
%\usepackage{pst-xkey} 
\usepackage{xkeyval} 
%\usepackage{keyval}
%\usepackage{xkvltxp}
\begin{document}

% “Start”, “End” and “Value” parameters
\define@key{psset}{Start}{\pst@getint{#1}{\MultTable@Start}}
\define@key{psset}{End}{\pst@getint{#1}{\MultTable@End}}
\define@key{psset}{Value}{\pst@getint{#1}{\MultTable@Value}}
\setkeys{psset}{Start=1,End=5,Value=2}% Default values

% Main macro for “multiplication table” object
\def\MultTable{\def\pst@par{}\pst@object{MultTable}}
\def\MultTable@i{{%
\use@par% Assignment of local parameters
\pst@cnth=\MultTable@End
\advance\pst@cnth-\MultTable@Start
\advance\pst@cnth\@ne
\multido{\iValue=\MultTable@Start+\@ne}{\pst@cnth}{%
\pst@cntg=\iValue
\multiply\pst@cntg\MultTable@Value
\iValue$\times$\MultTable@Value = \the\pst@cntg
\ifnum\multidocount=\pst@cnth\else; \fi}}}

\MultTable

\MultTable[Value=9]

\setkeys{psset}{Value=6}

\MultTable[Start=6,End=11]

\MultTable[Start=19742,End=19742]

\end{document}
As you can see I tried different packages and just commented them out.

Any help would be greatly appreciated,

Shane

Recommended reading 2024:

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

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

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

xkeyval package

Post by localghost »

Refer to the current versions of the manuals. Please use the short URL from CTAN when linking packages. Your problem may be caused by a clash of package version and manual version.


Best regards and welcome to the board
Thorsten¹
ofeyrpf
Posts: 7
Joined: Wed Feb 18, 2009 7:19 pm

xkeyval package

Post by ofeyrpf »

Thanks for your help. Still no luck with compiling. I added the pstricks-add package and pst-xkey to the preamble. I am getting an error after \pst@getint but this is a pstricks macro and detailed in the documentation. So I don't know why it isn't working. Anyone have any ideas?



How do you link to something without writing the full URL.

<a href="http://www.google.ie">Google</a> this obviously doesn't work.

http://www.google.ie that's the same as before.

I can't see how to do it.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

xkeyval package

Post by localghost »

I suggest to write to the PSTricks mailing list. The author himself and the regulars are very helpful in solving issues like this.

If you want to link terms with a certain URL, just use the according button right above the input window. Links and other attributes are done with BBCode. So the code for a link looks a little bit different from HTML.

Code: Select all

[url=http://en.wikipedia.org/wiki/BBCode]BBCode[/url]
ofeyrpf
Posts: 7
Joined: Wed Feb 18, 2009 7:19 pm

xkeyval package

Post by ofeyrpf »

Thanks again for your help. BBcode, very interesting. Now I see how to do it! I have posted to the PsTricks mailing list. Thanks again. Shane
Post Reply