1
1
Fork
You've already forked utmac
0
set of troff macros
  • Roff 97%
  • Makefile 3%
Find a file
2025年07月18日 10:29:31 +02:00
demo ux.tmac now translate tables to xml. 2021年05月28日 08:24:01 +02:00
neatroff neatrof/makefile: default path for local fonts is ~/.local/share/fonts. 2023年09月03日 16:11:37 +02:00
.gitignore Translate an U troff file to xml. 2013年03月15日 21:31:11 +01:00
LICENSE Use the simpler ISC license. 2018年04月10日 18:16:03 +02:00
makefile Use the Libertinus font as default instead of unmaintained linux-libertine. 2023年09月03日 16:04:35 +02:00
README README: update links to codeberg repositories. 2025年07月18日 10:29:31 +02:00
u-apolline.tmac u-apolline uses tabular nums in small caps. 2020年12月14日 11:24:50 +01:00
u-biolib.tmac Switch to neatroff. Heirloom troff version remains in the heirloom branch. 2018年04月13日 18:16:26 +02:00
u-biolinum.tmac Switch to neatroff. Heirloom troff version remains in the heirloom branch. 2018年04月13日 18:16:26 +02:00
u-en.tmac Switch to neatroff. Heirloom troff version remains in the heirloom branch. 2018年04月13日 18:16:26 +02:00
u-eps.tmac Use Ali Gholami Rudi tmac.eps to include pdf and eps files. 2018年04月24日 08:53:57 +02:00
u-fonts.tmac u-fonts: add ability to colorize fonts. 2025年07月18日 10:11:37 +02:00
u-fr.tmac Groff's .char request needs named glyphs. Fix troff \'Uxxxx' typos. 2020年11月14日 15:31:42 +01:00
u-graph.tmac Set copyright correctly. 2019年07月12日 22:54:10 +02:00
u-grind.tmac Switch to neatroff. Heirloom troff version remains in the heirloom branch. 2018年04月13日 18:16:26 +02:00
u-idx.tr Only build tmac files that actually need building. 2020年11月14日 15:56:40 +01:00
u-include.tmac Restore space before placing image. 2019年05月15日 14:51:01 +02:00
u-libertine.tmac u-libertine uses onum by default. Acronyms use c2sc. 2020年12月14日 11:25:46 +01:00
u-libertinus.tmac Use the Libertinus font as default instead of unmaintained linux-libertine. 2023年09月03日 16:04:35 +02:00
u-links.tmac Fix links issues with neatpdf by using the .dv request of neatroff. (bug report by Johann Höchtl) 2020年11月04日 15:33:51 +01:00
u-neatref.tmac Add u-neatref.tmac (work in progress). 2019年07月12日 23:01:48 +02:00
u-pdf.tmac Colorize links. Adds color-link variable. 2021年11月13日 12:30:07 +01:00
u-ref.man Typo fixes. 2020年06月09日 20:36:00 +02:00
u-ref.tr Only build tmac files that actually need building. 2020年11月14日 15:56:40 +01:00
u-sum.tmac Switch to neatroff. Heirloom troff version remains in the heirloom branch. 2018年04月13日 18:16:26 +02:00
u-tbl.tmac u-tbl: add ability to set the color in document. 2025年07月18日 10:24:18 +02:00
u-typo.tmac Switch to neatroff. Heirloom troff version remains in the heirloom branch. 2018年04月13日 18:16:26 +02:00
u-var.tmac Use the Libertinus font as default instead of unmaintained linux-libertine. 2023年09月03日 16:04:35 +02:00
uh.tmac Start page:head from a diversion instead of from doc:start. 2023年09月03日 16:28:06 +02:00
ul.tmac ul.tmac: tiny fixes. 2025年07月18日 10:06:59 +02:00
um.tmac For man pages, .vE behaves as .PP 2019年07月13日 12:51:06 +02:00
us.tmac us: fix color fonts. 2025年07月18日 10:22:11 +02:00
ut.tmac Don't break url containing a '-'. 2020年11月15日 15:25:23 +01:00
utmac-hack.man Use the Libertinus font as default instead of unmaintained linux-libertine. 2023年09月03日 16:04:35 +02:00
utmac.man Use the Libertinus font as default instead of unmaintained linux-libertine. 2023年09月03日 16:04:35 +02:00
uw.tmac Switch to neatroff. Heirloom troff version remains in the heirloom branch. 2018年04月13日 18:16:26 +02:00
ux.tmac ux: better support for tbl tables. 2025年07月18日 10:26:36 +02:00

