From: Nikos Mavrogiannopoulos Date: Thu, 22 Sep 2011 20:49:58 +0000 (+0200) Subject: pdf is the image format for latex. X-Git-Tag: gnutls_3_0_4~76 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=85901c4eb97e01d7519cbda80267ab9af2b7f2d2;p=thirdparty%2Fgnutls.git pdf is the image format for latex. --- diff --git a/doc/latex/gnutls.tex b/doc/latex/gnutls.tex index 664a1b4d4c..89b92e54e9 100644 --- a/doc/latex/gnutls.tex +++ b/doc/latex/gnutls.tex @@ -20,6 +20,8 @@ \usepackage{morefloats} \usepackage[greek,english]{babel}%for euro sign +\DeclareGraphicsExtensions{.pdf} + \renewcommand{\textfraction}{0.00} \renewcommand{\floatpagefraction}{0.8} \renewcommand{\dblfloatpagefraction}{0.8} diff --git a/doc/scripts/mytexi2latex b/doc/scripts/mytexi2latex index a05772623b..1ddce5dd2c 100755 --- a/doc/scripts/mytexi2latex +++ b/doc/scripts/mytexi2latex @@ -28,6 +28,7 @@ my $prefix = $_[0]; my $suffix=$_[0]; $suffix =~ s/\\//g; $prefix =~ s/\\_/\\_\\-/g; + return "\\funcref\{$prefix\}\{$suffix\}"; } @@ -37,6 +38,7 @@ my $prefix = $_[0]; my $suffix = $_[1]; $suffix =~ s/\\//g; $suffix =~ s/\,/\}\{/g; + return "\\showfunc$prefix\{$suffix\}"; } @@ -44,6 +46,7 @@ sub showfuncdesc() { my $suffix = $_[0]; $suffix =~ s/\\//g; + return "\\showfuncdesc\{$suffix\}"; } @@ -312,7 +315,7 @@ multitable: $line =~ s/\#/\\\#/g; $line =~ s/\@-/\\-/g; $line =~ s/\@verbatiminclude (.*)/\\examplefile{\.\.\/$1}/g; - $line =~ s/\@image\{($match+)\,($match+)\}/\\includegraphics\[width\=$2\]\{\.\.\/$1\.pdf\}/g; + $line =~ s/\@image\{($match+)\,($match+)\}/\\includegraphics\[width\=$2\]\{\.\.\/$1\}/g; $line =~ s/\@samp\{($spacematch+)\}/$1/g; $line =~ s/\@strong\{/\{\\bf /g; $line =~ s/\@c (.*)/\% $1/g;