Le 13/08/2009 03:58, Uwe Stöhr a écrit :
In the lyx-users list is it often asked how to suppress the default
date. The solution is simply to add
\date{}
to the preamble.
The attached patch adds a document option to do this. When the user
sets this option, he still can later overwrite this be specifying a
date, because the option is only for the default date.
I have problems with this patch, by decreasing order of importance
1/ some layouts do not have a date, and thus this will create un
typesettable document
2/ you cannot assume that all layouts set date with \date (I thought you
cared about assumptions :)
3/ I think that some layouts do not set current date as default. In this
case, the setting is misleading (what does it do?)
To solve 1/ and 2/, one could check for the presence of layout Date in
the textclass and disable the option when it is not here. (and use its
LatexName instead of hardcoding)
To solve 3/ (and 1/ and 2/) one would need a specific tag in the layout
file like
RemoveDateCommand date
(I prefer "date" to "\date{}" because it is more usable for tex2lyx).
I think this issue needs to be solved.
JMarc