summaryrefslogtreecommitdiff
path: root/doc/scripts
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2011-11-24 17:54:11 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2011-11-24 17:54:11 +0100
commit911d9fd67d3031036324187f9f8ed02f7bdca99d (patch)
treeb31e59291562f738f476de7bf3ce43f5e754a337 /doc/scripts
parent4ff806fa9c69754d72ce5a64048c211c09de0da0 (diff)
downloadgnutls-911d9fd67d3031036324187f9f8ed02f7bdca99d.tar.gz
updates in texi and tex documentation.
Diffstat (limited to 'doc/scripts')
-rwxr-xr-xdoc/scripts/gdoc13
-rwxr-xr-xdoc/scripts/mytexi2latex2
2 files changed, 9 insertions, 6 deletions
diff --git a/doc/scripts/gdoc b/doc/scripts/gdoc
index 902829a508..be0621af52 100755
--- a/doc/scripts/gdoc
+++ b/doc/scripts/gdoc
@@ -158,10 +158,10 @@ $blankline_html = "<p>";
);
$blankline_texinfo = "";
-%highlights_tex = ( $type_param, '" {\bf $1}"',
- $type_constant, '"{\it $1}"',
- $type_func, '"{\bf $1}"',
- $type_struct, '"{\it $1}"',
+%highlights_tex = ( $type_param, '" {\\\bf $1}"',
+ $type_constant, '"{\\\it $1}"',
+ $type_func, '"{\\\bf $1}"',
+ $type_struct, '"{\\\it $1}"',
);
$blankline_tex = "\\\\";
@@ -286,6 +286,7 @@ sub dump_section {
$parameters{$name} = $contents;
} else {
# print STDERR "other section '$name' = '$contents'\n";
+ $name =~ tr/ //d;
$sections{$name} = $contents;
push @sectionlist, $name;
}
@@ -504,7 +505,7 @@ sub output_tex {
$sec =~ s/_/\\_/g;
$sec =~ s/#([a-zA-Z\_]+)/{\\it $1}/g;
- print "\n\\begin{function$sec}\n";
+ print "\n\\begin{function${sec}}\n";
$out = $args{'sections'}{$section};
$out =~ s/\#([a-zA-Z\_]+)/{\\it $1}/g;
@@ -518,7 +519,7 @@ sub output_tex {
$out =~ s/([0-9]+)\^([0-9]+)/\$\{$1\}\^\{$2\}\$/g;
print $out;
- print "\\end{function$sec}\n";
+ print "\\end{function${sec}}\n";
}
print "\\end{function}\n\n";
}
diff --git a/doc/scripts/mytexi2latex b/doc/scripts/mytexi2latex
index cdb8964541..1500ff1f39 100755
--- a/doc/scripts/mytexi2latex
+++ b/doc/scripts/mytexi2latex
@@ -222,6 +222,8 @@ multitable:
}
}
+ $line =~ s/\@subsubheading (.+)/\\paragraph{$1}/g;
+
if ($line =~ s/\@section (.+)/\\section{$1}/g) {
if ($label ne '') {
$line .= "\\label{$label}\n";