TR2POST(1)

πŸ“¦ version 0_git20260208, in alpine 3.24, arch rolling, nixos 26.05, nixpkgs unstable

okay so bestie, welcome to tr2post(1) from the General Commands Manual β€” she converts troff intermediate into PostScript and honestly? main character energy. πŸ’…

✨ NAME ✨

tr2post β€” convert troff intermediate to PostScript.

πŸ¦‹ SYNOPSIS πŸ¦‹

tr2post [ options ] [ files ...  ]

πŸ’– DESCRIPTION πŸ’–

So tr2post takes files (or standard input, no cap) and turns them into the PostScript printer language. Those files should be the device-independent output of troff(1) β€” that’s the vibe check. ✨

The options are, bestie:

  • -a aspectratio β€” set an aspect ratio (y/x) to stretch the PostScript output. Default is 1.0. Stretch era, literally. πŸ’ƒ
  • -c copies β€” set a comment in the PostScript output marking the number of copies that should be printed. This comment is intended for ancient versions of the Unix lp(1) and is not recognized by any current printer or print spooler. She’s giving vintage, not functional. πŸ’€
  • -d β€” emit volumes of debugging output on standard error. Volume knob goes to eleven, bestie. πŸ”₯
  • -m magnification β€” magnify the PostScript output. Default is 1.0. Big mood. πŸ”
  • -n formsperpage β€” print the PostScript with formsperpage logical pages per physical page. Default is 1. Using this option emits PostScript with invalid document structuring comments. It will print fine but will not view correctly in gv(1) or psv (see page(1)). So it slays on paper and flops in preview β€” noted. 😭
  • -o pagelist β€” print only the pages in pagelist, which is a comma-separated list of ranges. Each range is of the form p (just page p), p-q (pages p through q), -p (pages 1 through p), or p- (pages p through the end of the document). Iconic little range buffet. πŸ“
  • -p l β€” print the document in landscape mode. An argument that does not begin with l will print the document in portrait mode. Rotate responsibly. πŸŒ€
  • -x xoffset β€” translate the page output by xoffset inches to the right. Negative offsets translate to the left. Left is also a direction, bestie. β¬…οΈβž‘οΈ
  • -y yoffset β€” translate the page output by yoffset inches down. Negative offsets translate up. Up, up, and away. ⬆️⬇️
  • -P pscode β€” emit the text pscode at the end of the usual PostScript header. Tiny cameo, big impact. πŸŽ€

🌈 EXAMPLE 🌈

Preview this manual page, bestie:

troff -man /man/man1/tr2post.1 |
tr2post |
psfonts >/tmp/a.ps
psv /tmp/a.ps

🧚 SOURCE 🧚

/src/cmd/postscript/tr2post

πŸ‘‘ SEE ALSO πŸ‘‘


okay bestie, that’s the whole page. Source/version/date check: source is /src/cmd/postscript/tr2post, and the footer is TR2POST(1) β€” no version or date is listed, just the classic footer. πŸ’–πŸ«Ά