Re: Layout file not usable
On 03/25/2010 05:53 AM, Guenter Milde wrote: On 2010-03-24, rgheck wrote: On 03/24/2010 12:17 PM, Tim Wescott wrote: Guenter Milde wrote: You might file an enhancement/bug report to ask for disabling not-supported templates (or a warning) similar to what is done if you select a non-supported document class under Document>Settings. I don't think this is very easy to do. Templates are just files, and what shows them is just a file browser. We can't ask the file browser not to show files that don't have associated LaTeX classes. Then, we could consider grouping templates in sub-directories like e.g. templates/ # standard document classes templates/letter.lyx templates/slides.lyx ... templates/texlive # document classes in texlive templates/texlive/dinbrief.lyx ... templates/other/ # "exotic" document classes or in every template clearly state in a LyX-Note the required LaTeX documentclass (and its home URL). Exotic is in the eye of the beholder, I'm afraid, and what's standard varies from TeX distribution to TeX distribution. There's really no telling what someone might have installed. The issue here, or so it seems to me, is just a simple confusion about what LyX provides, how it relates to LaTeX, and what LaTeX provides. The fact that the dialog that pops up when you don't have the document class is so confusing doesn't help. But this, I believe, is now resolved in trunk. Richard
Re: Layout file not usable
On 2010-03-24, rgheck wrote: > On 03/24/2010 12:17 PM, Tim Wescott wrote: >> Guenter Milde wrote: >>> You might file an enhancement/bug report to ask for disabling >>> not-supported templates (or a warning) similar to what is done if you >>> select a non-supported document class under Document>Settings. > I don't think this is very easy to do. Templates are just files, and > what shows them is just a file browser. We can't ask the file browser > not to show files that don't have associated LaTeX classes. Then, we could consider grouping templates in sub-directories like e.g. templates/ # standard document classes templates/letter.lyx templates/slides.lyx ... templates/texlive # document classes in texlive templates/texlive/dinbrief.lyx ... templates/other/ # "exotic" document classes or in every template clearly state in a LyX-Note the required LaTeX documentclass (and its home URL). Günter
Re: Layout file not usable
On 03/24/2010 12:17 PM, Tim Wescott wrote: Guenter Milde wrote: On 22.03.10, Tim Wescott wrote: Guenter Milde wrote: You will need to install more of texlive than just the basics (which are auto-installed as a LyX dependency). I think I have a handle on this, but it sure changes the meaning of "create from template" away from "oh look at all these handy, helpful templates!" Something more like "Oh look at this ready-made minefield!" You might file an enhancement/bug report to ask for disabling not-supported templates (or a warning) similar to what is done if you select a non-supported document class under Document>Settings. I don't think this is very easy to do. Templates are just files, and what shows them is just a file browser. We can't ask the file browser not to show files that don't have associated LaTeX classes. If you have enough disk-space and a fast internet connection, you can also consider installing the full texlive suite (I don't remember the name of the meta package just now). I generally don't start filing enhancement/bug reports on software until I've had at least a little bit of mileage with it. As an absolute newbie it's an even bet between whether my problems stem from a real issue with the software or from my own ignorance. I think this may be an exception, though -- it certainly would be helpful for everyone, and far less confusing for newbies, to do this. And you _do_ want newbies to have a positive experience, lest they run screaming back to their nice, comfortable WSIWYG editor, and fail to lend their support to your community. What do you mean here by "do this"? Do you mean, "install the full texlive suite"? If so, then, first, LyX has no control over this. It's a packaging question and, on Linux, that means that each distribution gets to decide for itself what LyX's dependencies are. Similarly, the Windows and Mac packagers decide about this on their platforms. Second, it's arguable that LaTeX shouldn't be a dependency of LyX at all. Helge Hafting, who often posts here, frequently points out that LyX can be used as an editor without LaTeX. You might want to install it that way, for example, on a netbook that had minimal disk space so you could work on LyX files on your netbook. You wouldn't be able to view them as pdf or whatever, but you don't always need to do that. Third, even if we do want LaTeX to be a dependency, you really don't want to install absolutely every package that texlive makes available. That is a huge number of packages. And, finally, I don't know what texlive includes these days, but until not very long ago, some of the templates LyX ships were for use with document classes that weren't available at all through texlive. You have to go get them yourself if you want to use them. That's in the nature of an extensible system like LaTeX. rh
Re: Layout file not usable
Guenter Milde wrote: On 22.03.10, Tim Wescott wrote: Guenter Milde wrote: On 2010-03-22, Tim Wescott wrote: You will need to install more of texlive than just the basics (which are auto-installed as a LyX dependency). ... I think I have a handle on this, but it sure changes the meaning of "create from template" away from "oh look at all these handy, helpful templates!" Something more like "Oh look at this ready-made minefield!" You might file an enhancement/bug report to ask for disabling not-supported templates (or a warning) similar to what is done if you select a non-supported document class under Document>Settings. If you have enough disk-space and a fast internet connection, you can also consider installing the full texlive suite (I don't remember the name of the meta package just now). Günter I generally don't start filing enhancement/bug reports on software until I've had at least a little bit of mileage with it. As an absolute newbie it's an even bet between whether my problems stem from a real issue with the software or from my own ignorance. I think this may be an exception, though -- it certainly would be helpful for everyone, and far less confusing for newbies, to do this. And you _do_ want newbies to have a positive experience, lest they run screaming back to their nice, comfortable WSIWYG editor, and fail to lend their support to your community. -- Tim Wescott Wescott Design Services Voice: 503-631-7815 Cell: 503-349-8432 http://www.wescottdesign.com
Re: Layout file not usable
Guenter Milde wrote: On 2010-03-22, Tim Wescott wrote: I'm working hard at being a brand-new user, but I'm still a user-wannabe, because things ain't working! I'm using Ubuntu 9.10, brand shiny new installation of Lyx. I try to create a document from a template (any template, but I'll use latex8 as an example) Really *any*?? Just to sort out principal failure: Could you test with a new standard document (Ctrl-N), type a simple sentence and view the PDF? and I get the following: The layout file requested by this document, latex8.layout, is not usable. This is probably because a LaTeX class or style file required by it is not available. See the Customization documentation for more information. LyX will not be able to produce output. This indicates that a latex document-class is missing. I tried reconfigure -- no luck. I tried running texhash -- no luck. I verified that /usr/share/lyx/layouts is there, and that it has latex8.layout (and all the others that didn't work) in it. You will need to install more of texlive than just the basics (which are auto-installed as a LyX dependency). In your example, you should look for latex8.cls or latex8.sty. If it is not on your system, try e.g. `apt-file find latex8.cls`` to see which package you need to install. (Actually, I did not find a package that ships latex8 for Debian, so this might even be a "download from CTAN and install 'by hand'" documentclass, however, you might e.g. find the seminar class in texlive-latex-recommended.) Günter Got it figured out -- thanks. -- Tim Wescott Wescott Design Services Voice: 503-631-7815 Cell: 503-349-8432 http://www.wescottdesign.com
Re: Layout file not usable
On 2010-03-22, Tim Wescott wrote: > I'm working hard at being a brand-new user, but I'm still a > user-wannabe, because things ain't working! I'm using Ubuntu 9.10, > brand shiny new installation of Lyx. I try to create a document from a > template (any template, but I'll use latex8 as an example) Really *any*?? Just to sort out principal failure: Could you test with a new standard document (Ctrl-N), type a simple sentence and view the PDF? > and I get the following: > The layout file requested by this document, latex8.layout, is not > usable. This is probably because a LaTeX class or style file required > by it is not available. See the Customization documentation for more > information. LyX will not be able to produce output. This indicates that a latex document-class is missing. > I tried reconfigure -- no luck. > I tried running texhash -- no luck. > I verified that /usr/share/lyx/layouts is there, and that it has > latex8.layout (and all the others that didn't work) in it. You will need to install more of texlive than just the basics (which are auto-installed as a LyX dependency). In your example, you should look for latex8.cls or latex8.sty. If it is not on your system, try e.g. `apt-file find latex8.cls`` to see which package you need to install. (Actually, I did not find a package that ships latex8 for Debian, so this might even be a "download from CTAN and install 'by hand'" documentclass, however, you might e.g. find the seminar class in texlive-latex-recommended.) Günter
Layout file not usable
Searching the archives I see lots of problems associated with this, but nothing that seems to point to an answer for me. I'm working hard at being a brand-new user, but I'm still a user-wannabe, because things ain't working! I'm using Ubuntu 9.10, brand shiny new installation of Lyx. I try to create a document from a template (any template, but I'll use latex8 as an example) and I get the following: The layout file requested by this document, latex8.layout, is not usable. This is probably because a LaTeX class or style file required by it is not available. See the Customization documentation for more information. LyX will not be able to produce output. I tried reconfigure -- no luck. I tried running texhash -- no luck. I verified that /usr/share/lyx/layouts is there, and that it has latex8.layout (and all the others that didn't work) in it. Clues for the clueless? Thanks. -- Tim Wescott Wescott Design Services Voice: 503-631-7815 Cell: 503-349-8432 http://www.wescottdesign.com