4 ms·
> And it would be really nice if I could read man pages in the terminal in a proportional font, but preserving alignment etc. Most man utilities can write post
by kccqzy 10y ago
> And it would be really nice if I could read man pages in the terminal in a proportional font, but preserving alignment etc.
Most man utilities can write postscript instead of directly to terminal. You can use that to achieve exactly what you want. Though this is not exactly in the terminal itself.
Example: I don't have zsh for comparison but on my OS X machine, running `man -t bash | open -f -a Preview` results in this: https://dl.dropboxusercontent.com/u/845567/bash%281%29.pdf https://dl.dropboxusercontent.com/u/845567/bash%281%29.pdf
- zo7 10y agoThat is beautiful! I didn't realize you could pipe into OSX's `open` util. (or how big the man page for bash really is!) Here's zsh: https://drive.google.com/file/d/0B_jWp8d11aB5Wi15eVdJS1Nhdk0/view?usp=sharing https://drive.google.com/file/d/0B_jWp8d11aB5Wi15eVdJS1Nhdk0...
- oneeyedpigeon 10y ago> I didn't realize you could pipe into OSX's `open` util It kinda sucks that you can't just pipe directly to Preview, but I suppose we should be grateful this wonderful pipeline does actually work!
- 0942v8653 10y agoIs there a way to avoid Times New Roman? Some of the characters are pretty ambiguous. I remember, back when I used that command, I mixed up an l and a 1 for one of the flags.
- hashmymustache 10y agoIf instead of -t you pipe the output of the manpages into groff which is responsible for the file type, formatting, etc there is a font-family flag.
- kccqzy 10y agoTo be pedantic, the font you're seeing isn't Times New Roman, but rather Times. They're similar, but there are subtle differences. Yes, you can choose a default font. You need to change your /etc/man.conf, find the line that starts with TROFF, and add new options. For example, to use Palatino as the default font, you should additionally provide the option `-f P`. Then you'll get this output: https://dl.dropboxusercontent.com/u/845567/bash%281%29%20Palatino.pdf https://dl.dropboxusercontent.com/u/845567/bash%281%29%20Pal...
- amyjess 10y ago> To be pedantic, the font you're seeing isn't Times New Roman, but rather Times. They're similar, but there are subtle differences. And there's an interesting history to that split: https://en.wikipedia.org/wiki/Times_New_Roman#Linotype_releases https://en.wikipedia.org/wiki/Times_New_Roman#Linotype_relea...
- throwanem 10y agoJust like my AT&T 3B2 manual from 1985!
- AceJohnny2 10y agoOn OS X 10.11.6, Preview fails with "The PostScript file "open_afberandom.txt" could not be converted to a PDF file." :(
- oneeyedpigeon 10y agoFor once, I'm glad I'm still running 10.9.5. Can anyone confirm whether issue is unique to OP or something broken in OS 10.11?
- 505 10y agoWorked on my machine with 10.11.6.