![恶意代码破坏了默认理由——请帮忙](https://linux22.com/image/467956/%E6%81%B6%E6%84%8F%E4%BB%A3%E7%A0%81%E7%A0%B4%E5%9D%8F%E4%BA%86%E9%BB%98%E8%AE%A4%E7%90%86%E7%94%B1%E2%80%94%E2%80%94%E8%AF%B7%E5%B8%AE%E5%BF%99.png)
凭借我初学者的知识,我可以识别出导致默认类对齐结构被破坏的代码部分(注释掉该部分可以消除问题)。但是,由于代码是前辈借给我的,我无法用我有限的知识来纠正它。请帮忙。
\documentclass[listof=totoc, a4paper, 11pt, oneside, chapterprefix=true, sfdefaults=false]{scrbook}
\usepackage{lipsum} % For generating dummy text
\usepackage[utf8]{inputenc}
%%%%%%%%% Header Footer begin
\usepackage[automark,headsepline,markcase=upper]{scrlayer-scrpage}
\automark[chapter]{chapter}
\clearpairofpagestyles
\setkomafont{pageheadfoot}{}
\setkomafont{pagefoot}{\bfseries\small}
\ohead{\headmark}
\lefoot*{\pagemark{} \rule[-\dp\strutbox]{1pt}{\baselineskip} Page}
\rofoot*{Page \rule[-\dp\strutbox]{1pt}{\baselineskip} \pagemark}
\ifoot*{MAKAUT, WB}
\AddToHook{cmd/frontmatter/after}{%
\renewcommand*{\chapterpagestyle}{empty}% instead of plain → manual
\pagestyle{empty}%
}
\AddToHook{cmd/mainmatter/after}{%
\renewcommand*{\chapterpagestyle}{plain}%
\pagestyle{headings}%
}
%%%%%%%%%Header Footer End
\usepackage[pass,a4paper]{geometry}
\usepackage{acronym}
\usepackage[T1]{fontenc}
\usepackage{setspace}
\usepackage[normalem]{ulem} % for underline with normalem option
\usepackage{ragged2e} % For justified text
%\usepackage[none]{./UbuntuFonts/ubuntu}
% Math packages
\usepackage{amssymb}
\usepackage{mathtools}
\usepackage{gensymb}
\usepackage{siunitx}
\usepackage{latexsym}
\usepackage{amsthm}
\usepackage{pdfpages}
\usepackage{hyperref}
\usepackage{graphicx}
%\graphicspath{{./images/}}
\usepackage{tabularx}
\usepackage{array}
\usepackage[inline]{asymptote}
\usepackage{eqparbox}
%\usepackage{subfig}
\usepackage[center]{caption}
\usepackage{subcaption}
\usepackage{float}
\usepackage[misc]{ifsym}
\usepackage{csquotes}
\usepackage[section]{placeins}
\usepackage{siunitx}
\usepackage{mdwmath}
\usepackage{mdwtab}
\usepackage{euler}
\usepackage{stmaryrd}
\usepackage{tikz}
\usetikzlibrary{calc}
\usepackage{enumerate}
%\usepackage[backend=bibtex,style=numeric, sorting=none]{biblatex}
%\addbibresource{References.bib}
\usepackage{multicol}% used for the two-column index
\usepackage[bottom]{footmisc}% places footnotes at page bottom
\usepackage{algorithm2e}
%Table packages
\usepackage[figuresright]{rotating}
\setlength{\rotFPtop}{0pt plus 1fil}
\usepackage{booktabs, makecell, multirow, tabularx}
\renewcommand{\theadfont}{\footnotesize\bfseries}
\renewcommand\theadgape{}
\newcolumntype{L}{>{\raggedright\arraybackslash}X}
\newcolumntype{P}[1]{>{\raggedright\arraybackslash}p{#1}}
\newenvironment{calligraphic}{\usefont{T1}{pzc}{m}{it}}{}
% Link setup
\hypersetup{
colorlinks = true, %Colours links instead of ugly boxes
urlcolor = blue, %Colour for external hyperlinks
linkcolor = blue, %Colour of internal links
citecolor = red %Colour of citations
}
%\makeindex
\begin{document}
\frontmatter
%\pagestyle{empty}
\setcounter{page}{1}
%\include{copyright}
%*********************Suspected portion begins ***********************
\begin{center}
\begin{tikzpicture}[remember picture,overlay]
% Top border
\draw[line width=2pt] ($(current page.north west)+(10cm,-10cm)$) -- ($(current page.north east)+(-10cm,-10cm)$);
% Bottom border
\draw[line width=2pt] ($(current page.south west)+(10cm,10cm)$) -- ($(current page.south east)+(-10cm,10cm)$);
% Text
\node[align=center, text width=\textwidth, font=\fontsize{30}{36}\selectfont] at (current page.center) {%
Dedicated\\In the loving memory of my father, whose unwavering encouragement and belief in my abilities have been a constant source of inspiration throughout my academic journey.};
\end{tikzpicture}
\end{center}
%%%%%%%%%%%%%
\newpage
\begin{calligraphic}
\begin{center}
\huge \textbf{Declaration}
\end{center}
\LARGE
{I hereby declare that this dissertation is the product of my own work, and I attest that it contains no material that resulted from collaboration, except where explicitly acknowledged in the text. Furthermore, I confirm that this dissertation has not been previously submitted, either in part or in its entirety, to any other University or Institution for the purpose of obtaining any degree, diploma, or other qualification. All sources used and referenced in this dissertation are duly credited, and any borrowed ideas or information are appropriately cited in accordance with academic standards and guidelines.\\~\\~\\}
\large {
\begin{tabular}{p{5cm}p{8cm}}
& \dotfill \\
Date: 27-10-2023 & \begin{center}( First LastName ) \end{center} \\
Place: MAKAUT, WB & PhD Registration Number: XXXXXXXXXXX \\
\end{tabular}
}
\end{calligraphic}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newpage
%\pagestyle{empty}
\setstretch{1.0}
% Start a new page with custom margins and alignment
\newgeometry{left=1cm, right=1cm, top=0.5cm, bottom=0.5cm} % Set custom margins
\Large \centering
{MAULANA ABUL KALAM AZAD UNIVERSITY OF TECHNOLOGY, WEST BENGAL\\
(Formerly WEST BENGAL UNIVERSITY OF TECHNOLOGY)\\
Main Campus: NH 12, Haringhata, Post Office - Simhat, Police Station – Haringhata, Pin - 741249\\
City Campus: BF-142, Sector -I, Salt Lake, Kolkata -700 064\\~\\}
\hrule
\vspace{1cm}
{\fontsize{20}{24}\selectfont % Set font size to 20pt with 24pt line spacing
\textbf{\underline{Declaration regarding originality of Ph.D. Thesis}}}
\begin{itemize}
\item Name, Designation \& Affiliation of Research Supervisor: $Dr.~ FirstName~ LastName$
\item Name of the Ph.D Scholar: $FirstName~ LastName$
\item Ph.D. Registration number with department:$ ~XXXXXXXX, Dept: CSE$
\item Title of the Thesis: $The~complete~ title~ of ~the~ thesis~ as~ per~ proposal$
\item \Large \uline{\textbf{Declaration by the Supervisor/Joint/Associate Supervisor/Research Scholar}\\~\\}
We declare that--
\begin{enumerate}
\item The similarity index of the submitted thesis is 4\% (write index in percentage)
\item This thesis/work is original and has not been submitted for the award of any other Degree / Diploma in any other University / Institutes.
\item We have faithfully acknowledged, given credit to and referred to the already published works whenever those works have been cited in the text and the body of the thesis.
\item We shall be responsible for any legal dispute / case(s) for violation of any provisions of the Anti-plagiarism policy / Copyright act / Piracy / Cyber/ IPR etc
\item If in case, any of the above information is found to be false or misleading, we are aware that we will be held liable for it and Maulana Abul Kalam Azad University of Technology (MAKAUT), West Bengal can take appropriate actions against us based on UGC Notification (F.1-18/2010(CPP-II), New Delhi, the 23rd July’2018) and its subsequent modifications.
\end{enumerate}
\end{itemize}
\vspace{2cm}
\begin{tabular}{p{7cm}p{7cm}}
\dotfill & \dotfill \\
( XXXXXXX, Scholar ) & (Dr.~XXXXXXX, Supervisor)\\
Date: & Date: \\
Place: MAKAUT, WB & Place: MAKAUT, WB\\
\end{tabular}
\restoregeometry
%********************Suspected portion ends *******************
%\include{certificate}
\tableofcontents
\listoftables
\listoffigures
%\include{acronyms}
%\include{Acknowledgement}
%\include{Publications Related to Thesis}
\addchap{Abstract}
\lipsum[5-6]
\mainmatter
\chapter{Introduction}
\lipsum[5-6]
\section{Motivation}
\lipsum[3-5]
Write Motivation of the research work
\section{Contribution}
\lipsum[5-6]
Write the thesis contribution
\section{Organization of thesis}
\lipsum[2-3]
Brief description of chapters in the thesis.
\subsection{Chapter 2: Literature Survey}
\lipsum[1-2]
\subsection{Chapter 3:}
\lipsum[1-2]
\subsection{Chapter 4:}
\lipsum[1-2]
\subsection{Chapter 5:}
\lipsum[1-2]
\subsection{Chapter 6:}
\lipsum[1-2]
\subsection{Chapter 7:}
\lipsum[1-2]
%\end{justify}
\backmatter
%\printbibliography
\end{document}