I am new to LaTeX and LyX. For writing my thesis I got 2 files from university: uw_masters_thesis.sty and sample_thesis.tex. The sample file contains \usepackage{uw_masters_thesis} in preamble. If I use LaTex I simply put both files in same directory and include child documents by using \include or \input in the sample_thesis.tex document.
The embedded objects manual in LyX suggests to specify the Document Class of master document in child document. But in my case the document class is Report (Standard Class). In my understanding, what uses the style file is the \usepackage{uw_masters_thesis} in preamble.
I am creating thesis chapters (child documents) in lyx without specifying any thing in Document Stettings. I want them to use the style provided by .sty file and finally include all of them in master document. How can I achieve this in Lyx. Please suggest a step by step solution.

  • please wait much longer than 2 hours to cross-post, and if you do cross-post, put the links from each post to each other. (thank you for mentioning that you did post on Stack Exchange on the LyX list though). Here is the LyX mailing list link: mail-archive.com/lyx-users@lists.lyx.org/msg99201.html
    – scottkosty
    Jun 11 '14 at 2:11
  • Could you give some feedback on my answer below (upvote and/or accept if it is useful, comment if not)? If you provide a link to the files (uw_masters_thesis.sty and sample_thesis.tex) it will be much easier to give specific advice. (The same goes for your question about Harvard style, it is nice to get feedback on whether an answer is helpful or not.) Aug 6 '14 at 9:23

If I understand you correctly, the only thing you need to do is to place the .sty file in the same folder as your .lyx file, and then go to Document --> Settings --> LaTeX preamble, and add \usepackage{uw_masters_thesis}. You probably need to do this for each child document.

(This could depend on how sample_thesis.tex is set up as well. See Writing a thesis in Lyx using a Latex Template - What am I doing wrong? for an example of a similar situation.)

Not the answer you're looking for? Browse other questions tagged or ask your own question.