PSTricks pst-abspos Herbert Voß

Similar documents
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. 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. September 5, Package author(s): Herbert Voß

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

PSTricks. News new macros and bugfixes for the basic package pstricks. June5, Package author(s): 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. January 6, 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-magneticfield. Magnetic field lines of a solenoid; v June 11, Package author(s): Juergen Gilg Manuel Luque Herbert Voß

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

Export of PSTricks environments

Coils, springs and zigzag lines

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

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

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

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

PSTricks. pst-barcode. A PSTricks package for drawing bar codes; v August 27, 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ß

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

The fullminipage package

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

A Sample L A TEX Document

Drawing Trees with PStricks

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

L A TEX Document Formatting Examples

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

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

The abstract package

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

Displaying page layout variables

Including Graphics in L A TEX Files

The stdclsdv package

Dashed lines represent \hof f set and \vof f set I 2 /5-,%

1 Introduction. 2 About L A TEX. Page 1(6) Why LATEX is used for review report typesetting within the TDB. project

altfont: Using alternative fonts

EMP: Encapsulated METAPOST for L A TEX

TUGboat, Volume 38 (2017), No Using X

Introduzione a LaTex. Fabrizio Messina

Beamer v3.0 with PSTricks

H.2 Further reading. H.2 Further reading 553

Semantics. Doug Arnold (L A TEX for Linguists) September 25, 2007

Department of Engineering

Style template and guidelines for SPIE Proceedings

A Suite of Typesetting Tools for the Web-Enhanced Classroom

A PSTricks package for drawing attachment models

Interactive Astronomy Using 3D Computer Graphics (MA2288 UROPS)

Visual Techniques For Computing Polyhedral Volumes

% \lineskip is 1pt for all font sizes. \normallineskip 1pt \def\baselinestretch{1.37}

Peter Wilson Catholic University of America Now at 1999/02/13

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

Katlenburg-Lindau, Germany. Patrick W. Daly 2011/01/27. Abstract

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

The titling package. Peter Wilson Catholic University of America Now at 2000/06/11

Changing the layout with L A TEX

Topics in Two-Dimensional Analytic Geometry

The dashrule package

Meeting One. Aaron Ecay. February 2, 2011

L A TEX Lab 3: advanced concepts

c Copyright 2016 Jim Fox

The hanging package. Contents. 1 Introduction

The isorot Package User Manual

Communicating Mathematics

Producing proceedings articles with L A TEX2ε

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

Style template and guidelines for SPIE Proceedings

% \lineskip is 1pt for all font sizes. \normallineskip 1pt \def\baselinestretch{1.37}

LATEX Seminar Week 2 Jonathan Blair & Evan Ott. Document classes, basic math formatting, basic pictures, tables and matrices

What is T E X? T E X and L A T E X Document preparation tools. Setting and casting type. What Knuth was setting. Setting and casting type

HotAgent Component Assembly Editor

The afterpage package

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

L A TEX Tutorial. 1 Introduction. 2 Running L A TEX. J. E. Rice. May 2010

Data Abstraction And Problem Solving With C++: Walls And Mirrors (3rd Edition) By Janet J. Prichard, Frank M. Carrano READ ONLINE

Exercise 3 Logical Operators, Branching, Loops. Informatik I für Mathematiker und Physiker (HS 2015) Yeara Kozlov

Introduction to the workbook and spreadsheet

Latex Page Number Position Bottom Right

ax + by = 0. x = c. y = d.

The Join of a Geographical Situation Display System and a Platform Independent C2 Information System

Aalborg October 2014

The LATEX Graphics Companion

Algorithms & Data Structures 2

Introduction to L A T E X

listings-ext A collection of L A TEX commands and some helper files to support the automatic integration of parts of source files into a documentation

Formatting with LaTeX

Sample Thesis Title Goes Here. Eze R Nwaeze

Figure E3-1 A plane struss structure under applied loading. Start MARC Designer. From the main menu, select STATIC STRESS ANALYSIS.

L A TEX Primer. Randall R. Holmes. August 17, 2018

Math 291: Lecture 2. Presented by Prof. James for Prof. Fagerstrom

Bottom Truss ANALYSIS

CSCM10 Research Methodology A Taster of L A TEX

WYSIWYG Systems. CSCM10 Research Methodology A Taster of L A TEX WYSIWYM. Advantages/Disadvantages of WYSIWYG Systems.

Polynomial and Rational Functions. Copyright Cengage Learning. All rights reserved.

Control Structures. Code can be purely arithmetic assignments. At some point we will need some kind of control or decision making process to occur

