Tag Info

Hot answers tagged

8

The Euro symbol is hard coded (http://en.wikipedia.org/wiki/File:EuroConstLarge.png). However, you can simplify it. Straight connections between two points can be omitted \pscustom does it by default when building the path: \documentclass{minimal} \usepackage{pstricks} \begin{document} \pstVerb{ /c40 {40 cos }bind def /s40 {40 sin }bind def /s65 {6 ...


6

You can do that with the \pscurvepoints command, which creates an array of points on the curve, and \pspolylineticks (§ 30 of pstricks-add documentation: *Ticks and other marks along a curve, pp. 107–117). What I don't understand quite well are the parameters, so I played with them. Here is an example: \documentclass[pdf, x11names]{standalone} ...


6

Use \documentclass{article} \usepackage{pst-text,pst-grad} \usepackage{pst-light3d} \usepackage{auto-pst-pdf}% Or \usepackage[crop=off]{...} for Win without Perl \begin{document} ... and then run pdflatex --shell-escape <file> or alternative lualatex. The dvipdfmx driver of XeTeX cannot handle outline fonts.


5

Just for fun with PGFPlots: \documentclass[border=5mm]{standalone} \usepackage{pgfplots} \usepgfplotslibrary{polar} \pgfplotsset{compat=1.10} \begin{document} \begin{tikzpicture} \begin{polaraxis}[enlargelimits=false, xticklabel=$\pgfmathprintnumber{\tick}^\circ$] \addplot [thick, red, domain=0:360, samples=100] {sin(3*x)+2}; \end{polaraxis} ...


5

The problem is in pgf (file pgfutil-latex) with the redefinition of preview's shipout which causes a problem in the created dvi/ps file. It creates always two pages instead of one. However, here is a workaround: \listfiles \documentclass{minimal} \usepackage{auto-pst-pdf} \makeatletter \let\Test@pr@shipout\pr@shipout%% save the original definition ...


5

You can position the x-labels horizontally via the xlabelOffset key: \documentclass{article} \usepackage{pst-plot} \begin{document} \psset{xunit=1,yunit=0.2} \begin{pspicture}(-1.75,-12)(7,17) \psaxes[ticks=y,xlabelOffset=-0.2,Dx=2,Dy=10]{->}(0,0)(-1.7,-12)(5.9,13)[$t(s)$,0][$x$,90] \psxTick(0){~~~0} ...


5

You need more than the six polygon shapes of the blue cube to draw hidden surfaces. And, of course, all objects must be calculated with action=none except of the last one: \documentclass{standalone} \usepackage{pst-solides3d} \begin{document} \begin{pspicture}(-3,-2)(3,3) \psset{viewpoint=20 25 15,Decran=50,solidmemory,action=none} ...


4

\documentclass{article} \usepackage{pstricks-add} \begin{document} \psset{unit = 2} \begin{pspicture}(-1.2,-1.2)(1.5,1.5) \psaxes{->}(0,0)(-1.2,-1.2)(1.3,1.3)[$x$,0][$y$,90] \parametricplot[algebraic,linecolor=red,linewidth=1.2pt,plotpoints=100]% {0}{Pi} { cos(3*t)*cos(t) | cos(3*t)*sin(t) } \multido{\rT=0.3+0.5}{12}{% ...


4

\node[anchor=south west,inner sep=0] at (-1.5\fboxrule,-1.5\fboxrule) {\color{red}\fbox{\includegraphics{diagram}}}; 1 rule width and 0.5 for dimen=middle


3

The output is abolutely correct! From the mathematical view the two lines are perpendicular: \documentclass[pstricks,border=12pt,dvipsnames]{standalone} \begin{document} \psset{yunit=2} \begin{pspicture}[showgrid](3,3) \psline(3,3)\psline(0,3)(3,0) \psset{unit=1cm,linecolor=red} \psline(3,3)\psline(0,3)(3,0) \end{pspicture} \end{document} In your ...


3

Just place the first \multido cycle into an animateinline environment, replace \multido{\i = \nImages+-1}{\nImages}{% by \multiframe{\nImages}{i=\nImages+-1}{% and remove \newpage from the loop body. Then latex, dvips, ps2pdf: \documentclass{article} \usepackage[ a4paper, margin = 2cm ]{geometry} \usepackage[utf8]{inputenc} ...


3

It makes no sense to use \psgraph here: it is a simple scaling of the graph. \documentclass{article} \usepackage{pst-plot} \begin{document} \frame{\psscaleboxto(4cm,4cm){% \psset{axesstyle=polar,plotpoints=100,plotstyle=curve} \begin{pspicture}(-4,-4)(4,4) \psaxes[axesstyle=polar,linecolor=gray](3,360) ...


3

With the option plotpoints=2, you can hope but for a line. The default is 50! I suggest you set plotstyle=curve instead, and of course add * as already pointed. The showgrid=false option is useless, as it is the default. You can compile adding the pdf option to the document class: it will be passed on to pstricks that will launch epstopdf(provided the ...


3

Based on my answer to my question, the following code does what you want (at least with texlive2013 last updated in may or so) \documentclass[beamer,pstricks]{standalone} \usepackage{etex} \def\myxmin{-7.5}% \def\myymin{-7.5}% \def\myxmax{7.5}% \def\myymax{7.5}% \newlength{\pspicwidth} \newlength{\pspicheight} \newlength{\border} ...


2

use a greater coordinate system for pspicture. With \psframebox you can make the area which TeX seas visible: \documentclass{article} \usepackage{pst-plot} \begin{document} \psframebox*[fillcolor=black!20,fillstyle=solid]{% \begin{pspicture}(-0.5,-0.5)(5.5,5.5)%%%%%%%%%% \psgrid[gridcolor=red,subgridcolor=green, gridlabels=0](0,0)(5,5) ...


2

\documentclass[pdf,border=10pt]{standalone} \usepackage{pst-plot} \begin{document} \psset{llx=-1cm,lly=-5mm,urx=5mm,ury=5mm} \begin{psgraph}[axesstyle=frame,Dx=0.1,Dy=0.1](0,0)(1.05,1.05){0.8\linewidth}{2.5in}% \pslegend[rt]{% \makebox[2em][l]{\psline[linecolor=red,linewidth=1pt](0,1ex)(2em,1ex)} & Theoretical \\ ...


2

try ... \makeatletter \let\SX@I\SX@resultInput \def\SX@resultInput{\centerline{\SX@I}} \makeatother \begin{document} \LTXinputExample[pos=t,style=PSTricks,graphic={[scale=1]"diagram"}]{diagram.tex} \end{document}


2

Taken from Herbert's another answer (click) several decades ago and I modified to meet my requirement. But honestly I am not sure whether or not it is safe for long-term use. \documentclass[dvipsnames,border=12pt,preview]{standalone} \usepackage{xcolor} \usepackage{showexpl} \usepackage{accsupp} ...


2

There is no more an option conn in the current version (see documentation!) Use instead: \begin{pspicture}[showgrid=true](4,2) \optdiode(0,1)(4,1){Diode} \drawbeam[beaminsidefirst]{}(B) \end{pspicture}


2

Use \documentclass{article} \usepackage[runs=2]{auto-pst-pdf} \usepackage{pst-node} \begin{document} ... or run it with xelatex and it will work: \documentclass{article} \usepackage{pst-node} \begin{document} \begin{pspicture} \psnode(1,1){A}{Section \ref{sec:mysec}} \end{pspicture} \section{My Section} \label{sec:mysec} \end{document}


2

algebraic=true option is used to let us write the math expression in infix form. algebraic=false which is default prompts as to write the math expression in postfix form (aka Reverse Polish Notation or RPN for short). In your code below, algebraic option is not needed because no part in your code need infix math expression. Just remove the algebraic=true. ...


2

Your function is 3*x^(-x). You forgot the *. \documentclass{article} \usepackage{pst-plot} \psset{xunit=.8cm,yunit=1cm} \def\f(x){3*x^(-4)} \begin{document} \begin{pspicture}(-0.5,-0.5)(6,3.5) \psaxes[linecolor=lightgray]{->}(0,0)(-0.2,-0.2)(5.5,3.2)[$x$,0][$f(x)$,90] \psset{algebraic,linewidth=1.5pt,linecolor=red} ...


2

Iy is rather a mathematical question. If we have point P on the circle (r\cos(t),r\sin(t)) and the angle between vector OP and axis Ox is \alpha, then \alpha=t. In an analogous case of (a proper) ellipse t\neq\alpha. It means, that your formula definying radius is incorrect. For the equation in polar coordinates see, e.g., ...


2

I think the answer is no, you can't do this. According to page 25 of the Postscript Language Reference Manual There are three encodings for the PostScript language: ASCII, binary token, and binary object sequence.


1

Please provide minimal examples and not such bombastic ones ... \psgrid[xunit=\DeltaX](-4,-3)(8,3)% 4 ticks left, 8 ticks right An alternative: \documentclass[pstricks,border=0bp,12pt,dvipsnames]{standalone} \usepackage{pst-plot} \psset{urx=1cm,ury=1cm,llx=-1cm,lly=-1cm, trigLabels,trigLabelBase=4, ...


1

Here is a tikz solution. First consider the result: The lines in the grid are drawn between coordinates previously defined to give flexibilty. For example, the horizontal line below the text "Middle part" is at 20% of the table height, the vertical line separating "Bottom part left" and "Bottom part right" is at 33% of the table width. The line above ...


1

Works with pdflatex --shell-escape or xelatex which doesn't need the whole auto-pst-pdf and \ifpdf ... \fi stuff. However, I changed your PSTricks code to make it easier to read. By the way the macro \hatvec wasn't defined: \documentclass[twoside]{report} \usepackage[T1]{fontenc} \usepackage{etex} \usepackage[utf8]{inputenc} \usepackage{ifpdf} ...


1

Just another new template from me. \documentclass[pstricks,border=0bp,12pt,dvipsnames]{standalone} \usepackage{pst-plot} \usepackage[nomessages]{fp} \FPset\XMin{-1} \FPset\XMax{4} \FPset\YMin{0} \FPset\YMax{3} \FPset\DeltaX{1} \FPset\DeltaY{1} \FPeval\Left{XMin-DeltaX/2} \FPeval\Right{XMax+DeltaX/2} \FPeval\Bottom{YMin-DeltaY/4} ...


1

Another solution just for fun! How it works? I let the height is a function of width such that both horizontal and vertical use the same metric scale. \documentclass[pstricks,border=0pt,dvipsnames]{standalone} \usepackage{pstricks-add} \usepackage[nomessages]{fp} \FPset\LabelBase{4} \FPeval\DeltaX{pi/LabelBase} \FPset\DeltaY{1} \FPeval\Left{0 -pi/4 ...


1

The algebraic option is missing: \psplot[algebraic]{12.879}{17.121}{9-2*(15-x)^2} %Curve 2 \psplot[algebraic]{0.757359}{9.24264}{9-0.5*(5-x)^2}%curve 1



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