[powerdot] Re: Misplaced slides on portrait A4 paper after update

  • From: Petr Pošík <petr.posik@xxxxxxxxx>
  • To: <powerdot@xxxxxxxxxxxxx>
  • Date: Mon, 16 Jan 2017 15:05:56 +0100

Dear Pedro,

 

ah, config.ps, I see. I found this in it:

 

@ screen 8.25in 11in

@+ ! %%DocumentPaperSizes: Screen

@+ %%BeginPaperSize: Screen

@+ << /PageSize [594 792] >> setpagedevice

@+ %%EndPaperSize

 

which is not exactly the same as in yours... but screen seems to be defined 
(somehow), yet not picked by dvips. :-(

 

I also tried to replace the MikTeX’s config.ps with TeXLive’s version (which is 
much bigger!), but it did not help.

 

Nevertheless, thanks a lot for your valuable help. If you have any further 
ideas, I would be grateful.

 

Petr Posik

 

From: powerdot-bounce@xxxxxxxxxxxxx [mailto:powerdot-bounce@xxxxxxxxxxxxx] On ;
Behalf Of Pedro Jorge Caridade
Sent: Monday, January 16, 2017 1:54 PM
To: powerdot@xxxxxxxxxxxxx
Subject: [powerdot] Re: Misplaced slides on portrait A4 paper after update

 

Dear Petr

 

If I recall (no longer a miktex user for a very long time) there are some 
options in the miktex for dvips compilation. I would go there first in the 
miktex configuration area and see if any flags are selected (force portrait or 
resolution). 

 

If no luck look for the config.ps <http://config.ps>  (rather than dvips.h, 
sorry that I've mixed things) and compare both the texlive and miktex. For what 
you posted it looks to me that miktex dvips header (config.ps 
<http://config.ps> ) does not have screen option (my case is line 170 of 
config.ps <http://config.ps> ):

 

% for powerdot

@ screen 8.25in 11in

@+ ! %%DocumentPaperSizes: Screen

@+ %%BeginPaperSize: Screen

@+ /setpagedevice where

@+  { pop << /PageSize [594 792] >> setpagedevice }

@+ if

@+ %%EndPaperSize

 

Pedro



 

On Mon, Jan 16, 2017 at 12:42 PM, Petr Pošík <petr.posik@xxxxxxxxx 
<mailto:petr.posik@xxxxxxxxx> > wrote:

Dear Pedro and Patrice,

 

yes, indeed, dvips seems to be the source of the issue. See below.

 

Check if in your miktex the dvips process have some restriction like portrait 
or special resolution flag. I remember long ago a problem in dvips.h file that 
could not take care of special size pages, but I though that it was corrected.

 

Pedro, where do I find these restrictions or flags? In dvips.h? Where do I find 
it? I am on Windows and probably do not have the source files installed.

I found dvips.h in the MikTeX source repo:

 
<https://github.com/MiKTeX/miktex/blob/master/Programs/DviWare/dvips/source/dvips.h>
 
https://github.com/MiKTeX/miktex/blob/master/Programs/DviWare/dvips/source/dvips.h

Is that what you mean? If yes, then I do not know at all what shall I look 
for... :-/

And even though if I find it, I not sure what to do then. Should I compile my 
own dvips after changing the header file? How?

And if this header file is wrong, where shall I report the bug?

 

Now back to dvips investigations:

I installed TexLive and (after some twidling with missing packages) I was able 
to generate the correct output. Then I tried „cross compilation“, i.e. calling 
one tool from MikTeX and the other tool from TexLive.

 

Using MikTeX’s latex and TeXLive’s dvips works as expected. Using MikTeX’s 
dvips on the same DVI produces the strange output. 

 

The size of dvips.exe in MikTeX is 320512, in TeXLive 161280.

The version info of both dvips binaries:

 

This is dvips(k) 5.996 Copyright 2016 Radical Eye Software

MiKTeX 2.9.6210 64-bit

Copyright 2016 Radical Eye Software.

 

This is dvips(k) 5.996 Copyright 2016 Radical Eye Software

kpathsea version 6.2.2

Copyright 2016 Radical Eye Software.

 

I attached both PS files for possible investigations. When I diffed them, I 
found they differ on 2 places only:

 

MikTeX’s header:

%%BoundingBox: 0 0 1584 1188

%%DocumentFonts: CMSSBX10 CMSS8 CMSS10

%%EndComments

 

TeXLive’s header:

%%Orientation: Landscape

%%BoundingBox: 0 0 594 792

%%DocumentFonts: CMSSBX10 CMSS8 CMSS10

%%DocumentPaperSizes: Screen

%%EndComments

 

Being no PostScript specialist, I pressume these are taken actually only as 
comments, yet it may suggest something.

 

The other place is at the end of PS files:

 

MikTeX’s:

-------

%%BeginSetup

%%Feature: *Resolution 600dpi

TeXDict begin

% dvips-unknown

statusdict /setpageparams known { hsize vsize 0 1 statusdict begin {

setpageparams } stopped end } { true } ifelse { statusdict /setpage known

{ hsize vsize 1 statusdict begin { setpage } stopped pop end } if } if

end

 

%%EndSetup

%%Page: 1 1

TeXDict begin 1 0 bop 600 417 a

-------

 

TeXLive’s:

-------

%%BeginSetup

%%Feature: *Resolution 600dpi

TeXDict begin

%%BeginPaperSize: Screen

/setpagedevice where

{ pop << /PageSize [594 792] >> setpagedevice }

if

%%EndPaperSize

@landscape end

%%EndSetup

%%Page: 1 1

TeXDict begin @landscape 1 0 bop 600 417 a

---------

 

It seems to me that in the TeXLive’s version, it somehow defines landscape 
format which is then used for slide, while in the MikTeX version this is 
missing.

 

 

 

From:  <mailto:powerdot-bounce@xxxxxxxxxxxxx> powerdot-bounce@xxxxxxxxxxxxx 
[mailto: ;<mailto:powerdot-bounce@xxxxxxxxxxxxx> powerdot-bounce@xxxxxxxxxxxxx] 
On Behalf Of Pedro Jorge Caridade
Sent: Monday, January 16, 2017 11:11 AM
To:  <mailto:powerdot@xxxxxxxxxxxxx> powerdot@xxxxxxxxxxxxx
Subject: [powerdot] Re: Misplaced slides on portrait A4 paper after update

 

Dear Petr

 

The problem can be in dvips and not in the powerdot. I have tested your tex and 
works like in Patrice system, and pick your dvi and converted to ps and 
everything is ok. One thing that you should be aware is that seeing the dvi is 
not the proper way due to all ps specials that are only interpreted in the 
dvi->ps stage.

 

Check if in your miktex the dvips process have some restriction like portrait 
or special resolution flag. I remember long ago a problem in dvips.h file that 
could not take care of special size pages, but I though that it was corrected.

 

Pedro 



 

On Mon, Jan 16, 2017 at 8:37 AM, Patrice MEGRET <Patrice.MEGRET@xxxxxxxxxxx 
<mailto:Patrice.MEGRET@xxxxxxxxxxx> > wrote:

Dear Petr,

I have no idea how to solve your problem with MikTex.
It seems that the page orientation wrong.

If it is urgent, you can install TexLive for which I have no problem.

You can also ask help on the pstricks list (Graphics with PSTricks 
<pstricks@xxxxxxx <mailto:pstricks@xxxxxxx> >) where Herbert Voss has probably 
some solutions.

Best regards,
Patrice

-----Message d'origine-----
De : powerdot-bounce@xxxxxxxxxxxxx <mailto:powerdot-bounce@xxxxxxxxxxxxx>  
[mailto:powerdot-bounce@xxxxxxxxxxxxx ;<mailto:powerdot-bounce@xxxxxxxxxxxxx> ] 
De la part de Petr Pošík
Envoyé : lundi 16 janvier 2017 09:19

À : powerdot@xxxxxxxxxxxxx <mailto:powerdot@xxxxxxxxxxxxx
Objet : [powerdot] Re: Misplaced slides on portrait A4 paper after update

Patrice,

the contents of geometry.cfg:

%%
%% This is file `geometry.cfg',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% geometry.dtx  (with options: `config') %% %% Copyright (C) 1996-2010 %% by 
Hideo Umeki <latexgeometry@xxxxxxxxx <mailto:latexgeometry@xxxxxxxxx> > %% %% 
This work may be distributed and/or modified under the conditions of %% the 
LaTeX Project Public License, either version 1.3c of this license %% or (at 
your option) any later version. The latest version of this %% license is in
%%    http://www.latex-project.org/lppl.txt
%% and version 1.3c or later is part of all distributions of LaTeX %% version 
2005/12/01 or later.
%%
%% This work is "maintained" (as per the LPPL maintenance status) %% by Hideo 
Umeki.
%%
%% This work consists of the files geometry.dtx and %% the derived files: 
geometry.{sty,ins,drv}, geometry-samples.tex.
%%

%  Uncomment and edit the line below to set default options.
%\ExecuteOptions{a4paper}

\endinput
%%
%% End of file `geometry.cfg'.

As far as I understand it, it is essentially an empty file. I tried to comment 
out also the \endinput line, but the result is the same.

When I delete geometry.cfg from
C:\Program Files\MiKTeX 2.9\tex\latex\geometry
and refresh FNDB, then during latexing it tries to download and install 
geometry package anew:

======================================================================
starting package maintenance...
installation directory: C:\Users\Petr\AppData\Roaming\MiKTeX\2.9
package repository: 
ftp://ftp.cvut.cz/tex-archive/systems/win32/miktex/tm/packages/
lightweight database digest: a0ecd943b2f89cd92793f8f5be7c8347 going to download 
231386 bytes going to install 6 file(s) (1 package(s)) downloading 
ftp://ftp.cvut.cz/tex-archive/systems/win32/miktex/tm/packages/geometry.tar.lzma...
231386 bytes, 36.26 KB/Sec

Unfortunately, the package geometry could not be installed.Please check the log 
file:
C:/Users/Petr/AppData/Local/MiKTeX/2.9/miktex/log/latex.log
======================================================================

... but it fails for some reason. I thought it was because of executing it 
without admin privileges, but even running it in a privileged command prompt 
did not help.
Renaming the geometry.cfg back to its original name, or uninstalling and 
reinstalling the packege again made the compilation error free, but results in 
the malformed output... :-(

Huh, I am lost... :-(

Petr Posik


-----Original Message-----
From: powerdot-bounce@xxxxxxxxxxxxx <mailto:powerdot-bounce@xxxxxxxxxxxxx
[mailto:powerdot-bounce@xxxxxxxxxxxxx ;<mailto:powerdot-bounce@xxxxxxxxxxxxx> ]
On Behalf Of Patrice MEGRET
Sent: Monday, January 16, 2017 8:18 AM
To: powerdot@xxxxxxxxxxxxx <mailto:powerdot@xxxxxxxxxxxxx
Subject: [powerdot] Re: Misplaced slides on portrait A4 paper after
update

Dear Petr,

I upgraded  pstricks to be as you (also for powerdot-default.sty   that was a
residue in the local directory) and my dvips file is correct.

Could you check what is inside geometry.cfg or try to compile without
geometry.cfg.

I cannot see the dvi with dviout.exe.

Attached are the files I obtain.

Best regards,
Patrice


*File List*
powerdot.cls    2015/11/29 v1.5a powerdot presentation class (HA)
 xkeyval.sty    2014/12/03 v2.7a package option processing (HA)
 xkeyval.tex    2014/12/03 v2.7a key=value parser (HA)
 article.cls    2014/09/29 v1.4h Standard LaTeX document class
  size10.clo    2014/09/29 v1.4h Standard LaTeX file (size option)
  size11.clo    2014/09/29 v1.4h Standard LaTeX file (size option)
geometry.sty    2010/09/12 v5.6 Page Geometry
   ifpdf.sty    2016/05/14 v3.1 Provides the ifpdf switch
  ifvtex.sty    2016/05/16 v1.6 Detect VTeX and its facilities (HO)
 ifxetex.sty    2010/09/12 v0.6 Provides ifxetex conditional
hyperref.sty    2016/06/24 v6.83q Hypertext links for LaTeX
hobsub-hyperref.sty    2016/05/16 v1.14 Bundle oberdiek, subset hyperref (HO)
hobsub-generic.sty    2016/05/16 v1.14 Bundle oberdiek, subset generic (HO)
  hobsub.sty    2016/05/16 v1.14 Construct package bundles (HO)
infwarerr.sty    2016/05/16 v1.4 Providing info/warning/error messages (HO)
 ltxcmds.sty    2016/05/16 v1.23 LaTeX kernel commands for general use (HO)
ifluatex.sty    2016/05/16 v1.4 Provides the ifluatex switch (HO)
 intcalc.sty    2016/05/16 v1.2 Expandable calculations with integers (HO)
etexcmds.sty    2016/05/16 v1.6 Avoid name clashes with e-TeX commands (HO)
kvsetkeys.sty    2016/05/16 v1.17 Key value parser (HO)
kvdefinekeys.sty    2016/05/16 v1.4 Define keys (HO)
pdftexcmds.sty    2016/05/21 v0.22 Utility functions of pdfTeX for LuaTeX (HO)
pdfescape.sty    2016/05/16 v1.14 Implements pdfTeX's escape features (HO)
bigintcalc.sty    2016/05/16 v1.4 Expandable calculations on big integers (HO)
  bitset.sty    2016/05/16 v1.2 Handle bit-vector datatype (HO)
uniquecounter.sty    2016/05/16 v1.3 Provide unlimited unique counter (HO)
letltxmacro.sty    2016/05/16 v1.5 Let assignment for LaTeX macros (HO)
 hopatch.sty    2016/05/16 v1.3 Wrapper for package hooks (HO)
xcolor-patch.sty    2016/05/16 xcolor patch
atveryend.sty    2016/05/16 v1.9 Hooks at the very end of document (HO)
atbegshi.sty    2016/06/09 v1.18 At begin shipout hook (HO)
refcount.sty    2016/05/16 v3.5 Data extraction from label references (HO)
 hycolor.sty    2016/05/16 v1.8 Color options for hyperref/bookmark (HO)
 auxhook.sty    2016/05/16 v1.4 Hooks for auxiliary files (HO)
kvoptions.sty    2016/05/16 v3.12 Key value format for package options (HO)
  pd1enc.def    2016/06/24 v6.83q Hyperref: PDFDocEncoding definition (HO)
hyperref.cfg    2002/06/06 v1.2 hyperref configuration of TeXLive
     url.sty    2013/09/16  ver 3.4  Verb mode for urls, etc.
  hdvips.def    2016/06/24 v6.83q Hyperref driver for dvips
 pdfmark.def    2016/06/24 v6.83q Hyperref definitions for pdfmark specials
rerunfilecheck.sty    2016/05/16 v1.8 Rerun checks for auxiliary files (HO)
graphicx.sty    2014/10/28 v1.0g Enhanced LaTeX Graphics (DPC,SPQR)
graphics.sty    2016/07/10 v1.0t Standard LaTeX Graphics (DPC,SPQR)
    trig.sty    2016/01/03 v1.10 sin cos tan (DPC)
graphics.cfg    2016/06/04 v1.11 sample graphics configuration
   dvips.def    2016/07/10 v3.1a Driver-dependent file (DPC,SPQR)
pstricks.sty    2015/11/14 v0.62 LaTeX wrapper for `PSTricks' (RN,HV)
  xcolor.sty    2016/05/11 v2.12 LaTeX color extensions (UK)
   color.cfg    2016/01/02 v1.6 sample color configuration
pstricks.tex    2016/12/23 v2.71 `PSTricks' (tvz,hv)
pst-xkey.tex    2005/11/25 v1.6 PSTricks specialization of xkeyval (HA)
  pst-fp.tex    2016/12/23 v2.71 `PST-fp' (hv)
 pst-ovl.sty    2014/01/02 v0.01 LaTeX wrapper for `pst-ovl' (HV)
 pst-ovl.tex    2014/05/12 v0.06 overlay macros `pst-ovl' (HV)
enumitem.sty    2011/09/28 v3.5.2 Customized lists
verbatim.sty    2014/10/28 v1.5q LaTeX2e package for verbatim enhancements
powerdot-default.sty    2014/01/01 v1.5 default style (HA)
  pifont.sty    2005/04/12 PSNFSS-v9.2a Pi font support (SPQR)
    upzd.fd    2001/06/04 font definitions for U/pzd.
    upsy.fd    2001/06/04 font definitions for U/psy.
powerdot-default.ps <http://powerdot-default.ps>     Graphic file (type eps)
 nameref.sty    2016/05/21 v2.44 Cross-referencing by name of section
gettitlestring.sty    2016/05/16 v1.5 Cleanup title references (HO)
  testpd.bm <http://testpd.bm
  testpd.bm <http://testpd.bm
  testpd.toc
 ***********







-----Message d'origine-----
De : powerdot-bounce@xxxxxxxxxxxxx <mailto:powerdot-bounce@xxxxxxxxxxxxx
[mailto:powerdot-bounce@xxxxxxxxxxxxx ;<mailto:powerdot-bounce@xxxxxxxxxxxxx> ]
De la part de Petr Pošík Envoyé : lundi 16 janvier 2017 00:14 À :
powerdot@xxxxxxxxxxxxx <mailto:powerdot@xxxxxxxxxxxxx>  Objet : [powerdot] 
Re: Misplaced slides on
portrait A4 paper after update

Patrice,

thanks a lot for your report. I diffed our list of files and found
only the following
differences:

- mine:
geometry.cfg
- Patrice:
     geometry.cfg not listed at all

- mine:
pstricks.tex    2016/12/23 v2.71 `PSTricks' (tvz,hv)
- Patrice:
pstricks.tex    2016/09/23 v2.70 `PSTricks' (tvz,hv)

- mine:
  pst-fp.tex    2016/12/23 v2.71 `PST-fp' (hv)
- Patrice:
  pst-fp.tex    2016/09/23 v2.70 `PST-fp' (hv)

- mine:
powerdot-default.sty    2014/01/01 v1.5 default style (HA)
- Patrice:
powerdot-default.sty    2005/12/10 v1.4 default style (HA)

On your system, a bit older packages are installed, but I am not sure
where the difference my come from. I found a bit strange that on your
system powerdot
1.5 is installed, but powerdot-default.sty from 1.4 was used...

Patrice, were you able to see the DVI correctly? If DVI is OK, maybe
dvips is not working correctly. I have:

C:\>dvips --version
This is dvips(k) 5.996 Copyright 2016 Radical Eye Software MiKTeX
2.9.6210 64- bit Copyright 2016 Radical Eye Software.
There is NO warranty.  You may redistribute this software under the
terms of the GNU General Public License and the Dvips copyright.
For more information about these matters, see the files named COPYING
and dvips.h.
Primary author of Dvips: T. Rokicki.

Thanks for any help.

Petr


 

 

JPEG image

Other related posts: