Re: Thesis template in Lyx (options clash error)
On 6.05.08, Adrian Peter wrote: > I don't think the ufthesis.cls file is loading amsmath. The problem > disappears if I comment out the following load package in the preamble: > \usepackage[dvips]{graphicx} > Do I need this package for anything major? Thanks. You need it for included graphics, but LyX takes care of this. I.e. * it should not be in the user supplied preamble (Document>Settings>LaTeX preamble), * but you should see it (with correct options) in the preamble of the LaTeX file exported by lyx. Günter
RE: Thesis template in Lyx (options clash error)
I don't think the ufthesis.cls file is loading amsmath. The problem disappears if I comment out the following load package in the preamble: \usepackage[dvips]{graphicx} Do I need this package for anything major? Thanks. Adrian -Original Message- From: G. Milde [mailto:[EMAIL PROTECTED] Sent: Monday, May 05, 2008 6:25 AM To: lyx-users@lists.lyx.org Subject: Re: Thesis template in Lyx (including a chapter) On 5.05.08, José Matos wrote: > On Saturday 03 May 2008 03:30:28 Adrian Peter wrote: > > I have set the document type of the child document (my chapters) to the > > same type as the main lyx file (for which I created the layout file to > > point to the ufthesis.cls file). Is the child document somehow redefining > > the graphicx package options? Thanks. > I don't think so. Also, the error pointed to a problem loading amsmath. Does the ufthesis.cls class load ams? With an option? Then, the layout file must say so: ProvidesAmsmath 1 (see Help>Customisation), otherwise LyX loads the amsmath package again (if required or set to do so). Günter ---Original Error--- Now I am running into a small issue whenever I try to include a chapter as a child document into my main lyx file. I get the following error when I try to do a DVI preview or creating a PDF: >>\usepackage >> {amsmath} >>The package graphicx has already been loaded with options: >> [] >>There has now been an attempt to load it with options >> [dvips] >>Adding the global options: >> ,dvips >>to your \documentclass declaration may fix this. >>Try typingto proceed. I have set the document type of the child document (my chapters) to the same type as the main lyx file (for which I created the layout file to point to the ufthesis.cls file). Is the child document somehow redefining the graphicx package options? Thanks. Adrian
Re: Thesis template in Lyx (including a chapter)
On 5.05.08, José Matos wrote: > On Saturday 03 May 2008 03:30:28 Adrian Peter wrote: > > I have set the document type of the child document (my chapters) to the > > same type as the main lyx file (for which I created the layout file to > > point to the ufthesis.cls file). Is the child document somehow redefining > > the graphicx package options? Thanks. > I don't think so. Also, the error pointed to a problem loading amsmath. Does the ufthesis.cls class load ams? With an option? Then, the layout file must say so: ProvidesAmsmath 1 (see Help>Customisation), otherwise LyX loads the amsmath package again (if required or set to do so). Günter
Re: Thesis template in Lyx (including a chapter)
On Saturday 03 May 2008 03:30:28 Adrian Peter wrote: > I have set the document type of the child document (my chapters) to the > same type as the main lyx file (for which I created the layout file to > point to the ufthesis.cls file). Is the child document somehow redefining > the graphicx package options? Thanks. I don't think so. > Adrian -- José Abílio
RE: Thesis template in Lyx (including a chapter)
Thank you everyone for your suggestions. I have managed to get the main body lyx file setup properly. Now I am running into a small issue whenever I try to include a chapter as a child document into my main lyx file. I get the following error when I try to do a DVI preview or creating a PDF: >>\usepackage >> {amsmath} >>The package graphicx has already been loaded with options: >> [] >>There has now been an attempt to load it with options >> [dvips] >>Adding the global options: >> ,dvips >>to your \documentclass declaration may fix this. >>Try typingto proceed. I have set the document type of the child document (my chapters) to the same type as the main lyx file (for which I created the layout file to point to the ufthesis.cls file). Is the child document somehow redefining the graphicx package options? Thanks. Adrian -Original Message- From: Bob Lounsbury [mailto:[EMAIL PROTECTED] Sent: Thursday, May 01, 2008 6:19 PM To: Adrian Peter Cc: lyx-users@lists.lyx.org Subject: Re: Thesis template in Lyx On Thu, May 1, 2008 at 8:31 AM, Adrian Peter <[EMAIL PROTECTED]> wrote: > Thank you for your response. When you say: > > > So, like I said you'll probably want to start with a blank document and > just modify it to match the thesis requirements. > > Do you mean that I should use the approach of creating the layout file like > you suggested or just working with a blank report document. If it is the > latter approach, my only worry is that they have redefined so many of the > latex settings (section, subsection, itemized list) that I would have to > place ERT all over the document to get it to conform to their > specifications. Or am I misunderstanding this? Thanks. > > Adrian > > Cheers, > /Bob I just meant that I would not use the example.tex they gave. Yes, I would use the layout file that I have described. I would just start a blank document with the ufthesis.layout and begin. Cheers /Bob
Re: Thesis template in Lyx
On Thu, May 1, 2008 at 8:31 AM, Adrian Peter <[EMAIL PROTECTED]> wrote: > Thank you for your response. When you say: > > > So, like I said you'll probably want to start with a blank document and > just modify it to match the thesis requirements. > > Do you mean that I should use the approach of creating the layout file like > you suggested or just working with a blank report document. If it is the > latter approach, my only worry is that they have redefined so many of the > latex settings (section, subsection, itemized list) that I would have to > place ERT all over the document to get it to conform to their > specifications. Or am I misunderstanding this? Thanks. > > Adrian > > Cheers, > /Bob I just meant that I would not use the example.tex they gave. Yes, I would use the layout file that I have described. I would just start a blank document with the ufthesis.layout and begin. Cheers /Bob
RE: Thesis template in Lyx
What do you mean by "start modifying it from there"? Do I have to modify the layout file to define how sections, subsections, etc. should be in Lyx? Sorry if this sounds like a dumb question. If this is the case, is there an specific example of how I should do this to match the CLS file? Thanks. -Original Message- From: José Matos [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 30, 2008 7:17 PM To: lyx-users@lists.lyx.org Subject: Re: Thesis template in Lyx On Wednesday 30 April 2008 20:57:54 Bob Lounsbury wrote: > I then renamed report.layout to ufthesis.layout and changed the first line > from: > > \DeclareLaTeXClass{report} > to > \DeclareLaTeXClass{ufthesis} > > And done. You now have a layout file for your ufthesis.cls file. Or better yet, include it and start modifying from there: #% Do not delete the line below; configure depends on this # \DeclareLaTeXClass[ufthesis]{UF Thesis} Format 4 Input report # Adding specific modifications below this line .. -- José Abílio
RE: Thesis template in Lyx
Thank you for your response. When you say: > So, like I said you'll probably want to start with a blank document and just modify it to match the thesis requirements. Do you mean that I should use the approach of creating the layout file like you suggested or just working with a blank report document. If it is the latter approach, my only worry is that they have redefined so many of the latex settings (section, subsection, itemized list) that I would have to place ERT all over the document to get it to conform to their specifications. Or am I misunderstanding this? Thanks. Adrian -Original Message- From: Bob Lounsbury [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 30, 2008 3:58 PM To: Adrian Peter Cc: lyx-users@lists.lyx.org Subject: Re: Thesis template in Lyx On Wed, Apr 30, 2008 at 12:23 PM, Adrian Peter <[EMAIL PROTECTED]> wrote: > > > > > Hi, > > > > I want to use Lyx to write my dissertation. However, our university already > provides a LaTex template (cls file) that has to be followed exactly. What > is the easiest way to use Lyx to write my dissertation? If you want to use LyX it could get quite involved, but you can always start slow and build up to see if it will work. > (1)Should I try to create a layout file to use the latex cls file? I > have never created a Lyx layout file before so I don't know how difficult > this is. Any help on this or a if a tutorial exists on how to create a > layout file for a cls file would be greatly appreciated. I have attached > the cls file. The layout file is really just for LyX representation. I looked at your .cls file and they use the report.cls so I just copied: C:\Program Files\LyX15\Resources\layouts\report.layout to C:\Documents and Settings\username\Application Data\lyx15\layouts\report.layout I then renamed report.layout to ufthesis.layout and changed the first line from: \DeclareLaTeXClass{report} to \DeclareLaTeXClass{ufthesis} And done. You now have a layout file for your ufthesis.cls file. Next, you need to place the ufthesis.cls in your local texmf directory. For me on XP with MiKTeX 2.6 this is located at: C:\Documents and Settings\username\Application Data\MiKTeX\2.6\tex\latex Then refresh the MiKTeX FNDB. In Start->All Programs->MiKTeX 2.6->Settings->General. After that you should start LyX and Tools->Reconfigure (Important step). Then restart LyX and under Document->Settings->Document Class you should see ufthesis and now when you insert the toc, chapters, etc they should match the formatting of the thesis when you export to pdf or dvi. > (2)Should I try to import a sample Tex file the university provides into > Lyx? I tried to import it into Lyx but it failed. Not sure what is going > on. I have attached the sample Tex file as well. I was able to import the .tex with this new ufthesis.layout, but it looks like it could be complicated. So, like I said you'll probably want to start with a blank document and just modify it to match the thesis requirements. > I am not an advanced Lyx user so thank you very much in advance for the > help. > > > > Adrian > > Cheers, /Bob
Re: Thesis template in Lyx
On Wednesday 30 April 2008 20:57:54 Bob Lounsbury wrote: > I then renamed report.layout to ufthesis.layout and changed the first line > from: > > \DeclareLaTeXClass{report} > to > \DeclareLaTeXClass{ufthesis} > > And done. You now have a layout file for your ufthesis.cls file. Or better yet, include it and start modifying from there: #% Do not delete the line below; configure depends on this # \DeclareLaTeXClass[ufthesis]{UF Thesis} Format 4 Input report # Adding specific modifications below this line ... -- José Abílio
Re: Thesis template in Lyx
On Wed, Apr 30, 2008 at 12:23 PM, Adrian Peter <[EMAIL PROTECTED]> wrote: > > > > > Hi, > > > > I want to use Lyx to write my dissertation. However, our university already > provides a LaTex template (cls file) that has to be followed exactly. What > is the easiest way to use Lyx to write my dissertation? If you want to use LyX it could get quite involved, but you can always start slow and build up to see if it will work. > (1)Should I try to create a layout file to use the latex cls file? I > have never created a Lyx layout file before so I don't know how difficult > this is. Any help on this or a if a tutorial exists on how to create a > layout file for a cls file would be greatly appreciated. I have attached > the cls file. The layout file is really just for LyX representation. I looked at your .cls file and they use the report.cls so I just copied: C:\Program Files\LyX15\Resources\layouts\report.layout to C:\Documents and Settings\username\Application Data\lyx15\layouts\report.layout I then renamed report.layout to ufthesis.layout and changed the first line from: \DeclareLaTeXClass{report} to \DeclareLaTeXClass{ufthesis} And done. You now have a layout file for your ufthesis.cls file. Next, you need to place the ufthesis.cls in your local texmf directory. For me on XP with MiKTeX 2.6 this is located at: C:\Documents and Settings\username\Application Data\MiKTeX\2.6\tex\latex Then refresh the MiKTeX FNDB. In Start->All Programs->MiKTeX 2.6->Settings->General. After that you should start LyX and Tools->Reconfigure (Important step). Then restart LyX and under Document->Settings->Document Class you should see ufthesis and now when you insert the toc, chapters, etc they should match the formatting of the thesis when you export to pdf or dvi. > (2)Should I try to import a sample Tex file the university provides into > Lyx? I tried to import it into Lyx but it failed. Not sure what is going > on. I have attached the sample Tex file as well. I was able to import the .tex with this new ufthesis.layout, but it looks like it could be complicated. So, like I said you'll probably want to start with a blank document and just modify it to match the thesis requirements. > I am not an advanced Lyx user so thank you very much in advance for the > help. > > > > Adrian > > Cheers, /Bob