Thank you, Rob & Uwe, for your hints!
In fact I had a very confusing situation, yesterday: first the problem
described, then, after trying to heal it, none of the existing files of
that doc class could be run properly.
I'm not able to describe exactly all what I tried and have done. Now, with
the problem solved I have the following impression about the history of
the problem, which I report for similar cases:
1. About six weeks ago, on November 5, 2009, to correct the first,
imperfect version of Uwe Stöhr's tufte-handout.layout I added a line
»Input stdstruct.inc« on the right place in it. (With success, BTW, as I
reported then in the thread »tufte-handout.layout outdated«).
After the installation of Uwes corrected (still actual) version of this
.layout in
~/Library/Application\ Support/LyX-1.6/layouts
I just renamed my selfmade .layout file - not knowing that in LyX appear
not the file names but the names given in the declaration
# \DeclareLaTeXClass[tufte-handout]{handout (Tufte)}
- with the result of having it shown twice in the LyX
document->options->doc class window. But usually I began work by choosing
a template of this doc class. So it didn't bother.
2. Since then until yesterday - as it seems - in fact I _always_ worked
with this self-tuned .layout instead of the new standard one - which is
now in LyX 1.6.5.
3. After deleting this self-tuned, renamed .layout file yesterday,
=> I could not run none of my existing tufte-handout docs. LyX error:
»Kann Format für ID 'tufte-handout-patch-NN' nicht verwenden ≈ Can not use
format for ID 'tufte-handout-patch-NN'«.
After emptying the trash: »The document class tufte-handout-patchXY can't
be found etc...«.
It seems that LyX remembers not only the doc class, but also the exact
name of the .layout file with which the documents are produced…
4. With the deleting of all tufte-handout....layout files in
~/Library/Application\ Support/LyX-1.6/layouts the installation was
corrected (LyX 1.6.5 uses the .layout in the program package folder).
=> But nevertheless, for each of my existing tufte-handout docs, the first
time I call them, I get the
»class tufte-handout-patchXY can't be found« error.
Only by (re-)choosing then the »handout (Tufte)« in the LyX menu
document->options->doc class window and saving the LyX doc again, I get by
and by rid of that problem.
So in future: "Don't modify a .layout file unless you know what you are
doing"… ;-)
Regards,
joachim
Am 17.12.2009, 22:49 Uhr, schrieb Uwe Stöhr <uwesto...@web.de>:
assure that you are using the tufe layout files that come with LyX and
also assure that there is no other version of the layout file in the
same directory as the LyX file.
Am 17.12.2009, 21:53 Uhr, schrieb Rob Oakes <lyx-de...@oak-tree.us>:
I had two thoughts. Have you reconfigured LyX (Tools -> Reconfigure)
since installing or uninstalling the document classes? Second, do you
have multiple copies of the Tufte document classes or layouts
installed. I've found that LyX doesn't like having more than a single
copy.
--
Mac BacicTeX 2009 - TeXShop 2.29 / TeXworks 0.2.3
LyX 1.6.5 - MacBook Pro intel OSX 10.4.11 Tiger