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 ...
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 ...
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){...
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[...
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 ...
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 ...
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}
\...
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 ...
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} % ...
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 ...
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{...
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 ...
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 ...
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.
\...
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{\...
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:
\...
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,\...
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}{}...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
pst-node × 74pstricks × 70
tikz-pgf × 7
pstricks-add × 4
pst-eucl × 4
psmatrix × 4
xetex × 3
pst-plot × 2
spanish × 2
tables × 1
beamer × 1
macros × 1
graphics × 1
pdftex × 1
color × 1
luatex × 1
diagrams × 1
positioning × 1
miktex × 1
expl3 × 1
tikz-cd × 1
latex3 × 1
linguistics × 1
tikz-node × 1
transparency × 1