Hello LyX users.
I'm trying to coach a student through a dissertation using LyX, and I've not used LyX for anything bigger than an article (so far).
I found online at the U of Texas a dissertation format for LaTeX, and I can make it work with LaTeX, but when I use relyx to grab it into Lyx, I end up with some pretty serious problems.
Here's the URL
http://www.utexas.edu/ogs/etd/LaTeX/index.html
The one I'm trying is utdiss2, which comes complete with a "main document" disstemplate.tex which includes several other files.
The relyx import properly creates the main document and lyx files for the included chapters and appendices. If you want to try it and see, it won't take more than a couple of minutes. Unfortunately, after importing in LyX, the latex command generates many errors, and I have a hard time figuring out what's going on.
Problems.
1. LaTeX errors caused by commands in the included files show as LaTeX errors in the main file, and don't give any hint which file the came from. I was able to do some grepping about and find that almost all of the errors trace back to the math and latex drawing and figure chapters.
If you try it, I think you will see the first block of LaTeX errors refer to an attempt to do a commutative diagram in "chapter-math.lyx". That uses the package "amscd", which I do have, and when I proces the tex file with latex, the diagram is created. But inside lyx, it does not work.
2. I want to see what is wrong with the imported chapter "chapter-math.lyx". I can't make much headway because that chapter can't be compiled apart from the others because the others have a huge piece of preamble that enables a lemma environment and so forth.
Should I copy the whole preamble from disstemplate.lyx into "chapter-math.lyx"?
I tried that and the problems all focus on that attempt to use a commutative diagram.
3. In the Idx items that are imported, there are words that lyx objects to. If you look at "chapter-appendix2.lyx" you see the first Idx item has this text:
Appendix!My Appendix #2@
The inside-LyX latex error says that the symbol # cannot be used in horizontal environments. Why does it work with latex and not LyX?
Can you tell me what kinds of words are allowed/needed inside the Idx box?
4. Suppose I solved those LaTeX problems. Then I'd like to write a LyX layout "utdiss2" so that users could get at the lemma and theorem environments that are in the preamble. That's not hard, is it? If I take the report.layout file from the LyX distro, I can add items?
The latex preamble elements look like this:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Some math support. %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Theorem environments (these need the amsthm package)
%
%% \theoremstyle{plain} %% This is the default\newtheorem{thm}{Theorem}[section]
\newtheorem{cor}[thm]{Corollary}
\newtheorem{lem}[thm]{Lemma}
\newtheorem{prop}[thm]{Proposition}
\newtheorem{ax}{Axiom}\theoremstyle{definition}
\newtheorem{defn}{Definition}[section]\theoremstyle{remark}
\newtheorem{rem}{Remark}[section]
\newtheorem*{notation}{Notation}%\numberwithin{equation}{section}Paul E. Johnson Political Science University of Kansas
