Here is the problem:
I need to generate a document in booklet form (for duplex printing). The document will be printed on an a4 paper in landscape. Each half of the paper will carry an individual page ( you can call it signature)
To get the result I used a script which someone has posted on the net. The script works absolutely fine. However, when I use pstricks, everything fails. I used pstricks to produce figures (geometrical figures: e.g. pstriangle).
The sample code is as below
The script for generating the document:
Code: Select all
#===============================================#!/bin/sh## This script takes an A5 latex file as input and produces an A4# document (both ps and pdf) for printing an A5 booklet## Usage:# booklet [filename without extension]latex $1latex $1# make an a5 ps from dvi:dvips -t a5 -o $1.ps $1.dvi# sort pagespsbook $1.ps tmp1.ps# put two pages on one a4 sheetpsnup -Pa5 -pa4 -2 tmp1.ps tmp2.ps# change a5 to a4 in ps filesed 's/^%%DocumentPaperSizes: A5/%%DocumentPaperSizes: a4/g' < tmp2.ps > $1_booklet.ps# produce pdf files, pdflatex ist used (twice) to get bookmarkspdflatex $1.texpdflatex $1.texps2pdf -sPAPERSIZE=a4 $1_booklet.ps# delete tmp filesrm tmp1.ps tmp2.ps#===============================================
Code: Select all
\documentclass[a5paper,headsepline,titlepage,10pt,normalheadings,DIVcalc]{scrartcl}\usepackage[a5paper,backref]{hyperref}\usepackage{ngerman}\usepackage{xspace}\usepackage{graphicx}\usepackage{picinpar}\usepackage{epsfig}\begin{document}%\begin{itemize}\item line 1\item line 2\item line 3\item line4\end{itemize}\end{document}
2. The document 1(using pstricks)
Code: Select all
\documentclass[a5paper,headsepline,titlepage,10pt,normalheadings,DIVcalc]{scrartcl}\usepackage[a5paper,backref]{hyperref}\usepackage{ngerman}\usepackage{xspace}\usepackage{pstricks}\usepackage{graphicx}\usepackage{picinpar}\usepackage{epsfig}\begin{document}%\begin{itemize}%\item line 1\item line 2\item line 3\item line4\end{itemize}%%\begin{pspicture}(3,3)\pstriangle[gangle=180](1.5,2.5)(3,2.5)\psdot(1.5,1.5)\end{pspicture}\end{document}%%----------------------------------------------
1. if I do not use pstricks, everything goes fine
2. if I use pstricks, no pdf file is generated
What is the work around?
How can I use pstricks?
(Please note: I am not an expert, but a self taught person.)
Thank you in advance
Suren