Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Export to TeX PStricks


Export to TeX PStricks

TEX is a sophisticated document typesetting system. The PSTricks TEX packages provide considerable support for PostScript within TeX. This export filter generates a tex file for processing by TEX (although usually LATEX, an easier to use macro package written in TEX, is used). To include the diagram in your LATEX document you will need to import the pstricks package for LATEX and input the actual diagram (as saved in diagram.tex for example:

\include{diagram}

Depending on the version of LATEX and PStricks you are using, you may need to uncomment some macro definitions in the diagram file. If LATEX gives you the error something like:

! Undefined control sequence. 
<recently read> \setfont

You will need to remove the initial percent sign (LATEX's comment command) from the definitions in diagram.tex and it is best to rename the newcommand to providecommand in all three cases (to avoid problems when including more than a single diagram in the one LATEX document:

\newcommand{\setlinejoinmode}[1]{}
\newcommand{\setlinecaps}[1]{}
\newcommand{\setfont}[2]{}

All should then work.

Copyright © 1995-2006 [email protected]

 
 
  Published under the terms fo the GNU General Public License Design by Interspire