Lines 1-34
Link Here
|
1 |
--- lib/fmt/fmt_latex2e.pl.orig 2018-03-28 15:14:45 UTC |
|
|
2 |
+++ lib/fmt/fmt_latex2e.pl |
3 |
@@ -284,13 +284,13 @@ $latex2e->{postASP} = sub |
4 |
push @texlines, $_; |
5 |
# and check for nameurl |
6 |
if ( /\\nameurl/ ){ |
7 |
- ($urlid, $urlnam) = ($_ =~ /\\nameurl{(.*)}{(.*)}/); |
8 |
+ ($urlid, $urlnam) = ($_ =~ /\\nameurl\{(.*)\}\{(.*)\}/); |
9 |
print $urlnum . ": " . $urlid . "\n" if ( $global->{debug} ); |
10 |
|
11 |
$urldef = latex2e_defnam($urlnum) . "url"; |
12 |
- s/\\nameurl{.*}{.*}/{\\em $urlnam} {\\tt \\$urldef}/; |
13 |
+ s/\\nameurl\{.*\}\{.*\}/{\\em $urlnam} {\\tt \\$urldef}/; |
14 |
push @urlnames, $_; |
15 |
- push @urldefines, "\\urldef{\\$urldef} \\url{$urlid}\n"; |
16 |
+ push @urldefines, "\\urldef\{\\$urldef\} \\url\{$urlid\}\n"; |
17 |
$urlnum++; |
18 |
} |
19 |
} |
20 |
@@ -367,12 +367,12 @@ $latex2e->{postASP} = sub |
21 |
$_ = $_ . "\\makeindex\n" if ($latex2e->{makeindex}); |
22 |
} |
23 |
# Set correct DTD name |
24 |
- elsif (/^\\usepackage{\@LINUXDOC_DTD\@-sgml}/) { |
25 |
+ elsif (/^\\usepackage\{\@LINUXDOC_DTD\@-sgml\}/) { |
26 |
my $dtd = $global->{"dtd"}; |
27 |
s/\@LINUXDOC_DTD\@/$dtd/; |
28 |
} |
29 |
# Set correct babel options |
30 |
- elsif (/^\\usepackage\[\@BABELOPTIONS\@\]{babel}/) { |
31 |
+ elsif (/^\\usepackage\[\@BABELOPTIONS\@\]\{babel\}/) { |
32 |
if ( $babeloptions ) { |
33 |
s/\@BABELOPTIONS\@/$babeloptions/; |
34 |
} else { |