[pstricks] Replacing \psdots with \pscircle
Shailesh Shirali
shailesh.shirali at gmail.com
Sun Dec 4 23:15:40 CET 2016
Dear Herbert and Patrice,
Many thanks for both your replies.
@Herbert: I will convey to the publisher what you have said.
@Patrice: is it possible to redefine, using \newpsfontdot,
- \psdot[dotstyle=*]
- \psdot[dotstyle=o]
using the technique you have mentioned? I unfortunately am not familiar
with the syntax you have used and am not able to redefine the macros on my
own. (I do not have a copy of Herbert's book.)
Thanks in advance,
Shailesh Shirali
On Thu, Dec 1, 2016 at 11:04 PM, <pstricks-request at tug.org> wrote:
> Send PSTricks mailing list submissions to
> pstricks at tug.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://tug.org/mailman/listinfo/pstricks
> or, via email, send a message with subject or body 'help' to
> pstricks-request at tug.org
>
> You can reach the person managing the list at
> pstricks-owner at tug.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of PSTricks digest..."
>
>
> Today's Topics:
>
> 1. Replacing \psdots with \pscircle (Shailesh Shirali)
> 2. Re: Replacing \psdots with \pscircle (Herbert Voss)
> 3. Re: Replacing \psdots with \pscircle (Patrice MEGRET)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 1 Dec 2016 19:04:03 +0530
> From: Shailesh Shirali <shailesh.shirali at gmail.com>
> To: pstricks at tug.org
> Subject: [pstricks] Replacing \psdots with \pscircle
> Message-ID:
> <CAFCB=yOLbkh-AgZqbwf+921fa-Tck+0Kz__JDat0UQVpTZ33ww at mail.
> gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Dear friends,
>
> I am writing an ebook on precalculus topics. My publisher, on seeing the
> draft PDF, has told me that there is a difficulty with Type 3 fonts (with
> regard to their resolution on tablet screens). I quote from their email:
>
> *"Type 3 fonts are special in the sense that they are not limited to the
> restrictions placed on Type 1 fonts and can contain more postscript
> commands. In Type 3 fonts the character shapes are defined using ordinary
> PostScript language routines, so they are easy to create. Type 3 fonts are
> also more flexible in their definition as a result.*
>
> *In your document all Type 3 fonts are embedded.*
>
> *When looking at your pdf I noticed that all references to Type 3 fonts
> consisted of 2 glyphs, /Circle and /Bullet (I could find where they were
> defined but I could not identify where they were used).*
>
> *I moved backwards in the chain looking at the ps file used to make the pdf
> for more clues. I noticed in the compiled postscript from the DVI file
> that the pstricks package you have used in your sources is most likely
> where the difficulty has occurred.*
>
> *Reading this (*https://ergodicity.net/2006/09/27/pstricks-and-type-3-
> fonts/*)
> article I came to the conclusion that replacing \psdots with \pscircle may
> help to eliminate this problem.*
>
> Could you please let me know whether this is feasible at all (replacing
> \psdots with \pscircle)? I have my doubts because the number of arguments
> in the two macros is not the same.
>
> I have not provided a MWE, owing to the general nature of this question;
> but I could provide one if so required.
>
> Thank you.
>
> Sincerely,
> Shailesh Shirali
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://tug.org/pipermail/pstricks/attachments/20161201/
> 06410eaa/attachment-0001.html>
>
> ------------------------------
>
> Message: 2
> Date: Thu, 1 Dec 2016 15:33:56 +0100
> From: Herbert Voss <Herbert.Voss at FU-Berlin.DE>
> To: pstricks at tug.org
> Subject: Re: [pstricks] Replacing \psdots with \pscircle
> Message-ID: <f94d5121-b84f-0d9d-aa56-7aaf4882d96d at FU-Berlin.DE>
> Content-Type: text/plain; charset=windows-1252; format=flowed
>
> Am 01.12.2016 um 14:34 schrieb Shailesh Shirali:
>
> > I am writing an ebook on precalculus topics. My publisher, on seeing the
> > draft PDF, has told me that there is a difficulty with Type 3 fonts
> > (with regard to their resolution on tablet screens). I quote from their
> > email:
> >
> > /When looking at your pdf I noticed that all references to Type 3 fonts
> > consisted of 2 glyphs, /Circle and /Bullet (I could find where they were
> > defined but I could not identify where they were used)./
>
> /Circle and /Bullet are defined "on the fly" when loading pstricks.
> There definitions can be seen in pst-dots.pro. For example
> for /Bullet
>
> /CirclePath {0 0 500 0 360 arc closepath} def
> /Bullet {CirclePath fill} def
>
> It is _absoluteley_ no problem to use this internal defined
> type 3 font, also known as a softfont, because it doesn't
> use any special PostScript command and it is a vector font
> just like other Type 1 fonts.
>
> > /I moved backwards in the chain looking at the ps file used to make the
> > pdf for more clues. I noticed in the compiled postscript from the DVI
> > file that the pstricks package you have used in your sources is most
> > likely where the difficulty has occurred./
> > /
>
> It is a problem with the software of the pre-press PDF validity checker!
>
> Herbert
>
> ------------------------------
>
> Message: 3
> Date: Thu, 1 Dec 2016 17:34:37 +0000
> From: Patrice MEGRET <Patrice.MEGRET at umons.ac.be>
> To: Graphics with PSTricks <pstricks at tug.org>
> Subject: Re: [pstricks] Replacing \psdots with \pscircle
> Message-ID:
> <8EAD3A11C751924B9AB951FA32FD86EB95BA735F at EXCHANGEDB4.umons.ac.be>
> Content-Type: text/plain; charset="utf-8"
>
> Dear Shailesh,
>
> I already had the same trouble for publication in journal.
>
> I used \psdot to plot the date with psdot style such as otimes, Oplus, ?
> but the publisher refuses because of T3 fonts (but perfectly vectorial and
> scalable !).
> So I solve the problem (Thanks to Herbert, see Herbert?s book, chapter 6 )
> by using \newpsfontdot to redefine otimes, oplus, ? in a T1 fonts.
>
> See the example below:
> the first figure is made from the classical psdot style ==> T3 fonts in
> the pdf
> the second figure only use T1 fonts ==> if you compile only fig 2, you
> will see there is no longer T3 fonts
> both figure are the same
>
> You can probably do the same trick for your publication.
>
> Bets regards,
> Patrice
>
> \documentclass{article}
>
> \usepackage{t1enc}
> \usepackage[latin1]{inputenc}
>
>
> \usepackage{pstricks}
> \usepackage{pst-node}
> \usepackage{siunitx}
> \usepackage{pstricks-add}
>
> \newpsfontdot{pmCMultiply}[2 0 0 2 -.78 -.7]{Symbol}{<C4>}
> \newpsfontdot{pmCPlus}[2 0 0 2 -.78 -.7]{Symbol}{<C5>}
> \newpsfontdot{pmLosange}[2 0 0 2 -.78 -.5]{Symbol}{<A8>}
> \newpsfontdot{pmPoint}[2 0 0 2 -.5 -.7]{Symbol}{<B7>}
>
>
> \begin{document}
>
> \begin{figure}[!t]
> \savedata{\datacconcreta}[{%
> {1, 22.7}%
> {2, 33.1}%
> {3, 41.3}%
> {7, 53.4}%
> {14, 58.7}%
> {28, 61.7}%
> }]
>
> \savedata{\datacconcretb}[{%
> {1, 23.4}%
> {2, 39.1}%
> {3, 45.2}%
> {7, 52.1}%
> {25, 61.7}%
> {28, 61.7}%
> {30, 62.2}%
> }]
> \centering
> \psset{llx=-1.1cm,lly=-0.8cm,ury=0.1cm,labelFontSize=\
> scriptsize,mathLabel=false,xAxisLabel={Days},xAxisLabelPos={c,-0.6cm},yAxisLabel={$f_{cm,cub150}$
> (\si{\mega\pascal})},yAxisLabelPos={-0.9cm,c}}
> \rput[lb](5,1){%
> \tiny
> \begin{tabular}{ll}
> \psdot[linecolor=orange,dotstyle=SolidDiamond](0,0.05) & B-FM \\
> \psdot[linecolor=blue,dotstyle=Oplus](0,0.07) & B-TM1 \\
> \psdot[linecolor=black,dotstyle=otimes](0,0.07) & B-TM2 \\
> \end{tabular}
> }
> \begin{psgraph*}[Dx=5,Dy=10,Oy=20,ticklinestyle=dotted,xticksize=0
> 50,yticksize=0 35]{->}(0,20)(37,76){10cm}{5cm}
> \listplot[showpoints=true,linecolor=orange,dotstyle=
> pmLosange,plotstyle=line]{\datacconcreta} %
> \listplot[showpoints=true,linecolor=blue,dotstyle=
> pmCPlus,plotstyle=line]{\datacconcretb} %
> \psdot[dotstyle=pmCMultiply](33,54.5)
> \end{psgraph*}
> %\includegraphics[width=3.5in]{Figure4n.eps}
> \caption{With psdot style (T3).}
> \label{fig-4n}
> \end{figure}
>
> \begin{figure}[!t]
> \savedata{\datacconcreta}[{%
> {1, 22.7}%
> {2, 33.1}%
> {3, 41.3}%
> {7, 53.4}%
> {14, 58.7}%
> {28, 61.7}%
> }]
>
> \savedata{\datacconcretb}[{%
> {1, 23.4}%
> {2, 39.1}%
> {3, 45.2}%
> {7, 52.1}%
> {25, 61.7}%
> {28, 61.7}%
> {30, 62.2}%
> }]
> \centering
> \psset{llx=-1.1cm,lly=-0.8cm,ury=0.1cm,labelFontSize=\
> scriptsize,mathLabel=false,xAxisLabel={Days},xAxisLabelPos={c,-0.6cm},yAxisLabel={$f_{cm,cub150}$
> (\si{\mega\pascal})},yAxisLabelPos={-0.9cm,c}}
> \rput[lb](5,1){%
> \tiny
> \begin{tabular}{ll}
> \psdot[linecolor=orange,dotstyle=pmLosange](0,0.05) & B-FM \\
> \psdot[linecolor=blue,dotstyle=pmCPlus](0,0.07) & B-TM1 \\
> \psdot[linecolor=black,dotstyle=pmCMultiply](0,0.07) & B-TM2 \\
> \end{tabular}
> }
> \begin{psgraph*}[Dx=5,Dy=10,Oy=20,ticklinestyle=dotted,xticksize=0
> 50,yticksize=0 35]{->}(0,20)(37,76){10cm}{5cm}
> \listplot[showpoints=true,linecolor=orange,dotstyle=
> pmLosange,plotstyle=line]{\datacconcreta} %
> \listplot[showpoints=true,linecolor=blue,dotstyle=
> pmCPlus,plotstyle=line]{\datacconcretb} %
> \psdot[dotstyle=pmCMultiply](33,54.5)
> \end{psgraph*}
> %\includegraphics[width=3.5in]{Figure4n.eps}
> \caption{With only T1 made from newpsfontdot.}
> \label{fig-4n}
> \end{figure}
>
> \end{document}
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20161205/79271354/attachment.html>
More information about the PSTricks
mailing list