Graphics, Figures & TablesDifficulty choosing packages for pstricks

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
gibsonsdad
Posts: 4
Joined: Sat Oct 06, 2012 5:05 am

Difficulty choosing packages for pstricks

Post by gibsonsdad »

I am attempting to learn pstricks, and am having some difficulty choosing the correct \usepackage{} commands. I am using TexnicCenter, and have the following preambles

Code: Select all

\documentclass[12pt]{article}
\pagestyle{myheadings}  \markright{HEADING}
\pagenumbering{arabic}
\usepackage[nocolor]{pstricks}
\usepackage{pst-plot}
\usepackage{auto-pst-pdf}
\usepackage[T1]{fontenc}
\usepackage[total={6.5in,10in},left=1.6in,top=0.5in,includehead, includefoot]{geometry}
\usepackage{amsmath}
\usepackage[utf8]{inputenc}
\usepackage{enumerate, multicol, ifthen}
\usepackage{preview}
This allows me to output everything within \begin{environment} and \end{environment} tags, but no text.

I have selected LaTex => PS => PDF as the run environment. I have read the relevant parts of PSTricks by Herbert Voss, but I don't see what I have wrong. Any assistance would be appreciated.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: Difficulty choosing packages for pstricks

Post by Johannes_B »

Can you extend that to a compilable minimal example? Just seeing the packakes does not give enough information.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
gibsonsdad
Posts: 4
Joined: Sat Oct 06, 2012 5:05 am

Re: Difficulty choosing packages for pstricks

Post by gibsonsdad »

Here is a link to the document (it is a bit long to post here).

https://drive.google.com/folderview?id= ... sp=sharing

If you compile it, you will see that the pspicture lacks axes. If I include a package that allows the axes to show, none of my text shows. I am using a work around whereby I compile the document as a PS file, open it in GhostGum, and "print" it as a pdf, but there are some formatting changes when I do that. Also, it is time consuming. I could continue to do that, but it would be nice to be able to compile directly to pdf format.
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Difficulty choosing packages for pstricks

Post by cgnieder »

gibsonsdad wrote:Here is a link to the document (it is a bit long to post here).
Which is why Johannes asked for a Infominimal working example (MWE). I believe it should be possible to shorten your code to some 20 lines which reproduces the behaviour. With a MWE it will be much easier to provide help.

Regards
site moderator & package author
Post Reply