Discussion:
Is ps-text not compatible with xelatex?
(too old to reply)
Jinsong Zhao
2018-01-24 11:31:01 UTC
Permalink
Raw Message
Hi there,

The following code can be compiled by latex->dvips->ps2pdf, however,
when compiled by xelatex, an error would be produced:

Error: /undefined in --load--
Operand stack:
show ***@TextPathSavedShow
....

if exchanging L5 and L6, no error occurred. However, there is no label
$y=a+bx$ along the line.

Any hints? Thanks in advance.

Best regards,
Jinsong

%%% code here %%%
\documentclass{standalone}
\usepackage{pstricks,pst-text,pstricks-add}
\begin{document}
\begin{pspicture}(12,7)
\pstextpath[c](0,5pt){\psplot{1}{10}{0.6 x mul 0.4 sub}}{$y=a+bx$}%L5
\psdots[linecolor=red](7,3.8)%L6
\end{pspicture}
\end{document}
Herbert Voss
2018-01-24 12:18:40 UTC
Permalink
Raw Message
Post by Jinsong Zhao
Hi there,
The following code can be compiled by latex->dvips->ps2pdf, however,
Error: /undefined in --load--
....
if exchanging L5 and L6, no error occurred. However, there is no label
$y=a+bx$ along the line.
Any hints? Thanks in advance.
pst-text does not work with `xelatex`. However, use it this way

\documentclass[pstricks]{standalone}
\usepackage{pst-node}
\begin{document}

\begin{pspicture}(12,7)
\pcline(1,0.2)(10,5.6)\naput[nrot=:U]{$y=a+bx$}
\end{pspicture}

\end{document}

Herbert
Post by Jinsong Zhao
Best regards,
Jinsong
%%% code here %%%
\documentclass{standalone}
\usepackage{pstricks,pst-text,pstricks-add}
\begin{document}
  \begin{pspicture}(12,7)
    \pstextpath[c](0,5pt){\psplot{1}{10}{0.6 x mul 0.4 sub}}{$y=a+bx$}%L5
    \psdots[linecolor=red](7,3.8)%L6
  \end{pspicture}
\end{document}
Jinsong Zhao
2018-01-24 12:54:56 UTC
Permalink
Raw Message
Post by Herbert Voss
Post by Jinsong Zhao
Hi there,
The following code can be compiled by latex->dvips->ps2pdf, however,
Error: /undefined in --load--
....
if exchanging L5 and L6, no error occurred. However, there is no label
$y=a+bx$ along the line.
Any hints? Thanks in advance.
pst-text does not work with `xelatex`. However, use it this way
\documentclass[pstricks]{standalone}
\usepackage{pst-node}
\begin{document}
\begin{pspicture}(12,7)
\pcline(1,0.2)(10,5.6)\naput[nrot=:U]{$y=a+bx$}
\end{pspicture}
\end{document}
Herbert
Thanks a lot.

By the way, does pstricks-add work with xelatex?

In the following code, xelatex could compile it, however the label $e_i$
is in wrong direction.


\documentclass{standalone}
\usepackage{pstricks-add}
\begin{document}

\begin{pspicture}(12,7)\psbrace[ref=rC,rot=180](7.75,5.40)(7.75,4.8861){$e_i$}
\end{pspicture}
\end{document}

Best,
Jinsong
Post by Herbert Voss
Post by Jinsong Zhao
Best regards,
Jinsong
%%% code here %%%
\documentclass{standalone}
\usepackage{pstricks,pst-text,pstricks-add}
\begin{document}
   \begin{pspicture}(12,7)
     \pstextpath[c](0,5pt){\psplot{1}{10}{0.6 x mul 0.4
sub}}{$y=a+bx$}%L5
     \psdots[linecolor=red](7,3.8)%L6
   \end{pspicture}
\end{document}
Herbert Voss
2018-01-24 13:02:39 UTC
Permalink
Raw Message
Post by Jinsong Zhao
By the way, does pstricks-add work with xelatex?
In the following code, xelatex could compile it, however the label $e_i$
is in wrong direction.
your values make no sense:

\documentclass[pstricks]{standalone}
\usepackage{pstricks-add}
\begin{document}

\begin{pspicture}(12,7)
\psbrace[ref=rC](7.75,5.40)(7.75,4){$e_i$}
\end{pspicture}

\end{document}


works

Herbert
Post by Jinsong Zhao
\documentclass{standalone}
\usepackage{pstricks-add}
\begin{document}
\begin{pspicture}(12,7)\psbrace[ref=rC,rot=180](7.75,5.40)(7.75,4.8861){$e_i$}
   \end{pspicture}
\end{document}
Jinsong Zhao
2018-01-24 14:36:10 UTC
Permalink
Raw Message
Post by Herbert Voss
Post by Jinsong Zhao
By the way, does pstricks-add work with xelatex?
In the following code, xelatex could compile it, however the label
$e_i$ is in wrong direction.
\documentclass[pstricks]{standalone}
\usepackage{pstricks-add}
\begin{document}
\begin{pspicture}(12,7)
\psbrace[ref=rC](7.75,5.40)(7.75,4){$e_i$}
\end{pspicture}
\end{document}
however, the output of your codes compiled with latex->dvips->ps2pdf is
not same with that with xelatex. ``rot=180`` is needed by
latex->dvips->ps2pdf to produce the same output.

Best,
Jinsong
Post by Herbert Voss
works
Herbert
Post by Jinsong Zhao
\documentclass{standalone}
\usepackage{pstricks-add}
\begin{document}
\begin{pspicture}(12,7)\psbrace[ref=rC,rot=180](7.75,5.40)(7.75,4.8861){$e_i$}
    \end{pspicture}
\end{document}
Loading...