Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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



That 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...


> 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!


Is 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.


To 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%20Pal...


> 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_relea...


Just like my AT&T 3B2 manual from 1985!


If 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.


On OS X 10.11.6, Preview fails with "The PostScript file "open_afberandom.txt" could not be converted to a PDF file." :(


For 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?


Worked on my machine with 10.11.6.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: