Re: Layout and Class Files on Windows Distribution
On Sun, Mar 16, 2008 at 10:32 PM, William R. Buckley <[EMAIL PROTECTED]> wrote: > After I have come to understand these tools a little better, I will try to > give a critique from the perspective of a WYSIWYG user. To the > moment, I am encouraged with what I have found, though much of > the process of annotating source text seems at first use to be a bit > tedious compared to the process as implemented within Ventura > Publisher. For instance, I can create a text style that applies to > individual paragraphs. So, one style for normal text, another for quotes, > and still others for other types of content. Having to manually add > ERT to each paragraph is one example of such tedious acts being > implementable in more effective means. You should check out: http://www.troubleshooters.com/linux/lyx/index.htm. Steve is a regular on the mailing list and has talked about creating text styles for LyX and the website has documentation on how to accomplish this. > LyX doesn't seem to give me access to all the LaTeX source material > in the view source window. This is one reason that I like to modify the > .tex file, and then import into LyX. The use of templates shows great > potential but, it is not as easy to use as the concept suggests. It should there is a toggle button to show 'Complete Source' which should show you the 'complete source' :-}. > wrb Cheers, /Bob
RE: Layout and Class Files on Windows Distribution
> -Original Message- > From: Bob Lounsbury [mailto:[EMAIL PROTECTED] > Sent: Sunday, March 16, 2008 7:51 PM > To: LyX User > Subject: Re: Layout and Class Files on Windows Distribution > > On Sun, Mar 16, 2008 at 8:10 PM, William R. Buckley > <[EMAIL PROTECTED]> wrote: > > One more comment. It seems that MiKTeX 2.7 > > may instead place the texmf directory in the root > > of the hard drive. On my C drive, I find > > a texmf directory so located. > > > > Hadn't noticed it previously. > > > > wrb > > Where exactly are you saying the texmf folder is on your C drive? I said the root; i.e. c:\texmf is the location of the directory. Also, the Date Modified field says June 27, 2005, which is probably when I first installed a copy of MiKTeX. Don't recall the version. The structure is \texmf\miktex\config and within this leaf sub-directory, one finds .log files from that date, and are noted to be setup logs. > I've found that MiKTeX 2.7 is placing additional packages in: > C:\Program Files\MiKTeX 2.7\tex\latex. Maybe, this is done in > this manner because I selected to install MiKTeX for 'anyone > who uses this computer'. If it was installed for 'user only' > then the packages may have been installed into the UserConfig > folder, who knows. At some point in the next couple of weeks > I "may" test the theory :-}. > > Bob > There may be a lot of consequence for my use of LyX/LaTeX/TeX owing to near ignorance of the tools. However, I now have found that if I first alter the .tex file, then import it into LyX, I have fewer difficulties. After I have come to understand these tools a little better, I will try to give a critique from the perspective of a WYSIWYG user. To the moment, I am encouraged with what I have found, though much of the process of annotating source text seems at first use to be a bit tedious compared to the process as implemented within Ventura Publisher. For instance, I can create a text style that applies to individual paragraphs. So, one style for normal text, another for quotes, and still others for other types of content. Having to manually add ERT to each paragraph is one example of such tedious acts being implementable in more effective means. LyX doesn't seem to give me access to all the LaTeX source material in the view source window. This is one reason that I like to modify the .tex file, and then import into LyX. The use of templates shows great potential but, it is not as easy to use as the concept suggests. wrb
Re: Layout and Class Files on Windows Distribution
Bob Lounsbury wrote: On Sun, Mar 16, 2008 at 8:10 PM, William R. Buckley <[EMAIL PROTECTED]> wrote: One more comment. It seems that MiKTeX 2.7 may instead place the texmf directory in the root of the hard drive. On my C drive, I find a texmf directory so located. Hadn't noticed it previously. wrb Where exactly are you saying the texmf folder is on your C drive? I've found that MiKTeX 2.7 is placing additional packages in: C:\Program Files\MiKTeX 2.7\tex\latex. Maybe, this is done in this manner because I selected to install MiKTeX for 'anyone who uses this computer'. If it was installed for 'user only' then the packages may have been installed into the UserConfig folder, who knows. At some point in the next couple of weeks I "may" test the theory :-}. When you use the MiKTeX package manager (at least through v. 2.6), it assumes you are adding the package to your base installation, so the new package goes under C:\Program Files\MiKTeX... The only packages I ever had in UserConfig\tex\latex were ones I manually installed from zip archives. /Paul
Re: Layout and Class Files on Windows Distribution
On Sun, Mar 16, 2008 at 8:10 PM, William R. Buckley <[EMAIL PROTECTED]> wrote: > One more comment. It seems that MiKTeX 2.7 may instead place the > texmf directory in the root of the hard drive. On my C drive, I find a > texmf directory so located. > > Hadn't noticed it previously. > > wrb Where exactly are you saying the texmf folder is on your C drive? I've found that MiKTeX 2.7 is placing additional packages in: C:\Program Files\MiKTeX 2.7\tex\latex. Maybe, this is done in this manner because I selected to install MiKTeX for 'anyone who uses this computer'. If it was installed for 'user only' then the packages may have been installed into the UserConfig folder, who knows. At some point in the next couple of weeks I "may" test the theory :-}. Bob
RE: Layout and Class Files on Windows Distribution
One more comment. It seems that MiKTeX 2.7 may instead place the texmf directory in the root of the hard drive. On my C drive, I find a texmf directory so located. Hadn't noticed it previously. wrb > -Original Message- > From: Bob Lounsbury [mailto:[EMAIL PROTECTED] > Sent: Sunday, March 16, 2008 6:59 PM > To: [EMAIL PROTECTED] > Cc: LyX User > Subject: Re: Layout and Class Files on Windows Distribution > > On Sun, Mar 16, 2008 at 3:31 PM, William R. Buckley > <[EMAIL PROTECTED]> wrote: > > Respecting what follows, your corrections of my > misunderstandings are > > solicited. > > > > OK. The digest goes like this: > > > > 1. It is the case that all installs to my single user computer are > > for use by all users. > > In this case it would be advisable to setup a localtexmf > directory to a shared location. > > > 2. MiKTeX has a requirement that the user maintain any *custom* > > class, style, include, other tex files, and layout files. One may > > choose to use any of the directories listed in MiKTeX Settings, > > though it would generally be better practice to add a new > path to the > > available roots, and store files in that root, thus obtaining an > > expected retention of setting in the face of MiKTeX upgrade. > > Of course, if the settings are lost, then the path will > need to be > > added to any upgrade. > > This is true of any tex distribution. > > > The *user config* directory is indeed not yet made, as in mkdir. > > I also note that the *user config* *user data* and *common* roots > > may not be altered, at least via MiKTeX Settings. > > Seems to be the case so far for MiKTeX 2.7 not for 2.6 (at > least the part that the 'user config;' directory is not made > by default). > > > 3. To be sure, when I mentioned following the given advice, I did > > follow all parts. Particularly, I refer to the notions of > > reconfiguration for both LyX and MiKTeX. Thus, when I added paths > > for the missing texmf subtree, I not only added a root and > subtree to > > MiKTeX, the FNDB was refreshed and Update Formats (thought this > > latter step may have no direct impact upon my current need) need), > > and also reconfigure and restart LyX. Both of these tasks > have been > > performed multiple times, and these times being subsequent to > > alteration of roots and addition of files thereto. > > Very good practice. :-} > > > 4. I did alter the layout file to read > > > > > > \DeclareLaTeXClass[llncs]{article (Springer LNCS)} > > > > Upon thereafter reconfiguring LyX, the class was recognised. > > So, now I am moving along. > > This is strange as I also installed llncs.cls and after > refreshing MiKTeX and LyX everything was fine. Meaning I did > not need to alter llncs.layout and 'article (Springer LNCS)' > was immediately available. > > > I had previously altered this statement, to include > [springer] and > > not [llncs], owing to some suggestion hinted by other > layout files. > > The correction to the bracketed label brought access to > the document > > class llncs. > > > > Thanks to all for all the help you have given. Perhaps > some of this > > information will find its way into the LyX documentation. > > This info is included in Section 5.2 of the Help->Customization file. > Although it is mostly written for *nix systems as LyX was > initially written for it. But the concepts are exactly the > same for Windoze :-}. > > As usual there are always resources available on the net: > > http://wiki.lyx.org/Layouts/CreatingLayouts > http://troubleshooters.a3b3.com/lpm/200210/200210.htm > http://www.etl.luc.edu/gkt/writing/how_to/lyx_ieee > http://www.nabble.com/forum/Search.jtp?query=adding+classes+to > +lyx&daterange=0&startdate=&enddate= > > > wrb > > > Cheers, > /Bob > >
Re: Layout and Class Files on Windows Distribution
On Sun, Mar 16, 2008 at 3:31 PM, William R. Buckley <[EMAIL PROTECTED]> wrote: > Respecting what follows, your corrections of my misunderstandings > are solicited. > > OK. The digest goes like this: > > 1. It is the case that all installs to my single user computer are for > use by all users. In this case it would be advisable to setup a localtexmf directory to a shared location. > 2. MiKTeX has a requirement that the user maintain any *custom* > class, style, include, other tex files, and layout files. One may > choose to use any of the directories listed in MiKTeX Settings, > though it would generally be better practice to add a new path > to the available roots, and store files in that root, thus obtaining > an expected retention of setting in the face of MiKTeX upgrade. > Of course, if the settings are lost, then the path will need to be > added to any upgrade. This is true of any tex distribution. > The *user config* directory is indeed not yet made, as in mkdir. > I also note that the *user config* *user data* and *common* > roots may not be altered, at least via MiKTeX Settings. Seems to be the case so far for MiKTeX 2.7 not for 2.6 (at least the part that the 'user config;' directory is not made by default). > 3. To be sure, when I mentioned following the given advice, I did > follow all parts. Particularly, I refer to the notions of reconfiguration > for both LyX and MiKTeX. Thus, when I added paths for the > missing texmf subtree, I not only added a root and subtree to > MiKTeX, the FNDB was refreshed and Update Formats (thought > this latter step may have no direct impact upon my current need) > need), and also reconfigure and restart LyX. Both of these tasks > have been performed multiple times, and these times being > subsequent to alteration of roots and addition of files thereto. Very good practice. :-} > 4. I did alter the layout file to read > > > \DeclareLaTeXClass[llncs]{article (Springer LNCS)} > > Upon thereafter reconfiguring LyX, the class was recognised. > So, now I am moving along. This is strange as I also installed llncs.cls and after refreshing MiKTeX and LyX everything was fine. Meaning I did not need to alter llncs.layout and 'article (Springer LNCS)' was immediately available. > I had previously altered this statement, to include [springer] > and not [llncs], owing to some suggestion hinted by other > layout files. The correction to the bracketed label brought > access to the document class llncs. > > Thanks to all for all the help you have given. Perhaps some > of this information will find its way into the LyX documentation. This info is included in Section 5.2 of the Help->Customization file. Although it is mostly written for *nix systems as LyX was initially written for it. But the concepts are exactly the same for Windoze :-}. As usual there are always resources available on the net: http://wiki.lyx.org/Layouts/CreatingLayouts http://troubleshooters.a3b3.com/lpm/200210/200210.htm http://www.etl.luc.edu/gkt/writing/how_to/lyx_ieee http://www.nabble.com/forum/Search.jtp?query=adding+classes+to+lyx&daterange=0&startdate=&enddate= > wrb Cheers, /Bob
RE: Layout and Class Files on Windows Distribution
Respecting what follows, your corrections of my misunderstandings are solicited. OK. The digest goes like this: 1. It is the case that all installs to my single user computer are for use by all users. 2. MiKTeX has a requirement that the user maintain any *custom* class, style, include, other tex files, and layout files. One may choose to use any of the directories listed in MiKTeX Settings, though it would generally be better practice to add a new path to the available roots, and store files in that root, thus obtaining an expected retention of setting in the face of MiKTeX upgrade. Of course, if the settings are lost, then the path will need to be added to any upgrade. The *user config* directory is indeed not yet made, as in mkdir. I also note that the *user config* *user data* and *common* roots may not be altered, at least via MiKTeX Settings. 3. To be sure, when I mentioned following the given advice, I did follow all parts. Particularly, I refer to the notions of reconfiguration for both LyX and MiKTeX. Thus, when I added paths for the missing texmf subtree, I not only added a root and subtree to MiKTeX, the FNDB was refreshed and Update Formats (thought this latter step may have no direct impact upon my current need) need), and also reconfigure and restart LyX. Both of these tasks have been performed multiple times, and these times being subsequent to alteration of roots and addition of files thereto. 4. I did alter the layout file to read \DeclareLaTeXClass[llncs]{article (Springer LNCS)} Upon thereafter reconfiguring LyX, the class was recognised. So, now I am moving along. I had previously altered this statement, to include [springer] and not [llncs], owing to some suggestion hinted by other layout files. The correction to the bracketed label brought access to the document class llncs. Thanks to all for all the help you have given. Perhaps some of this information will find its way into the LyX documentation. wrb
Re: Layout and Class Files on Windows Distribution
On Sun, Mar 16, 2008 at 8:40 AM, Paul A. Rubin <[EMAIL PROTECTED]> wrote: > Bob, > > > Bob Lounsbury wrote: > > > So selecting to install 'for all users' doesn't create the userconfig > > file structure in a user account, but 'for me only' does? Even in my > > 'all users' commonconfig folder there is no 'latex' folder, only a > > 'tex' folder. Easy enough to create though. > > Two disclaimers here: first, I'm going from personal experience, not > from any study of the MiKTeX documentation; and second, I'm still on > 2.6, so if anything relevant changed in 2.7 I'm unaware of it. > > It's not that installing for 'all users' will not create the localtexmf > stuff in the individual user account. I have one machine where I > installed for 'all users', and I have localtexmf trees under both 'all > users' and my personal login. Apparently, going by William's post, > MiKTeX will assign the respective paths to UserConfig and CommonData > (and I guess create the base for both trees) but won't add directories > underneath until they are needed. It seems that 2.7 has changed the setup. I installed for 'all users' and the directory structure was only created in the CommonData/CommonConfig directory under the Roots settings. As William mentioned there isn't even a MiKTeX folder at all under the UserConfig directory. > At some point, you might end up with UserConfig set up, and I have no > idea what the trigger might be. I don't either. I have 2.6 installed on another computer and the UserConfig was already setup. I tried opening my thesis in LyX and generating a pdf so that MiKTeX would have to grab a bunch of extra packages 'on-the-fly', but this still didn't generate a MiKTeX folder under UserConfig or a latex folder under CommonConfig. It seems that the packages are being placed in Program Files for MiKTeX 2.7. > > It's funny that you say that the userconfig or commonconfig directory > > is 'safe' because if you mouse over these Root directories in the > > MiKTeX settings is says something like, "... this directory is > > maintained by MiKTeX and should not be used to store your own files as > > they could be lost in an upgrade ..." . > > I assume you're referring to the Roots tab in the settings application. > Is this in 2.7? In 2.6, the tool tip just says something like "This > is the per-user configuration directory. User-specific configuration > file will be installed here." If a warning has been added, perhaps that > means MiKTeX's behavior has changed. Yes, this is for 2.7 and it seems the behavior has changed as it now has a warning message to not install your own files here. > The other open > question is whether UserConfig survives a reinstallation of the same > version, or whether it gets reset. My guess would be that it survives > (i.e., that the installer will not delete existing files), but that is > just a guess. Well, I was bored so I tested it out. When you 'Add/Remove Programs' for MiKTeX there is an option to 'Tidy up thoroughly' which deletes all folders including: Program Files, UserConfig, CommonConfig. So removing the program and reinstalling will definitely delete your custom files, but that wasn't your question. And if you choose not to tidy up then it doesn't remove any of them only registry items. You've mentioned that you have various folders for tex and even MiKTeX 2.5, but I guess I'm to much of a 'neat freak :-}' I can't stand having various extra folders around. So, if I were to upgrade MiKTeX I would remove the previous version and doing so would delete my UserConfig directory; hence, my preference to have my own localtexmf directory. So, then I tried to reinstall MiKTeX (same version) using the LyX-1.5.4-1-Installer-Bundle.exe and when it came time to install MiKTeX I received a message saying that 'C:\Program Files\MiKTeX 2.7 already exists' or something like that and I could not continue. Anyways, it seems you cannot reinstall the program in this manner. Then I forced the reinstall by deleting the MiKTeX 2.7 folder and you're right doing this maintains the files you have placed in UserConfig. Just thought I'd share the information. Bob
Re: Layout and Class Files on Windows Distribution
Bob, Bob Lounsbury wrote: So selecting to install 'for all users' doesn't create the userconfig file structure in a user account, but 'for me only' does? Even in my 'all users' commonconfig folder there is no 'latex' folder, only a 'tex' folder. Easy enough to create though. Two disclaimers here: first, I'm going from personal experience, not from any study of the MiKTeX documentation; and second, I'm still on 2.6, so if anything relevant changed in 2.7 I'm unaware of it. It's not that installing for 'all users' will not create the localtexmf stuff in the individual user account. I have one machine where I installed for 'all users', and I have localtexmf trees under both 'all users' and my personal login. Apparently, going by William's post, MiKTeX will assign the respective paths to UserConfig and CommonData (and I guess create the base for both trees) but won't add directories underneath until they are needed. On the one laptop where I installed for all users, I also have a (presumably redundant) C:\TeX\localtexmf directory that I created, listed as yet another root. I vaguely recall that this is left over from an earlier MiKTeX upgrade, where (in a version that did not use the ...\Application Data\... paths) I had a few packages installed in the local tree and did not want to have to reinstall them when I moved up to a newer MiKTeX version. As to William's case, he could install his package under either UserConfig or CommonData (or follow your suggestion and create his own localtexmf tree) and any of those would be fine. The sole virtue I can see for putting it under CommonData would be if he used MiKTeX under a different log in, or had someone else using the same machine with a different log in and wanted that person to have access to the package. I'm the sole user of all my machines, other than some network admins who have neither use for nor business playing with MiKTeX, so I usually install for my own use only. If William follows your advice, he just needs to add his new localtexmf tree as another root. I also installed 'for all users' and so the userconfig structure was not created for my account. Although I prefer to create my own texmf hierarchy, as I'm sure you've read in this or other posts :-}. So, I know nothing will happen to my files. At some point, you might end up with UserConfig set up, and I have no idea what the trigger might be. I know that I've got both UserConfig and CommonData on my laptop, and I did nothing special (that I can recall) to get UserConfig. The only thing installed under it is one non-MiKTeX package I had to add last year; I created the ...\latex\ folder, but I'm sure MiKTeX had already supplied me with ...\tex. It's funny that you say that the userconfig or commonconfig directory is 'safe' because if you mouse over these Root directories in the MiKTeX settings is says something like, "... this directory is maintained by MiKTeX and should not be used to store your own files as they could be lost in an upgrade ..." . I assume you're referring to the Roots tab in the settings application. Is this in 2.7? In 2.6, the tool tip just says something like "This is the per-user configuration directory. User-specific configuration file will be installed here." If a warning has been added, perhaps that means MiKTeX's behavior has changed. Have you ever experimented with installing files to userconfig and uninstalling MiKTeX to see if the files are removed or not? To verify that these files are 'safe' in the directory. Just wondering as I never have and the MiKTeX warning scared me away from storing my files there :-}. No. What I have done is upgrade MiKTeX (which creates a UserConfig tree parallel to the old one, copy over packages I wanted to keep (if any) and then deleted the older version. What I can't recall is whether I ran the uninstaller or just manually deleted the program files. On my laptop (MiKTeX 2.6), I have a UserConfig tree from MiKTeX 2.5 still lying around. (Well, had -- I just deleted it.) My memory being what it isn't, I'm not sure if the MiKTeX uninstaller gives you the option to hang onto your UserConfig stuff, but I'm pretty sure it's safe from upgrades, since the upgrades go into new directories. The other open question is whether UserConfig survives a reinstallation of the same version, or whether it gets reset. My guess would be that it survives (i.e., that the installer will not delete existing files), but that is just a guess. Cheers, Paul
Re: Layout and Class Files on Windows Distribution
On Sat, Mar 15, 2008 at 4:28 PM, Paul A. Rubin <[EMAIL PROTECTED]> wrote: > William R. Buckley wrote: > > > > > I have searched, including by means of the automated tool applet supplied > > with Windows, and not been able to find any reference to LOCALTEXMF > > under any condition of case sensitivity. When I look under the Roots tab > > of the MiKTeX settings application, I find just four directories mentioned: > > > > user config: \Documents and Settings\wrb\Application Data\MiKTeX2.7 > directory does not actually exist > > user data:\Documents and Settings\wrb\Local Settings\Application > Data\MiKTeX2.7\miktex\config\FNDB files > > common: \Documents and Settings\AllUsers.WINXP\Application > Data\MiKTeX2.7 various sub-directories > > install: \Program Files\MiKTeX2.7 > > > > The directory labeled "user config" (the one you say does not exist) is > what would ordinarily be your localtexmf directory. (The TeX system has > some conventions about how directories ought to be named, and I think > that's the origin of "localtexmf". I suspect those conventions are > frequently honored in the breach as it were.) From the "common" entry, > I suspect that MiKTeX was installed for "all user" rather than for just > the "wrb" login. If the various subdirectories under the common > directory include ...\tex\latex, you can use this as your localtexmf and > install under that directory. Again, the only difference between > installing there v. installing under \Program Files\MiKTeX2.7\tex\latex > is that the former protects you against loss of the class if you delete > and reinstall (or upgrade) MiKTeX. > > I'm a bit late returning to this thread, but I gather from Bob nad > Richard's posts that you're within a reconfiguration of getting > something working (hopefully). > > /Paul Paul, So selecting to install 'for all users' doesn't create the userconfig file structure in a user account, but 'for me only' does? Even in my 'all users' commonconfig folder there is no 'latex' folder, only a 'tex' folder. Easy enough to create though. I also installed 'for all users' and so the userconfig structure was not created for my account. Although I prefer to create my own texmf hierarchy, as I'm sure you've read in this or other posts :-}. So, I know nothing will happen to my files. It's funny that you say that the userconfig or commonconfig directory is 'safe' because if you mouse over these Root directories in the MiKTeX settings is says something like, "... this directory is maintained by MiKTeX and should not be used to store your own files as they could be lost in an upgrade ..." . Have you ever experimented with installing files to userconfig and uninstalling MiKTeX to see if the files are removed or not? To verify that these files are 'safe' in the directory. Just wondering as I never have and the MiKTeX warning scared me away from storing my files there :-}. Cheers, /Bob
Re: Layout and Class Files on Windows Distribution
William R. Buckley wrote: I have searched, including by means of the automated tool applet supplied with Windows, and not been able to find any reference to LOCALTEXMF under any condition of case sensitivity. When I look under the Roots tab of the MiKTeX settings application, I find just four directories mentioned: user config: \Documents and Settings\wrb\Application Data\MiKTeX2.7 directory does not actually exist user data:\Documents and Settings\wrb\Local Settings\Application Data\MiKTeX2.7\miktex\config\FNDB files common: \Documents and Settings\AllUsers.WINXP\Application Data\MiKTeX2.7 various sub-directories install: \Program Files\MiKTeX2.7 The directory labeled "user config" (the one you say does not exist) is what would ordinarily be your localtexmf directory. (The TeX system has some conventions about how directories ought to be named, and I think that's the origin of "localtexmf". I suspect those conventions are frequently honored in the breach as it were.) From the "common" entry, I suspect that MiKTeX was installed for "all user" rather than for just the "wrb" login. If the various subdirectories under the common directory include ...\tex\latex, you can use this as your localtexmf and install under that directory. Again, the only difference between installing there v. installing under \Program Files\MiKTeX2.7\tex\latex is that the former protects you against loss of the class if you delete and reinstall (or upgrade) MiKTeX. I'm a bit late returning to this thread, but I gather from Bob nad Richard's posts that you're within a reconfiguration of getting something working (hopefully). /Paul
Re: Layout and Class Files on Windows Distribution
On Sat, Mar 15, 2008 at 1:20 PM, rgheck <[EMAIL PROTECTED]> wrote: > Bob Lounsbury wrote: > > On Sat, Mar 15, 2008 at 12:49 PM, William R. Buckley <[EMAIL PROTECTED]> > wrote: > > > >> So, > >> the layout file shows up in the TeX Information but, in the Document > >> Settings, the document class Springer LNCS shows up as unavailable. > > I think that may be all he needs to do, assuming that TeX is seeing the > class file. > > rh I was bored so I installed llncs.cls and reconfigured LyX and 'article (Springer LNCS)' shows up and is working perfectly. So, it's confirmed, William just needs to do Tools->Reconfigure. Cheers, /Bob
Re: Layout and Class Files on Windows Distribution
On Sat, Mar 15, 2008 at 1:20 PM, rgheck <[EMAIL PROTECTED]> wrote: > Bob Lounsbury wrote: > > On Sat, Mar 15, 2008 at 12:49 PM, William R. Buckley <[EMAIL PROTECTED]> > wrote: > > > >> So, > >> the layout file shows up in the TeX Information but, in the Document > >> Settings, the document class Springer LNCS shows up as unavailable. > >> > > > > > > I wasn't sure if this would happen or not since I don't have llncs.cls > > installed on my computer. Looking at the LyX llncs.layout the > > \DeclareLaTeXClass doesn't look right to me. Maybe, there is someone > > that knows more about this llncs class. > > > > > It looks right to me. By default, LyX assumes that the class file has > the same name as the layout file, which is right in this case. I didn't know that. That's good to know. If this is the case then you're right it should be picking up the cls file and all should be well. > rh > >
Re: Layout and Class Files on Windows Distribution
Bob Lounsbury wrote: On Sat, Mar 15, 2008 at 12:49 PM, William R. Buckley <[EMAIL PROTECTED]> wrote: So, the layout file shows up in the TeX Information but, in the Document Settings, the document class Springer LNCS shows up as unavailable. I wasn't sure if this would happen or not since I don't have llncs.cls installed on my computer. Looking at the LyX llncs.layout the \DeclareLaTeXClass doesn't look right to me. Maybe, there is someone that knows more about this llncs class. It looks right to me. By default, LyX assumes that the class file has the same name as the layout file, which is right in this case. Once you do this, be sure to "Reconfigure" and restart LyX so that it will find this new/modified .layout file. I think that may be all he needs to do, assuming that TeX is seeing the class file. rh
Re: Layout and Class Files on Windows Distribution
On Sat, Mar 15, 2008 at 12:49 PM, William R. Buckley <[EMAIL PROTECTED]> wrote: > So, > the layout file shows up in the TeX Information but, in the Document > Settings, the document class Springer LNCS shows up as unavailable. I wasn't sure if this would happen or not since I don't have llncs.cls installed on my computer. Looking at the LyX llncs.layout the \DeclareLaTeXClass doesn't look right to me. Maybe, there is someone that knows more about this llncs class. Anyways, to fix the issue you have two options: 1) Modify the llncs.layout in: C:\Program Files\LyX15\Resources\layouts. 2) Create your own layout in: C:\Documents and Settings\username\Application Data\lyx15\layouts. This is just a matter of coping the file from 1) and renaming it. Either way I think the solution is the same. You need to change the \DeclareLaTeXClass to something like this: \DeclareLaTeXClass[llncs]{article (Springer LNCS)} This tells the layout file to explicitly use the llncs.cls file. You can change 'article (Springer LNCS)' to any name you want in this case. Once you do this, be sure to "Reconfigure" and restart LyX so that it will find this new/modified .layout file. Cheers, /Bob
Re: Layout and Class Files on Windows Distribution
William R. Buckley wrote: Much good information has come from Bob Lounsbury. Thank you for the attention to detail. Where would I have been expected to read of the requirement to create such a texmf sub-directory, given that it was not created automatically by either MiKTeX or LyX? It isn't necessary. (See below.) And, in any event, there's some discussion of this in Customization 5.1, though it doesn't direct itself to Windows specifically. LyX won't create such directories. This is a TeX thing, not a LyX thing. And MikTeX won't create them because it's a user-level thing, not a system-level thing. Indeed, why was such a directory not so automatically created, when it is apparently of some need to the system that these directories exist? As foreshadowed above, it isn't necessary. You can put the new class files into the main TeX directories if you want. The danger in doing so is that these directories can be over-written on an upgrade. I did follow the given advice, and created a *texmf* directory, then added the .\tex\latex and .\tex\bibtex\ sub-directories. These acts were followed by adding a root path to MiKTeX2.7 settings, and reconfiguring the file name database. Actually, we have performed this act about five times. I have even changed the search order for these roots, and then updated the database. So, the layout file shows up in the TeX Information but, in the Document Settings, the document class Springer LNCS shows up as unavailable. Did you also reconfigure LyX? Start LyX; Tools>Reconfigure; close LyX; restart LyX. (This is all covered in Customization section 5.1, in case you're wondering.) Thus, may we return to a previous question? I did find adjacent to the directory a reference to LyX15, and in that directory one may find a file called textclass.lst, within which one finds the following lines: > "article" "article" "article" "true" > > "llncs" "springer" "article (Springer LNCS)" "false" Why should this file textclass.lst be so constructed? This file is created by LyX's configure.py script, which gets run when you choose Tools>Reconfigure. It might be of interest that some hacking did produce some positive results, though not quite what I need. Basically, I put the class and style files in the same directory as my .lyx file, and modified the \textclass to be llncs. Under this condition, I could generate a PDF. LyX allows the use of "local" class and layout files, in precisely this way. rh
RE: Layout and Class Files on Windows Distribution
Much good information has come from Bob Lounsbury. Thank you for the attention to detail. Where would I have been expected to read of the requirement to create such a texmf sub-directory, given that it was not created automatically by either MiKTeX or LyX? Indeed, why was such a directory not so automatically created, when it is apparently of some need to the system that these directories exist? I did follow the given advice, and created a *texmf* directory, then added the .\tex\latex and .\tex\bibtex\ sub-directories. These acts were followed by adding a root path to MiKTeX2.7 settings, and reconfiguring the file name database. Actually, we have performed this act about five times. I have even changed the search order for these roots, and then updated the database. So, the layout file shows up in the TeX Information but, in the Document Settings, the document class Springer LNCS shows up as unavailable. Thus, may we return to a previous question? I did find adjacent to the directory a reference to LyX15, and in that directory one may find a file called textclass.lst, within which one finds the following lines: > "article" "article" "article" "true" > > "llncs" "springer" "article (Springer LNCS)" "false" Why should this file textclass.lst be so constructed? Other ideas are of course solicited. It might be of interest that some hacking did produce some positive results, though not quite what I need. Basically, I put the class and style files in the same directory as my .lyx file, and modified the \textclass to be llncs. Under this condition, I could generate a PDF. wrb
Re: Layout and Class Files on Windows Distribution
On Sat, Mar 15, 2008 at 1:50 AM, William R. Buckley <[EMAIL PROTECTED]> wrote: > I have not been able to use the LNCS .cls and .sty files which are supplied > by > Springer-Verlag, in their downloadable .zip file having the name llncs2e.zip > > The zip file contains: > > >The files in this directory belong to the LaTeX2e package for > >Lecture Notes in Computer Science (LNCS) of Springer-Verlag. > > > >It consists of the following files: > > > > history.txtthe version history of the package > > > > llncs.cls the LaTeX2e document class > > > > llncs.dem the sample input file > > > > llncs.doc the documentation of the class (LaTeX source) > > llncsdoc.pdf the documentation of the class (PDF version) > > llncsdoc.sty the modification of the class for the documentation > > llncs.ind an external (faked) author index file > > subjidx.indsubject index demo from the Springer book package > > llncs.dvi the resultig DVI file (remember to use binary > transfer!) > > > > sprmindx.sty supplementary style file for MakeIndex > > (usage: makeindex -s sprmindx.sty ) > > > > splncs.bst BibTeX style for use with llncs.cls > > I have searched, including by means of the automated tool applet supplied > with Windows, and not been able to find any reference to LOCALTEXMF > under any condition of case sensitivity. When I look under the Roots tab > of the MiKTeX settings application, I find just four directories mentioned: > > user config: \Documents and Settings\wrb\Application Data\MiKTeX2.7 > directory does not actually exist > user data:\Documents and Settings\wrb\Local Settings\Application > Data\MiKTeX2.7\miktex\config\FNDB files > common: \Documents and Settings\AllUsers.WINXP\Application > Data\MiKTeX2.7 various sub-directories > install: \Program Files\MiKTeX2.7 > > I have made no change to the MiKTeX2.7 installation. It is as it was > prepared, by > my use of the complete alternate install of LyX 1.5.4 > > In none of these directories do I find any reference to LOCALTEXMF. I prefer to set up my own 'localtexmf directory' as MiKTeX tells you not to put your own .cls files or .sty files within their default directories as updates may delete them. Having said that. To set up your own "localtexmf' directory create a folder structure as follows (you can put the texmf folder anywhere you prefer; however, the folder structure beyond texmf must be followed): C:\Documents and Settings\username\texmf\tex\latex C:\Documents and Settings\username\texmf\tex\bibtex\bib C:\Documents and Settings\username\texmf\tex\bibtex\bst Then you can put the .cls files and .sty files under the newly created latex folder and the .bst file under the newly created bst folder. You can also create additional folders under these for organization purposes if you want. Now go to the MiKTeX settings and create a new Root folder to: C:\Documents and Settings\username\texmf Now if you "Refresh FNDB" the .cls, .sty, and .bst files should be installed on your system and recognized by MiKTeX. > > I did find adjacent to the directory a reference to LyX15, and > in that > directory one may find a file called textclass.lst, within which one finds > the following > lines: > > "article" "article" "article" "true" > > "llncs" "springer" "article (Springer LNCS)" "false" The LyX layout files are found in: C:\Program Files\LyX15\Resources\layouts In this folder there is already a llncs.layout so you're in luck This layout specifies article (Springer LNCS) as the name in LyX under Document->Settings->Document Class. So, if you start LyX and reconfigure and then reopen LyX that layout should now be 'available' and you should be ready to go. Sometimes I've had to reconfigure and reopen two times. Another way to see if LyX is recognizing your .cls, .sty, and .bst files is to look under Tools->TeX Information and see if it is listed. You can also 'Recan' and see if that brings them up. However, a simple 'reconfigure' and restarting of LyX should work. > I look forward to learning more about LyX. Your suggestions are warmly > welcomed. > > wrb Cheers, /Bob
RE: Layout and Class Files on Windows Distribution
To all who have responded to my enquiries, thank you very much. This posting details my experiences, and should assist others to both provide such further assistance as will make it possible for me to effectively use LyX, and also should find utility in the development of LyX documentation. Again, I must use the LNCS class/LaTeX 2e tools in order to submit the paper I am writing for a conference proceedings volume. I want to use the LyX interface, expecting that doing so will ease the learning curve burden, and so speed my acquisition of TeX skills. My host OS is Windows XP v2002 SP2, and I used the LyX-154-3-22-AltInstaller-Complete.exe file. I have not been able to use the LNCS .cls and .sty files which are supplied by Springer-Verlag, in their downloadable .zip file having the name llncs2e.zip The zip file contains: >The files in this directory belong to the LaTeX2e package for >Lecture Notes in Computer Science (LNCS) of Springer-Verlag. > >It consists of the following files: > > history.txtthe version history of the package > > llncs.cls the LaTeX2e document class > > llncs.dem the sample input file > > llncs.doc the documentation of the class (LaTeX source) > llncsdoc.pdf the documentation of the class (PDF version) > llncsdoc.sty the modification of the class for the documentation > llncs.ind an external (faked) author index file > subjidx.indsubject index demo from the Springer book package > llncs.dvi the resultig DVI file (remember to use binary transfer!) > > sprmindx.sty supplementary style file for MakeIndex > (usage: makeindex -s sprmindx.sty ) > > splncs.bst BibTeX style for use with llncs.cls I have searched, including by means of the automated tool applet supplied with Windows, and not been able to find any reference to LOCALTEXMF under any condition of case sensitivity. When I look under the Roots tab of the MiKTeX settings application, I find just four directories mentioned: user config: \Documents and Settings\wrb\Application Data\MiKTeX2.7 directory does not actually exist user data:\Documents and Settings\wrb\Local Settings\Application Data\MiKTeX2.7\miktex\config\FNDB files common: \Documents and Settings\AllUsers.WINXP\Application Data\MiKTeX2.7 various sub-directories install: \Program Files\MiKTeX2.7 I have made no change to the MiKTeX2.7 installation. It is as it was prepared, by my use of the complete alternate install of LyX 1.5.4 In none of these directories do I find any reference to LOCALTEXMF. I did find adjacent to the directory a reference to LyX15, and in that directory one may find a file called textclass.lst, within which one finds the following lines: "article" "article" "article" "true" "llncs" "springer" "article (Springer LNCS)" "false" about which illuminating discussion is welcome. Actually, it is likely that I am mistaken regarding changes to MiKTeX, particularly with regard to the above reference to llncs. I did try to make the suggested changes that are associated with Refresh FNDB. If that refresh updated the above llncs reference, then there is a change; otherwise not. Some of the suggestions that Paul A. Rubin made seem more appropriate to *nix systems - a shorthand that I appreciate, I might add. Translation between *nix notions of file structure and naming and the same for Windows adds confusion to this process, at least for me. I don't find the available documentation to provide enough answers for me to get this thing working without the assistance of others. Perhaps this experience will provide valuable source material for additional documentation, which I will be happy to assist writing. I have been able to start with the default document (I think, by using New from the File menu), and to add the suggested \usepackage{llncs} statement in the LaTeX Preamble. So, I get something, and maybe what I should be getting. However, I am not starting with the .cls file, nor a .layout file, which is what I though LyX was supposed to start with: a basic file, augmented with a selected layout file. Oh well, so the learning goes. So, what I need to understand now are the class files, and how it is related to a layout file, and how those are related to the .lyx files that are loaded by LyX. I look forward to learning more about LyX. Your suggestions are warmly welcomed. wrb
RE: Layout and Class Files on Windows Distribution
> -Original Message- > From: news [mailto:[EMAIL PROTECTED] On Behalf Of Paul A. Rubin > Sent: Saturday, March 08, 2008 11:16 AM > To: lyx-users@lists.lyx.org > Subject: Re: Layout and Class Files on Windows Distribution > > William R. Buckley wrote: > > I have need for the LNCS layout, and am having trouble > using this with > > LyX. You will perhaps like to know that my prior > experience with any > > TeX is zero. In the past, I have used WYSIWYG systems (Ventura > > Publisher is my first choice, though I am also passingly > familiar with > > Quark XPress and Aldus PageMaker). Further, while I do have some > > experience with UNIX administrative activities, the details > for use of LyX are not clear, to me. > > > > I obtained the LaTeX 2E distribution from the > Springer-Verlag website, > > Do you mean that you obtained a full LaTeX distribution from > S-V, or just that you obtained the zip files containing the > LCNS style etc.? In the context of LaTeX, "distribution" > usually means the full-blown LaTeX package (TeXLive, MiKTeX, > teTeX, ...). If that's what you mean, *and* if you're on > Windows, I agree with Abdel that you're better off installing MiKTeX. Actually, there were a number of assumptions made, that we better off not having been made. Of course, some of this assumptions were perhaps prompted by my incomplete description of the problems I am having with LyX. I attempted to work with TeX etc. on a previous occasion, and loaded MiKTeX during this prior experience. MiKTeX I have kept up to date, and so the download of the Windows Installer for the complete LyX distribution simply replaced my current distribution of the various components of LyX and MiKTeX with the current distribution of same. Having all the proper pieces does not mean one also knows how to use the pieces. Were you were correct is the nature of the files obtained from Springer-Verlag. First, Springer-Verlag would not be in the business of distributing complete publishing packages based upon TeX. No, they simply provide class, style, and layout files, which one is to then use with the TeX distribution of choice as the mechanism of document layout. The Springer-Verlag download simply supplements the tools of TeX/LyX, not replace them. > I'm going to assume that you meant that you downloaded just > the LCNS files from S-V. Also, you did not specify your OS > any place that I can see. I suspect that Richard and Abdel > are assuming from your mention of > those page design programs that you're on Windows, but I'll > try to be agnostic about that. Yes. I should have said this; I work in the Windows world. > > and have > > attempted to determine the proper location to which the various > > components of the download should be directed. That is, shall the > > .sty and .cls files be placed in the ./resources/tex directory > > Your LaTeX distribution will have a localtexmf directory tree > where you typically want to unpack downloaded styles and > such. On *nix systems, the path to it is often exported as > an environment variable named LOCALTEXMF. Using MiKTeX > (Windows), you can use the MiKTeX settings application and > look under "Roots". All else failing, you can try running > 'kpsewhich -show-path=.bst' in a command shell/terminal and > see what it spits up. Some (most?) of the directories it > lists will be part of the base installation, but somewhere on > that list should be the bibtex folder under your localtexmf tree. So, some of the files that LyX needs to find must be located within the directory structure of MiKTeX. Sounds schizophrenic. > Once you've found localtexmf, drill down to something like > .../tex/latex/lncs, creating directories as needed, and > unpack your download there. > > > > What is less clear is the use of texhash, as it is not part > of the LyX > > distribution. > > No, this is part of LaTeX. Again, if you're using MiKTeX, you > don't need to access this directly; use the MiKTeX settings > application and click the 'Refresh FNDB' button. On *nix > systems, you'll probably need to run this in a terminal. You > don't need any arguments; just run 'texhash'. > > > > So, how do I install and make available to me the LNCS > files, and how > > do I use them to prepare, or work with, a .layout file? > > I don't use LNCS myself, but since it ships as a style file > rather than a class file, I think you should be able to start > a new document in the default article class in LyX and then > add '\usepackage{lncs}' to the preamble (Do
RE: Layout and Class Files on Windows Distribution
OK. So I tried the suggested mechanism, using the Windows installer for the complete product; a total of about 109MBytes of download. All was properly installed. Yet, when I try to configure a new document, the list of document classes shows that article(Springer LNCS) is unavailable. Haven't had time to try some of the other suggestions given by other respondents. I will get to this later this day - about ten to twelve hours. Thanks for all the suggestions. wrb > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Sunday, March 09, 2008 8:33 AM > To: William R. Buckley > Cc: lyx-users@lists.lyx.org > Subject: Re: Layout and Class Files on Windows Distribution > > William R. Buckley schrieb: > > > What is less clear is the use of texhash, as it is not part > of the LyX > > distribution. > > You don't need to use this cind of command line commands. The > best and easiest way of getting a full featured LyX/LaTeX > system on WIndows is to reinstall your current LaTeX > distribution and LyX. Then reinstall LyX using the complete > variant of this installer while you have an open internet connection: > http://wiki.lyx.org/Windows/LyXWinInstaller > > LyX will install all needed packages to MiKTeX, also LNCS. > > Try it out and post when it doesn't work for you. > > regards Uwe > >
Re: Layout and Class Files on Windows Distribution
William R. Buckley schrieb: What is less clear is the use of texhash, as it is not part of the LyX distribution. You don't need to use this cind of command line commands. The best and easiest way of getting a full featured LyX/LaTeX system on WIndows is to reinstall your current LaTeX distribution and LyX. Then reinstall LyX using the complete variant of this installer while you have an open internet connection: http://wiki.lyx.org/Windows/LyXWinInstaller LyX will install all needed packages to MiKTeX, also LNCS. Try it out and post when it doesn't work for you. regards Uwe
Re: Layout and Class Files on Windows Distribution
Paul A. Rubin wrote: I don't use LNCS myself, but since it ships as a style file rather than a class file, I think you should be able to start a new document in the default article class in LyX and then add '\usepackage{lncs}' to the preamble (Document -> Settings... -> LaTeX Preamble). If there are any special features (rather than just changes to various style parameters), you'll either need to use ERT (plain LaTeX) to invoke them (in which case they may not look right in the GUI, even though they display correctly in the final output) or else cobble together your own layout file (section 5.2 of the Customization manual). If it's a style file, then you can also copy article.layout to lcns.layout and do this: # \DeclareLaTeXClass[article]{article (LNCS)} Then add whatever you like. rh
Re: Layout and Class Files on Windows Distribution
William R. Buckley wrote: I have need for the LNCS layout, and am having trouble using this with LyX. You will perhaps like to know that my prior experience with any TeX is zero. In the past, I have used WYSIWYG systems (Ventura Publisher is my first choice, though I am also passingly familiar with Quark XPress and Aldus PageMaker). Further, while I do have some experience with UNIX administrative activities, the details for use of LyX are not clear, to me. I obtained the LaTeX 2E distribution from the Springer-Verlag website, Do you mean that you obtained a full LaTeX distribution from S-V, or just that you obtained the zip files containing the LCNS style etc.? In the context of LaTeX, "distribution" usually means the full-blown LaTeX package (TeXLive, MiKTeX, teTeX, ...). If that's what you mean, *and* if you're on Windows, I agree with Abdel that you're better off installing MiKTeX. I'm going to assume that you meant that you downloaded just the LCNS files from S-V. Also, you did not specify your OS any place that I can see. I suspect that Richard and Abdel are assuming from your mention of those page design programs that you're on Windows, but I'll try to be agnostic about that. and have attempted to determine the proper location to which the various components of the download should be directed. That is, shall the .sty and .cls files be placed in the ./resources/tex directory Your LaTeX distribution will have a localtexmf directory tree where you typically want to unpack downloaded styles and such. On *nix systems, the path to it is often exported as an environment variable named LOCALTEXMF. Using MiKTeX (Windows), you can use the MiKTeX settings application and look under "Roots". All else failing, you can try running 'kpsewhich -show-path=.bst' in a command shell/terminal and see what it spits up. Some (most?) of the directories it lists will be part of the base installation, but somewhere on that list should be the bibtex folder under your localtexmf tree. Once you've found localtexmf, drill down to something like .../tex/latex/lncs, creating directories as needed, and unpack your download there. What is less clear is the use of texhash, as it is not part of the LyX distribution. No, this is part of LaTeX. Again, if you're using MiKTeX, you don't need to access this directly; use the MiKTeX settings application and click the 'Refresh FNDB' button. On *nix systems, you'll probably need to run this in a terminal. You don't need any arguments; just run 'texhash'. So, how do I install and make available to me the LNCS files, and how do I use them to prepare, or work with, a .layout file? I don't use LNCS myself, but since it ships as a style file rather than a class file, I think you should be able to start a new document in the default article class in LyX and then add '\usepackage{lncs}' to the preamble (Document -> Settings... -> LaTeX Preamble). If there are any special features (rather than just changes to various style parameters), you'll either need to use ERT (plain LaTeX) to invoke them (in which case they may not look right in the GUI, even though they display correctly in the final output) or else cobble together your own layout file (section 5.2 of the Customization manual). /Paul
Re: Layout and Class Files on Windows Distribution
rgheck wrote: William R. Buckley wrote: I have need for the LNCS layout, and am having trouble using this with LyX. You will perhaps like to know that my prior experience with any TeX is zero. In the past, I have used WYSIWYG systems (Ventura Publisher is my first choice, though I am also passingly familiar with Quark XPress and Aldus PageMaker). Further, while I do have some experience with UNIX administrative activities, the details for use of LyX are not clear, to me. I obtained the LaTeX 2E distribution from the Springer-Verlag website, and have attempted to determine the proper location to which the various components of the download should be directed. That is, shall the .sty and .cls files be placed in the ./resources/tex directory What is less clear is the use of texhash, as it is not part of the LyX distribution. Someone on Windows will be able to answer this sort of question. Try Miktex instead instead of latex 2E. Abdel.
Re: Layout and Class Files on Windows Distribution
William R. Buckley wrote: I have need for the LNCS layout, and am having trouble using this with LyX. You will perhaps like to know that my prior experience with any TeX is zero. In the past, I have used WYSIWYG systems (Ventura Publisher is my first choice, though I am also passingly familiar with Quark XPress and Aldus PageMaker). Further, while I do have some experience with UNIX administrative activities, the details for use of LyX are not clear, to me. I obtained the LaTeX 2E distribution from the Springer-Verlag website, and have attempted to determine the proper location to which the various components of the download should be directed. That is, shall the .sty and .cls files be placed in the ./resources/tex directory What is less clear is the use of texhash, as it is not part of the LyX distribution. Someone on Windows will be able to answer this sort of question. So, how do I install and make available to me the LNCS files, and how do I use them to prepare, or work with, a .layout file? This one I can say a bit about. It's likely that the LNCS class file is based upon some other LaTeX class, e.g., article. You can find this out by looking at the .cls file. It may say early in a comment (comments begin with "%"). You can also look for a \LoadClass{...} line. The loaded class is the base class. So let's say it's article. Then you can try just copying the article.layout file to lncs.layout (say) and changing the first real line, which reads: # \DeclareLaTeXClas{article} to: # \DeclareLaTeXClas{lncs} I'm assuming here that the class file is: lncs.cls. If not, then replace "lncs" everywhere by whatever it is. This may "just work". If not, you'll need to start modifying the layout file, especially if lncs provides extra styles that aren't in the standard article (book, whatever) class. There's more detail about this in the Customization manual. Feel free to ask here. Lots of us have been through this. Also, I have noted that when I tried to load a .dem file (the LNCS demo file), that LyX did properly complain of the file type (opening a dialog box to announce the problem) but, it kept the icon for the mouse pointer as an hourglass, instead of converting it to an arrow. Yes, I understand that LyX wants to load .lyx files. What is a .dem file? Is it really a .tex file? rh