缺少} 插入 \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:它们充当开关并影响当前范围内的所有内容,而不仅仅是后续{ ... }括号组中的材料。该宏\bf在 LaTeX 下不受完全支持(它是一个 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}

相关内容