Tag Info

Hot answers tagged

6

Thanks to John Kormylo, I found a simple solution: just add these two lines at the Document preamble: \usepackage{xcolor} \selectcolormodel{gray} Note that this changes only the colors generated internally in the document (including pspictures). It does not change the colors of included external graphic images.


4

The following also works for included eps images. RGB to CMYK Put the following code into your preamble if you cannot change the PostScript code yourself. \AtBeginDocument{\special{ps: /setrgbcolor { 1 sub neg /Y exch def 1 sub neg /M exch def 1 sub neg /C exch def /K 1 def C K lt { /K C def } if M K lt { /K M def } if Y K lt { /K Y def } ...


4

I'd suggest to use positioning library which can help you to place nodes beside/above/below others. \documentclass{article} \usepackage{tikz} \usetikzlibrary{positioning, fit} \begin{document} \begin{tikzpicture}[ mytext/.style={ draw, text width=#1, align=center, minimum height=1.5cm }, ar/.style={ ->, >=latex } ] ...


4

It is not a bug. You may use \begin{columns}[T] instead of \begin{columns}[t]. T is similar to the t option, but T aligns the tops of the first lines while t aligns the so-called baselines of the first lines. (p.125, beameruserguide) \documentclass{beamer} \usepackage {auto-pst-pdf} \begin{document} \begin{frame}[t] \begin{columns}[T] ...


4

The construction \psdot(\pAa mul 2) doesn't work because spaces are ignored after control sequences, so when \pAa is expanded what results is !1.5 1.5mul 2 which is illegal PostScript code. If you say \psdot(\pAa\space mul 2) you get what you expect. The construction \psdot(\pAb{2}) doesn't work for two reasons: you have defined \pAb with an ...


4

I've tried some Pstricks examples and it seems that this error happens only sometimes. You can easily modify the image conversion process with make4ht, which is included in TL 2015. By default, dvips and ghostscript are used for image conversion. It isn't really elegant, dvipng gives better results (with anti-aliasing), but it seems that it doesn't support ...


3

It makes no real sense to define a new macro because it is a simple \pstThreeDLine with the same start and end point. However, if you really need a new macro then define it this way: \documentclass{article} \usepackage{pst-3dplot} \def\pstThreeDQuad#1(#2)(#3)(#4)(#5){\pstThreeDLine#1(#2)(#3)(#4)(#5)(#2)} \begin{document} ...


3

You could insert a vphantom{b} in front of a: \documentclass{minimal} \usepackage{pstricks} \begin{document} \begin{pspicture}(-2,-2)(2,2)% \psline{->}(-2,0)(2,0)% \psdot(-1,0)\uput[270](-1,0){$\vphantom{b}a$}% \psdot(+1,0)\uput[270](+1,0){$b$}% \end{pspicture} \end{document} Does this solve your problem?


2

You can modify your macros then there will be no need for the \space: \documentclass[11pt]{book} \usepackage{graphicx} \usepackage{pstricks} \newcommand\pAb[1][1]{\psdot(!1 #1 )} \begin{document} \begin{pspicture}[showgrid](-5,-5)(5,5) \newcommand\pAa{!1.5 1.5 }% The space after 1.5 is important \psdot(\pAa) \pAb \pAb[3]% \psdot(\pAa ...


2

Looks like a problem with auto-pst-pdf. Run your example without that package and with xelatex and everything will be fine. The problem is that the included graphics which is created by auto-pst-pdf has its lower left outside the line whereas xelatex or latex->dvips->ps2pdf have the middle of the line as the lower left.


2

One possible approach is to create a macro \pstThreeDQuad[<options>](<1>)(<2>)(<3>)(<4>) that sets a 2D-node for each of the 3D-nodes <1>, <2>, <3> and <4>. Then, just set a regular 2D-polygon using \pstpolygon: \documentclass{article} \usepackage{pst-3dplot,xparse} ...


1

The pspicture environment is a TeX box on the current baseline. In your example the box is 2.4cm wide and 2.4cm high. It's internal origin (on PostScript level) is 1.2cm from the left and 1.2cm from the bottom of the TeX box. Compare: \documentclass{beamer} \usepackage{pstricks,calc} \usepackage{auto-pst-pdf} \begin{document} ...


1

another possible solution: \psdots(-1,0)(1,0) \rput[b](-1,-3ex){$a$}\rput[b](1,-3ex){$b$}


1

With an up-to-date TeXLive 2015 you'll get \documentclass[border=5pt,pstricks]{standalone} \usepackage{pst-plot} \listfiles \begin{document} \psset{xunit=1.05cm,yunit=1.05cm,plotpoints=200} \begin{pspicture*}(-1.38,-2.28)(4.19,4.45) \psgrid[subgriddiv=0,gridlabels=0,gridcolor=lightgray](0,0)(-1.38,-2.28)(4.19,4.45) ...



Only top voted, non community-wiki answers of a minimum length are eligible