[pstricks] Problem with Seminar

Eftaxiopoulos Dimitrios eftaxiop at central.ntua.gr
Fri Dec 23 10:43:46 CET 2005


Thanks. This worked. I updated the package pstricks. Now, I cannot run the 
sem-dem4.tex sample seminal file. I think the problem is with the commands 
\psset and \pslst. Part of that file is the following

-------------------------------------------------------------------------------------------------------------------------------------------------------------- 

%%%%%%%%%%%%%%%%%%%%%%%%%%% -*- Mode: Latex -*- %%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% sem-dem4.tex --- Seminar demonstration file 4: overlays (II)
%%
%% Author          : Denis GIROU (CNRS/IDRIS - France) <Denis.Girou at idris.fr>
%% Created the     : Fri Nov 30 22:45:10 2001
%% Last mod. by    : Denis GIROU (CNRS/IDRIS - France) <Denis.Girou at idris.fr>
%% Last mod. the   : Wed Jun 19 19:11:18 2002
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\def\SeminarColorVersion{y} % To force the color or black/white version
\def\SeminarPaperVersion{n} % To force the paper or screen version

\documentclass{seminar}

\usepackage{listings}           % Formatting of source programs
\usepackage{sem-dem}            % General utility macros for these demo files

% Identification of the file (varying parameters)
\def\FileDate{June 2002}
\def\FileInfoB{Overlays (II)}
\def\FileVersion{1.0}
\HyperSetUp

% A button to go to a complete slide built with overlays
\def\ButtonEndSlide{%
\rput[r](0,0){%
\psframebox[unit=0.2,linestyle=none,framearc=1,framesep=0.2,
            fillstyle=solid,fillcolor=yellow]{%
  \hyperlink{hyp-EndSlide-\theslide}{\tiny End of slide}}}}

\setkeys{psset}{%
AnnotationTextStyle={\scriptsize\itshape
                     \ifx\SeminarColorVersion\AnswerYes\color{blue}\fi}}

