On Sat, May 16, 2009 at 9:46 AM, rgheck <rgh...@comcast.net> wrote:

> Daniel R. Pereira wrote:
>
>> Hello rh,
>>
>> I am attaching the whole file now. It is a thesis template, that I want to
>> import to LyX. Any help is appreciated.
>>
>>
>>
> You need to import *all* the TeX files and compile it from the ufsampleETD
> file. It will not be possible to compile the individual chapters, because
> they do not contain the necessary includes for compilation. They are
> includes for the main document.
>
> To do the import, you will need a layout file for the ufthesis class. I've
> attached a trivial modification of the report layout, as ufthesis is based
> upon report. But you'll probably get a lot of ERT with this, so you may want
> to modify it to take advantage of ufthesis-specific stuff. Documentation on
> that is in chapter 6 of the Customization manual.
>
> Put this layout file in your local layout directory and reconfigure LyX
> before doing anything else. You'll also want to put all the .sty and .cls
> packages you don't already have into your local TeX tree, so that LyX can
> find them. I'd guess that means ufenumerate.sty and ufthesis.cls, and maybe
> a couple more. If you're on Linux or something similar---i.e., if you have
> bash---then you can use this:
>   for i in Latex\ Template/*.sty; do
>       j=`basename "$i"`;
>       if kpsewhich $j > /dev/null; then
>           echo "$j found";
>       else echo "$j not found";
>       fi;
>   done
> run from the directory above the Latex Template directory, to find out
> which you have and which you don't. Otherwise, you'll have to check them by
> hand.
>
> You use this script:
>   for i in *tex; do tex2lyx -c ufthesis $i; done
> from an appropriate directory to do all the conversions in one go.
>
> rh
>
> PS Please keep these things on the list, as other people may have similar
> questions, or be following the discussion just to learn.
>
>
> #% Do not delete the line below; configure depends on this
> #  \DeclareLaTeXClass{ufthesis}
> # Report textclass definition file. Taken from initial LyX source code
> # Author : Matthias Ettrich <ettr...@informatik.uni-tuebingen.de>
> # Transposed by Pascal André <an...@via.ecp.fr>
> # Heavily modifed and enhanced by serveral developers.
>
> Format 11
> Input stdclass.inc
> Input numreport.inc
>
> Style Bibliography
>        TopSep                4
>        LabelString           "Bibliography"
>        LabelFont
>          Series              Bold
>          Size                Huge
>        EndFont
> End
>


OK, I guess I should mention the fact that I started using LyX two weeks
ago, and that I have no programming background. Although I am very willing
to do this.
What I could do from what you said was:

1. to import the .sty, .cls.. LyX now recognizes the "ufthesis.layout" ! =)

2. By "compiling" you mean import the main TEX file (ufsampleETD.tex"")?
When I import the "ufsampleETD.tex", I am getting not many ERTs. Most of
them are "%comments". The commands that LyX appears to not recognize are:
\makecopyright,
\phantomsection,
\addtocontents{TOC} , \protect, \addvspace{10pt} {CHAPTER} {\\protect} (this
last one in order to add the word CHAPTER to the table of contents)

 I cannot generate an output, because of the following errors:
LaTeX Error: Option clash for package graphicx;
description:
\usepackage

 {amsmath}

The package graphicx has already been loaded with options:

[]

There has now been an attempt to load it with options

[dvipdfm]

Adding the global options:

,dvipdfm

to your \documentclass declaration may fix this.


LaTeX Error: Something's wrong--perhaps a missing \item.

...S AND DISSERTATION TEMPLATE}}{9}{chapter.1}

 Try typing <return> to proceed.

If that doesn't work, type X <return> to quit.Try typing <return> to
proceed.


Package inputenc Error: Keyboard character used is

undefined


This is an example of a {}``short’

 ’ list. Not because there's only

You need to provide a definition with \DeclareInputText

or \DeclareInputMath before using this key.

--------------------------------------------------------------------


If explained in more detail, I can try to do the "bash part".( I am on a
Mac, OS X 10.5). Are you talking about running that code in a terminal?
Sorry about this, I have zero experience with programming.



Thank you,

--
Daniel Reis Pereira
University of FloridaMcCarty Hall A 2197

Reply via email to