PSTricks is a set of macros that allow the inclusion of PostScript code (e.g. drawings) directly inside (La)TeX code.
6
votes
3answers
203 views
Putting a coloured background behind text without adding whitespace
Consider this:
I want to be able to highlight text like this without adding space around it -- so each word in the first line should line up with the corresponding word in the second line. (I know ...
1
vote
1answer
131 views
Auctex previews
I am using PSTricks and trying to generate an inline preview with auctex for part of a document.
This works fine if I surround the whole thing in $ signs like
$
\begin{pspicture}
...
...
7
votes
2answers
220 views
auto-pst-pdf produces a confusing error message
Actually I don't want to use auto-pst-pdf forever. But Harish Kumar (in his comment) requested to use it for the sake of simplicity. I tried it several decades ago and it did not work. The MWE below ...
10
votes
4answers
3k views
how to draw ellipse?
As I know, I can draw a cirle using
\draw (1,0) circle (2)
I try this kind of method to draw a \draw ellipse, failed. would you pls tell me how to draw a ellipse? what's wrong with the code below?
...
14
votes
3answers
439 views
Is there a formula to determine the maximum value arcsepB such that the arrow head looks best?
I want to put an arrow head at the middle of an arc. Unfortunately, ArrowInside is not available for \psarc. The possible way is to construct it with 2 arcs as follows. Leaving arcsepB with its ...
3
votes
0answers
110 views
Custom style for \listplot or \dataplot
Is it possible to make custom style for \listplot and friends? By default they support only plotstyle=curve, line, bezier, and I need to use bspline from pst-bspline package.
...
9
votes
1answer
60 views
psmatrix with two ncboxes in it
Can somebody help me to generate two overlapping boxes in a psmatrix? What I need is an ncbox from {3,3} to {8,8} and one from {3,3} to {3,8}. I know it's possible to draw them in a separate figure, ...
7
votes
1answer
187 views
Transparency with psSurface in pst-solides 3D
I'm trying to draw a graph with pst-solides3D with the option psSurface :
The problem is as follows :
I want to draw z = +/- (y^2-y^2), which should give a saddle-point graph with the lines x=y and ...
4
votes
0answers
127 views
PSTricks: charpath on a curve (like textpath)
I am interested in drawing a specially rendered text on a curve.
The LaTeX package pst-text provides a function to draw text on a curve (pstextpath) and a function to specially render text ...
22
votes
3answers
895 views
How can I draw nucleosomes with wrapped DNA in tikz or pstricks?
The nucleosome is the fundamental unit of DNA packing in cells, and I am trying to generate some figures for regular use in manuscripts and presentations. The nucleosome is commonly abstracted to a ...
0
votes
0answers
45 views
Array of linked list [duplicate]
Possible Duplicate:
array of linked lists
I want to implement an array of linked lists in latex:
the array elements are the numbers{1,2,3} and every number in the array is ahead of linked ...
6
votes
2answers
137 views
pstricks drawing has overlap with text
The following code produces a figure that has overlap with my text in LaTeX. It seems as if latex doesn't create a space for this figure. Can anybody help me with it?
...
4
votes
2answers
96 views
Image undesired displacement using pstricks
The following code:
\documentclass[letterpaper]{article}
\usepackage{amsmath,amssymb,xcolor}
\usepackage{pst-all}
\usepackage{lipsum}
%\usepackage{pstricks}
\begin{document}
\lipsum[1-2]
...
3
votes
0answers
109 views
pslegend bounding box odd while using Cirkuit
This question is regarding pst-plot and more specifically \pslegend. The code below produces the two following plots:
One of these figures is generated without the \pslegend and it appears to have ...
4
votes
1answer
189 views
\psmatrix baseline
I'm using lingmacros' \enumsentence with a \psmatrix inside.
\enumsentence{
\psset{linewidth=.5pt}
\begin{psmatrix}[rowsep=.2cm,nodesep=.05cm,colsep=.1cm]
&\rnode{gm}{grammatical morphemes}\\
...
32
votes
5answers
1k views
Please improve my logo to resemble our TeX.SX logo
It is free to use TikZ or PSTricks to answer my question. I want to recreate our TeX.SX logo. But my attempt is far from perfect. Please help me to make it more similar to the original one.
...
1
vote
1answer
90 views
PSTricks, node in foreground
This is my code:
\psmatrix[colsep=0.45cm,rowsep=0.8cm,mnode=circle]
1,2&&1,3\\
&[mnode=none]2,3,4,5$|$1\\
1,5&&1,4
\ncline[linestyle=dashed]{1,1}{1,3}
...
5
votes
1answer
55 views
Locally shift everything by 0.5 to the left in PSTricks
Is it possible in PSTricks to locally shift "everything" by 0.5 to the left? For example, in the MWE below I would like to shift the "y" to the left, so that its new coordinates are (1.5,2). Of ...
3
votes
1answer
165 views
Differing left and right axis labels in psplot
This question is related to psgraph with y-axis on left and right of graph and axis labels but can stand alone, as it is really about loops and variables.
I'm really sad that I have to ask this ...
5
votes
1answer
158 views
Translate tikz arrow tips to pstricks
I have a document which contains tikz pictures and pstricks pictures which both contain lots of arrows. Usually I use tikz to do my own stuff but I got the pstricks pictures from another source and ...
3
votes
0answers
147 views
Pst-Solides3D Transformation of a Cube with parameter [closed]
I'm working on the example given at 4.14.3. in the documentation on Pst-Solides3d : Transformation associated with the distance to the origin.
The code is as follows
...
2
votes
2answers
298 views
ps2pdf produces /undefined in Blue when setting gridlabelcolor to dvipsnames' Blue
latex-dvips-ps2pdf compilation sequence produces a weird result when I change the grid style. The problem does not happen when I compile the same code with xelatex.
...
7
votes
1answer
225 views
My compilation produces a result that is not the same as what the author got
I tried the following code
\documentclass[pstricks,border=12pt]{standalone}
\usepackage{pst-solides3d}
\begin{document}
\begin{pspicture}[solidmemory](-6.5,-3.5)(6.5,3)
\psset{viewpoint=30 0 15 ...
3
votes
1answer
213 views
Replacement for \curveto in the tikz library - Inkscape export svg to tikz
I need to draw a complex curve and I wanted to help a vector program Inkscape.
In first step I tried to use Inkscape to TikZ exporter (http://code.google.com/p/inkscape2tikz/)to convert curve to tikz, ...
5
votes
2answers
164 views
How to write some texts in this picture?
I have a file
\documentclass[10pt]{article}
\usepackage{pstricks-add}
\usepackage{esvect}
\pagestyle{empty}
\begin{document}
\psset{xunit=1.0cm,yunit=1.0cm,algebraic=true,dotstyle=o,dotsize=3pt ...
2
votes
1answer
100 views
conflict with pst-tree and align: auto-pst-pdf problems?
There appears to be a problem when using the pst-tree package together with the align environment and pdflatex (dvi-ps-pdf works, but there are reasons for me not to use it).
Attached is a code ...
4
votes
1answer
145 views
How do I remove tick labels in latex using pstricks?
On my old Mac running OS 10.4.11, using TeXShop 2.26 I would use the pstricks package to draw figures. In those figures I had neither tick marks nor tick labels. I have recently switched to a new ...
5
votes
1answer
232 views
Hacking Animate
While babysitting my kids yesterday I played little bit with one of my favorite LaTeX package PSTricks. Naturally I started toying with something more "advanced" so a toyed a bit with animations. On ...
24
votes
6answers
2k views
Are there examples written in PSTricks and they cannot be done using TikZ?
I am comparing the cores of PSTricks with TikZ and their capabilities. I am not considering whether or not a library has been implemented.
Are there examples written in PSTricks and they cannot be ...
5
votes
1answer
390 views
What packages or tools best support any 3D line, plane, surface intersections?
I have not explored the PSTricks' pst-solides3d, TikZ's equivalent packages, Asymptote as a tool, etc, yet.
I have a task to make some simple 3D diagrams that are related to 3D geometry subject we ...
3
votes
1answer
261 views
PSTricks---plotstyle LSM (Least Square method)
I am discovering PSTricks's plotstyle=LSM to make a regression analysis y=m x + c. Here is my code:
\documentclass[12pt]{article}
\usepackage{filecontents}
\begin{filecontents*}{data.dat}
0.0 0.0
...
2
votes
1answer
210 views
psgraph with y-axis on left and right of graph and axis labels
I'm attempting to plot two quantities on one graph each with their own vertical axis. I've got as far as the MWE below but am stuck on two problems.
Can I make the right hand axis have the same line ...
4
votes
1answer
131 views
Memoir showtrims breaks auto-pst-pdf
I have set of large documents that need to go to printers and I want to show the trim edges. I'm using a large number of pstricks images in the documents (these are science and maths textbooks) so I'm ...
16
votes
4answers
941 views
How can I draw a transparent cube in 3D perspective?
I would like to draw a transparent, `flattened cube' in perspective with dotted lines from both vanishing points to each of the vertices of the 3D solid. Is there a PSTricks package for this?
It is ...
3
votes
1answer
101 views
How to align text left in psTextFrame
How can I align text left in a psTextFrame?
Here's the example:
\documentclass[letterpaper,dvips]{article}
\usepackage[utf8]{inputenc}
\usepackage{textcomp}
\usepackage{pst-all}
...
10
votes
4answers
625 views
4
votes
3answers
2k views
How do I include PSTricks pictures in a LaTeX document?
I use LaTeX regularly, and several times I have included .eps images. I am learning how to use PSTricks. I have used it to create .ps and .pdf files with images. There is plenty of free information ...
3
votes
2answers
344 views
Best option to create vector graphics with LaTeX labels
I would like to create some vector graphics for my LaTeX documents. The graphics would often contain mathematical expressions that would should be typeset using LaTeX. As far as I know, my best ...
4
votes
2answers
316 views
Drawing a central composite design
Please I would like to draw a central composite design using PSTricks, or possibly tikz. This is the cube with the axes showed below. I have tried pst-3d but this is not easy. If you had an example of ...
12
votes
1answer
131 views
What is the equivalent for ([nodesep=10pt]{B}A) in TikZ?
\documentclass[pstricks,border=20pt]{standalone}
\usepackage{pst-eucl}
\begin{document}
\begin{pspicture}(3,3)
\pstGeonode(0,0){A}(3,3){B}
\pnode([nodesep=10pt]{B}A){A'}
...
4
votes
3answers
279 views
How to smooth the corner joining the end point of a Bezier curve and the start point of an elliptical arc?
The following figure shows the problem. The corners that are magnified should be smooth (not smooth defined in mathematics).
I have changed liftpen from 0 to 2, but the problem still exists.
How to ...
4
votes
1answer
73 views
Specify location from which a line starts in pstricks
I have a problem with the following code. The lines from h6 and h7 are supposed to start right below h6 and h7 and not at the left of h6 and h7. This worked with tree-dvips but pstricks seems to ...
3
votes
2answers
194 views
A PostScript error when plotting an implicit function
This question was inspired by my answer for another question. I want to provide another solution with implicit function plot. Unfortunately the following code produces PostScript errors ...
6
votes
1answer
271 views
How to use CMYK-Colors in the whole document
I found out, that my color laser printer prints graphics with gray color in RGB-Representation instead of using black (they are more red then gray). So it seems, that PDFLaTeX is creating ...
3
votes
1answer
126 views
Align bput on ncline
I wanna place some text below a line. So I'm using \bput. Works great, but text is always centered. Is there a way to align it left / right? See the picture for better bellow.
...
4
votes
2answers
222 views
Using \def in \psplot
For reasons I cannot explain \def's don't seem to always work in/with \psplot as shown below
\documentclass[english, landscape, a4paper]{slides}
\usepackage{graphics}
\usepackage{graphicx}
...
7
votes
2answers
268 views
How to express PSTricks point in terms of a shifted variable and function?
For a trivial example, suppose that \f(x) is a quadratic curve defined as follows
\def\f(#1){-#1*(#1-8)/4}
For each element \ix in {0,1,2,3,4,5,6,7,8} there is a point (\ix,\f(\ix)) that will be ...
10
votes
1answer
159 views
What causes the presence of unnecessary white space?
What causes the presence of unnecessary white space in the following figure? The box and the circle should have the same center.
\documentclass[border=12pt,pstricks]{standalone}
...
5
votes
2answers
272 views
PSTricks + pdfLaTeX resulting in fonts not embedding into eventual PDF
I want my eventual PDF to have all fonts embedded. Using special psdots in pstricks is causing this to fail. Here is a MWE of something which results in non-embedded fonts:
...
3
votes
2answers
181 views
How to crop a pstricks figure
I wish to create a figure using pstricks code, and then to display only a cropped region of the figure. I thought that the arguments to \begin{pspicture}(...,...)(...,...) would allow me to do this, ...


