Yap 2.5 learns new (PS) tricks

Monday, 6 March 2006 10:01 by CSchenk

Yap is on the workbench and I can promise that support for PostScript will be improved significantly. The motto is: Every DVI document that can be viewed with a PostScript viewer (after DVI-to-PostScript) can be viewed with Yap.

Take this PSTricks sample:

\documentclass{article}\usepackage{pstricks}\usepackage{pst-char}\usepackage{pst-slpe}\usepackage{pst-blur}\usepackage{graphicx}\pagestyle{empty}\parindent=0pt\begin{document}\DeclareFixedFont{\RM}{T1}{ptm}{b}{n}{4cm}\DeclareFixedFont{\Rm}{T1}{ptm}{m}{n}{2mm}\psset{shadow=true,blur=true,shadowsize=10pt,%     blurradius=5pt,fillstyle=slopes}\rotateleft{\pscharpath{\RM MiK\@T\kern-.1667em\lower.5ex\hbox{E}\kern-.125emX}}\end{document}

Yap 2.5 will render the sample as follows:

(By the way, Yap 2.4 will show you this:

 )

Currently rated 1.0 by 1 people

  • Currently 1/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Related posts

Comments

March 8. 2006 02:34

Dani

That's fine, but i wonder if the dvi format deserves so much effort, when we can compile to PDF directly from a TeX source...

Dani

March 8. 2006 02:47

Beautiful ! Presently, I have the following problem with included eps's : text in labels (\uput{$a=b$} and so on) is all grouped in a neighbourhood of the origin of coordinates, so that I have to use dvips each time I want to check everything is OK. Will it be solved in the next version?

Another question, if that is not too much: once upon a time (I'm a fairly old user of MiKTeX -- since version 1.06 or 1.07), you spoke of having Yap interpret natively (ie without making pk's) postscript fonts. Is it always a goal, or did I misunderstand what you meant?

B.A.

Beranard Alfonsi

March 8. 2006 07:57

2BA: I am confident that the problem is resolved with Yap 2.5.

CSchenk

March 8. 2006 08:32

Anon

This is great. As someone who uses Pstricks a lot, this will improve Yap no end.

Thanks!

Anon

March 8. 2006 11:36

Sebastien

Great !

To Dani: yap is very usefull because of forward and inverse search features.
I don't think inverse search is available with pdf or ps viewers...


Sebastien

March 8. 2006 15:19

Hernan Rivera

That will be a fantastic improvment. I can't wait for the new YAP.

Thank you for all the work that you do!

Hernan Rivera

March 9. 2006 22:02

