News new macros and bugfixes for the basic package pstricks. Herbert Voß. December 27, 2018

Similar documents
PSTricks. News new macros and bugfixes for the basic package pstricks. January 6, Package author(s): Herbert Voß

PSTricks. News new macros and bugfixes for the basic package pstricks. September 5, Package author(s): Herbert Voß

PSTricks. News new macros and bugfixes for the basic package pstricks. December 27, Package author(s): Herbert Voß

PSTricks. News new macros and bugfixes for the basic package pstricks. June5, Package author(s): Herbert Voß

PSTricks News new macros and bugfixes for the basic packages pstricks, pst-plot, and pst-node Herbert Voß

PSTricks. pst-knot. Plotting special knots; v November 8, Package author(s): Herbert Voß

A PSTricks package for three dimensional lighten effect on characters and PSTricks graphics

PSTricks new macros and bugfixes for the basic packages pstricks, pst-plot, pst-tree, and pst-node

PSTricks pst-abspos Herbert Voß

pst grad:gradients v /11/27 Herbert Voß July 11, 2007 Abstract

PSTricks. News new macros and bugfixes for the basic package pstricks. December 13, Package author(s): Herbert Voß

Export of PSTricks environments

PSTricks. pst-magneticfield. Magnetic field lines of a solenoid; v June 11, Package author(s): Juergen Gilg Manuel Luque Herbert Voß

PSTricks. pst-gantt. gantt charts; v.0.22a. December 14, Herbert Voß

PSTricks. pst-tools. Helper functions; v.0.09b. December 3, Package author(s): Herbert Voß

Coils, springs and zigzag lines

314 TUGboat, Volume 22 (2001), No. 4. Abstract

PSTricks. pst-poly. A PSTricks package for drawing polygons; v August 28, Package author(s): Denis Girou Herbert Voß

PSTricks. pst2pdf. Running a PSTricks document with pdflatex; v October 4, Package author(s): Herbert Voß Pablo González Luengo

PSTricks. pst-optic. Lenses and Mirrors; v September 5, Herbert Voß

PSTricks. pst-barcode. A PSTricks package for drawing bar codes; v August 27, Herbert Voß

TUGboat, Volume 38 (2017), No Using X

Package epsdice a scalable dice font

Drawing Trees with PStricks

Trivial Experiments with pstricks manipulation

Trivial Experiments with pstricks manipulation

Beamer v3.0 with PSTricks

Macros. 194 TUGboat, Volume 25 (2004), No. 2

The pict2e package. Hubert Gäßlein and Rolf Niepraschk 2004/08/06

The auto-pst-pdf package

A PSTricks package for drawing attachment models

Typesetting Thai With LaTeX

Package pst-barcode. v May 22, 2007

Rotating Text, Tabulars and Images. Herbert Voß March 3, 2007

The qrcode package: Quick Response code generation in L A TEX

WinShell 2.0. Ingo H. de Boer January 31, www:

The preview Package for L A TEX Version 11.91

Poster generation with LaTeX

PST Labo - chemical objects version 2.02

THE UNIVERSITY OF AKRON Mathematics and Computer Science. JJ Game Class. D. P. Story

Department of Engineering

THE UNIVERSITY OF AKRON Mathematics and Computer Science. JJ Game Class. D. P. Story

L T Ximg. latex environments. ctan: git: Abstract

The rtsched package for L A TEX (version 1.0)

Clinical trials management on the internet I. Using LATEX and SAS to produce customized forms

Preparing and Submitting Electronic Files for the 2016 IEEE International Electron Devices Meeting

David Helmbold, October 2005, Revised October 2007

L A TEX presentations with Prosper

Making Powerpoint-like Presentations with L A TEX

Math 291: Lecture 10

Part of the adjustbox bundle. Martin Scharrer Version v /04/08. Abstract

Creating Medical Pedigrees with PSTricks and L A TEX.

Compressed Images in PostScript and PDF with L A TEX HOWTO

The pst-ob3d package A PSTricks package for three dimensional basic objects

The pstool package. Concept by Zebb Prime Package by Will Robertson. Abstract

Introduction to L A T E X

Postscript Intro. References. What is Postscript? Hello World! in Ghostscript. CSE 413, Autumn 2005 Programming Languages. Page description language

The gnuplottex package

The pstool package. Concept by Zebb Prime Package by Will Robertson. Abstract

The Honours Dissertation Class for L A TEX2e. Cara MacNish

A DEMONSTRATION OF THE UNIVERSITY OF KENTUCKY MATHEMATICS DEPARTMENT DISSERTATION DOCUMENT CLASS

Graphics. Graphics. Graphics

Guidelines for ETNA manuscripts 1

Version v2.01, 2000/06/29

Manual for egameps.sty Version 1.11, March 2018 by Martin J. Osborne Revised

