Hot answers tagged

4

I do not see how g(t,u) = 2 + sqrt(f(t,u)) should work with 0..1. f(t,u) can be negative. However, no need for the parametric function: \documentclass{article} \usepackage{pst-solides3d} \begin{document} \psset{viewpoint=30 -50 30 rtp2xyz,Decran=50,lightsrc=viewpoint} \begin{pspicture}(-1,-1)(3,7.5) \psSolid[object=grille,base=0 3 0 3,action=draw] ...


4

According to this blog post, it should be possible to upload a latexmkrc file to your project and surprisingly even shell-escape seems to be allowed. I haven't tested it, but something like this should work: $pdflatex = 'lualatex %O %S --shell-escape'; $pdf_mode = 1; $postscript_mode = $dvi_mode = 0;


3

Instead of supplying ~ (a tie or non-breaking space; it has width), use an empty group {} for your nodes in the second row (columns 2 and 4): \documentclass{article} \usepackage{pst-node} \begin{document} \begin{figure} \centering \psmatrix[colsep=3mm,rowsep=.5cm,mnode=r] [mnode=circle] 1 & && & [mnode=circle] 3 \\ ...


2

My crystal ball reports that the first error you got is ! Undefined control sequence. <recently read> \c@lor@to@ps then multiple errors of the form ! Undefined control sequence. \XC@usec@lor ...string \color@ #1#2\endcsname \@@ \fi \space l.25 \Tcircle{2} Tcircle here is just the location of ...


2

Do not use the environment preview. Use package auto-pst-pdf and the environment postscript instead if you run it with pdflatex --shell-escape <file>: \documentclass[12pt, a4paper]{article} \usepackage[a4paper,top=1 in,bottom=1 in,left=0.7 in,right=0.7 in]{geometry} \usepackage[utf8]{inputenc} \usepackage[misc]{ifsym} \usepackage{amsmath} ...


2

I assume you want to place content at some (x,y) coordinate. For that you should use \rput rather than \lput. The latter is for placing labels on lines and should therefore be preceded by such a segment. \documentclass{article} \usepackage{pstricks} \begin{document} \newlength{\psutextx}\setlength{\psutextx}{100mm} ...


2

You can pass the options for xcolor via pstricks: \documentclass{article} \usepackage[dvipsnames,x11names]{pstricks}% Options for xcolor \usepackage{pst-barcode} \begin{document} \begin{pspicture}(3.5,1.2in) \psbarcode[linecolor=red]{1234567}{includetext inkspread=0.5}{ean8} \end{pspicture} \end{document} xcolor itself loads by default color


1

I just realised you supplied images for the icons. Oh, well. Here is a pure TikZ solution. At least, it uses forest which is based on TikZ. In addition, it uses two pics for the icons, which are then used within the tree. This makes use of the new edges library for forest which includes a folder style for directory trees. It can draw the folders, too, but ...


1

That is the correct behaviour! Your second example has only one cell in the first row, the reason why the \ncline will take the cells from the first row of the first example. \documentclass{article} \usepackage{pstricks,pst-node,pst-tree} \def\e{\strut \hphantom{.}} \newenvironment{graph} { \begin{center} ...


1

it is easier to have the unit cm. Then you can use the PostScript notation for the calculations: \documentclass{article} \usepackage[a4paper, left=2.5cm]{geometry} \usepackage{pst-circ} \def\psutextx{10 }\def\psutexty{10 }\def\sskip{1 }% space is important \begin{document} \begin{pspicture}[showgrid](12,10) \rput(! \psutextx \sskip add \psutexty \sskip ...


1

Run with lualatex --shell-escape <file>: \documentclass[a4paper,10pt]{book} \usepackage{auto-pst-pdf} \ifpdf\else \usepackage{pst-electricfield} \fi \begin{document} \begin{pspicture*}(-6,-6)(6,6) \psframe*[linecolor=lightgray!50](-6,-6)(6,6) \psgrid[subgriddiv=0,gridcolor=gray,griddots=10] \psElectricfield[Q={[-1 -2 2][1 2 2][-1 2 ...


1

Pstricks (loaded by pst-barcode) already loads xcolor without option. If you load the latter with an option, there will be an ‘option clash’. The solution consists in loading the option from within the document class, which will propose it to all subsequent packages, until one of them recognises it. Alternative solution: write in the preamble ...


1

Some very simple cross-sections will be possible in PGFplots and PSTricks (though I am not very familiar with the latter); however, arbitrary cross-sections is perhaps out of the league of these packages. In the case of PGFplots, it can handle 3D plots of the form z = f(x,y) quite well, but more complicate surfaces (such as parametric plots) will often lead ...



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