Skip to main content
13 votes

Generating ISBN Barcodes

Use the isbn encoder which is intended for generating ISBN numbers: \documentclass[pstricks,border=12pt]{standalone} \usepackage{pst-barcode} \begin{document} \begin{pspicture}(1.3125in,0.7in) \...
Terry Burton's user avatar
10 votes
Accepted

How to Fill a Psvectorian Ornament with Color

You could try an overlap with a very slight kern, perhaps. MWE \documentclass[12pt]{book} \usepackage{pstricks,psvectorian} \usepackage{color} \begin{document} \thispagestyle{empty} \begin{...
Cicada's user avatar
  • 10.2k
8 votes
Accepted

Generating ISBN Barcodes

Use a tabular: \documentclass{article} \usepackage{pst-barcode} \begin{document} \begin{tabular}{@{}c@{}} \fontencoding{OT1}\fontfamily{phv}\small ISBN\hfill 0-89555-821-1\\ \begin{pspicture}(1.3125in,...
egreg's user avatar
  • 1.1m
7 votes

How to Fill a Psvectorian Ornament with Color

For fun with Asymptote. Run with asy -f pdf <file name>.asy. Update settings.tex="xelatex"; usepackage("pstricks"); usepackage("psvectorian"); path[] g=texpath(&...
Nguyen Van Chi's user avatar
6 votes

Arrows on Circle

Also with tikz: \documentclass[border=2pt]{standalone} \usepackage{tikz} \usetikzlibrary{decorations.markings,bending} \begin{document} \begin{tikzpicture}[>=latex,line width=.7pt] \draw (...
AboAmmar's user avatar
  • 46.7k
6 votes
Accepted

How to Give Stars a Glow Effect

Here is an idea using tikz and fadings. The command \glowstar[<size>]{x,y} called inside a tikzpicture will make a glowing star at the given coordinates. \documentclass{article} \usepackage{...
Sandy G's user avatar
  • 46.6k
5 votes
Accepted

Problem with tkz-tab and its the PSTricks package equivalent

For your first question, is this what you want? Note I replaced $\dfrac{1}{4}$ with $\mfrac{1}{4}$ (medium sized fraction from nccmath) , as I think that, used as a numerical coefficient, it looks ...
Bernard's user avatar
  • 273k
5 votes
Accepted

Please explain the operator of \rput command in the following code:

The optional argument for \rput[<refpoint>](x,y){<stuff>} provides the reference point (or anchor) for <stuff>. So, using \rput[tl](x,y){<stuff>} puts the top left corner of &...
Werner's user avatar
  • 607k
5 votes
Accepted

PStricks doesn't compile anymore since MacTeX 2021 upgrade on Mac M1

MacTeX-2021 installs Ghostscript 9.53.3 and pstricks want to create a transparent background which is no longer allowed by default by ps2pdf. You must add the -dAllOWPSTRANSPARENCY flag to the ps2pdf ...
Herb Schulz's user avatar
  • 3,430
5 votes
Accepted

Draw an eye with an arc with tikz

OK, so here we go. Since I don't really know what you need, I'll give it a try. \documentclass[tikz, border=3.14mm]{standalone} \usetikzlibrary{arrows.meta} \begin{document} \begin{tikzpicture}[...
SebGlav's user avatar
  • 19.3k
5 votes

How to Fill a Psvectorian Ornament with Color

\psvectorian[width=2.1cm,color=red]{57} is the right way to change the line color. However, there is no fillcolor because nearly all symbols have no closed curve!
user187802's user avatar
  • 17.4k
5 votes
Accepted

Trying to Entirely Fill a 5.5 x 8.5 Book Cover with Color

Try this code. The pspicture environment starts a new (indented) paragraph. To suppress it add \noindent before. \documentclass[12pt]{book} \usepackage[hmargin=0in,vmargin=0in,paperwidth=5.5in,...
Simon Dispa's user avatar
  • 39.6k
5 votes
Accepted

Draw picture using PSTricks

I would guess that your document is called pstricks.tex and your log looks like: (/usr/local/texlive/2023/texmf-dist/tex/generic/xkeyval/pst-xkey.tex (/usr/local/texlive/2023/texmf-dist/tex/latex/...
David Carlisle's user avatar
5 votes
Accepted

Generating a Visible Barcode to a Darkened Back Cover

Explicitly set a background colour and define the background limits by invoking pst-barcode as follows: \psbarcode{0-89555-821-1}{backgroundcolor=FFFFFF borderleft=15 borderright=15 bordertop=14 ...
Terry Burton's user avatar
4 votes

Problem with tkz-tab and its the PSTricks package equivalent

You can use the new tablvar package (documentation in French): \documentclass[12pt,a4paper]{article} \usepackage{amsmath,amssymb} \usepackage[tikz]{tablvar} \begin{document} \[ \begin{tablvar}{4} \...
egreg's user avatar
  • 1.1m
4 votes

Need help for a picture please (II)

A shorter answer using nodes on the fly. And the possibility of changing the value of n. \documentclass[tikz,border=3.141592mm]{standalone} \usepackage{amsmath} \begin{document} \def\n{3} \...
SebGlav's user avatar
  • 19.3k
3 votes

How to design a galvo-scanner to re-direct a beam

The easiest way to get a custom reflective component is using the \opttripole macro, where you can define whatever you want: \documentclass[margin=12pt]{standalone} \usepackage{pst-optexp} \begin{...
Christoph's user avatar
  • 16.6k
3 votes

Problem with \pspicture in a simple plain TeX code

Let's see the relevant code in pstricks.tex as found in TeX Live 2014, near the end (with [...] I denote code that's unimportant) \def\endpspicture{% [...] \if@star\setbox\pst@hbox=\hbox{\clipbox@...
egreg's user avatar
  • 1.1m
3 votes

How to show complete picture in standalone class?

The code is completely rubbish! You used a graphical program which exports this crazy code. Using \curveto for line segments is nonsense. However, the coordinates for pspicture were wrong: \...
user187802's user avatar
  • 17.4k
3 votes
Accepted

How to draw Aston curve using TikZ?

Use \foreach with two variables like \foreach \x/\y in {x1/y1,x2/y2...}. The list on graph plot below is copied and edited to be on format "x/y," instead of "x y". Output: Code: \...
Miguel V. S. Frasson's user avatar
3 votes
Accepted

Why does this simple pspicture fail to compile?

Despite the name, the package pspicture has nothing to do with the environment of the same name. A quick internet search of the macros shows that you need the package egameps, which in turns need ...
campa's user avatar
  • 31.7k
3 votes
Accepted

Are the Beige Fillcolors of These Two Pspictures Different; i.e., Picking Up the Hue of the Default Color?

You have to control the color definitions of the predefined colours. An RGB Beige is not the same as a CMYK Beige. PSTricks itself and xcolor use by default rgb, if not defined. try \usepackage[...
user187802's user avatar
  • 17.4k
3 votes
Accepted

How to Draw a Colorized Isoceles Trapezoid within a Pspicture

This is vert easy with the \pspolygon* command: \documentclass[12pt]{book} \textheight=8.75in \usepackage{xcolor,pstricks} \begin{document} \thispagestyle{empty} \psset{...
Bernard's user avatar
  • 273k

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