缺少 } 插入 \end{center} 我在運行以下程式碼時遇到此錯誤

缺少 } 插入 \end{center} 我在運行以下程式碼時遇到此錯誤
\documentclass[a4paper,12pt]{report}
\usepackage{graphicx}
\begin{document}
\begin{center}
{\normalsize{A Dissertation on}}\\
\renewcommand{\baselinestretch}{1.1}
\vspace{5mm} 
{\Large\bf  {{Fractional Order Controller}}} \\
\renewcommand{\baselinestretch}{1.1}
\vspace{8mm}
{\normalsize{J.A.Gaikwad }} \\
\vspace{8mm}
{\normalsize\bf{Vishwakarma Institute of Technology, Pune}} \\
{\normalsize\textit{(An Autonomous Institute Affiliated to University of Pune)}}\\
\vspace{5mm}
{\normalsize{in partial fulfillment of the requirements for the award of the degree }} \\
%{\normalsize{for the degree of}} \\

\vspace{5mm}
{\Large\bf{Master of Engineering}} \\
%\normalsize{(M. Tech)}\\
\vspace{2mm}
{\normalsize{in}} \\
\vspace{2mm}
{\Large{Instrumentation and Control}} \\
{\large{(Process Instrumentation)}} \\
\vspace{4mm}
{\normalsize{by}} \\

\vspace{4mm}
{\Large\bf{Priyanka Wadje} \\
\vspace{1mm}
\normalsize{(GR NO. 13M089)} \\


\vspace{10mm}
{\large{Under the guidance of}} \\

\vspace{3mm}
{\Large\bf{J.A.Gaikwad}} \\

\vspace{10mm}
\includegraphics[width=1.25in]{vitlogo1.eps}\\%[.5in]
\vspace{15mm}
{\large \bf {Department of Instrumentation and Control Engineering}}\\
%\vspace{1mm}
{\large \bf {Vishwakarma Institute of Technology, Pune-411037}}\\

\vspace{3mm}
\large \bf {31 July 2014}
\end{center}

答案1

您沒有正確使用\normalsize\large\Large:它們充當開關並影響當前範圍內的所有內容,而不僅僅是後續大括號組中的材質{ ... }\bfLaTeX 不完全支援該巨集(它是一個 Plain-TeX 指令);代替使用\bfseries。該說明\renewcommand{\baselinestretch}{1.1}無法按照您使用的方式運作。我建議您加載setspace包並發出命令\setstretch{1.1}。最後,我會將說明新增\thispagestyle{empty}至相關頁面,因為標題頁通常不顯示頁碼。

在此輸入影像描述

\documentclass[a4paper,12pt]{report}
\usepackage[demo]{graphicx} % omit 'demo' option in real document
\usepackage[margin=1in]{geometry} % choose margins suitably
\usepackage{setspace}  % for '\setstretch' macro
\begin{document}
\begin{center}
\setstretch{1.1}
A Dissertation on\\
\vspace{5mm} 
{\Large\bfseries  Fractional Order Controller} \\
\vspace{8mm}
J.A. Gaikwad\\
\vspace{8mm}
{\bfseries Vishwakarma Institute of Technology, Pune} \\
({\itshape An Autonomous Institute Affiliated to University of Pune})\\
\vspace{5mm}
in partial fulfillment of the requirements for the award of the degree \\
%{\normalsize{for the degree of}} \\

\vspace{5mm}
{\Large\bfseries Master of Engineering} \\
%\normalsize{(M. Tech)}\\
\vspace{2mm}
in \\
\vspace{2mm}
{\Large Instrumentation and Control } \\
{\large (Process Instrumentation) } \\
\vspace{4mm}
by \\

\vspace{4mm}
{\Large\bfseries Priyanka Wadje} \\
\vspace{1mm}
(GR NO. 13M089) \\


\vspace{10mm}
{\large Under the guidance of} \\

\vspace{3mm}
{\Large\bfseries J.A. Gaikwad} \\

\vspace{10mm}
\includegraphics[width=1.25in]{vitlogo1.eps}\\%[.5in]
\vspace{15mm}
{\large \bfseries Department of Instrumentation and Control Engineering}\\
%\vspace{1mm}
{\large \bfseries Vishwakarma Institute of Technology, Pune-411037}\\

\vspace{3mm}
{\large \bfseries 31 July 2014}
\end{center}

\end{document}

相關內容