Ceating a table in UNIX using tbl & troff -
i have create table in troff, have:
.ts tab(:); c s s c | c | c l | l | n. custome pc specs = component:selection:price _ cpu:intel core i5-4690k 3.5ghz quad-core processor:$219.99 _ motherboard:msi z97-gaming 5 atx lga1150:$129.88 _ memory:corsair vengeance pro 16gb (2 x 8gb) ddr3-1866 memory:$74.88 _ storage:sandisk x110 128gb 2.5" solid state drive:free \^:western digital 1tb 3.5" 7200rpm internal hard drive:$38.77 _ video card:msi geforce gtx 970 4gd5t oc 4gb gddr5:$289.99 _ case:corsair graphite series 230t orange atx mid tower case:$73.46 _ power supply:corsaircx 750w 80+ bronze certified semi-modular atx:$59.99 _ optical drive:asus drw-24b1st/blk/b/as dvd/cd writer:$12.89 _ operating system: microsoft windows 10 pro oem (64-bit):free _ wan: tp-link tl-wn881nd 802.11b/g/n pci-express wi-fi adapter:$18.89 _ case fan: cooler master sickleflow 69.7 cfm 120mm fan:$9.99 _ monitor:monoprice 12178 144hz 24.0" monitor:$229.99 _ keyboard: corsair vengeance k70 wired gaming keyboard:$119.99 _ mouse: razer deathadder 2013 wired optical mouse:$59.99 _ total: :$1,388.70 _ .te
i try execute typing tbl [filename] | troff , not getting table, i've tried using other options i'm not sure if understand how troff works.
with gnu troff, have processed file using following invocation:
groff -t -tascii tbl.tr > tbl.txt
-t
tells troff
use run tbl
preprocessor , -tascii
set ascii
output device, produces plain text output.
here first 3 lines of result:
custome pc specs -----------------+-----------------------------------------------------------+-------------- component | selection | price -----------------+-----------------------------------------------------------+-------------- cpu | intel core i5-4690k 3.5ghz quad-core processor | $219.99 -----------------+-----------------------------------------------------------+-------------- motherboard | msi z97-gaming 5 atx lga1150 | $129.88 -----------------+-----------------------------------------------------------+--------------
your error came ignorance of troff options. please, peruse corresponding section of manual either gnu troff or whatever other flavour may using.
the best source of gnu troff mailing list.
Comments
Post a Comment