[pstricks] Bug Report: PointName does not support Chinese characters directly
Donut E. Knot
the.counterterrorist at yahoo.com
Sat Nov 16 10:23:58 CET 2013
Dear folks,
I noticed several months ago that PointName does not support Chinese characters directly. According to Leo Liu (http://tex.stackexchange.com/a/113358/19356), to solve it, we need to wrap the Chinese characters in a box first. The following example shows how we have to do but it seems to be very verbose as we have to type many keystrokes more.
Could you patch pst-eucl to fix this issue?
\documentclass[pstricks,border=12pt]{standalone}
\usepackage{pst-eucl}
\usepackage{CJKutf8}
\newsavebox\IBoxO
\newsavebox\IBoxA
\newsavebox\IBoxB
\newsavebox\IBoxC
\newsavebox\IBoxD
\newsavebox\IBoxE
\begin{document}
\begin{CJK}{UTF8}{bsmi}
\savebox\IBoxO{中}
\savebox\IBoxA{北}
\savebox\IBoxB{南}
\savebox\IBoxC{東}
\savebox\IBoxD{北東部}
\savebox\IBoxE{東北}
\begin{pspicture}[showgrid=false](6,4.25)
\pstGeonode[PosAngle={180,150,155,185},
PointName={\usebox\IBoxO,\usebox\IBoxA,\usebox\IBoxB,\usebox\IBoxC}]
(2,2){O}
([nodesep=2,angle=110]O){A}
([nodesep=2,angle=-70]O){B}
([nodesep=2,angle=-10]O){C}
\nodexn{2(C)-(B)}{D'}
\pnode([offset=3,nodesep=2]{C}O){E'}
\pstInterLL[PosAngle=90,PointName=\usebox\IBoxE]{C}{E'}{A}{D'}{E}
\pstGeonode[PosAngle=50,PointName=\usebox\IBoxD](D'){D}
\pstCircleOA{O}{A}
\pspolygon(A)(B)(D)
\pspolygon(A)(C)(E)
\end{pspicture}
\end{CJK}
\end{document}
Best regards,
D. E. Knot
http://tex.stackexchange.com/users/19356/donut-e-knot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20131116/0fe752cd/attachment.html>
More information about the PSTricks
mailing list