Scaling an A5 document to A4 Tex output

So… I’ve produced a document, composed in MMD, in Scrivener, compiled to XeTeX, output to 52pp. A5 pdf file, using a heavily-edited memoir-class leader.tex file:


So far so good.

Now I find I’d like to reproduce / scale the whole document to A4 output — which can be achieved by up-scaling the output PDF, (using A5>>A4 ratio of 142%), with some loss of resolution to images etc.

However, I’d like to achieve a similar effect, using LaTeX output directly, (which can be downscaled by my printer, when a5 output required with a preferable result to up-scaling) hence begin:


Result: text output is too small for my use, as are images, tables etc. I want to finish with an ouput A4 pdf that is more or less precisely the same as SCALED output A5, same no. pages etc.

Can anyone advise:

  1. Is there a way to simple increase the font size, within my *.tex leader file?

  2. Is there a way, within Scrivener, to tell it to output images, tables to “fit width” settings?

Thank you for any help available on this.

This is a link to the document, which has been scaled-up by my printer: View your artwork | Mixam

Note: cover pages imported — it is the text output from p1 onwards referrenced in this query.

I’ve been able to learn the answer to the first part of this query.

  1. Yes … set 14pt on A4 paper; adjust spine / fore-edge margins and upper (header) / lower (footer) margins:
\setlrmarginsandblock	{25mm}{28mm}{*}	% {spine}{fore-edge}
\setulmarginsandblock	{25mm}{25mm}

No answer yet re. q.2.

It is probably not exactly what you are looking for, but in your compile screen, under the cog tab is a “scale images to page width” check box. However it is not an option within all settings. It depends upon what you have chosen in "Compile for ___ " at the top center,

It is available when you compile to the second group (rtf, docx, doc and odt), though I don’t know if it affects tables if they are not images.

thanks for that suggestion; it doesn’t appear to be an option for Multimarkdown–>LaTeX compilation.

As far as image handling goes, the best way to see what Scrivener is doing is to compile to plain “MultiMarkdown” and look at the .md file in a text editor. At the very bottom you’ll see how it is marking each image’s size.

This may or may not work for you, depending on the types of images you have, but a neat trick specific to MultiMarkdown is that if you give no image size data in this part of the file, then its LaTeX output will use this output for the graphic:


That will work no matter the paper size, though as I say it does depend on the image type. I can’t often use this trick because I sometimes use smaller images and this blows them way up to visible blurry pixels. I suppose you could get fancy with this and make a proper script that not only checks the image line, but determines whether its specified point width is too wide for the intended output, and strip it, but otherwise leave it alone if it is smaller.

As for how to get these stripped out straight from Scrivener, you’d need to dip into the Processing compile format tab to some extent. You could either use a sed, perl or ruby one-liner here, or do that in a script and use the command here to call on the script. I’d go with a one-liner, as stripping those out would be a pretty simple regex operation.

This post covers the basics of how you can do that in the processing pane.

1 Like

Thanks, as ever, Amber, for your helpful suggestions.

I’ve found a practical workaround that suits me: I create two versions of the image, one for a4, one for a5 compiled outputs, then simply filter out the unwanted images, using Scrivener labelling system, at compile.

That’s definitely how I approach it! Leaving images to on-the-fly scaling will almost always reduce their quality, or conversely result in PDFs that are way bigger than they need to be when making a smaller version of the document. It’s good to establish this kind of setup in case you ever need an ePub as well, as you can provide even more compressed images for that format.