[pstricks] pst-solides3d conflict?

David Arnold dwarnold45 at suddenlink.net
Sat Jun 27 17:05:21 CEST 2009


Marco et al,

Yep. Here is my example:

\documentclass{article}

\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{pstricks}
\usepackage{pst-bar}
\usepackage{pst-plot}
\usepackage{pst-tree}
\usepackage{pst-eucl}
\usepackage{pst-solides3d}
\usepackage{pstricks-add}

\SpecialCoor

\usepackage{xcolor}
\definecolor{shadecolor}{gray}{0.9}
\definecolor{darkgreen}{rgb}{0,0.625,0}
\definecolor{darkred}{rgb}{0.625,0,0}

\begin{document}

\psset{unit=0.25}
\begin{pspicture}(-11,-11)(11,11)
\psgrid[gridlabels=0pt,gridcolor=lightgray,subgriddiv=1](0,0)(-10,-10) 
(10,10)
\psaxes[arrowscale=1.5,arrows=<->,ticks=none](0,0)(-11,-11)(11,11)
\uput[0](11,0){$x$}
\uput[270](10,0){10}
\uput[270](-10,0){$-10$}
\uput[90](0,11){$y$}
\uput[180](0,10){10}
\uput[180](0,-10){$-10$}
\psplot[linecolor=blue,algebraic=true,arrows=<->,arrowscale=1.5]{-7.5} 
{2.5}{2*x+5}
\end{pspicture}

\end{document}

Crashes with:

! You can't use `macro parameter character #' in restricted horizontal  
mode.
\in@ #1#2->\def \in@@ ##1#1##
                              2##3\in@@ {\ifx \in@ ##2\in at false \else  
\in at tru...
l.32 ...rows=<->,arrowscale=1.5]{-7.5}{2.5}{2*x+5}

?

It compiles if you comment out \usepackage{pst-solides3d}.

David



On Jun 27, 2009, at 2:03 AM, Marco Daniel wrote:

> Hello,
>
>
> i do not know the reason but it helps when you use the option  
> algebraic with out any key:
>
> \documentclass{article}
> \usepackage{hyperref}
> \usepackage{pifont}
> % \newsubfloat{figure}
> % \newsubfloat{table}
> \usepackage{graphicx}
> \usepackage{amsmath}
> \usepackage{amssymb}
> \usepackage{pstricks}
> \usepackage{pst-bar}
> \usepackage{pst-plot}
> \usepackage{pst-tree}
> \usepackage{pst-eucl}
> \usepackage{pst-solides3d}
> \usepackage{pstricks-add}
>
>
> \begin{document}
> \begin{psgraph}[labels=none,ticks=none](0,0)(-8,-20)(3,10){10cm}{10cm}
> \psplot[linecolor=blue,algebraic,arrows=<->,arrowscale=1.5]{-7.5} 
> {2.5}{2*x+5}
>
> \end{psgraph}
> \end{document}
>
> regards
> Marco
>
>
> _______________________________________________
> PSTricks mailing list
> PSTricks at tug.org
> http://tug.org/mailman/listinfo/pstricks

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20090627/4e5850f9/attachment.html>


More information about the PSTricks mailing list