TGT(1)

πŸ‘‘ TGT β€” the Tool for Generic Tables era πŸ’…

okay so bestie, welcome to tgt β€” short for Tool for Generic Tables β€” and no, it is not a spreadsheet, it is so much more. it's giving graphic design but make it tables. periodt.


✨ SYNOPSIS ✨

tgt [options] [document]

🌸 DESCRIPTION 🌸

tgt is an X11/Motif based graphical editor for drawing generic tables. like, you literally draw them. with a mouse. iconic behaviour honestly.

documents can be loaded from and stored to a file, because we respect persistence in this house 🫢. it can print documents to a PostScript printer, or save as PostScript to a file. your table, your rules, your output format.

and like β€” tgt is part of The Toolkit for Conceptual Modeling (TCM), so it's not out here alone, it's in a whole friend group of tools. iykyk πŸ’–


πŸŽ€ ARGUMENTS πŸŽ€

you can call tgt with a single document name as argument, that's it, one (1) document, don't be greedy:

  • if that argument is an existing file, tgt tries to load a document from it πŸ“‚
  • if it does not exist, a new document is created with the argument as the document name ✨

tgt files should have suffix *.gt. like, that's the vibe, that's the naming convention, respect it.

if you pass no document name at all? no stress. tgt creates a new generic table with the name untitled.gt. the classic default name moment, we've all been there πŸ’€


in addition to the standard X11 toolkit options (peep X11(7) for those, bestie), tgt accepts the options listed below. so many options. all of them valid. all of them yours. πŸ‘‘

  • -cell widthx*height* β€” sets the minimal cell size of the editor to width pixels wide and height pixels high. the cells in the initial table have the minimal size. so like, tiny little cells until you say otherwise πŸ“
  • -drawing widthx*height* β€” create a drawing area of width pixels wide and height pixels high. that's your canvas, that's your stage, main character energy 🌈
  • -help β€” writes all available options to standard output and quits. it's the "bestie what are my options" button 🫢
  • -maxdrawing widthx*height* β€” the drawing area can not be larger than width pixels wide and height pixels high. there is a ceiling, there is a limit, that's the rule ⭐
  • -priv_cmap β€” start the editor with a private colormap. fancy colour privilege unlocked πŸ’…
  • -projdir directory β€” set the project directory (that's the current working directory) to directory. moving the whole operation somewhere else, no big deal πŸ’œ
  • -table rowsx*columns* β€” the table editor will be initialized with a table having rows rows and columns columns. by default the initial table has 7 rows and 7 columns. seven by seven, that's the starter pack 🧚
  • -toEPS [file.eps] β€” generate EPS (to file.eps, or to stdout when no file name was given) and quit. one and done, no lingering πŸ‘‘
  • -toFig [file.fig] [-latex] β€” generate Fig format (to file.fig, or to stdout when no file name was given) and quit. when the -latex option is given, LaTeX fonts are generated, otherwise normal PostScript fonts are generated. and the Fig format can be read by xfig(1) and fig2dev(1), so your table gets to go hang out with the fig crowd πŸ¦‹
  • -toPNG file.png β€” generate PNG format to file.png and quit. pixels. png. perfection. πŸ”₯
  • -toPS [file.ps] β€” generate PostScript (to file.ps, or to stdout when no file name was given) and quit. it's giving printer-adjacent πŸ’–
  • -version β€” write the TCM version to standard output and quit. say hi to the version number, then leave 😌

🌟 ENVIRONMENT 🌟

  • TCM_HOME β€” should be the directory where the TCM files are installed. the home base. the mothership 🏠
  • PATH β€” should include $TCM_HOME/bin
  • MANPATH β€” should include $TCM_HOME/man
  • PRINTER β€” name of the default printer that is used by tgt. yes, it will just print there. set it, bestie πŸ–¨οΈ
  • LD_LIBRARY_PATH β€” should include $TCM_HOME/lib when the distribution contains shared object libraries in $TCM_HOME/lib.

πŸ’œ FILES πŸ’œ

heads up: the following relative files are relative to $TCM_HOME. so like, mentally prepend that path to everything below, okay? 🫢

  • bin/tgt β€” the generic table editor. that's her. that's the one πŸ’…
  • bin/psf β€” a program to filter PostScript output.
  • lib/banner.ps β€” PostScript banner page that can be used when the printer does not print a banner page. for when your printer is being unhelpful and won't do the cute cover page itself 😭
  • lib/help/* β€” the help directory contains a collection of text files for the on-line help.
  • lib/TCM β€” X Resources (the same as the ones that are built-in). you can customize the fonts and colors by setting resources in your X defaults database. each string of the form TCM.resource:definition sets a resource. yes, TCM.resource:definition exactly, that's the format, no cap ✨
  • /tmp/tcmXXXXXX β€” pseudo random temporary file, for PostScript output. it's random, it's temp, it's ephemeral, we love a fleeting moment πŸ“
  • lib/tcm.conf β€” TCM editor configuration file. this file contains values for some of the editor defaults like the page size, the default fonts etc. this file is read by each editor upon startup. so every editor reads it. every single one. the shared brain cell 🧠
  • $HOME/.tcmrc β€” each user of TCM can override some of the options of tcm.conf by its own configuration file, installed in $HOME/.tcmrc. your personal override era, your main character config file πŸ‘‘

🌈 SEE ALSO 🌈

Frank Dehne, Roel Wieringa and Henk van de Zandschulp β€” TCM (Toolkit for Conceptual Modeling), User's Guide and Reference. this document is available as PostScript and HTML in $TCM_HOME/doc or as HTML via the URL http://www.cs.utwente.nl/~tcm/tcm-usersguide.html. go read it, it's giving documentation πŸ’–

also go say hi to these:

tcm(1), X11(7), xfig(1), fig2dev(1)


🫢 AUTHOR 🫢

Frank Dehne (frank@cs.vu.nl). thank you frank, king behaviour honestly πŸ‘‘


πŸ’€ BUGS πŸ’€

please send bug reports to tcm@cs.utwente.nl. they want to know. they need to know. do not gatekeep the bugs bestie πŸ™ˆ


and that's the whole page! this manual page is from General Commands Manual, dated 9 January 2000, and it covers TGT(1) β€” so like, a little vintage, a little retro, but the table energy is eternal. slay βœ¨πŸ’…πŸŽ€