Instructions for Formatting MLA Style Papers in Microsoft Word 2010

The graphicx package

Statistics Statistical Computing Software

AASHTO Materials Standard Template Users Guide

AD07 A Tool to Automate TFL Bundling

Transcription:

PSTricks pst-abspos A PSTricks package for using abolute or relative coordinates of a page; v.0.2 September 27, 2009 Package author(s): Herbert Voß

Contents 2 Contents 1 Introduction 3 2 Package Options 3 3 The Macros 3 3.1 Optional Parameters.............................. 4 4 Examples 4 5 Absolute Coordinates 5 6 Relative Coordinates 6 7 PostScript Origin 7 8 Absolute Coordinates with an Origin in the Lower Left 8 9 List of all optional arguments for pst-abspos 9 References 9

bsolute Paper Origin pst-abspos 1 Introduction 3 PostScript Origin Text Origin A Nonsense text line with \noindent. 1 Introduction The package pst-abspos allows absolute positioning of objects. In T E X the actual cursor position istheorigin ofthepaper plane. Thismakesitdifficulttoputobjects into absolute positions. The only constant position is the origin of the paper plane, the upper left corner, which is 1 inch right and 1 inch down. This absolute PostScript origin is not the one for the textarea of T E X, because it adds the horizontal margins \oddsidemargin and for the first line \parskip. In the vertical direction there are added \topskip, \headheight and \headsep. This is a bit confusing because there are different origins of the paper plane: the upper left corner of the paper the PostScript origin 1 inch from left and 1 inch from top the T E X origin, adding \oddsidemargin or \evensidemargin to 1 inch and substract \topskip, \headheight and \headsep from the top the T E X relative origin, whichdescribes the actual cursor position, like here: "Cursor". Origin 2 Package Options notitlepage When there is no titlepage it is easier to run the initialisation macros. In this case the user has only to set the package option. absolute the origin is the upper left paper corner lowerleft the origin is mirrored to the lower left of the paper plane PostScript theoriginis1inchfromtheleft and1inchfromthetopof thepaper relative the origin is the upper left text area Especially the lowerleft option may be useful. Together with the absolute option the origin of the paper plane is at the lower left corner (see section 8). 3 The Macros The package tries to set the origin immediately after a newpage. This is not possible with a title because of an additional \newpage of the titlepage environment. In this case the user should controll the setting manually with the macros \pstsetabsoluteorigin the new origin is the upper left corner of the paper \pstsetpostscriptorigin the new origin is 1 inch from left and 1 inch fromtopoftheupperleftcornerofthepaper \pstsetrelativeorigin(x, y) the new origin is the current point for (0; 0). All other values are relative to this one. \pstputabs [Options] (x, y){object} puts any object depending to the option at (x;y). The first two macros have to be used immediately after a newpage.

3.1 Optional Parameters 4 3.1 Optional Parameters The \pstputabs macro can be called with all vaild pstricks options and additionally with position=position, where position can be replaced by the usual placing values lt,lc, lb,lb,... of thewell known\rput macro. Importantisthesettingoftheunit parameter, because pst-abspos knows nothing about the unit. A valid call may be like \pstputabs[unit=1in,position=lc](1,-1){% \qdisk(0,0){5pt}\textcolor{red}{~postscript Origin}} 4 Examples It is no problem to switch between the different origin settings when calling the macros immediately aften a \newpage. If you want to set the origin at the cursor position, then the macro can be called just on cursor position.

