From f61141c1451d1d966f1d22c6e40bcd5d2b0b7806 Mon Sep 17 00:00:00 2001 From: Werner LEMBERG Date: Mon, 4 Feb 2002 18:57:20 +0000 Subject: [PATCH] * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for texinfo->pdf. (.texinfo.html): Add support for texinfo->html. * doc/groff.texinfo: More fixes. --- ChangeLog | 4 ++ doc/Makefile | 13 +++- doc/groff.texinfo | 196 +++++++++++++++++++++++++++--------------------------- 3 files changed, 111 insertions(+), 102 deletions(-) diff --git a/ChangeLog b/ChangeLog index c0700143..2a602931 100644 --- a/ChangeLog +++ b/ChangeLog @@ -16,6 +16,10 @@ * doc/groff.texinfo (Defstr*): Print strings with full syntax. Other minor fixes. + * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for + texinfo->pdf. + (.texinfo.html): Add support for texinfo->html. + 2002-02-03 Werner LEMBERG Added three new requests `ds1', `as1', and `ami'. The former two diff --git a/doc/Makefile b/doc/Makefile index ede9b400..42b9cbdb 100755 --- a/doc/Makefile +++ b/doc/Makefile @@ -1,4 +1,5 @@ -# Copyright (C) 1989, 1990, 1991, 1992, 2001 Free Software Foundation, Inc. +# Copyright (C) 1989, 1990, 1991, 1992, 2001, 2002 +# Free Software Foundation, Inc. # Written by James Clark (jjc@jclark.com) # # This file is part of groff. @@ -49,7 +50,7 @@ revision=`sed -e 's/^0$$//' -e 's/^[1-9].*$$/.&/' ../REVISION` all: $(DOCS) -.SUFFIXES: .tr .me .ms .ps .dit .html .ascii .texinfo .dvi +.SUFFIXES: .tr .me .ms .ps .dit .html .ascii .texinfo .dvi .pdf .dit.ps: $(GROPS) $< >$@ @@ -90,6 +91,12 @@ all: $(DOCS) .texinfo.dvi: texi2dvi -e $< +.texinfo.pdf: + texi2dvi -e --pdf $< + +.texinfo.html: + makeinfo --html --no-split $< + groff: groff.texinfo makeinfo groff.texinfo @@ -102,7 +109,7 @@ install: clean: -rm -f *.ps *.html *.ascii *.png *.gif *.dit core - -rm -f *.aux *.dvi *.log *.toc texput.log + -rm -f *.aux *.dvi *.pdf *.log *.toc texput.log -rm -f *.cp *.cps *.cv *.cn *.es *.ess *.fn *.fns *.ky *.kys \ *.ma *.mas *.op *.ops *.pg *.pgs *.rq *.rqs *.st *.sts \ *.tp *.tps *.tr *.vr *.vrs diff --git a/doc/groff.texinfo b/doc/groff.texinfo index c7c00889..e20a151d 100644 --- a/doc/groff.texinfo +++ b/doc/groff.texinfo @@ -1287,8 +1287,8 @@ gtroff [ -abivzCERU ] [ -w@var{name} ] [ -W@var{name} ] [ -d@var{cs} ] Obviously, many of the options to @code{groff} are actually passed on to @code{gtroff}. -Options without an argument can be grouped behind a single @option{-}. -A filename of @file{-} denotes the standard input. It is possible to +Options without an argument can be grouped behind a single@w{ }@option{-}. +A filename of@w{ }@file{-} denotes the standard input. It is possible to have whitespace between an option and its parameter. The @code{grog} command can be used to guess the correct @code{groff} @@ -1357,9 +1357,9 @@ ignored. @item -L@var{arg} Pass @var{arg} to the spooler. Each argument should be passed with a -separate @option{-L} option. Note that @code{groff} does not prepend a -@samp{-} to @var{arg} before passing it to the postprocessor. If the -@code{print} keyword in the device description file is missing, +separate @option{-L} option. Note that @code{groff} does not prepend +a @samp{-} to @var{arg} before passing it to the postprocessor. +If the @code{print} keyword in the device description file is missing, @option{-L} is ignored. @item -T@var{dev} @@ -1491,8 +1491,8 @@ list of incompatibilities between @code{groff} and traditional Unix @item -d@var{cs} @itemx -d@var{name}=s -Define @var{c} or @var{name} to be a string @var{s}. @var{c} must be a -one-letter name; @var{name} can be of arbitrary length. All string +Define @var{c} or @var{name} to be a string@w{ }@var{s}. @var{c}@w{ }must +be a one-letter name; @var{name} can be of arbitrary length. All string assignments happen before loading any macro file (including the start-up file). @@ -1512,10 +1512,10 @@ Number the first page @var{num}. @item -o@var{list} @cindex print current page register (@code{.P}) Output only pages in @var{list}, which is a comma-separated list of page -ranges; @samp{@var{n}} means print page @var{n}, @samp{@var{m}-@var{n}} -means print every page between @var{m} and @var{n}, @samp{-@var{n}} -means print every page up to @var{n}, @samp{@var{n}-} means print every -page beginning with @var{n}. @code{gtroff} exits after printing the +ranges; @samp{@var{n}} means print page@w{ }@var{n}, @samp{@var{m}-@var{n}} +means print every page between @var{m} and@w{ }@var{n}, @samp{-@var{n}} +means print every page up to@w{ }@var{n}, @samp{@var{n}-} means print every +page beginning with@w{ }@var{n}. @code{gtroff} exits after printing the last page in the list. All the ranges are inclusive on both ends. Within @code{gtroff}, this information can be extracted with the @@ -1527,11 +1527,11 @@ chapter. @item -r@var{cn} @itemx -r@var{name}=@var{n} -Set number register @var{c} or @var{name} to the value @var{n}. @var{c} -must be a one-letter name; @var{name} can be of arbitrary length. -@var{n} can be any @code{gtroff} numeric expression. All register -assignments happen before loading any macro file (including the start-up -file). +Set number register@w{ }@var{c} or @var{name} to the value@w{ }@var{n}. +@var{c}@w{ }must be a one-letter name; @var{name} can be of arbitrary +length. @var{n}@w{ }can be any @code{gtroff} numeric expression. All +register assignments happen before loading any macro file (including +the start-up file). @item -F@var{dir} Search @file{@var{dir}} for subdirectories @file{dev@var{name}} @@ -1561,7 +1561,7 @@ not within @code{gtroff}) which can modify the behavior of @code{groff}. @table @code @item GROFF_COMMAND_PREFIX @tindex GROFF_COMMAND_PREFIX, environment variable -If this is set to @var{X}, then @code{groff} runs @code{@var{X}troff} +If this is set to@w{ }@var{X}, then @code{groff} runs @code{@var{X}troff} instead of @code{gtroff}. This also applies to @code{tbl}, @code{pic}, @code{eqn}, @code{grn}, @code{refer}, and @code{soelim}. It does not apply to @code{grops}, @code{grodvi}, @code{grotty}, @code{pre-grohtml}, @@ -1679,7 +1679,7 @@ generates one or more of the options @option{-e}, @option{-man}, @option{-mdoc-old}, @option{-p}, @option{-R}, @option{-g}, @option{-G}, @option{-s}, and @option{-t}. -A special file name @file{-} refers to the standard input. Specifying +A special file name@w{ }@file{-} refers to the standard input. Specifying no files also means to read the standard input. Any specified options are included in the printed command. No space is allowed between options and their arguments. The only options recognized are @@ -2335,8 +2335,8 @@ and face are reset to their default values. @cindex @code{man} macros, moving left margin @Defmac {RS, [@Var{nnn}], man} Move the left margin to the right by the value @var{nnn} if specified -(default unit is @samp{n}); otherwise the default indentation value is -used. Calls to the @code{RS} macro can be nested. +(default unit is @samp{n}); otherwise the default indentation value +is used. Calls to the @code{RS} macro can be nested. @endDefmac @Defmac {RE, [@Var{nnn}], man} @@ -2996,8 +2996,8 @@ The following describes the heading macros: @DefmacListEnd {NH, @t{S} @Var{level0} @dots{}, ms} Numbered heading. The argument is either a numeric argument to indicate the -level of the heading, or the letter @code{S} followed by numeric arguments -to set the heading level explicitly. +level of the heading, or the letter@w{ }@code{S} followed by numeric +arguments to set the heading level explicitly. If you specify heading levels out of sequence, such as invoking @samp{.NH 3} after @samp{.NH 1}, @code{groff} @@ -3040,22 +3040,22 @@ the next highlighting, paragraph, or heading macro. @Defmac {R, [@Var{txt} [@Var{post} [@Var{pre}]]], ms} Sets its first argument in roman (or regular) type. -It operates similarly to the @code{B} macro otherwise. +It operates similarly to the @code{B}@w{ }macro otherwise. @endDefmac @Defmac {I, [@Var{txt} [@Var{post} [@Var{pre}]]], ms} Sets its first argument in @emph{italic type}. -It operates similarly to the @code{B} macro otherwise. +It operates similarly to the @code{B}@w{ }macro otherwise. @endDefmac @Defmac {CW, [@Var{txt} [@Var{post} [@Var{pre}]]], ms} Sets its first argument in a @code{constant width face}. -It operates similarly to the @code{B} macro otherwise. +It operates similarly to the @code{B}@w{ }macro otherwise. @endDefmac @Defmac {BI, [@Var{txt} [@Var{post} [@Var{pre}]]], ms} Sets its first argument in bold italic type. -It operates similarly to the @code{B} macro otherwise. +It operates similarly to the @code{B}@w{ }macro otherwise. @endDefmac @Defmac {BX, [@Var{txt}], ms} @@ -3441,7 +3441,7 @@ in pairs of tags as follows. @DefmacList {TS, [@code{H}], ms} @DefmacListEnd {TE, , ms} Denotes a table, to be processed by the @code{tbl} preprocessor. -The optional argument @code{H} to @code{TS} instructs @code{groff} +The optional argument@w{ }@code{H} to @code{TS} instructs @code{groff} to create a running header with the information up to the @code{TH} macro. @code{groff} prints the header at the beginning of the @@ -3460,8 +3460,8 @@ a graphics program such as @code{xfig}. @DefmacList {EQ, [@Var{align}], ms} @DefmacListEnd {EN, , ms} Denotes an equation, to be processed by the @code{eqn} preprocessor. -The optional @var{align} argument can be @code{C}, @code{L}, or -@code{I} to center (the default), left-justify, or indent the equation. +The optional @var{align} argument can be @code{C}, @code{L}, or@w{ +}@code{I} to center (the default), left-justify, or indent the equation. @endDefmac @DefmacList {[, , ms} @@ -3704,7 +3704,7 @@ Details of Galactic Formation @Defmac {TC, [@code{no}], ms} Prints the table of contents on a new page, -setting the page number to @strong{i} (Roman numeral one). +setting the page number to@w{ }@strong{i} (Roman numeral one). You should usually place this macro at the end of the file, since @code{groff} is a single-pass formatter and can only print what has been collected up to the point @@ -4508,9 +4508,9 @@ Extrema: @samp{>?} (maximum), @samp{