Hot answers tagged

6

Just because I love a good challenge. Compiled using convert -delay 10 -loop 0 -density 300 -scale 400 -alpha remove <file>.pdf <file>.gif. Missing features/improvements: red line "curving", not sure how to easily do it. Some transitions should be paused more. Will try to fix later. Various repeated commands might be reduced. Output The ...


6

So here's a starting point, I think it has all you need to progress. If you don't know how to do something specific, you could ask a new question, but if it's just a doubt on the code I'm providing, you can post a comment. There's a tiny flaw where the drawing "moves" in a certain frame, but I'm not sure what's causing it. Will fix it as soon as I ...


6

\documentclass[pstricks,border=12pt]{standalone} \usepackage{pst-fun} \usepackage{auto-pst-pdf} \begin{document} \multido{\rA=.0+.1,\iA=0+1}{10}{% \begin{pspicture}[dimen=m](-1,-1)(8,7) \pspolygon(0,3.5)(0,0)(3,0) \pcline[linestyle=none,offset=0](0,3.5)(3,0) \ifnum\iA=0 \rput(0,5.5){\psBill} \else \ifnum\iA<9 ...


5

That is a lot of work to get all the intermediate steps. It is much more easier to use a presentation class without the animation. Here is a starter: \documentclass{beamer} \usepackage{pstricks-add,multido} \begin{document} \begin{frame}[plain] \centering \def\Radius{3} \begin{pspicture}(-4,-4)(4,4) \psdot[dotsize=1mm,linecolor=red](0,0)\pause ...


4

That's a pretty elaborate animation, so here's a start. If you have trouble (and probably you will), feel free to ask a new question, but remember to keep it focused on a specific issue you got stuck with. Adding tikz to the standalone class options allows your pdf to have one page per frame. To compile this as a .gif, install imagemagick in your system, ...


4

Here's my version with Tikz. There are some minor details that I simplified but I'd say it resembles your image enough. The only thing missing are the circles to symbolize the gas, but I don't think that'd be hard for you to replicate. The command is as follows: \flask[ <arrow direction> ]{ <position of the flask> }{ <pressure> }{ ...


2

I propose this version of Boyle's(Mariotte) law. \documentclass{article} \usepackage[a4paper]{geometry} \usepackage[garamond]{mathdesign} \usepackage{pstricks,multido}% \input{random} % From Donald Arseneau (on macros/generic on CTAN) \pagestyle{empty} \psset{dimen=middle} \newdimen{\BulleX} \newdimen{\BulleY} \newdimen\X \newdimen\Y ...


2

For precision I computed internally in the tikz code angles and distances. Needs at least PGS 3.0 Here the code: \documentclass[12pt]{article} \usepackage{etex} \usepackage{pstricks-add} \usepackage{relsize} \usepackage{slashbox} \usepackage[toc,page]{appendix} \usepackage{amssymb,amsmath} \usepackage{cancel} \usepackage[stable]{footmisc} ...


2

that is hardcoded in the .pro file (PostScript). You can modify in the file pst-elektricfield.pro the following lines: /drawChargeCircle { % qi x y r on the stack 0 360 arc gsave % 0 ge {1}{0} ifelse setgray fill pop 0 0 1 setrgbcolor fill 0 setgray stroke } def then the charges are plotted always in blue (R G B). You can change the value to ...


2

The original code in the edited question compiled fine but produces frames for animated ellipse-drawing rather than animated circle-drawing. Assuming that 'doesn't workrefers to the fact that the picture draws an ellipse rather than a circle, this is relatively easily fixed, even with no knowledge ofpstricks. (I say this only because I have no such ...


1

Use \RequirePackage{xcolor} \documentclass{sciposter} \usepackage{lipsum} [ ... ]


1

No, the dvips driver (via the psfile special) does not support multipage PS inclusion. You have to go the PDF route using pdflatex, lualatex or xelatex. This requires you to convert the multipage PS into multipage PDF first. Then you can use one of the graphicx or pdfpages packages to select the pages to be embedded.


1

This is an attempt to show that the spirit of what I want can be done by knowledge of basic latex programming. Here is what I came up with: \documentclass{article} \usepackage{tikz} \usepackage{ifthen} \usepackage{intcalc} \usepackage{qrcode} \begin{document} \qrcode[]{Dummy code}%Original code \vspace{1cm} %Corrupted code \begin{tikzpicture}[scale=0.1] ...


1

\usepackage[distiller]{pstricks} makes only sense when using the distiller from Acrobat Pro at the backend. Simply use \usepackage{pstricks} My output with xelatex:


1

Use \documentclass[pstricks]{standalone} Then it uses the dimensions of the pspicture Environment for cropping


1

pstricks loads the xcolor package. If you want a broader choice, pass the option, say, x11names to xcolor (via \documentclass). This option gives access to nearly 320 predefined colours. See § 4, Colors by Names, pp38–40 of the documentation. You also can use the option svgnames which more or less the same as HTML colour names. Example: ...


1

The axis is plotted without knowing anything about the plot. The reason why you can scale it yourself: \documentclass{article} \usepackage{pst-plot} \begin{document} \begin{figure}[!ht]\centering \psset{plotpoints=200,algebraic} \begin{pspicture}(-1.5,-0.5)(11,5.5) \psset{xunit=0.5} ...


1

The first error is most likely the usage of pdftex instead of latex or xelatex. This can be fixed with \usepackage{auto-pst-pdf}, if --shell-escape is enabled (i.e. the \write18 feature) The \pstree command needs at least the start node (root) and a successor node, which is missing in the above document. I just choose \TC* for example, i.e. the syntax is ...


1

Is that ok that you have a straight line from Port1 to Process?? \documentclass[pstricks, float]{standalone} \usepackage{graphicx} \usepackage[table, usenames, dvipsnames]{xcolor} \usepackage{pstricks-add} \usepackage[frenchb]{babel} \usepackage[locale=FR, per-mode=symbol, abbreviations]{siunitx} \begin{document} \begin{pspicture}(-5, 1)(13, 6) ...


1

Is it what you want? It's easier to do with psmatrix. Note you don't have to load all PSTricks related packages, as pstricks-add already loads pstricks, pst-plot, pst-node, pst-3d, pst-math and multido. Also, the option usenames for xcolor is unnecessary, as it is the default nowadays. I loaded the x11names option, as it defines may more colours than ...



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