Utmac - set of troff macros
===========================
The U troff macros — utmac — is a set of macros aiming to produce
beautiful documents easily. Bibliography, indexes, table of content
and summaries can be automatically inserted. Utmac informs about
orphans, widows and empty lines at the bottom of a page. It can
produce pdf files, ReStructuredText files, plain text files, and clean
xml files — and so, with some xsl stylesheet, flat open document texts
(fodt) and html files.
While historicaly Utmac was using Gunnar Ritter's troff (also called
heirloom troff), it is now using Ali Gholami Rudi's neatroff. Neatroff
is a wonderful troff implementation, performing a paragraph at once
adjustment, while being easy to use and install.
Usage
=====
Utmac is documented in the manual pages "utmac", "u-ref", and
"utmac-hack". Here is only a quick reference.
The following macro files can be used by the user (called with the ‐m
option of troff):
- uh: Made with humanities in mind. It uses marginal notes instead of
 footnotes.
- ul: A macro to write letters and short texts.
- um: Translate an utmac document to the manpage format with nroff.
- ut: Translate an utmac document to a flat text file (such as README
 files) with nroff.
- us: Made for technical documentation. It uses a common layout,
 reminiscent of the old troff ms.
- uw: Translate an utmac document to the markdown wiki format.
- ux: Translate an utmac document to xml. This macro must be used
 with the postxml (from troffxml) post‐processor.
Additionaly, some configuration can be achieved by loading these
macros:
- u-en: English localization (default).
- u-fr: French localization.
- u-apolline: Use the Porchez Typofonderie Apolline Font.
- u-libertinus: Use the Libertinus font (default).
- u-libertine: Use the Linux Libertine font.
- u-biolinum: Use the Linux Biolinum font.
- u-biolib: Use a mix of Linux Libertine and Biolinum.
So, to format an english document, you will do:
	$ roff -mul f.tr | pdf -pa4 > f.pdf
While to format a document in french with the biolinum font, you should
do:
	$ roff -mu-fr -mu-biolinum -muh f.tr | pdf -pa4 > f.pdf
# Installation
--------------
To build and install, edit the makefile to suit your needs, and do:
 $ make
 $ make install
To uninstall, and clean this directory, do:
 $ make uninstall
 $ make clean
# Dependencies
--------------
Utmac is supposed to be used with Neatroff <http://litcave.rudi.ir>. The
subdirectory "neatroff" contains a makefile to help you to build and install
it for the needs of utmac.
By default, Utmac uses the libertinus font, which must be transferred in the
neatroff font format. The makefile in the subdirectory "neatroff" will do that
for you.
To benefit of all the functions of Utmac, you can also install:
- refer <http://codeberg.org/pjfichet/refer>, to format bibliography
 references.
- idx <http://codeberg.org/pjfichet/idx>, to index keywords in your
 documents.
- ugrind <http://codeberg.org/pjfichet/ugrind>, to highlight source
 code in your documents.
- tchars <http://codeberg.org/pjfichet/tchars>, to write polytonic
 greek.
- troffxml <http://codeberg.org/pjfichet/troffxml>, to convert your
 utmac documents to xml, html, and fodt.
# License
---------
Utmac and its manual page are distributed under the ISC license.