From 4e56dbeeb311bf8a674c4dd4384e3e0610292635 Mon Sep 17 00:00:00 2001 From: Ali Gholami Rudi Date: Thu, 3 May 2018 10:56:22 +0430 Subject: [PATCH] demo: use -mpost --- demo/Makefile | 2 +- demo/neat__.ms | 2 -- demo/neatcc.ms | 3 ++- demo/neateqn.ms | 3 ++- demo/neatroff.ms | 43 ++++++++++++++++++++++++------------------- demo/neatstart.ms | 5 +++-- 6 files changed, 32 insertions(+), 26 deletions(-) diff --git a/demo/Makefile b/demo/Makefile index a506023..42b1c85 100644 --- a/demo/Makefile +++ b/demo/Makefile @@ -8,7 +8,7 @@ PIC = $(BASE)/troff/pic/pic TBL = $(BASE)/troff/tbl/tbl SOIN = $(BASE)/soin/soin -ROFFOPTS = -mps -meps -mtbl -mkeep -men -msrefs +ROFFOPTS = -mps -mpost -mtbl -mkeep -men -msrefs POSTOPTS = -pa4 REFROPTS = -m -e -o ct -p ref.bib diff --git a/demo/neat__.ms b/demo/neat__.ms index 78b5ee0..b37981d 100644 --- a/demo/neat__.ms +++ b/demo/neat__.ms @@ -16,9 +16,7 @@ .. .rn SH SH_ .de SH -. nr oldns \\n[.ns] . ps.mark "\\$1" -. nr .ns \\n[oldns] . SH_ "\\$1" .. .fp - R PA diff --git a/demo/neatcc.ms b/demo/neatcc.ms index f2f8453..35e4b5d 100644 --- a/demo/neatcc.ms +++ b/demo/neatcc.ms @@ -1,7 +1,8 @@ .\" PSTITLE: The NEATCC C Compiler .so neat__.ms .ds en.cl "#468 -.ps.info "The NEATCC C Compiler" "Ali Gholami Rudi" +.post.info Title "The NEATCC C Compiler" +.post.info Author "Ali Gholami Rudi" .de uc \s-1\\$1\s+1 .. diff --git a/demo/neateqn.ms b/demo/neateqn.ms index 0372168..58bf7ce 100644 --- a/demo/neateqn.ms +++ b/demo/neateqn.ms @@ -1,7 +1,8 @@ .\" PSTITLE: Typesetting Mathematics with Neateqn .so neat__.ms .ds en.cl "#936 -.ps.info "Typesetting Mathematics with Neateqn" "Ali Gholami Rudi" +.post.info Title "Typesetting Mathematics with Neateqn" +.post.info Author "Ali Gholami Rudi" .HD .TL \f(HD\s+8Typesetting Mathematics with Neateqn\m0\s-8\fP diff --git a/demo/neatroff.ms b/demo/neatroff.ms index b3dd304..6dd9aa3 100644 --- a/demo/neatroff.ms +++ b/demo/neatroff.ms @@ -1,7 +1,8 @@ .\" PSTITLE: Neatroff Introduction .so neat__.ms .ds en.cl "#237 -.ps.info "Neatroff Introduction" "Ali Gholami Rudi" +.post.info Title "Neatroff Introduction" +.post.info Author "Ali Gholami Rudi" .de MH . sp . LP @@ -34,11 +35,11 @@ some of the shortcomings of the original Troff based on the ideas and features available in Plan 9 Troff, Heirloom Troff, and Groff. The latest versions of Neatroff, its PostScript and PDF post-processor, Neatpost, and its eqn preprocessor, Neateqn, -are available at their \*[ps.url http://litcave.rudi.ir/ "home\ page"]. +are available at their home page (\*[post.url http://litcave.rudi.ir/ link]). This document enumerates Neatroff's features, its new requests, and its differences compared to other Troff implementations. On the other hand, the document \(lqGetting Started with Neatroff\(rq -(available \*[ps.url http://litcave.rudi.ir/neatstart.pdf here]) +(\*[post.url http://litcave.rudi.ir/neatstart.pdf link]) explains how to set up and use Neatroff. .bp @@ -184,8 +185,7 @@ character mappings from the addresses specified via its arguments. The specified files should contain nothing but utf-8 patterns, exceptions and mappings respectively (i.e. no TeX code), just like the files whose names end with \&.pat.txt, \&.hyp.txt and \&.chr.txt in -\*[ps.url ftp://ftp.ctan.org/tex-archive/language/hyph-utf8/tex/generic/hyph-utf8/patterns/txt/ "this\ directory"] -for TeX. +CTAN for TeX (\*[post.url ftp://ftp.ctan.org/tex-archive/language/hyph-utf8/tex/generic/hyph-utf8/patterns/txt/ link]). The \&.hpfa request is like \&.hpf, except that it does not clear the previous hyphenation patterns and exceptions. The second and third arguments of these requests are optional. With no arguments, these @@ -404,38 +404,43 @@ difference between the current point size and S1. .bp .SH "Notes" .sp -1 -.MH "Generating the output device -The Neatmkfn program (available at \*[ps.url http://litcave.rudi.ir/]) generates -Neatroff font descriptions for AFM or TrueType fonts (OpenType fonts -are converted to TrueType first). It includes a script to create -a complete output device for Neatroff. +.MH "The standard macro packages +The standard Troff macro packages and a top-level build script to +obtain and install Neatroff are available in neatroff_make git +repository (\*[post.url http://litcave.rudi.ir/ link]). +\(lqGetting Started with Neatroff\(rq (\*[post.url http://litcave.rudi.ir/neatstart.pdf link]) +explains how to use this repository. .MH "Formatting equations with Neateqn Neateqn is an eqn preprocessor for Neatroff. It implements many of the extensions introduced in Groff's eqn preprocessor. It can use TeX's Computer Modern-style bracket-building symbols, if available. +\(lqTypesetting Mathematics with Neateqn\(rq (\*[post.url http://litcave.rudi.ir/neateqn.pdf link]) +introduces Neateqn. -.MH "The standard macro packages -The standard Troff macro packages and a top-level build script to -obtain and install Neatroff are available in neatroff_make git -repository (available at \*[ps.url http://litcave.rudi.ir/]). +.MH "Generating the output device +The Neatmkfn program (\*[post.url https://github.com/aligrudi/neatmkfn link]) +generates Neatroff font descriptions for AFM or TrueType fonts +(OpenType fonts are converted to TrueType first). It includes a +script to create a complete output device for Neatroff. .MH "Missing requests A few requests of the original Troff are not implemented: \&.pi, .cf, .rd, .pm, .ul, .cu, .uf, \\H, and \\S. .MH "Porting and distribution -Given that Neatroff, Neatpost and Neateqn can be compiled with Neatcc, -porting them to other Unix variants besides Linux should not be -difficult. Note that Neatroff is released under the ISC licence. +Given that Neatroff, Neatpost, Neatmkfn, and Neateqn can be compiled +with Neatcc, porting them to other Unix variants besides Linux should +not be difficult. Note that Neatroff is released under the ISC +licence. .MH "List of OpenType font features As mentioned in previous sections, font features can be enabled and disabled with \&.ff request. For the list of OpenType features in general and their descriptions, see -\*[ps.url "https://en.wikipedia.org/wiki/List_of_typographic_features" "this Wikipedia page"] -or the \*[ps.url http://www.microsoft.com/typography/OTSPEC/featurelist.htm "OpenType specification"]. +the list of typographic features in Wikipedia (\*[post.url https://en.wikipedia.org/wiki/List_of_typographic_features link]) +or OpenType specification (\*[post.url http://www.microsoft.com/typography/OTSPEC/featurelist.htm link]). .bp .SH "Font Description Files" diff --git a/demo/neatstart.ms b/demo/neatstart.ms index 8ceb391..e51e181 100644 --- a/demo/neatstart.ms +++ b/demo/neatstart.ms @@ -1,6 +1,7 @@ .\" PSTITLE: Getting Started with Neatroff .so neat__.ms -.ps.info "Getting Started with Neatroff" "Ali Gholami Rudi" +.post.info Title "Getting Started with Neatroff" +.post.info Author "Ali Gholami Rudi" .de MH . sp . LP @@ -21,7 +22,7 @@ a set of standard macro packages and a top-level makefile to obtain and build Neatroff and its helper programs, which are referred to as Neat* throughout this document. More details about Neatroff and the programs that accompany it are available in its homepage at -\*[ps.url http://litcave.rudi.ir/]. +\*[post.url http://litcave.rudi.ir/]. .SH "Using Neatroff Without Installation" To use Neatroff without installing it, neatroff_make can be retrieved -- 2.11.4.GIT