你好,我是乳胶新手。
\n\n我正在尝试使用 MasterDoctoralClass.cls 来撰写论文。
\n\n这是我的 main.tex:
\n\n\\documentclass[\n11pt, \nenglish, \nsinglespacing,\nheadsepline\n]{MastersDoctoralThesis} \n\n\\usepackage[utf8]{inputenc}\n\\usepackage[T1]{fontenc} \n\n\\usepackage{mathpazo} \n\n\\usepackage[backend=bibtex,style=authoryear,natbib=true]{biblatex} )\n\n\\addbibresource{example.bib} \n\n\\usepackage[autostyle=true]{csquotes}\n\n%----------------------------------------------------------------------------------------\n% MARGIN SETTINGS\n%----------------------------------------------------------------------------------------\n\n\\geometry{\n paper=a4paper, \n inner=2.5cm, \n outer=3.8cm, \n bindingoffset=.5cm, \n top=1.5cm,\n bottom=1.5cm\n}\n\n%----------------------------------------------------------------------------------------\n% THESIS INFORMATION\n%----------------------------------------------------------------------------------------\n\n\\thesistitle{Title Thesis} \n\\supervisor{Prof. X \\textsc{Y} \\\\ Dr. Z \\textsc{W}}\n\\degree{Master of Science in Electronic Engineering} \n\\author{Name \\textsc{Surname}}\n\n\\subject{Electronic Engineering} \n\\keywords{} \n\\university{{Universit\xc3\xa0}} \n\\department{{Department of Information Engineering, Electronics and Telecommunications}} \n\\group{{Master of Science in Electronic Engineering}} \n\\faculty{{Faculty of Information Engineering, Informatics and Statistics}} \n\n\\AtBeginDocument{\n\\hypersetup{pdftitle=\\ttitle} \n\\hypersetup{pdfauthor=\\authorname}\n\\hypersetup{pdfkeywords=\\keywordnames} \n}\n\n\\begin{document}\n\n\\frontmatter \n\n\\pagestyle{plain} \n\n%----------------------------------------------------------------------------------------\n% TITLE PAGE\n%----------------------------------------------------------------------------------------\n\n\\begin{titlepage}\n\n\\begin{center}\n\\includegraphics[scale=1]{logo.jpg}\n\\end{center}\n\n\\begin{center}\n\n\\vspace*{.01\\textheight}\n\\textsc{\\Large Master Thesis}\\\\[1cm]\n\n\\HRule \\\\[0.4cm] \n{\\huge \\bfseries \\ttitle\\par}\\vspace{0.4cm} \n\\HRule \\\\[1.5cm] \n\n\\begin{minipage}[t]{0.4\\textwidth}\n\\begin{flushleft} \\large\n\\emph{Author:}\\\\\n\\href{}{\\authorname} \n\\end{flushleft}\n\\end{minipage}\n\\begin{minipage}[t]{0.4\\textwidth}\n\\begin{flushright} \\large\n\\emph{Supervisor:} \\\\\n{\\supname} \n\\end{flushright}\n\\end{minipage}\\\\[2cm]\n\n\\begin{center}\n\\includegraphics[scale=0.4]{logo2.jpg}\\hfill\\includegraphics[scale=0.5]{logo3.jpg}\n\\end{center}\n\n\\vspace*{1.5cm}\n\n\\groupname\\\\\\deptname\\\\[1.5cm] \n\n\\vfill\n\n\\rule{3cm}{1pt}\\\\\n{\\large \\today}\\\\[4cm] \n%\\includegraphics{Logo} \n\n\\vfill\n\\end{center}\n\\end{titlepage} \n%----------------------------------------------------------------------------------------\n% QUOTATION PAGE\n%----------------------------------------------------------------------------------------\n\n\\vspace*{0.2\\textheight}\n\n\\begin{flushright}\n\\thispagestyle{empty}\n\\vspace*{5cm} \n\\itshape\\enquote{Something}\\\\[0.3cm]\n\\end{flushright}\n\\hfill Name\n %----------------------------------------------------------------------------------------\n% ABSTRACT PAGE\n%----------------------------------------------------------------------------------------\n\n\\begin{abstract}\n\\addchaptertocentry{\\abstractname} \nThe Thesis Abstract is written here (and usually kept to just this page). The page is kept centered vertically so can expand into the blank space above the title too\\ldots\n\\end{abstract}\n %----------------------------------------------------------------------------------------\n% ACKNOWLEDGEMENTS\n%----------------------------------------------------------------------------------------\n\n\\begin{acknowledgements}\n\\addchaptertocentry{\\acknowledgementname} \nThe acknowledgments and the people to thank go here, don't forget to include your project advisor\\ldots\n\\end{acknowledgements}\n %----------------------------------------------------------------------------------------\n% LIST OF CONTENTS/FIGURES/TABLES PAGES\n%----------------------------------------------------------------------------------------\n\n\\tableofcontents \n\n\\listoffigures \n\n\\listoftables \n %----------------------------------------------------------------------------------------\n% ABBREVIATIONS\n%----------------------------------------------------------------------------------------\n\n\\begin{abbreviations}{ll} %\n\n\\textbf{LAH} & \\textbf{L}ist \\textbf{A}bbreviations \\textbf{H}ere\\\\\n\\textbf{WSF} & \\textbf{W}hat (it) \\textbf{S}tands \\textbf{F}or\\\\\n\n\\end{abbreviations}\n %----------------------------------------------------------------------------------------\n% PHYSICAL CONSTANTS/OTHER DEFINITIONS\n%----------------------------------------------------------------------------------------\n\n\\begin{constants}{lr@{${}={}$}l} \nSpeed of Light & $c_{0}$ & \\SI{2.99792458e8}{\\meter\\per\\second} (exact)\\\\ \n\\end{constants}\n %----------------------------------------------------------------------------------------\n% SYMBOLS\n%----------------------------------------------------------------------------------------\n\n\\begin{symbols}{lll} \n\n$a$ & distance & \\si{\\meter} \\\\\n$P$ & power & \\si{\\watt} (\\si{\\joule\\per\\second}) \\\\\n%Symbol & Name & Unit \\\\\n\n\\addlinespace \n$\\omega$ & angular frequency & \\si{\\radian} \\\\\n\n\\end{symbols}\n %----------------------------------------------------------------------------------------\n% DEDICATION\n%----------------------------------------------------------------------------------------\n\n\\dedicatory{For my family} \n\\end{document} \n %----------------------------------------------------------------------------------------\n% THESIS CONTENT - CHAPTERS\n%----------------------------------------------------------------------------------------\n\n\\mainmatter \n\n\\pagestyle{thesis} \n\n\\include{Chapters/Introduction}\n%\\include{Chapters/Chapter1}\nRun Code Online (Sandbox Code Playgroud)\n\n如果我编译 main.tex (使用 PDFLatex,我也使用 Latex 和 PDFTex 编译),它不会返回任何错误,但是当我查看 PDF 时,它不会打印简介。\n所以我正在观看Introduction.tex:
\n\n% Chapter 1\n\n\\chapter{Chapter Title Here} % Main chapter title\n\n\\label{Chapter1} % For referencing the chapter elsewhere, use \\ref{Chapter1} \n\n%----------------------------------------------------------------------------------------\n\n% Define some commands to keep the formatting separated from the content \\newcommand{\\keyword}[1]{\\textbf{#1}} \\newcommand{\\tabhead}[1]{\\textbf{#1}} \\newcommand{\\code}[1]{\\texttt{#1}} \\newcommand{\\file}[1]{\\texttt{\\bfseries#1}} \\newcommand{\\option}[1]{\\texttt{\\itshape#1}}\n\n%----------------------------------------------------------------------------------------\n\n\\section{Welcome and Thank You} Welcome to this \\LaTeX{} Thesis Template, a beautiful and easy to use template for writing a thesis using the \\LaTeX{} typesetting system.\n\nIf you are writing a thesis (or will be in the future) and its subject is technical or mathematical (though it doesn't have to be), then creating it in \\LaTeX{} is highly recommended as a way to make sure you can just get down to the essential writing without having to worry over formatting or wasting time arguing with your word processor.\n\n\\LaTeX{} is easily able to professionally typeset documents that run to hundreds or thousands of pages long. With simple mark-up commands, it automatically sets out the table of contents, margins, page headers and footers and keeps the formatting consistent and beautiful. One of its main strengths is the way it can easily typeset mathematics, even \\emph{heavy} mathematics. Even if those equations are the most horribly twisted and most difficult mathematical problems that can only be solved on a super-computer, you can at least count on \\LaTeX{} to make them look stunning.\nRun Code Online (Sandbox Code Playgroud)\n\n如果我遵守它,我会遇到一些错误:
\n\nUndefined control sequence \\chapter\nMissing \\begin{document}. \\chapter{C\nUndefined control sequence \\section\nRun Code Online (Sandbox Code Playgroud)\n\n我尝试放置 \\begin{document} 但在未定义的控制序列上仍然存在相同的错误以及其他错误,例如
\n\nThe font size command \\normalisize si not defined:there is probably something wrong with the class file.\nRun Code Online (Sandbox Code Playgroud)\n\n有人能帮助我吗?谢谢!
\n