On Tue, Apr 15, 2014 at 3:34 PM, Steve Burnham <[email protected]> wrote:
> OK, so overall success. I was able to modify the files myself and get > them to compile in LaTeX. I found the whole parent/child document thing a > little confusing at first. Not the concept so much but just syntax and how > they are structured. Should anybody else be looking for help in the future > I found the following video where you can actually see somebody create a > parent/child document and it cleared it up for me ( > https://www.sharelatex.com/blog/latex-guides/beginners-tutorial/longer-documents-in-latex.html#.U02Qt-ZdVIY). > So now when I open up LyX I can go File>Import>LaTeX(plain) and import > MyThesis.tex and it opens and compiles just fine in LyX. I think now my > questions are: > > 1. What is the difference between MyThesis.lyx and MyThesisR3.lyx. From > what I can tell R3 has the ERT cleaned up in the preamble as well as notes > signifying the different heading levels > There should be no difference in the .tex or .pdf produced by either. The only difference is the cleanup of the ERT in the main text. For example, I typeset the table using LyX, rather than putting it in ERT. > > 2. From what I can gather it is the .layout file that will get rid of the > ERT in the LyX file. I tried to follow an example thesis .layout file from > the LyX site (see here: http://wiki.lyx.org/Layouts/UCThesis) but when I > modify the file I can no longer get anything to compile. (See attached > .layout file to see what I did.) > Using the .layout file I sent (which was basically what you provided originally), it should compile fine. If you wanted to get rid of more ERT, we could change it more, but this is not strictly necessary. Much of it actually ends up being a little complicated. For the most part, you should be able to get rid of the \usepackage commands in your preamble. This is because if you have used functionality that's provided by a certain package, LyX usually includes it for you. That should be the case for the \usepackage{lscape}, for example. As for the \usepackage{amsmath} directive, this generally works fine left alone; but if you want, the correct way to force the use of the amsmath package is to select it in the math options under the lyx document settings. Some of the others, such as \usepackage{flafter} should probably remain in the preamble, unless they are so critical to the style they could be moved to the thesis template itself. The part we would really like to take out of the preamble would be the title, author, thesis type, degree, departmentchair, etc. Those would be defined to use (modified versions) of LyX's frontmatter styles in the .layout file. 3. I also cannot figure out where both LyX and LaTeX are getting the front > matter pages like the title page, copyright page, and abstract. All I can > find is in the preamble are entries like \titlepage, \copyrightpage > Yeah, that's kind of confusing. The thesis class file provided by the U assumes that the abstract will be provided in a file named "abstract.tex" that is stored in the same folder. It assumes the same for the acknowledgements. I think it's bad style, but either way, it's how the template was written. You can either live with it or modify the thesis template. That part is controlled by the preface command, which is part of the ERT at the beginning of the document. > -Steve > -Jacob
