From 3903b3ee3e9d4453179986b329e46d417b49adb3 Mon Sep 17 00:00:00 2001 From: Angus Leeming Date: Fri, 7 Feb 2003 22:27:23 +0000 Subject: [PATCH] cruft removal git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6072 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/reLyX/MakePreamble.pm | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/reLyX/MakePreamble.pm b/lib/reLyX/MakePreamble.pm index ef06a496d3..bb3dfc2162 100644 --- a/lib/reLyX/MakePreamble.pm +++ b/lib/reLyX/MakePreamble.pm @@ -294,16 +294,13 @@ sub translate_preamble { my $up; foreach $up (keys %Usepackage_Table) { $Latex_Preamble =~ s/\\usepackage\{$up\}\s*// && do { - my $tmp = $Usepackage_Table{$up}; - $LyX_Preamble .= join($tmp, "\n") unless ($tmp eq ''); - #$LyX_Preamble .= "$Usepackage_Table{$up}"; - #$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. if ($Latex_Preamble =~ s/\\usepackage(.*)\{natbib\}\s*//) { - print "matched it!\n"; $LyX_Preamble .= "\\use_natbib 1\n\\use_numerical_citations "; $LyX_Preamble .= ($1 =~ /numbers/) ? "1\n" : "0\n"; } else {