Formatting Instructions for NIPS*2006

Introduction to Scientific Typesetting Lesson 13: Changing Defaults and More with pstricks

mylatexformat Use mylatexformat to make a format based on the preamble of any LaTeX file 2011/02/12 version 3.4

Creating full-featured PDFs in OpenOffice LUXURY EXPORT

The AES Convention Paper LATEX class Adam H. Lewenberg (October 18, 2008) 1

SLDNF-Draw user s manual Chapter 1: static trees

TUGboat, Volume 22 (2001), No. 1/2 87

Presentation of the Electronic Letters on Computer Vision and Image Analysis (ELCVIA)

Documentation for colortab: Shading and coloring TEX tables, v. 1.0

PSTricks. pst-barcode. A PSTricks package for drawing barcodes; v April 22, Herbert Voß

L A TEX Document Formatting Examples

Functional METAPOST for L A TEX

L A TEX Gotchas - Common Pitfalls and Debugging

L A TEX Course at ICT School

L A TEX Lab 3: advanced concepts

Including Graphics in L A TEX Files

LaTeX Equations and Graphics in PHP

Instructions for the preparation of a camera-ready paper in LATEX 1

Software Manual for Windows Z/EVES Version 2.3

Putting problem sheets on the Web in PDF format

The univie-ling-paper class

The pdflscape package

Very Short Introduction to LaTeX

Introduction to Scientific Typesetting Lesson 12: Verbatim Text and Drawing in L A T E X

Org mode (La)TEX macros for HTML and L A TEX export

Basic statistical operations

Graphics. Graphics. Graphics. Graphics

Experiences with micro-typographic extensions of pdftex in practice

Creating a free PDFWriter using Ghostscript

pst layout Michael Sharpe msharpe at ucsd.edu

Nbconvert Refactor Final 1.0

Demonstration and Tips

Preparing and Submitting Electronic Files for the IEEE International. Reliability Physics Symposium

PoS author manual. PoS author manual. PoS Editorial Office S.I.S.S.A. - Via Beirut 2/4 Trieste, Italy

The twoopt package. Definitions with two optional arguments. 1999/04/12, v1.3. Heiko Oberdiek 1

Transcription:

News - 2018 new macros and bugfixes for the basic package pstricks Herbert Voß December 27, 2018 1

2 Contents Contents I. pstricks package 3 1. pstricks.sty pstricks-pdf.sty 3 2. pstricks-tex.tex 3 3. pstricks.tex (v. 2.89 2018/12/16) 3 3.1. PostScript Fonts.......................................... 3 3.2. rror message........................................... 3 3.3. Random colors.......................................... 4 3.4. Optional argument xetex.................................... 5 4. pstricks.pro 5 References 7

3 Part I. pstricks package 1. pstricks.sty pstricks-pdf.sty There is now a new optional argument for the package: ckeckengine, which will be used in later versions. 2. pstricks-tex.tex This package collects all additional latex macros which must be definied when running PSTricks with tex. They all moved from the base pstricks.tex into this new file. 3. pstricks.tex (v. 2.89 2018/12/16) 5 Use the \long definition for \@fornoop to be compatible to the latest changes in L A T X. In old versions the macro \rput can t be used with the key-value setting. The latest version of pstricks.tex defines a modified \rput which ckecks first if a following optional argument has the old behaviour, eg \rput[lb]{...} or a key/value setting like \rput[ref=lb,rot=...](...). However, there should be no change in the output and, of course, it makes no sense to mix the old and new setting in one \rput macro. The setting refers only to the optional arguments which are valid for \rput: 4 3 2 1 \begin{pspicture}[showgrid](6,5) \rput[ref=rt](3,2){% \psframe[linecolor=red](3,3)} \rput[lb](0,0){\psframe(3,3)} \rput{45}(3,0.5){\psframe(3,3)} 0 0 1 2 3 4 5 6 3.1. PostScript Fonts This version of PSTricks uses the Ghostscript fonts from URW instead of the original base 14 fonts of PostScript. For example: instead of Helvetica we use NimbusSanL-Regu. The URW fonts are always embedded in the created ps or pdf output. This is not the default for the PostScript fonts. You change this setting with the optional argument to pstricks.sty. 3.2. rror message Using PSTricks with pdflatex will work only when using package auto-pst-pdf and running the T X-file with pdflatex -shell-escape <file> otherwise you ll get an error message which was misleading in the past:

