From fcdddff5f3f5c9f2a15377a9dd08f105a3b696a0 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Wed, 31 May 2000 14:24:21 +0000 Subject: Formatting of progdoc works in both HTML and LaTeX. The LaTeX output still has somewhat weird spacing, but it will be hopefully easy to fix. --- doc/kernel-doc | 8 +++----- doc/prog-foot.sgml | 2 ++ doc/prog-intro.sgml | 2 +- doc/sbase/dist/birddoc/html/mapping | 6 ++++++ doc/sbase/dist/birddoc/latex2e/mapping | 29 +++++++++++++++++++++++++++++ doc/sbase/dtd/birddoc.dtd | 12 ++++++++++-- 6 files changed, 51 insertions(+), 8 deletions(-) create mode 100644 doc/prog-foot.sgml (limited to 'doc') diff --git a/doc/kernel-doc b/doc/kernel-doc index cb28d30..07d1262 100755 --- a/doc/kernel-doc +++ b/doc/kernel-doc @@ -524,9 +524,7 @@ sub output_bird { my %args = %{$_[0]}; my ($parameter, $section); my $count; - print "Function\n"; - - print "

".$args{'functiontype'}."\n"; + print "

".$args{'functiontype'}."\n"; print "".$args{'function'}."\n"; print "("; $count = 0; @@ -539,7 +537,7 @@ sub output_bird { } print ")\n"; - print "Arguments\n"; + print "Arguments\n"; print "

\n"; foreach $parameter (@{$args{'parameterlist'}}) { print "".$args{'parametertypes'}{$parameter}." ".$parameter."\n"; @@ -551,7 +549,7 @@ sub output_bird { print "

\n"; output_highlight($args{'sections'}{$section}); } - print "\n"; + print "\n"; } # output in birddoc diff --git a/doc/prog-foot.sgml b/doc/prog-foot.sgml new file mode 100644 index 0000000..c847722 --- /dev/null +++ b/doc/prog-foot.sgml @@ -0,0 +1,2 @@ + + diff --git a/doc/prog-intro.sgml b/doc/prog-intro.sgml index 18637fe..e4affaf 100644 --- a/doc/prog-intro.sgml +++ b/doc/prog-intro.sgml @@ -137,7 +137,7 @@ script created using GNU Autoconf.

The documentation is generated using and then processed by and The comments from C sources which form a part of the programmer's diff --git a/doc/sbase/dist/birddoc/html/mapping b/doc/sbase/dist/birddoc/html/mapping index e703fb4..9d05a76 100644 --- a/doc/sbase/dist/birddoc/html/mapping +++ b/doc/sbase/dist/birddoc/html/mapping @@ -182,6 +182,12 @@ "" "" + "


Function

\n" + "\n" + + "

" + "

\n" + % url support by HG + "<@@url>[URL]\n" diff --git a/doc/sbase/dist/birddoc/latex2e/mapping b/doc/sbase/dist/birddoc/latex2e/mapping index e12ef7d..2875c6d 100644 --- a/doc/sbase/dist/birddoc/latex2e/mapping +++ b/doc/sbase/dist/birddoc/latex2e/mapping @@ -190,6 +190,9 @@ + "\\item\[{\\ttfamily " "}\] \\mbox{}\n\n" + + "\\item\[ " + "\] \\mbox{}\n\n" + "\\cite{[ID]" "}" @@ -250,6 +253,32 @@ "{\\ttfamily " "}" + "{\\tt " + "}" + + "{\\it " + "\\/}" + + "{\\tt " + "}" + + "{\\it " + "}" + + "{\\rm " + "}" + + "{\\it " + "\\/}" + + "\\bigbreak\\hrule\\nobreak\\bigskip\\nobreak\\leftline{\\bf Function}\\nobreak\\smallskip\\nobreak{\\parskip=0pt " + "}\n\n" + + "\n\\medbreak\\leftline{\\bf " + "}\\nobreak " + + "\\hrule" + % Added by mdw "\\cparam{" "}" diff --git a/doc/sbase/dtd/birddoc.dtd b/doc/sbase/dtd/birddoc.dtd index 4e818ab..f7fbcc6 100644 --- a/doc/sbase/dtd/birddoc.dtd +++ b/doc/sbase/dtd/birddoc.dtd @@ -12,7 +12,12 @@ anywhere else. Tom Gordon. $Log$ - Revision 1.2 2000-05-31 11:28:52 mj + Revision 1.3 2000-05-31 14:24:21 mj + Formatting of progdoc works in both HTML and LaTeX. The LaTeX output + still has somewhat weird spacing, but it will be hopefully easy + to fix. + + Revision 1.2 2000/05/31 11:28:52 mj Added tags for markup of programmer's documentation. Revision 1.1 2000/05/29 12:05:21 mj @@ -108,7 +113,7 @@ anywhere else. + %thrm; | %litprog; | function "> @@ -172,6 +177,9 @@ anywhere else. + + + ' -- formula begin -- > '> -- cgit v1.2.3