I want to test YAP 2.5 with the source that Admin. posted. But how to download the newest version of YAP (I'd use the 2.4 version).
Thank you

vanchutr

March 10. 2006 04:11

2vanchutr: Yap 2.5 will be a part of MiKTeX 2.5. See http://miktex.org/2.5 for release information.

CSchenk

March 10. 2006 04:56

In any case, I'll wait for new YAP.
Thank you

vanchutr

March 17. 2006 03:06

emin

This is not necessary. We can see PostScript using other way. DVI-viewer should be small, brutal, and SWIFT and QUICK and FAST.

I hope, this feature whill be switchable on/off

emin

March 17. 2006 11:44

T. Perwez

Fantastic! The rsults are unbelievably beautiful. I use Yap (with MiKTeX) as it is and love it, and find it so awkward when I cannot have an equivalent system when working on Mac (there is xdvi but as bad as they come; for example, how does one go back to the source code, plus no one in the world has been able to figure out how to launch xdvi from within the emas). Great job and I can't wait for the new Yap!

T. Perwez

March 30. 2006 06:28

Barracuda

Fantastic! I'm using Yap all the time and it really helps when yap can show \begin{landscape} \end{landscape}.

But where can I download YAP 2.5??

Barracuda

April 5. 2006 06:33

Jürgen Hestermann

Hi, I can't await seeing version 2.5 released. Getting rid of the YAP postscript bug would be great. One other question regarding YAP: Is there an option to change the cursor units from pts to mm or cm? I am often measuring distances in output and now have to calculate each value with my calculator(pts*72/2,54). That would be great.

Jürgen Hestermann

May 5. 2006 12:17

jarz2006

So far YAP 2.5 is great, I prefer to work with yap for preliminary reviews since the
process is faster and the TeX integration is better. However, after texing the sample document in pstricks-add (HookArrow.tex) YAP shows an empty document. I know YAP is still beta, but I want to know if I am doing something wrong. (it happens the same whenever I include the pstricks-add package to my TeX documents).

jarz2006

May 12. 2006 03:45

Lapo

I think that would be nice to have an option to let YAP load all the images at the opening of the document (as it happens with the PDF readers). This would speed up the page scrolling because now, everytime that the page cointains a figure, the program has to stop and read it.

Lapo

May 22. 2006 12:33

craigim

That's fine, but i wonder if the dvi format deserves so much effort, when we can compile to PDF directly from a TeX source...



PDF doesn't render exactly. I know two people who have tried to submit a PhD thesis (which have very strict margin and page number placement requirements) who have had to re-print (100-150 pages worth) because the PDFs had the wrong margins.



Apparently, it's a common occurence because the person in the registrar's office took a look at one of the thesises (theses?) and knew it had been printed from a LaTeX generated PDF file and told him to print it straight from the DVI file. He did and everything came out correctly.



So please keep developing YAP, I have to file my own thesis in December!

craigim

May 29. 2006 16:57

Joel Kolstad

I tried out MikeTex 2.5 beta 8 to see if YAP renders some *.eps files correctly that 2.4 didn't, and it does -- great! However, I did find a small problem: dvips doesn't appear to like forward slashes in filename arguments. I'll have a line such as:

\includegraphics{c:/temp/eurotour.eps}

...and YAP will spit out an error as follows:


MiKTeX Problem Report
Message: The page could not be rendered.
Data: This is dvips(k) 5.95b Copyright 2005 Radical Eye Software (www.radicaleye.com)
' TeX output 2006.05.28:2135' ->
. [2
C:\Program Files\MiKTeX 2.5\miktex\bin\dvips.exe: Could not find figure file c:/temp/eurotour.eps; continuing

For the moment I'll just move all the *.eps files to the same directory as the TeX document (since there's no way to use backslashes within MikTex, is there? --> \includegraphics{c:\temp\eurotour.eps} results in an "undefinied control sequence" error), but it'd be wonderful if this were fixed in the future.

Thanks a lot for a great free product!



Joel Kolstad

May 29. 2006 17:22

Dvips 5.95b does not support "unsecure" path names, i.e.,

- absolute path names (like C:/temp/eurotour.eps)
- parent-relative path names (like ../../temp/eurotour.eps)

It would be possible to break these security rules by

- using the Dvips option -R0
- by specifying z0 in the Dvips configuration file

I will fix this in Beta 9, i.e., Yap will invoke Dvips with an appropriate command-line option.

CSchenk

June 3. 2006 03:22

Joel Kolstad

Much appreciated (getting Dvips to support "unsecure" path names), thanks again.

Hmm... dvips is still Tom Rokicki's work, eh? I purchased a copy of AmigaTeX from him a little more than a decade ago now!

Joel Kolstad

June 8. 2006 00:30

Tao

Does yap 2.5 support the hyperlink? I know that we can navigate through hyperlinks with the new version of xdvik.

Tao

June 20. 2006 08:06

To CSchenk,
I' d download MikTex 2.5 (beta 10). This is a cool version. But I prefer the 2.4 version (because ... many reason...).
May I use the YAP 2.5 with (in) version 2.4?
Please give me your instructions?
Thank

vanchutr

June 27. 2006 17:41

Hartmut Lemmel

YAP 2.5.2354
I appreciate very much the possibility to switch of the images to get a fast preview and fast scrolling.
Have you thought about rendering the images in a background thread? Displaying the images whenever they are ready without blocking YAP in the meantime? This would be great!!
Hartmut

Hartmut Lemmel

June 29. 2006 10:37

Bill

I am trying to render a document which uses the fancyhdr package using winedt and I keep getting this nagging message:
"The DVI document cannot be rendered properly because interpretation of postscript special is disabled. Temporarily enable interpretation of postscript special". Once I click on either the yes or no button (weird) it renders the document. Unlike previous version of yap I ran with Miktex 2.4 there isn't a view->postscript window so that it ignores postscript specials. How can I permanently ignore postscript specials to that this windows doesn't always pop up as I convert from tex to dvi and view it using Yap. I am certain is not the winedt shell I am using that is causing this problem. Any suggestions will do. Thanks.

Bill

July 4. 2006 13:04

kotha

i am facing the same problem as bill.The DVI document cannot be rendered properly because interpretation of postscript special is disabled. Temporarily enable interpretation of postscript special.

kotha

July 27. 2006 02:06

Bill and Kotha:

Go to Yap -> View -> Options

Click on the tab named Display

Select the default render method as Dvips

However, this will cause problems with CPU consumption. Good luck Smile

Animesh

July 27. 2006 02:52

The new YAP is taking much more RAM and Processor-percentage in Windows XP, service pack 2, patched computer.

I have a 2 Ghz Pentium 4 processor based machine with 512 MB Ram. Please do note that there is no bug that I am reporting --- it's just that the newer previewer seems much heavier than the last one. Sometimes, I lose real-time transition between gVim and Yap and the Yap takes time to load the new document preview.

Animesh

August 6. 2006 02:03

Efrem Rensi

The dvips rendering method, which is now required to make figures in my documents viewable, is definitely processor intensive and makes things a slower. Yap's screen viewing quality is much better now though.

I'm having trouble with inverse search now, using the same command-line initiation that I used with Yap 2.4 and TextPad as an editor. There is something funny going on with the filename. I think Yap 2.5 is adding another directory to the path in the filename.

Efrem Rensi

August 9. 2006 05:19

Efrem Rensi

Please disregard what I said about a problem with inverse search. It works fine!

Efrem Rensi

October 8. 2006 20:17

TeX-User

The new version of YAP is a lot slower than 2.4.
Therefore, I downgraded back.
Is it planned to do performance enhancements in the future?

TeX-User

October 29. 2006 06:51

Guido Lang

Installed Miktex2.5. The Yap Dvip Viewer works perfectly. But after Dvi to Ps, The the eps figures do not appear any more. With my Miktex2.4 the same Tex-files worked. In the 2.4Yap there was under View an option for PostScript. This option is not available under 2.5.
Is my installation wrong or are there any settings to be set?

Guido Lang

January 24. 2007 00:44

Paul

Recently upgraded to 2.5 version.
Is it possible to make yap faster?
The previous versions were much more convenient to work with.

Paul

February 1. 2007 09:46

Ward

Is it possible to switch to Yap 2.4's behaviour? So with fast rendering of text and simple PS-previews? The dvips-renderer is too slow for easy browsing though any document and the pk-fonts renderer does not show any postscript specials.

Ward

February 2. 2007 02:15

Switch back to a broken implementation? PostScript support was broken in Yap 2.4. For example, rotated material could not be displayed.

CSchenk

February 4. 2007 17:42

Ward

It's a trade-off between speed and correct displaying. I hardly ever use rotated text and I do use a lot of (simple, black&white) ps-graphics. For exact previews I use pdf. Therefor I preferred 2.4's behaviour where Yap did show a quick preview of the graphic (just for the idea). With 2.5 I also regularly receive the message that MikTex cannot write on the dvi-file because its's in use (by Yap).

Ward

February 15. 2007 13:51

Dan

Moreover, MikTeX being unable to write to the file while it's open in Yap is another major annoyance. In 2.4 I have the document open in Emacs and Yap at the same time, and after making changes in Emacs and recompiling with a shortcut, I could just click on Yap, and have it refresh.

With the new version, I need to close the document in Yap every time I want to compile it. This alone would cause me to revert back to 2.4.

We appreciate your continued support of Yap. However, when developing new versions, please, consider not just the theoretical aspects, but also the real users and how they use Yap.

Dan

February 15. 2007 14:48

Dan

I second Ward's opinion. Just like it's name suggests, I use Yap for convenient previewing. (And Adobe Reader for viewing and printing the final output.) The behaviour in 2.4 was the perfect compromise, because it rendered quickly AND showed most images correctly.

The behaviour in Yap 2.5 may seem better in theory, but in practice, either I cannot view any images, or Yap is uselessly slow. Because of this, I had to downgrade back to 2.4.

I hope that you can either revert to 2.4 or add the behaviour from 2.4 back as an option.

Dan

Comments are closed