4 3. pstricks.tex(v. 2.89 2018/12/16) [...]! Undefined control sequence. <recently read> \c@lor@to@ps This changes now to [...]! Undefined control sequence. \c@lor@to@ps ->\PSTricks _Not_Configured_For_This_Format 3.3. Random colors There are now four predefined random colors : \definecolor[ps]{randomgray}{gray}{rand}% \definecolor[ps]{randomrgb}{rgb}{rand Rand Rand}% \definecolor[ps]{randomcmyk}{cmyk}{rand Rand Rand Rand}% \definecolor[ps]{randomhsb}{hsb}{rand Rand Rand}% \begin{pspicture}(10,5) \multido{\ra=0.0+0.1}{50}{\psline[linecolor=randomgray,linewidth=1mm](0,\ra)(10,\ra)} \begin{pspicture}(10,5) \multido{\ra=0.0+0.1}{50}{\psline[linecolor=randomrgb,linewidth=1mm](0,\ra)(10,\ra)}

3.4. Optional argument xetex 5 \begin{pspicture}(10,5) \multido{\ra=0.0+0.1}{50}{\psline[linecolor=randomcmyk,linewidth=1mm](0,\ra)(10,\ra)} \begin{pspicture}(10,5) \multido{\ra=0.0+0.1}{50}{\psline[linecolor=randomhsb,linewidth=1mm](0,\ra)(10,\ra)} The random counter can be initialized with \pstverb{rrand srand}. 3.4. Optional argument xetex The output driver xdvipdfmx for using X T X or X L A T X is not fully compatible to dvips. specially some node operations will not work. If the L A T X package detects a programm run with X L A T X it automatically loads the file pstricks-xetex.def which defines some macros with a new name to keep the existing ones. By now there is only \NCput, which is the same as \ncput, but works with X L A T X. If someone wants to use these macros though he/she runs not X L A T X then these macros are available too by using the optional argument xetex: \usepackage[xetex]{pstricks} 4. pstricks.pro Afullcirclehasbydefaultanangleof360degrees. Settingthecirclewith\degrees[17] toanother value doesn t work for the PostScript function PtoC (Polat to Cartesian (r,φ) (x,y)). Now there is a PtoCrel for the new definition which now takes the setting of \pst@angleunit into account.

6 4. pstricks.pro 2 1 0-1 -2-2 -1 0 1 2 \degrees[16] \begin{pspicture}[showgrid](-2,-2)(2,2) \psline[linecolor=blue](!1.8 2 PtoCrel)% 45 degrees The command \framed was build by clockwise line sequence. Now it is the other way round to get the same behaviour as for all other commands with closed lines. There are some new PS functions /AnytoDeg { pst@angleunit } def /DegtoAny { 1 pst@angleunit div} def /AnytoRad { AnytoDeg DegtoRad } def /RadtoAny { RadtoDeg DegtoAny } def See pst-node documentation for an example.

7 References [1] MichelGoosensetal.TheL A T XGraphicsCompanion.2nded.Reading,Mass.:Addison-Wesley Publishing Company, 2007. [2] Laura. Jackson and Herbert Voß. Die Plot-Funktionen von pst-plot. In: Die T Xnische Komödie 2/02 (June 2002), pp. 27 34. [3] Nikolai G. Kollock. PostScript richtig eingesetzt: vom Konzept zum praktischen insatz. Vaterstetten: IWT, 1989. [4] Herbert Voß. Die mathematischen Funktionen von Postscript. In: Die T Xnische Komödie 1/02 (Mar. 2002), pp. 40 47. [5] Herbert Voß. PSTricks Grafik für T X und L A T X. 7th ed. Heidelberg and Berlin: DANT Lehmanns Media, 2016. [6] Herbert Voß. PSTricks Graphics for L A T X. 1st ed. Cambridge/UK: UIT, 2011. [7] Herbert Voß. PSTricks Support for pdf. 2002. URL: http://pstricks.tug.org/main.cgi? file=pdf/pdfoutput. [8] Herbert Voß. L A T X Quick Reference. 1st ed. Cambridge/UK: UIT, 2011. [9] Herbert Voß. L A T X Referenz. 3rd ed.heidelberg andberlin:dant lehmannsmedia,2014. [10] MichaelWiedmannandPeterKarp.ReferencesforT XandFriends.2003.URL:http://www. miwie.org/tex-refs/.

Index auto-pst-pdf, 3 ckeckengine, 3 \degrees, 5 dvips, 5 File pstricks-xetex.def, 5 pstricks.tex, 3 \framed, 6 \long, 3 Macro \degrees, 5 \framed, 6 \long, 3 \NCput, 5 \ncput, 5 \rput, 3 \NCput, 5 \ncput, 5 Package auto-pst-pdf, 3 pst-node, 6 pstricks.sty, 3 Package option ckeckengine, 3 xetex, 5 pdflatex, 3 Program dvips, 5 pdflatex, 3 xdvipdfmx, 5 pst-node, 6 pstricks-xetex.def, 5 pstricks.sty, 3 pstricks.tex, 3 \rput, 3 xdvipdfmx, 5 xetex, 5 8