in 5 Absolute Coordinates 5 oint(0,-1) 5 Absolute Coordinates oint(0,-2) Point(1,-2) The point (0,0) is in the upper left corner and is set by the package option absolute. \usepackage[absolute]{pst-abspos} \pstputabs(1,-2){\qdisk(0,0){4pt}\red Point(1,-2)} \pstputabs(0,-2){\qdisk(0,0){4pt}\red Point(0,-2)} \pstputabs(0,-1){\qdisk(0,0){4pt}\red Point(0,-1)} \pstputabs(1,-10){\qdisk(0,0){4pt}\red Point(1,-10)} \pstputabs(1,-10){\sc Point(3,-5) blah blub laber text nonsense blah blub laber text nonsense blah blub laber text nonsense blah blub laber text nonsense \pstputabs(3,0.5){\qdisk(0,0){4pt}\blue Point(3,0.5)}blah blub laber text nonsense blah blub laber text nonsense blah blub laber text nonsense blah blub laber text nonsense \pstputabs(3,-5){\qdisk(0,0){4pt}\blue Point(3,-5)}blah blub laber text nonsense blah blub laber text nonsense blah blub laber text nonsense pst-abspos Point(1,-10)

6 Relative Coordinates Point(3,0.5) 6 Origin 6 Relative Coordinates Thepoint (0,0) is set asthe relative origin and is set by the package option relative. Point(0,-1) \usepackage[relative]{pst-abspos} This relative point is the beginning of the first textline, which depends to all margins. It allows to place the relative origin elsewhere depending to the relative point (0,0). Point(0,-2) Point(1,-2) \pstputabs(1,-2){\qdisk(0,0){4pt}\red Point(1,-2)} \pstputabs(0,-2){\qdisk(0,0){4pt}\red Point(0,-2)} \pstputabs(0,-1){\qdisk(0,0){4pt}\red Point(0,-1)} \pstputabs(1,-10){\sc \pstputabs(1,-10){\qdisk(0,0){4pt}\red Point(1,-10)} Point(3,-5) blah blub laber text nonsense blah blub laber text nonsense blah blub laber text nonsense blah blub laber text nonsense \pstputabs(3,0.5){\qdisk(0,0){4pt}\blue Point(3,0.5)} blah blub laber text nonsense blah blub laber text nonsense blah blub laber text nonsense blah blub laber text nonsense \pstputabs(3,-5){\qdisk(0,0){4pt}\blue Point(3,-5)}blah blub laber text nonsense blah blub laber text nonsense blah blub laber text nonsense pst-abspos Point(1,-10)

Point(3,0.5) 7 PostScript Origin 7 Origin 7 PostScript Origin Point(0,-1) The point (1in,-1in) is set as the absolue PostScript origin and is set by the package option relative. \usepackage[postscript]{pst-abspos} The coordinates (1in;-1in) have some historical background and have nowadays no Point(0,-2) Point(1,-2) more real sense. If all horizontal and vertical margins inside T E X are set to zero, then this point is (0,0). \pstputabs(1,-2){\qdisk(0,0){4pt}\red Point(1,-2)} \pstputabs(0,-2){\qdisk(0,0){4pt}\red Point(0,-2)} \pstputabs(0,-1){\qdisk(0,0){4pt}\red Point(0,-1)} \pstputabs(1,-10){\sc \pstputabs(1,-10){\qdisk(0,0){4pt}\red Point(1,-10)} Point(3,-5) blah blub laber text nonsense blah blub laber text nonsense blah blub laber text nonsense blah blub laber text nonsense \pstputabs(3,0.5){\qdisk(0,0){4pt}\blue Point(3,0.5)} blah blub laber text nonsense blah blub laber text nonsense blah blub laber text nonsense blah blub laber text nonsense \pstputabs(3,-5){\qdisk(0,0){4pt}\blue Point(3,-5)}blah blub laber text nonsense blah blub laber text nonsense blah blub laber text nonsense pst-abspos Point(1,-10)

8 Absolute Coordinates with an Origin in the Lower Left 8 8 Absolute Coordinates with an Origin in the Lower Left Thepoint (0,0)is in the lower left corner and is set by the package option lowerleft. This is only useful for absolute coordinates. This is the reason why this option should implie also the option absolute. \Lcs{usepackage}\Largs{lowerLeft,absolute}\Largb{pst-abspos} \end{bdef} \psset{unit=1in}% \pstputabs(0,0){\qdisk(0,0){4pt}\rput(0,0){\red Origin}}% \pstputabs(1,2){\qdisk(0,0){4pt}\red Point(1,2)}% \verb \pstputabs(1,2){\qdisk(0,0){4pt}\red Point(1,2)} \\ \\ \pstputabs(0,2){\qdisk(0,0){4pt}\red Point(0,2)}% \verb \pstputabs(0,2){\qdisk(0,0){4pt}\red Point(0,2)} \\ \\ \pstputabs(0,1){\qdisk(0,0){4pt}\red Point(0,1)}% \verb \pstputabs(0,1){\qdisk(0,0){4pt}\red Point(0,1)} \pstputabs(1,10){\scalebox{8}{\textcolor{mygray}{pst-abspos}}} \pstputabs(1,10){\qdisk(0,0){4pt}\red Point(1,10)}% \verb \pstputabs(1,10){\scalebox{8}{\textcolor{mygray}{pst-abspos}}} \\ \verb \pstputabs(1,10){\qdisk(0,0){4pt}\red Point(1,10)} \\ \vspace*{\fill} \parbox{\textwidth}{% \x\x\x\x\textcolor{red}{\texttt{\textbackslash pstputabs(3,-0.5)\{\textbackslash q \pstputabs(3,-0.5){\qdisk(0,0){4pt}\blue Point(3,-0.5)}\x\x\x\x% \texttt{\textcolor{red}{\textbackslash pstputabs(3,5)\{\textbackslash qdisk(0,0)\{ \pstputabs(3,5){\qdisk(0,0){4pt}\blue Point(3,5)}} \newpage \pstsetpostscriptorigin \section{absolute PostScript Coordinates with an Origin in the Lower Left} The origin point (0,0) is in the lower left corner with 1in from the left and 1inch from the bottom and is set by the package option \Loption{lowerLeft}. This is only useful for \Index{absolute coordinate}s. \begin{xverbatim{\xlcs{usepackage}\xloption{lowerleft}\xloption{postscript}} \usepackage[lowerleft,postscript]{pst-abspos} \pstputabs(1,2){\qdisk(0,0){4pt}\red Point(1,2)} Point(1,2)

Point(0,2) References 9 \pstputabs(0,2){\qdisk(0,0){4pt}\red Point(0,2)} Point(0,1) \pstputabs(0,1){\qdisk(0,0){4pt}\red Point(0,1)} \pstputabs(1,10){\scale \pstputabs(1,10){\qdisk(0,0){4pt}\red Point(1,10)} blah blub laber text nonsense blah blub laber text nonsense blah blub laber text nonsense blah blub laber text nonsense \pstputabs(3,-0.5){\qdisk(0,0){4pt}\blue Point(3,-0.5)} blah blub laber text nonsense blah blub laber text nonsense blah blub laber text nonsense blah blub laber text nonsense \pstputabs(3,5){\qdisk(0,0){4pt}\blue Point(3,5)}blah blub laber text nonsense blah blub laber text nonsense blah blub laber text nonsense 9 List of all optional arguments for pst-abspos Key Type Default position ordinary [none] Point(3,-0.5) References [1] Michel Goosens, Frank Mittelbach, Serbastian Rahtz, Denis Roegel, and Herbert Voß. The L A T E X Graphics Companion. Addison-Wesley Publishing Company, Reading, Mass., 2nd edition, 2007. [2] Laura E. Jackson and Herbert Voß. Die Plot-Funktionen von pst-plot. Die T E Xnische Komödie, 2/02:27 34, June 2002. [3] Nikolai G. Kollock. PostScript richtig eingesetzt: vom Konzept zum praktischen Einsatz. IWT, Vaterstetten, 1989. [4] Herbert Voß. Die mathematischenfunktionen von Postscript. Die T E Xnische Komödie, 1/02:40 47, March 2002. [5] Herbert Voss. PSTricks Support for pdf. http://pstricks.de/pdf/pdfoutput. phtml, 2002. [6] Herbert Voß. PSTricks Grafik für T E X und L A T E X. DANTE/LehmannsMedia, Heidelberg/Berlin, 5. edition, 2008. [7] Herbert Voß. Mathematik mit L A T E X. DANTE/LehmannsMedia, Heidelberg/Berlin, 2009. [8] Michael Wiedmann and Peter Karp. References for T E X and Friends. http:// www.miwie.org/tex-refs/, 2003. [9] Timothy Van Zandt. PSTricks - PostScript macros for Generic TeX. http:// www.tug.org/application/pstricks, 1993.

Index absolute, 3, 5, 7, 8 Dimension \headheight, 3 \headsep, 3 Environment titlepage, 3 \headheight, 3 \headsep, 3 Keyword position, 4 unit, 4 lb, 4 lb, 4 lc, 4 lowerleft, 8 lowerleft, 3 lt, 4 Macro \newpage, 3, 4 \oddsidemargin, 3 \pstputabs, 3, 4 \pstsetabsoluteorigin, 3 \pstsetpostscriptorigin, 3 \pstsetrelativeorigin, 3 \rput, 4 \usepackage, 5 8 PostScript, 3 relative, 3, 6, 7 paper plane, 3 \parskip, 3 position, 4 PostScript, 3 pst-abspos, 3, 4 \pstputabs, 3, 4 \pstsetabsoluteorigin, 3 \pstsetpostscriptorigin, 3 \pstsetrelativeorigin, 3 relative, 3, 6, 7 \rput, 4 Skip \parskip, 3 \topskip, 3 Syntax lb, 4 lb, 4 lc, 4 lt, 4 title, 3 titlepage, 3 \topskip, 3 unit, 4 \usepackage, 5 8 \newpage, 3, 4 notitlepage, 3 \oddsidemargin, 3 origin, 3 Package pst-abspos, 3, 4 Package option absolute, 3, 5, 7, 8 lowerleft, 8 lowerleft, 3 notitlepage, 3 10