PSTricks is a set of macros that allow the inclusion of PostScript code (e.g. drawings) directly inside (La)TeX code.
6
votes
2answers
80 views
How to plot Feynman diagrams with PSTricks
I need to plot some Feynman diagrams for my research papers. Although I had some experience in plotting with PSTricks, it is still not an easy job to plot Feynman diagrams. Could someone provide some ...
4
votes
2answers
41 views
using CJK text inside mecard produces errors
I am trying to use \psbarcode to generate a MECARD QR code with CJK characters in the name field.
tex:
\documentclass[12pt]{memoir}
\usepackage{CJKutf8}
\usepackage{pstricks}
...
9
votes
2answers
98 views
monochrome and pstricks
I am creating a file type images for presentation / written, I have been interested in the monochrome package xcolor, but by using it I have not obtained the expected results, check the documentation ...
3
votes
1answer
37 views
Getting correct labels on axes with PSTricks
Consider the following example.
Code
% latex test.tex
% dvips test.dvi
% ps2pdf test.ps
\documentclass{article}
\usepackage{pst-coil,pstricks-add}
\def\turister#1#2{%
...
2
votes
2answers
46 views
illegal unit of measure in tex code created from dot2tex
I am using dot2tex to convert some code from graphviz into LaTeX (PSTricks) drawings. However, I get following error
! Illegal unit of measure (pt inserted).
<to be read again>
l.21 ...
2
votes
1answer
27 views
Setting labels on one axis in text mode and the other axis in math mode with PSTricks
Consider the following example:
Code
% pdflatex -shell-escape test.tex
\documentclass{article}
\usepackage{auto-pst-pdf,pst-plot}
\def\seere#1#2#3{%
\pspolygon[%
fillstyle=solid,%
...
3
votes
2answers
133 views
How can I draw a wave diagram in Tikz/PSTricks
Sorry for the undetailed title, I didn't know what to call this. How can I draw the image below in TiKz or PSTricks?
11
votes
1answer
281 views
Isometric paper and drawing on it — with PSTricks
I would like to create a drawing on isometric drawing paper like the following:
N.B. Forget the drawing on top of the paper; it is just something I found in order to illustrate the type of paper I ...
3
votes
3answers
211 views
Drawing system architecture in Latex
I want to draw a system architecture as in the picture below
Can you help me?
5
votes
0answers
122 views
What are current pitfalls of using LuaTeX over pdfTeX
I know that there are several closely related older posts about LuaTeX.
Using LuaTeX as a replecment for pdfTeX 3
LuaLaTeX and PSTricks
Migrating from pdfTeX to LuaTeX
As of recently I started ...
14
votes
7answers
853 views
How to draw a square wave?
Everything is in the title...
I'm trying to draw a simple square wave , but I'm reading that tikz cannot draw the vertical line of the discontinuity...
Is there a way to overpass this ? PSTricks ...
5
votes
1answer
103 views
pstricks and admin rights
I am using MiKTeX 2.9 on an XP account with restricted user rights. Unfortunately I was not able to compile a file under xelatex which included pstricks graphics, so I tried everything that I found on ...
5
votes
2answers
147 views
Improvement of PSTricks code for drawing of balls in a triangular box
Consider the following.
Code
% pdflatex -shell-escape test.tex
\documentclass{article}
\usepackage{auto-pst-pdf,pst-eucl}
\usepackage{expl3}
\ExplSyntaxOn
\cs_new_eq:NN \calc \fp_eval:n
...
12
votes
2answers
171 views
How does \uput determine the touching point between the object box and the hypothetical circle?
This question offers 4 bounties of 500 each only for a single answer that
fit this question best.
I am interested in describing the behavior of \uput for non-zero dimensional objects. Non-zero ...
4
votes
1answer
82 views
Why can the labelsep of \uput not work when represented in RPN?
In order to be more noticeable, I present my comment as a new question here.
Background:
\uput with the following syntax
accept 5 arguments. I have tested the last four arguments that they can ...
5
votes
0answers
65 views
Is it possible to make \pnode obey swapaxes?
Background:
We can represent a point with (*<value> {<algebraic expression in x>}) syntax where the ordinate y is obtained by evaluating <algebraic expression in x for the given ...
2
votes
1answer
65 views
How to get a nice code to insert pictures on the right?
In my document must insert many pictures. I don't know how to get a nice code? I tried
\documentclass{article}
\usepackage{amsmath,amsxtra,amssymb,latexsym, amscd,amsthm}
\usepackage{color, graphicx}
...
1
vote
1answer
38 views
A problem with cjkutf8 and pst-eucl
The following MWE cannot be compiled. You can see the error messages by yourself.
\documentclass[pstricks,border=12pt]{standalone}
\usepackage{CJKutf8}
\usepackage{pst-eucl}
\def\kor#1{%
...
1
vote
1answer
23 views
Error in PSTricks in circuit macros
I am trying the same way to use circuit macros through the example from Mr. Peter Jan Randewijk (http://staff.ee.sun.ac.za/pjrandewijk/wiki/index.php/M4_Circuit_Macros). I have installed M4 support as ...
4
votes
3answers
59 views
Is it possible to use either less than 3 \rput or just a single \uput to rotate and translate the following object?
Is it possible to use either less than 3 \rput or just a single \uput to rotate and translate the following object? Please don't use other transformation macros because my intent is to learn how \rput ...
3
votes
2answers
49 views
Paragraph ended before \pst@@@picture was complete, what is wrong?
Paragraph ended before \pst@@@picture was complete, what is wrong?
\documentclass[pstricks,border=12pt]{standalone}
\usepackage[nomessages]{fp}
\makeatletter
% Removing a trailing space in the ...
2
votes
1answer
99 views
What packages do I need to learn as developer to learn LaTeX?
I am a web developer and I often have the need to convert the the webpage to pdf. I have just discovered latex and pretty much liked it.
But as there are many packages available , I am not into book ...
9
votes
1answer
43 views
Confusing behavior of uput with non-zero dimensional object
I really don't understand the behavior of \uput with non-zero dimensional object as illustrated below.
\documentclass[pstricks,border=12pt]{standalone}
\usepackage{multido}
...
5
votes
1answer
72 views
PSTricks: Partitioning and filling a circle in pst-pdgr
I am using the pst-pdgr package which uses PSTricks to generate medical pedigrees. I find this package to be very useful, however I ran into a problem with a certain situation I am having. I need a ...
3
votes
3answers
88 views
Definition of constant in PSTricks
Consider the following example, which produces the same figure as here, but the code is generalized.
Code
% pdflatex -shell-escape test.tex
\documentclass{article}
...
4
votes
1answer
65 views
pst-map2d - unrecoverable error
I am using this piece of code
\documentclass{article}
\usepackage{pst-map2d}
\begin{document}
{\psset{xunit=0.5, yunit =0.5}
\begin{pspicture}*(-9,-9)(10 ,9)
\WorldMap[maillage = false]
...
2
votes
1answer
90 views
Improvement of PSTricks code for drawing of Pantheon
Consider the following example.
Code
% pdflatex -shell-escape test.tex
\documentclass{article}
\usepackage{
auto-pst-pdf,
pst-eucl,
pstricks-add
}
\usepackage[
locale=DE
]{siunitx}
...
2
votes
0answers
36 views
How to throw an error and abort the compilation for the following scenario? [duplicate]
Objectives:
I want to throw exceptions (or error messages) when the following illegal code is invoked.
\const[c,any]{temp}{\f[\i]}
\const[others]{temp}{\f[\i]}
Minimal Working Example:
I cannot ...
7
votes
2answers
113 views
How to parse optional arguments without keyval?
The current implementation only supports rounding with the specified digits in the optional arguments.
\documentclass{beamer}
\usepackage{multido}
\usepackage{pstricks}
\usepackage[nomessages]{fp}
% ...
1
vote
1answer
71 views
What causes this error? [closed]
After seeing Herbert's answer, apparently this problem should not occur if I realized the first row of the following code should be \documentclass{beamer}. Problems often come from not knowing what I ...
4
votes
1answer
43 views
How to implement a constant declarating macro to behave differently in preamble and pspicture?
The example below is extremely trivial just to illustrate the problem in the simplest way.
\documentclass{beamer}
\usepackage[nomessages]{fp}
% constants declarator
\def\LoadConstants{}% to load ...
3
votes
1answer
79 views
Definition of PSTricks constant and improvement of code for drawing of Pantheon
Consider the following.
Code
% pdflatex -shell-escape test.tex
\documentclass{article}
\usepackage{
auto-pst-pdf,
pst-eucl,
pstricks-add
}
\usepackage{siunitx}
\begin{document}
...
2
votes
1answer
155 views
Equivalent of QTikZ for PSTricks
I have recently seen the very useful QTikZ program for interactive viewing of TikZ diagrams. I was wondering if a similar program exists for drawing PSTricks diagrams.
2
votes
2answers
119 views
Definition of PSTricks constant (again) and improvement of code
Consider the following example. (This is either the last one or the second to last.)
Code
% pdflatex -shell-escape test.tex
\documentclass{article}
\usepackage{auto-pst-pdf,pstricks-add}
...
4
votes
2answers
92 views
Definition of PSTricks constant
Consider the following example.
Code
% pdflatex -shell-escape test.tex
\documentclass{article}
\usepackage{auto-pst-pdf,pstricks-add}
\usepackage[locale=DE]{siunitx}
...
6
votes
2answers
159 views
Improve PSTricks code for drawing of the Olympic flag
Consider the following example.
Code
% pdflatex -shell-escape test.tex
\documentclass{article}
\usepackage{auto-pst-pdf,pstricks-add}
\usepackage[locale=DE]{siunitx}
\ExplSyntaxOn
\cs_new_eq:NN ...
6
votes
1answer
139 views
Create a Frequency Allocation Diagram
I need to reproduce a frequency allocation diagram in TeX. I prefer TikZ but open to PSTricks. I can create a simple bar allocation char using \node but unsure how to create layered blocks like the ...
5
votes
1answer
59 views
Is it possible to construct more than one stroke with different colors inside a single \pscustom?
Is it possible to get the following output where the upper graph is red and the lower one is blue
\documentclass[pstricks,border=17pt]{standalone}
\usepackage{pst-plot}
...
8
votes
3answers
203 views
Improve PSTricks code for drawing of a general, regular polygon
Consider the following example.
Code
% pdflatex -shell-escape test.tex
\documentclass{article}
\usepackage{auto-pst-pdf,pst-eucl,pst-poly,pstricks-add}
\usepackage[locale=DE]{siunitx}
...
15
votes
0answers
83 views
Given a PS interpreter, can pstricks be converted to pgf?
When producing pdf directly, PostScript code cannot be used, which means that pstricks macros do not work. Now, it is still possible to include pstricks code using external tools (running LaTeX on ...
6
votes
2answers
169 views
Improve PSTricks code for drawing of a football pitch
Consider the following example.
Code
% pdflatex -shell-escape test.tex
\documentclass{article}
\usepackage{auto-pst-pdf,pstricks-add}
\usepackage{siunitx}
\begin{document}
% Paremeters
...
11
votes
4answers
277 views
Improve PSTricks code for drawing of a chest of drawers
Consider the following example.
Code
% pdflatex -shell-escape test.tex
\documentclass{article}
\usepackage{auto-pst-pdf,pstricks-add}
\begin{document}
\psset{unit=0.08cm}
...
6
votes
2answers
136 views
How to make the following recursive macro work?
For positive values less than 3 the following MWE works.
\documentclass[pstricks,border=12pt]{standalone}
\SpecialCoor
\psset{showpoints=true}
\def\Triangle#1{%
\ifnum#1=1\relax
...
13
votes
3answers
131 views
Is it possible to get a coil with stable number of winding?
I want to create an animation with a spring. The winding must be kept constant to make more realistic animation.
The following MWE illustrates the current situation of \pszigzag where it cannot ...
2
votes
2answers
131 views
Similar to Excel's line charts?
How could I create charts as the follow ones, which were produced by Microsoft Excel?
5
votes
2answers
108 views
Optimize (or improve, at least) PSTricks code for drawing a beehive
Consider the following example.
Code
% pdflatex -shell-escape test.tex
\documentclass{article}
\usepackage{
auto-pst-pdf,
pst-eucl
}
\usepackage{siunitx}
\begin{document}
\begin{figure}
...
11
votes
4answers
319 views
How to improve my PSTricks code to construct a triangle diagram?
This question is similar to How to improve my PSTricks code to construct a triangle number diagram?.
Consider the following example.
Code
% pdflatex -shell-escape test.tex
\documentclass{article}
...
7
votes
2answers
169 views
How to improve my PSTricks code to construct a triangle number diagram?
This question is similar to How to improve my PSTricks code to construct a triangle diagram?.
Consider the following example.
Code
% pdflatex -shell-escape test.tex
\documentclass{article}
...
8
votes
1answer
53 views
How to use each of the following operators defined in pst-tools?
I cannot find any documentation explaining how to use each of the following operators defined in pst-tools.
Could you give practical examples (such as simplifying vector addition
\pnode(2,2){A}
...
16
votes
2answers
601 views
How can I make a standard timeline?
I am looking to make a standard timeline, nothing fancy, like the one below (although, it does not have to be like that) using any library. How can I go about the achieving this in the best way?



