在 lyx 中使用 LaTex 类文件作为布局

在 lyx 中使用 LaTex 类文件作为布局

如果您能帮助我解决以下问题,我将不胜感激:我想使用大学提供的 LaTex 模板在 Lyx 中撰写论文。提供的类文件 dissertation.cls 包含所有内容,这些内容基于报告布局。因此,我尝试通过类似以下方式创建自定义布局

#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass[dissertation]{custom made}

# Read the definitions from report.layout

Input report.layout

我将其保存在本地,因此我可以通过选择它将其传递给 lyx。看来,它部分有效,因为我可以编译论文,但是,间距和大小与类文件中提供的不一样。我现在很困惑。提前谢谢。

答案1

就像帮助在 Mac 上安装 LyX 文档类,不确定从哪里开始,将以下代码复制到名为 dissertation.layout 的文本文件中

#\DeclareLaTeXClass[dissertation,report]{dissertation}
Format 60
Input stdclass.inc
Input numreport.inc

并将其保存在包含 dissertation.cls 等其他论文文件的文件夹中。然后 LyX>Document>Settings>Document Class>Local Layout。选择 dissertation.layout。检查 LyX>View>Source 中的行\documentclass[english]{dissertation}

相关内容