[pstricks] Graphs within list environment

Doris Wagner doris.wagner at mac.com
Sat Nov 24 22:06:51 CET 2007


hi bereket,

if you want to save space, I would not use the enumerate-environment.  
try this:
\documentclass[11pt]{article}
\usepackage{pstricks,pst-plot,pstricks-add}

%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}


\newcounter{mycounter}\setcounter{mycounter}{1}

\begin{document}

(\arabic{mycounter})\stepcounter{mycounter}
\raisebox{ 
-5cm}{\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*}
}%end raisebox
\arabic{mycounter}\stepcounter{mycounter}
\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*}
\arabic{mycounter}\stepcounter{mycounter}
\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*}
\arabic{mycounter}\stepcounter{mycounter}
\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{document}
  




More information about the PSTricks mailing list