cruft removal

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6072 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2003-02-07 22:27:23 +00:00
parent a17cf1b3f4
commit 3903b3ee3e

View File

@ -294,16 +294,13 @@ sub translate_preamble {
my $up; my $up;
foreach $up (keys %Usepackage_Table) { foreach $up (keys %Usepackage_Table) {
$Latex_Preamble =~ s/\\usepackage\{$up\}\s*// && do { $Latex_Preamble =~ s/\\usepackage\{$up\}\s*// && do {
my $tmp = $Usepackage_Table{$up}; $LyX_Preamble .= "$Usepackage_Table{$up}";
$LyX_Preamble .= join($tmp, "\n") unless ($tmp eq ''); $LyX_Preamble .= "\n" unless ($Usepackage_Table{$up} eq "");
#$LyX_Preamble .= "$Usepackage_Table{$up}";
#$LyX_Preamble .= "\n" unless ($Usepackage_Table{$up} eq "");
} }
} }
# Natbib is a little more complex than that. # Natbib is a little more complex than that.
if ($Latex_Preamble =~ s/\\usepackage(.*)\{natbib\}\s*//) { if ($Latex_Preamble =~ s/\\usepackage(.*)\{natbib\}\s*//) {
print "matched it!\n";
$LyX_Preamble .= "\\use_natbib 1\n\\use_numerical_citations "; $LyX_Preamble .= "\\use_natbib 1\n\\use_numerical_citations ";
$LyX_Preamble .= ($1 =~ /numbers/) ? "1\n" : "0\n"; $LyX_Preamble .= ($1 =~ /numbers/) ? "1\n" : "0\n";
} else { } else {