我在使用 PSTricks 和 时遇到了问题\psaxes
。我更新了 PSTricks 包。以下代码:
\documentclass[a4paper,11pt,oneside]{book}
\usepackage{pstricks-add}
\begin{document}
Essai de graphe
\newrgbcolor{qqwuqq}{0. 0.39215686274509803 0.}
\psset {xunit=1.0cm,yunit=1.0cm,algebraic=true,dimen=middle,dotstyle=o,dotsize=5pt 0,linewidth=0.8pt,arrowsize=3pt 2,arrowinset=0.25}
\begin{pspicture*}(-3.,-5.)(4.,9.)
\psaxes[labelFontSize=\scriptstyle,xAxis=true,yAxis=true,Dx=1.,Dy=1.,ticksize=-2pt 0,subticks=2]{->}(0,0)(-3.,-5.)(4.,9.)
\psplot[linewidth=1.2pt,linecolor=qqwuqq,plotpoints=200]{-3.0}{10.0}{3.0*x+2.0}
\begin{scriptsize}
\rput[bl](-3.1,-7.88){\qqwuqq{$f$}}
\end{scriptsize}
\end{pspicture*}
\end{document}
产生错误:
Overfull \hbox (85.35823pt too wide) detected at line 11
[] [] []
[]
Underfull \hbox (badness 10000) detected at line 11
[] [] []
[]
更新后。更新前我没有遇到过这个问题。我该怎么办?
答案1
使用最新版本则pst-plot
没有问题。顺便说一句,您从 GeoGebra 导出的示例存在错误。应该是:
\documentclass{book}
\usepackage{pst-plot}
\begin{document}
Essai de graphe
\definecolor{qqwuqq}{rgb}{0. 0.392 0.}
\psset{algebraic,dimen=middle,dotstyle=o,dotsize=5pt 0,linewidth=0.8pt,
arrowsize=3pt 2,arrowinset=0.25}
\begin{pspicture*}(-3.,-5.)(4.,9.)
\psaxes[labelFontSize=\scriptstyle,ticksize=-2pt 0,subticks=2]{->}(0,0)(-3.,-5.)(4.,9.)
\psplot[linewidth=1.2pt,linecolor=qqwuqq,plotpoints=200]{-3.0}{10.0}{3.0*x+2.0}
\rput[bl](-3.1,-7.88){\scriptsize\textcolor{qqwuqq}{$f$}}
\end{pspicture*}
\end{document}