[pstricks] \psset{linestyle=dashed} persisting

Alex Dickson Alex.Dickson at manchester.ac.uk
Tue Sep 20 16:55:54 CEST 2005


Hi!
When I invoke dashed linestyle with \psset{linestyle=dashed} it cannot be reversed with \psset{linestyle=solid}: the linestyle stays dashed!  Help!  An example is...

\documentclass[a4,portrait]{seminar}

%%Implement packages
\usepackage{fancybox}
\usepackage{amsthm}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{pstricks,pst-plot,pst-node}
%\usepackage{pstcol}
\usepackage{semcolor}

%%Set the slideframe type
        %%shadow
        %%double
        %%oval
        %%Oval
%\slideframe{empty}

%%Set the slide magnification
\slidesmag{4}


%\setlength{\slidewidth}{18cm}
%\setlength{\slideheight}{26cm}

\newcommand{\shorttitle}{A. Dickson}

%%Define the pagestyle (title in left header, page # on right)
\newpagestyle{slides}
{\scshape \shorttitle \hfill\rightmark \hfill\thepage}{}%
\pagestyle{slides}

%\newpagestyle{figures}
%{\scshape \shorttitle \hfill}{}

%%Theorem declarations
\newtheorem*{theorem}{Theorem}
\newtheorem*{lemma}{Lemma}
\newtheorem*{proposition}{Proposition}
\newtheorem*{example}{Example}
\newtheorem*{assumption}{Assumption}

%%Define a heading box for slides
\newcommand{\heading}[1]{
  \begin{center}
    \large\sc
    \ovalbox{#1}%
  \end{center}
  \vspace{1ex minus 1ex}}


%%Let's start
\begin{document}
\begin{slide*}
Consider the lottery $[(x_1,1/2),(x_2,1/2)]$

Risk averse
\begin{center}\scalebox{0.7}{
\begin{pspicture}(-1,-1)(5,5)
\psaxes[linewidth=0.5mm,labels=none,ticks=none](5,5)
\rput(5,-0.5){$x$}
\rput(-0.5,5){$u$}
\pscurve[linewidth=0.3mm](0,0)(1,2)(1.8,3)(2.5,3.5)(4,4)(5,4.1)
\psset{linestyle=dashed}
\psline(1,2)(4,4)
\psline(1,2)(1,0)
\psline(1,2)(0,2)
\psline(4,4)(4,0)
\psline(4,4)(0,4)
\psline(2.5,3.5)(2.5,0)
\psline(2.5,3)(0,3)
\psline(2.5,3.5)(0,3.5)
\psline(1.8,3)(1.8,0)
\rput(1,-0.5){\footnotesize{$x_1$}}
\rput(1.7,-0.5){\footnotesize{$CE(L)$}}
\rput(2.7,-0.5){\footnotesize{$EV(L)$}}
\rput(4,-0.5){\footnotesize{$x_2$}}
\rput(-0.5,2){\footnotesize{$u(x_1)$}}
\rput(-0.5,3){\footnotesize{$EV(L)$}}
\rput(-0.7,3.5){\footnotesize{$u(EV(L))$}}
\rput(-0.5,4){\footnotesize{$u(x_2)$}}
\end{pspicture}
}\end{center}

++ Risk loving...
\begin{center}\scalebox{0.7}{
\begin{pspicture}(-1,-1)(5,5)
\psset{linestyle=solid}
\psaxes[linewidth=0.5mm,labels=none,ticks=none](5,5)
\end{pspicture}
}\end{center}
\end{slide*}

\begin{slide*}
\heading{Analysis Under EUT}
\begin{itemize}
\item Two states of nature; 1 and 2
\item Uncertainty because state that will be realised is uncertain
\item State 1 with probability $p_1$, state 2 with probability $p_2$
\item In state 1 get $x_1$, in state 2 get $x_2$
\item Lottery: $L=[(x_1,p_1),(x_2,p_2)]$
\end{itemize}
\end{slide*}
\end{document}

Many thanks if you can help!
Alex.




More information about the PSTricks mailing list