我已附上我的代码图片。还显示了错误。有人请帮我纠正这些错误。我输入了\usepackage{ragged2e}
主 .tex 文件 [KTU M.Tech Thesis.tex]。仍然出现这些错误。
\documentclass[12pt,a4paper,justified]{KTUthesis}
\usepackage{KTUstyle} \chaptertitle
\usepackage{pdftexcmds}
\usepackage[T1]{fontenc}
\usepackage{newtxmath,newtxtext}
\usepackage[cc]{titlepic}
\usepackage{ragged2e}
\usepackage[pdftex]{graphicx}
\usepackage{caption}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\alternate
\usepackage{etoolbox}
\usepackage{textcase}
\usepackage{rotating}
\usepackage{array}
\usepackage{booktabs}
\usepackage{verbatim}
\usepackage{natbib}
\bibliographystyle{KTUbib}
\newcommand*{\formatauthor}[1]{%
\textbf{\arabic{NAT@ctr}.#1}%
}
\setlength{\bibhang}{0pt}
\usepackage{hyperref}
\hypersetup{colorlinks=true,linkcolor=black,anchorcolor=black,citecolor=black,filecolor=black,urlcolor=black,bookmarksnumbered=true,pdfview=FitB}
\usepackage{nomencl}
\usepackage{longtable}
\addtocontents{toc}{{CONTENTS}\hfill{Page No.}\par}
\addtocontents{lot}{{No.}\hfill{Title}~\hfill{Page No.}\par}
\addtocontents{lof}{{No.}\hfill{Title}~\hfill{Page No.}\par}
\pdfbookmark[1]{TABLE OF CONTENTS}{table}
\usepackage{scrextend}
\cleardoublepage \phantomsection
\chead{}
\cfoot{\thepage}
\DeclareGraphicsExtensions{.jpg,.pdf,.mps,.png,.eps,.tif}
\makeatletter
\renewcommand{\fnum@figure}{Fig. \thefigure}
\makeatother
\begin{document}
\pagenumbering{gobble}
\include{Preface/titlepage}
\include{Preface/declaration}
\include{Preface/certificate}
\pagenumbering{roman}
\include{Preface/acknowledgement}
\include{Preface/abstract}
\tableofcontents
\addtocontents{toc}{\def\protect\@chapapp{}} \cleardoublepage \phantomsection
\cleardoublepage \phantomsection \addcontentsline{toc}{chapter}{LIST OF FIGURES}
\listoffigures
\include{Extras/LISTOFABBREVIATIONS}
\include{Extras/NOTATIONS}
\addtocontents{toc}{\def\protect\@chapapp{CHAPTER\ }}
\makeatletter
\makeatother
\newpage
\pagenumbering{arabic}
\include{Body/chapter1}
\include{Reference/biblio}
\end{document}
答案1
\paragraph{}
不应直接在\justify
命令或其环境之后使用,如果必须使用\paragraph{}
,则您可以添加这样的分隔空格来工作:
\justify~
\paragraph{} Since it was easier to control ...
此外,\justify
是 LaTeX 中的默认设置,因此我预计您只需要文本 Left justified: flushleft
、\raggedright
Right justified: flushright
、\raggedleft
或 Centered: center
、\centering
,其中第一个单词表示环境,第二个单词表示命令。不执行任何操作将转换为\justify
。
编辑:
如果您不喜欢两个段落之间有太大的间距,请尝试添加到序言中\let\indent\parindent
并修改文本,如下所示:
\justify\hspace{\indent}%
Since it was easier to control ...
这是你想要的吗?