GeneralOnly weird DVI instead of decent PS

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
AnnaAbc
Posts: 2
Joined: Tue Mar 13, 2012 5:00 pm

Only weird DVI instead of decent PS

Post by AnnaAbc »

I want to use the sseq package. Not that it finally works the only remaining problem is that, when I create a DVI file it looks weird (see attachment). If I directly compile to PS everything works just fine.

When I compiled and viewed a slightly bigger file YAP created the following error message (I substituted some directory names with "..."):

Code: Select all

MiKTeX Problem Report
Message: Some PostScript specials could not be rendered.
Data: Error: /undefined in pgfo
Operand stack:
   --nostringval--   PermitFileReading   --nostringval--   PermitFileWriting   --nostringval--
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   1914   1   3   %oparray_pop   1913   1   3   %oparray_pop   1897   1   3   %oparray_pop   1787   1   3   %oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--
Dictionary stack:
   --dict:1166/1684(ro)(G)--   --dict:0/20(G)--   --dict:78/200(L)--   --dict:95/300(L)--
Current allocation mode is local
MiKTeX GPL Ghostscript  9.00: Unrecoverable error, exit code 1

Source: Libraries\MiKTeX\Dvi\Ghostscript.cpp
Line: 372
MiKTeX: 2.9
OS: Microsoft Windows 7 Starter Edition, 32-bit (build 7600)
Invokers: TEXCNTR
SystemAdmin: no
PowerUser: no
Root0: ...\AppData\Roaming\MiKTeX\2.9
Root1: ...\AppData\Local\MiKTeX\2.9
Root2: C:\ProgramData\MiKTeX\2.9
Root3: C:\Program Files\MiKTeX 2.9
UserInstall: ...\AppData\Roaming\MiKTeX\2.9
UserConfig: ...\AppData\Roaming\MiKTeX\2.9
UserData: ...\AppData\Local\MiKTeX\2.9
CommonInstall: C:\Program Files\MiKTeX 2.9
CommonConfig: C:\ProgramData\MiKTeX\2.9
CommonData: C:\ProgramData\MiKTeX\2.9
Just in case you need it, this is the source code of the attached file:

Code: Select all

\documentclass[12pt]{article}
%
\usepackage[intlimits]{amsmath}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{pgf}
\usepackage{pst-all}
\usepackage{xkeyval}
\usepackage{sseq}
%
\newcommand{\be}[0]{\begin{equation*}}
\newcommand{\ee}[0]{\end{equation*}}
%
\newcommand{\Z}{\mathbb{Z}}
\begin{document}
bla
%
%
\be
\def\sseqgridstyle{\ssgriddots}
\sseqentrysize=1cm
\begin{sseq}{4}{4}
%
\ssmoveto 2 0
\ssdropbull
\ssmoveto 0 0
\ssdropbull
\ssdrop{\Z}
\end{sseq}
\ee
\end{document}
I use Miktex 2.9 and tried TexnicCenter and Winedt. Sorry if this is not the right place to post my problem. I'd really be grateful for any help!
Attachments
Test.dvi
(11.46 KiB) Downloaded 344 times
Last edited by localghost on Tue Mar 13, 2012 8:35 pm, edited 2 times in total.

Recommended reading 2024:

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

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

justdeath
Posts: 69
Joined: Mon Sep 05, 2011 10:27 am

Only weird DVI instead of decent PS

Post by justdeath »

Since this is your first post, I'll go easy on you.

With no comment.

Literally, you just had to comment \usepackage{pst-all}:

Code: Select all

\documentclass[12pt]{article}
%
\usepackage[intlimits]{amsmath}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{pgf}
%\usepackage{pst-all}
\usepackage{xkeyval}
\usepackage{sseq}
%
\newcommand{\be}[0]{\begin{equation*}}
\newcommand{\ee}[0]{\end{equation*}}
%
\newcommand{\Z}{\mathbb{Z}}
\begin{document}
bla
%
%
\be
\def\sseqgridstyle{\ssgriddots}
\sseqentrysize=1cm
\begin{sseq}{4}{4}
%
\ssmoveto 2 0
\ssdropbull
\ssmoveto 0 0
\ssdropbull
\ssdrop{\Z}
\end{sseq}
\ee
\end{document}
And you can compile with pdflatex.

See attachment.

Nikolay
Attachments
t45.pdf
(11.82 KiB) Downloaded 273 times
User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Only weird DVI instead of decent PS

Post by Stefan Kottwitz »

Hi Anna,

welcome to the board!

Nikolay already wrote something, so I just add some remarks.
AnnaAbc wrote:If I directly compile to PS everything works just fine.
Perhaps you mean directly compiling to PDF. There's no direct compiling to PS, but compiling to DVI and converting to PS, usually by dvips.

If you work with PostScript code, such as with PSTricks, check the PS or PDF output using a PS or PDF viewer. Don't expect a DVI viewer to be capable of displaying PS code - some viewers such as YAP may be capable of displaying some PostScript, but there can be problems. Fot PostScript, (converted) PS output is the reference, or PDF (later).
AnnaAbc wrote: Just in case you need it, this is the source code of the attached file
That's very good! A compilable code example is in most cases a guarantee that you will get a solution.
AnnaAbc wrote: \newcommand{\be}[0]{\begin{equation*}}
\newcommand{\ee}[0]{\end{equation*}}
\newcommand{\Z}{\mathbb{Z}}
Shortcuts such as \Z can be ok. However, I strongly recommend not to decrease readability just for the purpose of saving a few keystrokes. Other people may have problems reading such a shortened code, and perhaps even you later with your own code. Here, for example, you hide an environment within commands. Environments have a scope, commands don't have to.

And btw. \[ ... \] would work as well as shortcut for non-numbered equations.

@Nikolay: thanks for being nice ;-) and for your helpful posts in general.

Stefan
LaTeX.org admin
AnnaAbc
Posts: 2
Joined: Tue Mar 13, 2012 5:00 pm

Re: Only weird DVI instead of decent PS

Post by AnnaAbc »

@Nikolay: I tried it with and without commenting out pst-all, didn't change a thing for the dvi. .ps-fils (and as you demonstrate pdf-files) work.
But thanks for being nice :) and helping.

@Stefan: Thanks for the advice. In particular for clearifing that I cannot really "directly" complile to ps. :oops: None the less I know there must be a way to display it properly with yap since it works at my university computer. For now I'll just change to view the file by a .ps viewer.
Post Reply