# [pstricks] Graphs within list environment

bereket T bermaths at yahoo.com
Sat Nov 24 16:49:30 CET 2007

Hi Everyone:

I am trying to use PStricks graphs within a list
environment. However, I am not happy with they way it
looks. Particularly, the position of the numbering in
relation to the graphs. I wish also to put the graphs
side by side so that I can save some space.

I have also the same problems with equations and
matrices in latex. Does someone have any idea on how
to go around this problem.

I have included an example.

Thanks very much.

Bereket

\documentclass[11pt]{article}

%Axes sytle settings
\newpsstyle{plainAxes}{arrows=->,ticks=none}
%,linecolor=red
\newpsstyle{tickedAxes}{arrows=->,ticksize=3pt
-3pt,labels=none}
\newpsstyle{labeledAxes}{arrows=->,ticksize=2pt
-2pt,labelsep=2.5pt,labelFontSize=\footnotesize}

%Plot style setting
\newpsstyle{myplotsytle}{plotpoints=50,linewidth=1pt}
\newpsstyle{algeline}{algebraic,style=myplotsytle,plotstyle=line}
\newpsstyle{algecurve}{algebraic,style=myplotsytle,plotstyle=curve}

\begin{document}

Which of the following graphs represent the graph of a
function.
\begin{enumerate}
\item
\begin{psgraph*}[style=plainAxes,xAxisLabel=\textit{x}](0,0)(-2.5,-2.5)(2.5,2.5){5cm}{!}
\psplot[style=algeline]{-2.5}{2.5}{x + 1}
\end{psgraph*}

\item
\begin{psgraph*}[style=plainAxes,xAxisLabel=\textit{x}](0,0)(-2.5,-2.5)(2.5,2.5){5cm}{!}
\psplot[style=algeline,swapaxes=true]{-2.5}{2.5}{x^2-1}
\end{psgraph*}

\item
\begin{psgraph*}[style=plainAxes,xAxisLabel=\textit{x}](0,0)(-2.5,-2.5)(2.5,2.5){5cm}{!}
\psplot[style=algeline]{-2.5}{2.5}{x^3}
\end{psgraph*}

\item
\begin{psgraph*}[style=plainAxes,xAxisLabel=\textit{x}](0,0)(-2.5,-2.5)(2.5,2.5){5cm}{!}
\psplot[style=algeline]{-2.5}{2.5}{abs(x)}
\end{psgraph*}
\end{enumerate}

\end{document}

____________________________________________________________________________________