无法导入 .sty latex。未找到 CustomThesis.sty 文件

无法导入 .sty latex。未找到 CustomThesis.sty 文件

我正在尝试使用这里的解决方案将 sty 和 bst 文件转换为 lyx 布局为了导入我需要编写的文档类型定义的 sty 文件。我实际上正在写我的论文。这些文件可以在http://www2.imm.dtu.dk/teaching/thesis/thesis-template-2012.zip,但我找不到在 Lyx 中使用 .sty 文件的方法。

我已严格遵循之前引用的答案,但出现以下错误:

This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012/Debian) (format=pdflatex 2013.4.30)  9 JUL 2013 16:42
entering extended mode
 restricted \write18 enabled.
 %&-line parsing enabled.
**newfile2.tex
(./newfile2.tex
LaTeX2e <2011/06/27>
Babel <v3.8m> and hyphenation patterns for english, dumylang, nohyphenation, lo
aded.

(/usr/share/texlive/texmf-dist/tex/latex/base/report.cls
Document Class: report 2007/10/19 v1.4h Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo
File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
)
\c@part=\count79
\c@chapter=\count80
\c@section=\count81
\c@subsection=\count82
\c@subsubsection=\count83
\c@paragraph=\count84
\c@subparagraph=\count85
\c@figure=\count86
\c@table=\count87
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
) (/usr/share/texlive/texmf-dist/tex/latex/base/fontenc.sty
Package: fontenc 2005/09/27 v1.99g Standard LaTeX package
(/usr/share/texlive/texmf-dist/tex/latex/base/t1enc.def
File: t1enc.def 2005/09/27 v1.99g Standard LaTeX file
LaTeX Font Info:    Redeclaring font encoding T1 on input line 43.
)) (/usr/share/texlive/texmf-dist/tex/latex/base/inputenc.sty
Package: inputenc 2008/03/30 v1.1d Input encoding file
\inpenc@prehook=\toks14
\inpenc@posthook=\toks15
(/usr/share/texlive/texmf-dist/tex/latex/base/latin9.def
File: latin9.def 2008/03/30 v1.1d Input encoding file
))

! LaTeX Error: File `LukeThesis.sty' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)

Enter file name: 
! Emergency stop.
<read *> 

l.15 ^^M

*** (cannot \read from terminal in nonstop modes)


Here is how much of TeX's memory you used:
 465 strings out of 495059
 4571 string characters out of 3182030
 47487 words of memory out of 3000000
 3725 multiletter control sequences out of 15000+200000
 4403 words of font info for 15 fonts, out of 3000000 for 9000
 14 hyphenation exceptions out of 8191
 23i,0n,17p,163b,37s stack positions out of 5000i,500n,10000p,200000b,50000s
!  ==> Fatal error occurred, no output PDF file produced!

有人能提供一些提示吗?

./lyx/layout 文件夹中的 LukeThesis.layout 文件如下:

\DeclareLaTeXClass[report, LukeThesis.sty]{report (LukeThesis)}


Preamble     
    \usepackage{LukeThesis}
EndPreamble


Format 35
Input stdclass.inc
Input numreport.inc

Style Bibliography
    TopSep                4
    LabelString           "Bibliography"
    LabelFont
      Series              Bold
      Size                Huge
    EndFont
End

相关内容