\def\PstAnnotationMove#1#2{%
\setkeys{psset}{%
AnnotationPositionY=#1,AnnotationConnectionCommand=\ncdiagg,
AnnotationConnectionSpecialStyle={angleA=180,armA=#2}}}

\begin{document}

\SeminarFirstSlide

\SeminarListOfSlides

% Background
\ifx\SeminarColorVersion\AnswerYes
  \renewcommand{\SeminarBackgroundGradientColorBegin}{PeachPuff}
  \renewcommand{\SeminarBackgroundGradientColorEnd}{LemonChiffon}
  \SeminarSlideFrameBackground{SeminarBackgroundGradientSlope}
\fi

\begin{slide}
  \vspace*{\stretch{1}}         % To have the footnotes at the bottom
  \slideheading{Introduction}

  \begin{dinglist}{\DingListSymbolA}
    \item If the talk is related to computing science, we must often show the
    contents of some programs. The `\textsf{listings}' package is very useful
    and powerful for such tasks, used alone or both with the
    `\textsf{fancyvrb}' one as we do here.

    \item This is also useful to be able to use \HLe{overlays} to emphasize
    some lines of the codes. This is possible both with `\textsf{fancyvrb}'
    and `\textsf{listings}'\footnote{Thanks to Carsten \textsc{Heinz} to have
    added in his package a special mechanism to interact with the overlay
    feature of Seminar.}, using their escape mechanisms to execute some
    commands put inside verbatim material.

    \item We also add a macro to be able to put annotations on a text
    previously shown. This is specially useful to comment interactively things
    like equations and codes, putting them also in overlays. We give examples
    for this two cases.
  \end{dinglist}
  \vspace{\stretch{1}}          % To have the footnotes at the bottom
\end{slide}

% We add an hyperlink to be able to go directly to the last overlay
% (\before at newslide rather than \slide at hook to have it working also
% with \newslide)
\makeatletter
\addto at hook{\before at newslide}{\hypertarget{hyp-EndSlide-\theslide}{}}
\makeatother

\ifx\SeminarPaperVersion\AnswerYes
\else
  \newslideframe{SeminarBackgroundEndSlide}{%
    \boxput(1.03,-0.99){\ButtonEndSlide}{#1}}
  \slideframe{SeminarBackgroundEndSlide}
\fi

\SeminarAltCumulativeOverlays   % Cumulative overlays with PSTricks nodes

\begin{slide}
  \slideheading{Equations with (cumulative) annotations}
  \vspace{4mm}

  \Large\bfseries
  \centerline{A formula for $\Pi$ from Leonhard Euler}

  \begin{eqnarray*}
    \Pi & {\overlay{1}=} & {\overlay{1}\rnode{NodeA}{\sqrt{6}}}%
                           {\overlay{2}\times
                              \sqrt{%
                                {\overlay{3}  \rnode{NodeB}{1}}%
                                {\overlay{4}+ \rnode{NodeC}{\frac{1}{4}}}%
                                {\overlay{5}+ \rnode{NodeD}{\frac{1}{9}}}%
                                {\overlay{6}+ \rnode{NodeE}{\frac{1}{16}}}%
                                {\overlay{7}+ \cdots}}}\\[2cm]
        & {\overlay{8}=} & {\overlay{8}\left( 6\, \sum_{n=1}^{\infty}
                                                    \frac{1}{n^2} \right)
                                         ^\frac{1}{2}}%
  \end{eqnarray*}
%
\psset{AnnotationPositionX=13.8,AnnotationBoxLength=2.5cm,
       AnnotationConnectionCommand=\ncangle,
       AnnotationConnectionSpecialStyle={angleA=180,angleB=-90}}%
{\overlay{1}\PstAnnotation[AnnotationPositionY=1,
                           AnnotationConnectionSpecialStyle={%
                             angleA=180,angleB=90}]{NodeA}{= 2.44949}}%
\psset{AnnotationBoxStyle={linecolor=red,linewidth=0.015,
                           framesep=0.05,fillstyle=solid,fillcolor=yellow}}%
{\overlay{3}\PstAnnotation[AnnotationPositionY=-0.7]
                          {NodeB}{1\hphantom{.11111} $\Longrightarrow$ 
2.44949}}%
{\overlay{4}\PstAnnotation[AnnotationPositionY=-1.2]
                          {NodeC}{1.25\hphantom{111} $\Longrightarrow$ 
2.73861}}%
{\overlay{5}\PstAnnotation[AnnotationPositionY=-1.7]
                          {NodeD}{1.36111 $\Longrightarrow$ 2.85774}}%
{\overlay{6}\PstAnnotation[AnnotationPositionY=-2.2]
                          {NodeE}{1.42361 $\Longrightarrow$ 2.92261}}%
\end{slide}

\SeminarCumulativeOverlays

\begin{slide}
  \slideheading{Listing with (progressive) annotations}

  \begin{dinglist}{\DingListSymbolA}
    \item From a manual to introduce to parallel programming with the MPI
    library
    \item First with overlays but without annotations, just using the features
    of the `\textsf{fancyvrb}' package
  \end{dinglist}

\begin{verbatim}
program WhoAmI
  implicit none
  include 'mpif.h'
  integer :: nb_procs,rank,code

  overlay1call MPI_INIT(code)

  overlay3call MPI_COMM_SIZE(MPI_COMM_WORLD,nb_procs,code)
  overlay4call MPI_COMM_RANK(MPI_COMM_WORLD,rank,code)

  print *,'I am process ',rank,' among ',nb_procs

  overlay2call MPI_FINALIZE(code)
end program WhoAmI
\end{verbatim}
\end{slide}

% `listings' customizations
\newcommand{\srMPI}[1]{\texttt{\HLCBWd{#1}}}
\newcommand{\cteMPI}[1]{\texttt{\HLCBWb{#1}}}
\ifx\SeminarColorVersion\AnswerYes
  \newcommand{\HLComment}{\color{magenta}}
\else
  \newcommand{\HLComment}{\itshape}
\fi
% In `listings' 0.21, use stringspaces=false
% \lstset{extendedchars=true,stringspaces=false,fancyvrb=true,
\lstset{extendedchars=true,showstringspaces=false,fancyvrb=true,
        flexiblecolumns=false,basewidth={0.62em,0.45em},
        morefvcmdparams={\pnodeLstDown1,\pnodeLstUp1,\rnodeLst3},
        language=MPI-1,keywordstyle=\srMPI,emphstyle=[1]{\cteMPI},
        commentstyle=\HLComment}

------------------------------------------------------------------------------------------------------------------------------------------------------------
and the error output is the following
------------------------------------------------------------------------------------------------------------------------------------------------------------


*****     LaTeX output: 
*****     cd 
'/home/eftaxiop/mydocuments/genika/software/presentations/sem-dem4'
*****     latex -interaction=nonstopmode 'sem-dem4.tex'
*****
This is e-TeX, Version 3.14159-2.1 (Web2C 7.4.5)
entering extended mode
(./sem-dem4.tex
LaTeX2e 
Babel  and hyphenation patterns for american, french, german, ngerman, b
ahasa, basque, catalan, croatian, czech, danish, dutch, finnish, greek, 
iceland
ic, irish, italian, latin, magyar, norsk, norsk, portuges, romanian, russian, 
s
lovak, slovene, spanish, swedish, turkish, ukrainian, nohyphenation, loaded.
(/usr/share/texmf/tex/latex/seminar/seminar.cls
Document Class: seminar 1997/10/13, 1.4
Document Style: `seminar' v1.4  (tvz)
(/usr/share/texmf/tex/latex/base/article.cls
Document Class: article 2001/04/21 v1.4e Standard LaTeX document class
(/usr/share/texmf/tex/latex/base/size10.clo))
(/usr/share/texmf/tex/latex/seminar/sem-page.sty)) (./seminar.con
seminar.con file: example of customization of the Seminar document class
(Version 3.1 of  (D.G.))
(/usr/share/texmf/tex/latex/tools/calc.sty)
(/usr/share/texmf/tex/latex/caption/caption2.sty)
(/usr/share/texmf/tex/latex/misc/fancybox.sty
Style option: `fancybox' v1.3  (tvz)
) (/usr/share/texmf/tex/latex/fancyhdr/fancyhdr.sty)
(/usr/share/texmf/tex/latex/fancyvrb/fancyvrb.sty
Style option: `fancyvrb' v2.7, with DG/SPQR fixes  (tvz)
(/usr/share/texmf/tex/latex/graphics/keyval.sty))
(/usr/share/texmf/tex/latex/pstricks/pstricks.sty
(/usr/share/texmf/tex/generic/pstricks/pstricks.tex
`PSTricks' v1.12   (tvz)
(/usr/share/texmf/tex/generic/pstricks/pstricks.con))
(/usr/share/texmf/tex/latex/graphics/color.sty
(/usr/share/texmf/tex/latex/config/color.cfg)
(/usr/share/texmf/tex/latex/graphics/dvips.def)
(/usr/share/texmf/tex/latex/graphics/dvipsnam.def)))
(/usr/share/texmf/tex/latex/graphics/graphicx.sty
(/usr/share/texmf/tex/latex/graphics/graphics.sty
(/usr/share/texmf/tex/latex/graphics/trig.sty)
(/usr/share/texmf/tex/latex/config/graphics.cfg)))
(/usr/share/texmf/tex/generic/multido/multido.sty
(/usr/share/texmf/tex/generic/multido/multido.tex  v1.4, 93/01/14 ))
(/usr/share/texmf/tex/latex/psnfss/pifont.sty
(/usr/share/texmf/tex/latex/psnfss/upzd.fd)
(/usr/share/texmf/tex/latex/psnfss/upsy.fd))
(/usr/share/texmf/tex/latex/pstricks/pst-fr3d.sty
(/usr/share/texmf/tex/generic/pstricks/pst-fr3d.tex
(/usr/share/texmf/tex/generic/xkeyval/pst-xkey.tex
(/usr/share/texmf/tex/latex/xkeyval/xkeyval.sty
(/usr/share/texmf/tex/generic/xkeyval/xkeyval.tex)))
`Pst-FrameBox3d' v1.01, 2004/11/14 (Denis Girou)))
(/usr/share/texmf/tex/latex/pstricks/pst-grad.sty
(/usr/share/texmf/tex/generic/pstricks/pst-grad.tex  v97 patch 1, 1997/04/28))
(/usr/share/texmf/tex/latex/pstricks/pst-node.sty
(/usr/share/texmf/tex/generic/pstricks/pst-node.tex  v97 patch 11, 
2000/11/09))
 (/usr/share/texmf/tex/latex/pstricks/pst-slpe.sty
(/usr/share/texmf/tex/generic/pstricks/pst-slpe.tex  v1.0, 98/09/15))
(/usr/share/texmf/tex/latex/seminar/semcolor.sty
Style Option: `semcolor' for doc style `seminar' 1.0  (tvz)
(/usr/share/texmf/tex/generic/pstricks/pstricks.tex))
(/usr/share/texmf/tex/latex/seminar/semhelv.sty
Style Option: `semhelv' for the `seminar' doc style 1.4  (tvz)
Modified by Stefan (see source for details)
) (/usr/share/texmf/tex/latex/seminar/semlayer.sty)
(/usr/share/texmf/tex/latex/seminar/slidesec.sty
File `slidesec.sty' v0.9  92/05/07  
) (/usr/share/texmf/tex/generic/thumbpdf/thumbpdf.sty (./thumbpdf.cfg)
(./sem-dem4.tpm)) (/usr/share/texmf/tex/latex/misc/truncate.sty)
(/usr/share/texmf/tex/latex/misc/url.sty)
(/usr/share/texmf/tex/latex/seminar/seminar.bug) (./seminar.bg2
seminar.bg2: various corrections for the Seminar document class
added since seminar.bug and few add-ons for overlays
(Version 2.1 of  (D.G.))
) (/usr/share/texmf/tex/latex/hyperref/hyperref.sty
(/usr/share/texmf/tex/latex/hyperref/pd1enc.def)
(/usr/share/texmf/tex/latex/config/hyperref.cfg)
Implicit mode ON; LaTeX internals redefined
)
*hyperref using default driver hdvips*
(/usr/share/texmf/tex/latex/hyperref/hdvips.def
(/usr/share/texmf/tex/latex/hyperref/pdfmark.def))
(/usr/share/texmf/tex/latex/fancyvrb/hcolor.sty
`hcolor' v1.4, 1998/03/19 (Denis Girou))
(/usr/share/texmf/tex/latex/seminar/sem-a4.sty
(/usr/share/texmf/tex/latex/seminar/sem-page.sty)))
(/usr/share/texmf/tex/latex/listings/listings.sty
(/usr/share/texmf/tex/latex/listings/lstpatch.sty)
(/usr/share/texmf/tex/latex/listings/lstmisc.sty)
(/usr/share/texmf/tex/latex/config/listings.cfg)) (./sem-dem.sty)
(./sem-dem4.aux) (/usr/share/texmf/tex/latex/hyperref/nameref.sty)
(./sem-dem4.out) (./sem-dem4.out) [1] (./sem-dem4.los) [2] [3]
Overfull \hbox (1.73842pt too wide) in paragraph at lines 95--97
[][][][][][][][][][][][][]   

! Package xkeyval Error: `AnnotationPositionX' undefined in families 
`,pst-fr3d
'.

See the xkeyval package documentation for explanation.
Type  H   for immediate help.
 ...                                              
                                                  
l.117 ...tionSpecialStyle={angleA=180,angleB=-90}}
                                                  %

! Package xkeyval Error: `AnnotationBoxLength' undefined in families 
`,pst-fr3d
'.

See the xkeyval package documentation for explanation.
Type  H   for immediate help.
 ...                                              
                                                  
l.117 ...tionSpecialStyle={angleA=180,angleB=-90}}
                                                  %

! Package xkeyval Error: `AnnotationConnectionCommand' undefined in families 
`,
pst-fr3d'.

See the xkeyval package documentation for explanation.
Type  H   for immediate help.
 ...                                              
                                                  
l.117 ...tionSpecialStyle={angleA=180,angleB=-90}}
                                                  %

! Package xkeyval Error: `AnnotationConnectionSpecialStyle' undefined in 
famili
es `,pst-fr3d'.

See the xkeyval package documentation for explanation.
Type  H   for immediate help.
 ...                                              
                                                  
l.117 ...tionSpecialStyle={angleA=180,angleB=-90}}
                                                  %

! Package xkeyval Error: `AnnotationBoxStyle' undefined in families 
`,pst-fr3d'
.

See the xkeyval package documentation for explanation.
Type  H   for immediate help.
 ...                                              
                                                  
l.122 ...p=0.05,fillstyle=solid,fillcolor=yellow}}
                                                  %
[4] [4] [4] [4] [4] [4] [4] [4] [4]

LaTeX Warning: Slide 5 overfull by 9.84746pt on input line 160.

[5] [6] (/usr/share/texmf/tex/latex/listings/lstmisc.sty)
(/usr/share/texmf/tex/latex/listings/lstlang1.sty)
(/usr/share/texmf/tex/latex/listings/lstlang2.sty)
(/usr/share/texmf/tex/latex/listings/lstlang3.sty)

! Package Listings Error: Couldn't load requested language.

See the Listings package documentation for explanation.
Type  H   for immediate help.
 ...                                              
                                                  
l.177         commentstyle=\HLComment}
                                      

! Package Listings Error: language mpi-1 undefined.

See the Listings package documentation for explanation.
Type  H   for immediate help.
 ...                                              
                                                  
l.177         commentstyle=\HLComment}
                                      




More information about the PSTricks mailing list