Bug 335905 - Kile seems to make a pig's ear when processing A5 documents
Summary: Kile seems to make a pig's ear when processing A5 documents
Status: RESOLVED WORKSFORME
Alias: None
Product: kile
Classification: Applications
Component: general (show other bugs)
Version: 2.1.3
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Michel Ludwig
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-06 22:28 UTC by John Hunter
Modified: 2023-01-02 05:28 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Hunter 2014-06-06 22:28:36 UTC
I am trying to produce a 63 page A5 document. The header line of the doc is:
\documentclass[a5paper,twoside,10pt]{article}
I initially tried the "PDFLatex" button. The resulting output, as displayed in Okular, was awful: the page was A4 (I think) and the bottom half of the text was missing off the bottom of the page (all 63 of them!). After a lot of trial and error, I tried Kile to perform Latex -> dvi | dvips. On a detailed examination of the PS file there was the following:
%%BeginPaperSize: a4
/setpagedevice where
{ pop << /PageSize [420 595] >> setpagedevice }
{ /a4 where { pop a4 } if }
Eventually, to get sensible output, I had to run dvips manually:
dvips -t a5 -O 0cm,0cm pamphlet.dvi
to get anything like the expected output. The obvious cure to this problem
would seem to be to add these extra options to dvips (or whatever) when the papersize is anything other than letter or A4

Reproducible: Always

Steps to Reproduce:
1. see the description above
2.
3.



When non-default paper sizes are used:
kile needs to be informed
Kile needs to modify processing scripts accordingly.

configuration
Linux version 3.11.0-23-generic 
CPU: Intel i5-2320 CPU @ 3.00GHz
6GB ram

I am using an Ubuntu derived distro: NetRunner 13:12
Comment 1 Andrew Crouthamel 2018-11-11 04:25:16 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 2 John Hunter 2018-11-11 12:52:36 UTC
Update: The symptoms are masked using the package 'vmargin'. Running LaTeX (via kile) still results in a header line in the PS version:
"%%DocumentPaperSizes: a4"
followed further down by:
%%BeginPaperSize: a4
/setpagedevice where
{ pop << /PageSize [595 842] >> setpagedevice }
{ /a4 where { pop a4 } if }
ifelse
%%EndPaperSize
 end
%%EndSetup

which does not give me any confidence that the underlying issue has been addressed. I still cannot get the booklet to print two pages to a sheet of A4 paper. My suspicion is that there are other hidden hints in the PS and the PDF to the print drivers that the document is really A4.
In summary, I can get it to look pretty on a screen but not in print. The issue could be with kile or LaTeX and/or PDFLaTeX.
Comment 3 John Hunter 2018-11-11 12:58:10 UTC
Not "FIXED"! Need some guidance where to look next.
Comment 4 Justin Zobel 2022-12-03 09:01:23 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 5 Bug Janitor Service 2022-12-18 05:14:49 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 6 Bug Janitor Service 2023-01-02 05:28:50 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!