TR2POST(1)
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:
-aaspectratio β set an aspect ratio(y/x)to stretch the PostScript output. Default is1.0. Stretch era, literally. π-ccopies β 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 Unixlp(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. π₯-mmagnification β magnify the PostScript output. Default is1.0. Big mood. π-nformsperpage β print the PostScript withformsperpagelogical pages per physical page. Default is1. Using this option emits PostScript with invalid document structuring comments. It will print fine but will not view correctly ingv(1)orpsv(seepage(1)). So it slays on paper and flops in preview β noted. π-opagelist β print only the pages in pagelist, which is a comma-separated list of ranges. Each range is of the formp(just pagep),p-q(pagespthroughq),-p(pages1throughp), orp-(pagespthrough the end of the document). Iconic little range buffet. π-pl β print the document in landscape mode. An argument that does not begin withlwill print the document in portrait mode. Rotate responsibly. π-xxoffset β translate the page output by xoffset inches to the right. Negative offsets translate to the left. Left is also a direction, bestie. β¬ οΈβ‘οΈ-yyoffset β translate the page output by yoffset inches down. Negative offsets translate up. Up, up, and away. β¬οΈβ¬οΈ-Ppscode β 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. ππ«Ά
π¦ where this page comes from
- alpine 3.24: plan9port-doc 0_git20260208-r0 Β· LPL-1.02
- arch rolling: plan9port 20261021-2 Β· custom
- nixos 26.05: plan9port 0-unstable-2025-11-10
- nixos 26.05: plan9port-wayland 0-unstable-2025-11-26
- nixpkgs unstable: plan9port 0-unstable-2025-11-10
- nixpkgs unstable: plan9port-wayland 0-unstable-2025-11-26
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms