mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-27 06:19:36 +00:00
cruft removal
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6072 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
a17cf1b3f4
commit
3903b3ee3e
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user