14 votes

Can TikZ dashed lines emulate PSTricks dashed lines?

Based on the excellent answer of @Mark, here is a slightly different solution. It increases not only the distance between the dashes, but stretches (shrinking or expanding) the entire pattern by a ...
mrpiggi's user avatar
  • 590
8 votes
Accepted

Drawing partition in LaTeX

I think there has to be a simpler way to do it, but here is a possible solution. I changed the position of some "dice" slightly to improve the visibility of the lines connecting them. And ...
Juan Castaño's user avatar
5 votes

How to create a point on a line with an angle constraint?

Not sure if this is the easiest. But it works. \documentclass[pstricks,border=1cm]{standalone} \usepackage{pst-eucl} \begin{document} \begin{pspicture}(8,-6) \pstTriangle(0,-6){B}(8,-6){A}(2,0){...
Ruixi Zhang's user avatar
  • 9,503
5 votes
Accepted

copy from pst-node, there are many errors, is there another package that has the same function

\documentclass[border=3pt]{standalone} \usepackage{pst-node} \newcommand\xstrut{\vphantom{\tabular{c}Üg\\Üg\endtabular}} \newcommand\psBox[3][white]{\rput(#2){\rnode{#2}{% \psframebox[...
user187802's user avatar
  • 16.4k
5 votes
Accepted

Equal size for parbox

\parbox has three optional arguments, the first defines the vertical position of the \parbox on the baseline, the second is the height of the box, the third is the vertical position of the text inside ...
Torbjørn T.'s user avatar
4 votes

copy from pst-node, there are many errors, is there another package that has the same function

Using a psmatrix will save you the hassle to have to calculate the position of each node. I added a simplified redefinition of \psBox, using the eqmakebox command, which replaces the length argument ...
Bernard's user avatar
  • 270k
4 votes

How can pst-optexp be used to draw a solar panel hit by wide beam?

If you want just draw a solar panel for a graphic you can just use simple Tikz: A suggestion of how I would represent a solar panel: \documentclass[border=1cm]{standalone} \usepackage{tikz} \...
Roland's user avatar
  • 6,615
3 votes
Accepted

What is the difference between \pnode and \psnode in the following example?

\psnode(x,y){name}{text} is internally a \rnode{name}{text} and its coordinates depend to the internally used \rput(x,y){\rnode{name}{text}}. That could be the same as the given (x,y) but must not be ...
user187802's user avatar
  • 16.4k
3 votes
Accepted

How to rotate a text in \psmatrix?

Just swap the linked nodes and change \nbput to \naput: \documentclass[12pt,a4paper]{article} \usepackage[utf8]{vietnam} \usepackage{amsmath,amssymb,mathptmx} \usepackage{pstricks,pst-node} % ...
Bernard's user avatar
  • 270k
3 votes

Change options of a pstricks node after it is printed

Specific to your example of changing the colours for A1 through A6 in a sequential manner, you can add options like for filling the nodes with a specific colour. Below I've added fillstyle=solid to ...
Werner's user avatar
  • 598k
3 votes
Accepted

How can I get lines to join up using PSTricks?

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{...
Werner's user avatar
  • 598k
2 votes

Collapse table columns to vertical hierarchy

Here is a solution with pst-node. The \psDefBoxNodes{name}{text} puts text in a box and defines 12 associated node: 3 on top , 3 on the centre line, 3 on the base line and 3 on the bottom. The names ...
Bernard's user avatar
  • 270k
2 votes
Accepted

Circuit Drawing, \vco Causes Error

The problems come from the fact you use the standalone class, for which the notion of floats is meaningless. I removed everything that was incompatible or irrelevant, and it compiles fine. I added the ...
Bernard's user avatar
  • 270k
2 votes

How to create a point on a line with an angle constraint?

Just for comparison, anyone wrestling with the pst-eucl syntax and documentation, might like to try this type of thing in Metapost, using the elegant implicit definition of linear variables. \...
Thruston's user avatar
  • 41.9k
2 votes
Accepted

How to rotate the \ncarc commands in the following picture?

\documentclass[border=10pt,pstricks]{standalone} \usepackage{pstricks-add} \begin{document} \begin{pspicture}[showgrid](-7,-7)(7,7) \psset{arrowsize=.25,arrowinset=.2}% \degrees[6]\sffamily \multido{\...
user187802's user avatar
  • 16.4k
2 votes
Accepted

Problem with PStricks (Pst-node)

That example does not work with xelatex and current xdvipdfmx.It has some problems with nodes. Use the sequence latex->dvips->ps2pdf or run pdflatex --shell-escape <file> instead with: \...
user187802's user avatar
  • 16.4k
1 vote
Accepted

What makes the green line unable to reach the corresponding vertex of the polygon?

\documentclass[pstricks]{standalone} \usepackage{pst-node,pst-plot} \begin{document} \pstVerb{realtime srand} \psLoop{10}{% \begin{pspicture}(-2,-2)(2,2) \edef\COOR{}\multido{\iA=0+36,\...
user187802's user avatar
  • 16.4k
1 vote

How to create a point on a line with an angle constraint?

My own solution. \documentclass[pstricks,border=15pt]{standalone} \usepackage{pst-eucl} \begin{document} \begin{pspicture}(6,-4) \pstTriangle(0,-4){B}(6,-4){A}(2,0){C} \pstMarkAngle{A}{B}{C}{}...
Display Name's user avatar
  • 46.6k

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