-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
\magscale and PDF paper size #137
Comments
It's not entirely clear to me either. The magnification of all dimensions used in the document was implemented in the classical TeX as a constant (so called MAG value) saved to the header of the DVI output. All dimensions were unchanged inside DVI output and the DVI driver was responsible to scale all dimensions from DVI by MAG when the printing was processed. If a user wanted to specify a real dimension (which was printed), then he used the truept, truemm, truecm etc. units and TeX saved to the DVI the desired dimension divided by MAG. DVI driver scaled all dimensions by MAG, so these "true" dimensions were printed in desired size. The MAG value can be saved to the DVI using What happens when the output is PDF, not DVI and \mag primitive is used? Try this:
I see no difference between the output when I understand that this is not optimal, but the desired aim: "to keep the paper dimensions unscaled and scale all dimensions used in the PDF" is not trivial to reach. So, let's this |
(Sorry for the late reply.)
Last I checked, it was visually exactly equivalent to using
Can I ask why is it that paper dimensions are defined in terms of Thanks. |
Consider the following example:
If I comment out the first or second line with the
\margins
command, the output does not change visually. This is to expected as the dimensions of a4 paper are roughly 1.193 times that of b5 paper.Now, what is curious is that, the example above produces a PDF for which the page dimensions listed in the metadata are those of b5 paper. For the example above, shouldn't the paper dimensions of the PDF be those of a4 paper?
This behavior is not specific to one PDF reader. I tested Gnome Document Viewer, Firefox and Okular.
Also, it does not seem to make a difference if one of the lines with the
\margins
command is commented out.As I said the output is visually the same in any case. That being said, I haven't tried printing the PDF produced by the example above to see if the paper size listed in the metadata is actually correct.
Perhaps I just don't understand what
\magscale
is supposed to do. What do you think?I'm on version 1.09.
The text was updated successfully, but these errors were encountered: