Re: "doc class xy can't be loaded"

2009-12-18 Thread Joachim Osnabryg

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-handoutlayout 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 :
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 :
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



Re: "doc class xy can't be loaded"

2009-12-17 Thread Uwe Stöhr

Joachim Osnabryg schrieb:

Since sometime, when in LyX I choose File => new and then with within 
the standard new document class (article), I choose Document => Options 
and within the Options window, section document class, choose "Handout 
(Tufte)", I get the LyX error:


Die Dokumentklasse tufte-handout konnte nicht geladen werden.
The document class tufte-handout could not be loaded.


Try to reconfigure LyX. Have a look in the log file of this process in case this fails to get more 
info if also other packages cannot be found. This would then be hint that there are problems with 
your LaTeX installation. If all other packages are found, 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.


regards Uwe


"doc class xy can't be loaded"

2009-12-17 Thread Joachim Osnabryg
Since sometime, when in LyX I choose File => new and then with within the  
standard new document class (article), I choose Document => Options and  
within the Options window, section document class, choose "Handout  
(Tufte)", I get the LyX error:


Die Dokumentklasse tufte-handout konnte nicht geladen werden.
The document class tufte-handout could not be loaded.

But there are the .layout files for it within the Lyx.app and within
~/Library/Application\ Support/LyX-1.6/layouts/
- of course the tufte-latex .def and .cls files installed and tex-hashed -

which I use it nearly dayly with my (costomized) template  
tufte-hdout-…etc.lyx file(s) with success.


What might be the reason for this awfull error message, how can I get rid  
of it and use the document class/layout "Handout (Tufte)" in this "normal"  
way, too?


joachim
--
Mac BacicTeX 2009 - TeXShop 2.29 / TeXworks 0.2.3
LyX 1.6.5 - MacBook Pro intel OSX 10.4.11 Tiger