Questions tagged [pstricks-add]

drawing three dimensional objects

Filter by
Sorted by
Tagged with
2 votes
1 answer
59 views

What does \psGetDistance do?

friends, I wonder if \psGetDistance is somehow related to euclidean distance or what is it about? Here is a minimum working example that my explain : \documentclass{article} \usepackage{pstricks-add} \...
H-J Salchow's user avatar
0 votes
0 answers
30 views

Package pstricks doesn't work [duplicate]

I am working on overleaf, but when I add \usepackage{pstricks} doesn't compile In addition, when I compile with the package appear what you see in the image. Any idea? The code I used is the ...
Merder's user avatar
  • 3
2 votes
0 answers
102 views

PSTricks \rput command seems not to work in xelatex

With the following document compiled with xelatex: \documentclass{article} \usepackage{pstricks} \usepackage{pstricks-add} \begin{document} \begin{center} \begin{pspicture}(0,0)(10,6) \psgrid[...
Robert Szczelina's user avatar
1 vote
2 answers
166 views

How to put a pstricks figure inside of a tabular environment

I'm writing a document where I need to build a table and put some figures inside. I use pstricks for my figures as I'm most familiar with it. However this is my first time using tables in LaTeX. So I ...
Karzyfox's user avatar
  • 125
3 votes
1 answer
133 views

PSTricks code automatically generated by GeoGebra doesn't comple?

I'm trying to make illustrations for a paper and I don't have much time for it so I don't have time to learn a full language so I got to know that GeoGebra has the possibility to auto-generate code. ...
Baffo rasta's user avatar
1 vote
0 answers
56 views

\pstilt doesn't work

My ultimate aim is to produce a coordinate system whose axes aren't orthogonal. I came open instructions telling me to use \pstilt in order to do so. I wanted to start by simply tilting the text and ...
Annick Biver's user avatar
2 votes
2 answers
108 views

Current Helix Wire Wrapping a Magnet Bar

Could you help me draw a right/left-handed helix wrapping a cylinder? I have below provided my pstricks code which to me looks too large and complicated. My aim is to compile a fancy 3D drawing using ...
Savchenko's user avatar
  • 377
2 votes
0 answers
38 views

Add to y error bar and error ellipse.Help me please

''' \savedata{\myData}[ 0.49328505454e+003 4.49778525251e+003 0.49584934756e+003 4.49579821639e+003 0.49334314462e+003 4.49720809875e+003 0.49389975903e+003 4.49785443271e+003 ] ...
grkmkkn's user avatar
  • 43
4 votes
2 answers
743 views

Electric Circuit PsTricks

Good morning, I'm currently learning to make figures with PsTricks, but the documentation, as well as books and examples are very poor as usual. I would like to make this circuit (in LaTeX, with ...
Henry's user avatar
  • 368
5 votes
1 answer
160 views

What's idea to draw Lie E6?

This is my code. \documentclass[border=10pt]{standalone} \usepackage{pstricks-add} \begin{document} \begin{pspicture}[linewidth=.7pt,dotsize=8pt](-5,-5)(5,5) \def\n{5} \degrees[12] \SpecialCoor {\...
user avatar
4 votes
1 answer
86 views

How to mark subticks at the end of a smooth curve?

\documentclass[border=10pt]{standalone} \usepackage{pstricks-add} \begin{document} \begin{pspicture}[showgrid](-1,3)(2,7) \psparametricplot[algebraic]{-1}{1.56}{t|t^2+4}% \pscurvepoints{-1}{1.56}{t|t^...
user avatar
8 votes
1 answer
614 views

How to reproduce the following diagram with 3D packages in PSTricks?

I created the following diagram with pst-pers that I learnt from pstricks.blogspot.com. \documentclass[12pt,preview,border=15pt]{standalone} \usepackage{pstricks-add,pst-pers,vecteurs} \begin{...
user avatar
3 votes
3 answers
160 views

How to compact two the parabol commands in the following example?

\documentclass[border=15pt,pstricks,12pt]{standalone} \usepackage{pstricks-add} \begin{document} \begin{pspicture}[showgrid](-3,-3)(3,3) \psframe[dimen=m](-3,-3)(3,3) %%% \psclip{\parabola(3,3)(0,0)}% ...
user avatar
2 votes
1 answer
295 views

How to use \psrotate?

\documentclass[pstricks,border=15pt]{standalone} \usepackage{pstricks-add,pst-eucl}% \begin{document} \begin{pspicture}[showgrid](0,-3)(8,4) \pnodes(3,3){A}(1,-1){B}(7,-1){C} \pstMiddleAB[PosAngle=...
user avatar
3 votes
1 answer
265 views

Problem with dotstyle=+

I'm using Overleaf with LaTeX compiler. I have the following code: \documentclass[pstricks,border=12pt,preview]{standalone} \begin{document} \begin{pspicture}[showgrid](0,0)(2,2)% \psdots[dotstyle=+...
MateAndres's user avatar
3 votes
2 answers
284 views

How to use \def command in \uput

\documentclass[12pt,border=5pt]{standalone} \usepackage{newcent,pstricks-add,multido} \usepackage{auto-pst-pdf} \begin{document} \begin{pspicture} \def\stuff1{Môi trường Vật lý} \def\stuff2{Sự lãng ...
user avatar
1 vote
2 answers
358 views

How to evaluate df(x)/dx at x=c rather than df(c)/dx when defining a reusable macro?

The following macros define \f[#1] and its derivative \fp[#1]. \def\f[#1]{((#1)*(#1-1)*(#1-2)*(#1-3)*(#1-5)/10+1.5)} \edef\fp[#1]{Derive(1,\f[#1])} Question I want to define a reusable macro \g{<...
Display Name's user avatar
  • 46.6k
2 votes
2 answers
192 views

how to draw like the following picture ( use pairs \gsave...\grestore):

code: \begin{pspicture}[showgrid=true](-1,-1)(4,4) \psline{<->}(0,3)(0,0)(4,0) \pscustom[linewidth=1.5pt,linestyle=none]{ \psplot[plotstyle=curve]{.67}{4}{2 x div} \gsave \psline(4,3) \...
user avatar
5 votes
1 answer
119 views

How to draw closed path if used the following code:

An example in PSTricks User's Guide page 34. \begin{pspicture}[showgrid=true](-1,-1)(4,4) \pscustom[linewidth=2pt,fillstyle=solid,fillcolor=gray] { \pscurve(0,2)(1,2.5)(2,1.5)(4,3) \pscurve(4,1)(3,0....
user avatar
2 votes
0 answers
44 views

When I use \usepackage{pstricks-add} the vowels with accent are eliminated

I have typed this code: \documentclass[12pt]{report} \usepackage[spanish]{babel} \usepackage[utf8]{inputenc} \usepackage{amsfonts} \usepackage{amsmath} \usepackage{amsthm} \usepackage[all]{xy} \...
Giancarlos 's user avatar
2 votes
1 answer
310 views

PSTricks \psaxes-- aligning minor horizontal grid lines

In the MWE below (a coordinate system having its first axis logarithmized), major and minor ticks misalign. I have tried to figure out which logic for I should apply for the yticksize=0 8 option, but ...
Morten Engelsmann's user avatar
0 votes
1 answer
306 views

Any idea to start drawing this dynamic figure? [duplicate]

I have not put the MWE because I don't know where to start and check for packages to do the job.
Ousseynou Diagne's user avatar
2 votes
1 answer
95 views

On the other side of the curve

Using pstrick's \pspolylineticks, I would like to put my labels on the other side of the curve using PNormal with polar coordinates as in the example of the pstricks-add documentation. Adding 180 ...
GeorgK's user avatar
  • 21
2 votes
2 answers
404 views

Rotate PSTricks Object: Label Positioning

Consider the following (non-minimal) example of a rotation of a quadrilateral around a point: \documentclass{article} \usepackage{pstricks-add} \usepackage{xfp} \begin{document} \def\Ax{-1} \def\...
Svend Tveskæg's user avatar
0 votes
1 answer
124 views

Working with big numbers pstricks

I'm trying to plot some functions, for this I'm using Geogebra for generating the graphics, the following is the generated code. \documentclass[10pt]{article} \usepackage{pstricks-add} \pagestyle{...
unzero's user avatar
  • 1
1 vote
1 answer
239 views

Scaling when \input PSTricks figure

I made a PSTricks figure to represent some IPSec behavior, but when \include-ing it, I have a scaling problem. Here's what I produces. When compiling the separate file, everything is right, and all ...
3isenHeim's user avatar
  • 2,097
16 votes
3 answers
1k views

Drawing an animated circle in LaTeX

How can I draw an image like this in LaTeX? I want to show that I am drawing a circle. Here is what I have, but it does not work. \documentclass[pstricks,border=0pt]{standalone} \usepackage{pstricks-...
user's user avatar
  • 195
1 vote
2 answers
409 views

Conditional preamble and pstricks problem \psTilt and \PstLightThreeDText

Look at the following MWE. \PassOptionsToPackage{export}{adjustbox} \documentclass{article} \usepackage{fancyvrb} \usepackage{graphicx} \usepackage{adjustbox} \newcounter{psextern} \makeatletter \...
Peter Ebelsberger's user avatar
3 votes
2 answers
725 views

White background box for labels in \psaxes of pstricks

I want to create a coordinate place with \psgrid and \psaxes. I am using the labels of \psaxes and suppressing those of \psgrid. My issue is that the negative signs (for negative labels) tend to be ...
Minh's user avatar
  • 319
2 votes
1 answer
306 views

Interferencs between PSTricks options

I'm making a building to explain the asymmetric encryption scheme to my students. I'm using pst-sigsys to designe the Block Diagram, and pstricks-add to draw the key : I had problems designing the ...
3isenHeim's user avatar
  • 2,097
3 votes
1 answer
212 views

pstricks-add: set seed for psRandom

The figure shown below contains "dots" scattered randomly using \psRandom from the pstricks-add package. I need the capability of regenerating the same pattern for several figures (and in time, gif ...
Sigve Karolius's user avatar
21 votes
4 answers
2k views

Folium of Descartes

How to fill region on Folium of Descartes like this: Here is my codes: \documentclass[10pt]{article} \usepackage{pstricks-add} \usepackage{pst-func} \pagestyle{empty} \begin{document} \begin{...
kalakay's user avatar
  • 2,469
4 votes
2 answers
187 views

where can I find the detailed description of how to use \pstVerb and tx@addDict

I am drawing some setup using Pstricks and pst-optexp. I want to know what the following example means. Also I can't find a detailed description of how to use \pstVerb and tx@addDict. \multido{\i=0+...
Xiaomin Nie's user avatar
1 vote
1 answer
182 views

What causes the polar plot of an ellipse to look different from its parametric plot? [closed]

\documentclass[pstricks,border=12pt]{standalone} \usepackage{pstricks-add} \psset { urx=15pt, ury=15pt, llx=-5pt, lly=-5pt, xAxisLabel=$x$, yAxisLabel=$y$, algebraic, ...
kiss my armpit's user avatar
1 vote
2 answers
276 views

What causes my tangent and normal lines not to be visually perpendicular?

\documentclass[pstricks,border=12pt,dvipsnames]{standalone} \usepackage{pstricks-add} \usepackage[nomessages]{fp} \FPset\LabelBase{4} \FPeval\DeltaX{pi/LabelBase} \FPset\DeltaY{1} \FPeval\Left{0 -...
kiss my armpit's user avatar
6 votes
1 answer
160 views

Is possible give the handwrite aspect to other thing?, as ncline, rectangles,... in PStricks?

Viewing doc, I realized that there is an option (similar to linestyle=¿handwrited? ;-) ) to simulate handwriting. Is possible give this aspect to other elements as triangles, poligons, curves, ...
Mika Ike's user avatar
  • 3,681
2 votes
1 answer
152 views

What´s the best/practical way to do trees with pstricks pictures in nodes?, with PSTricks, Pst-node

I have test that psmatrix is a good way to do diagrams, but ... to do diagrams where the nodes is not displayed as a "perfect matrix/table". What is the recommended way to do any similar to, with ps ...
Mika Ike's user avatar
  • 3,681
4 votes
2 answers
318 views

How to put a "coil" inside an ncline (between nodes)?, in PStricks

How to put a "coil" in an \ncline between nodes? similar to: I have viewed \pscoil and options as coilarm=0.5,.. but.... in \ncline or similars?, how? I have this code, for example \documentclass[...
Mika Ike's user avatar
  • 3,681
5 votes
2 answers
1k views

How to change the orientation of a brace?, with psbrace, in PsTricks

I can´t believe it. I was looking and reading... the multiple examples in page 23 in pstricks-add-doc.pdf and I can´t reach what I want. Even copying and pasting any examples of the PDF I know how ...
Mika Ike's user avatar
  • 3,681
8 votes
2 answers
1k views

Problem Scaling Logarithmic function PSTricks

I'm trying to plot a function, but with the x-axis logarithmic. I use PSTricks and the package pstricks-addwith the algebraic option, to write my function litterally. My function to be plotted is : I ...
3isenHeim's user avatar
  • 2,097
2 votes
0 answers
194 views

psmatrix error - Undefined control sequence [duplicate]

When executing the following code, I get the error: Undefined control sequence. <recently read> \c@lor@to@ps l.7 [name=A] 1 & [name=B] 8 \\[0pt] ? Here is the code: \documentclass{...
subham soni's user avatar
  • 9,623
2 votes
2 answers
507 views

Why doesn't PStricks put nodes where I want?

I was surprised when I saw this result! I want to put, starting from my lower left corner, a pink, a red, and a blue node, BUT I was surprised when I saw that the three nodes started from the upper ...
Mika Ike's user avatar
  • 3,681
5 votes
4 answers
9k views

how to resize easily a pstricks picture?

I test my figures in an standalone file, and when I obtain what I want, I pass to my main file with text. How can I do to adapt the size? Because, sometimes I want to put 3 images in a row and I ...
Mika Ike's user avatar
  • 3,681
4 votes
2 answers
420 views

How to use/define a customized parameter?

I´m generating any grpahs... and I´m playing with any linewidhts values so I would like to type on the beginning of the .TEX a line similar to width1=0.1cm width2=0.15cm width2=0.20cm to avoid ...
Mika Ike's user avatar
  • 3,681
2 votes
2 answers
2k views

Can't include pspicture code

I am trying to create a presentation using beamer. In my presentation I need to include a picture created by LaTeXDraw software. I pasted the code to draw the picture inside the frame, but it is not ...
taufique's user avatar
  • 232
12 votes
2 answers
2k views

What is PostScript dictionary for? How to know whether or not I need it?

Consider the following code, \documentclass[pstricks,border=12pt]{standalone} \usepackage{pstricks-add} \psset{linecolor=red} \pstVerb { /updateCP {2 copy CPy add /CPy ED CPx add /CPx ED} bind ...
kiss my armpit's user avatar
7 votes
2 answers
198 views

What causes two identical instances to produce different result?

\documentclass[pstricks,border=12pt]{standalone} \usepackage{pstricks-add} \pstVerb { /updateCP {2 copy CPy add /CPy ED CPx add /CPx ED} bind def /updateA {1 sub sqrt 1 exch atan Angles add /...
kiss my armpit's user avatar
3 votes
2 answers
114 views

Moving the common angle to \pstVerb produces incorrect result

Consider the following complete code first. \documentclass[pstricks,border=12pt]{standalone} \usepackage{pstricks-add} \begin{document} \begin{pspicture}(-5,-5)(5,5) \def\points{(0,0)(1,0)}% ...
kiss my armpit's user avatar
4 votes
1 answer
255 views

How to draw a line from the origin to the last point of \psrline?

Consider the following code to draw the Theodorus' spiral. \documentclass[pstricks,border=12pt]{standalone} \usepackage{pstricks-add} \begin{document} \begin{pspicture}[showgrid](-5,-5)(5,5) \...
kiss my armpit's user avatar
3 votes
1 answer
283 views

How to use \psVector as a replacement for \rlineto in drawing Theodorus' spiral?

Consider the following minimal working example. \documentclass[pstricks,border=12pt]{standalone} \usepackage{pstricks-add} \begin{document} \begin{pspicture}[showgrid](-5,-5)(5,5) \pscustom[...
kiss my armpit's user avatar