tex2lyx: support the case that \date{} is used in the preamble to suppress the date

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39951 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Uwe Stöhr 2011-10-24 02:06:05 +00:00
parent 0c1c13bbd0
commit 483891b7cf

View File

@ -879,6 +879,11 @@ void parse_preamble(Parser & p, ostream & os,
else if (t.cs() == "pagestyle") else if (t.cs() == "pagestyle")
h_paperpagestyle = p.verbatim_item(); h_paperpagestyle = p.verbatim_item();
else if (t.cs() == "date") {
if (p.verbatim_item().empty())
h_suppress_date = "true";
}
else if (t.cs() == "makeatletter") { else if (t.cs() == "makeatletter") {
// LyX takes care of this // LyX takes care of this
p.setCatCode('@', catLetter); p.setCatCode('@', catLetter);