News for hackers. Stuff that matters.
Re:The Typography of Legal Opinions by chrismorgan on Saturday June 25, 2022 @03:05AM (#31873205)
> Gen­er­ously large page mar­gins.

You know how awful large margins are if you have a PDF and a screen that isn’t large enough to display the full page at a readable size? You want to display one page at a time so j and k or Left and Right or whatever work to go to the next page rather than messing around with scrolling, but this actually means that you want to crop every page to throw away the ridiculously large margins, and most PDF viewers don’t support doing that. (To make it worse, add unbalanced left/right margins.)

I wish for a world where document formats don’t support page margins at all, in favour of choosing margins at display or print time. (Yes, I know that at the extremes this starts to conflict with static pagination which is sometimes even more valuable, but humour me anyway in contemplating what you’d change in such a world.)

Re:The Typography of Legal Opinions by mormegil on Saturday June 25, 2022 @03:10AM (#31873227)
I _think_ you want a feature where the reader removes any margins in the document for display. Basically, a "crop the paper format" function. And... yeah, I'd want my reader to have that! (And my Kindle! When sometimes reading a PDF, this would be great!) Does any PDF reader support something like that?
Re:The Typography of Legal Opinions by pfortuny on Saturday June 25, 2022 @05:33AM (#31873788)
In emacs with pdf-tools it seems you can enable a minor mode:

pdf-view-auto-slice-minor-mode

which does the trick. Just learned it.

EDIT: could try it. Exactly as intended. Will be of great help (I can now have a complete latex page in view with decent font size).

Re:The Typography of Legal Opinions by nyanpasu64 on Saturday June 25, 2022 @10:53AM (#31875774)
I've been using https://pypi.org/project/pdfCropMargins/ (and reporting bugs which have been fixed) to pre-crop my PDF files, so they work on all readers. I haven't tried PDF reflowing yet though.
Re:The Typography of Legal Opinions by drifkin on Saturday June 25, 2022 @03:48AM (#31873364)
GoodReader on iPad has this (though you set it for the document manually). It even lets you choose a different view-time crop for odd and even page numbers.
Re:The Typography of Legal Opinions by r3trohack3r on Saturday June 25, 2022 @10:00AM (#31875362)
The ReMarkable tablet supports this natively. And, IIUC, the purpose of the margins is for notes; the ReMarkable also supports inserting blank pages into a pdf for note taking.
Re:The Typography of Legal Opinions by jchmrt on Saturday June 25, 2022 @05:06AM (#31873669)
On Android, KOReader is able to do this (and free and open source). It can even reflow the text quite well so that it fits on a smaller display like a phone, if needed.
Re:The Typography of Legal Opinions by ergl on Saturday June 25, 2022 @05:12AM (#31873698)
Skim pdf is a good option if you're on macOS: https://skim-app.sourceforge.io/
Re:The Typography of Legal Opinions by chrismorgan on Saturday June 25, 2022 @03:22AM (#31873276)
I think I’ve seen it on some desktop PDF software before, though I can’t think what, and the reMarkable can do it.
Re:The Typography of Legal Opinions by hoppyhoppy2 on Saturday June 25, 2022 @09:51AM (#31875294)
Okular (Linux/Windows) can do this
Re:The Typography of Legal Opinions by red_trumpet on Saturday June 25, 2022 @04:37AM (#31873537)
For Android, Librera is able to do that.
Re:The Typography of Legal Opinions by rhn_mk1 on Saturday June 25, 2022 @03:29AM (#31873306)
Okular trims margins like that. It's not perfect with scans, and page numbers can bring them back though.
Re:The Typography of Legal Opinions by formerly_proven on Saturday June 25, 2022 @04:29AM (#31873500)
Besides the automatic trim margins option in Okular, you can also set custom margins to trim unwanted stuff.
Re:The Typography of Legal Opinions by layer8 on Saturday June 25, 2022 @06:49AM (#31874184)
> most PDF viewers don’t support doing that

Acrobat Reader does, while also supporting continuous vertical scrolling and cropping out the space between pages (you’ll still have the page margins). You can then just PgUp/PgDn through the entire document. I believe there are other readers supporting similar modes.

The only problem is documents that use significantly different margins for even and odd pages.

What is much worse is PDFs with multiple columns per page.

Re:The Typography of Legal Opinions by II2II on Saturday June 25, 2022 @08:15AM (#31874599)
> To make it worse, add unbalanced left/right margins.

Along with headers/footers and any number of other features which can make automatic cropping difficult. I tend to read PDFs on KOReader, which is quite good at allowing the reader to zoom in on the page and follow the flow of the text, even on multicolumn documents. Yet there are undeniably limits to what it can do.

Re:The Typography of Legal Opinions by chazeon on Saturday June 25, 2022 @08:18AM (#31874620)
More often than not I want a “increase margin” rather than crop margin. iOS Safari and Preview even on 12.9” iPad do not support shrink the page less than device width. Large margin makes my life comfortable.