.png)
Dies ist meine erste Erfahrung mit Latex. Der Code funktionierte gut, bis ich ihn aufschlüsselte, aber danach wird alles, was ich eingebe, nicht im PDF angezeigt.
\documentclass[12pt,a4paper]{report}
\usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
\usepackage[toc, page, header]{appendix}
\usepackage{fancyhdr}
\usepackage[plain]{fancyref}
\usepackage{amsmath}
%\DeclareUnicodeCharacter{FB01}{fi}
\author{Mohammad Bilal}
\usepackage{cite}
\begin{document}
\title{hello}
\maketitle
\let\cleardoublepage\relax
\let\clearpage\relax
\begin{flushleft}
\chapter {Introduction}
\section {Intrdodution}
\subsection {Background Information}
\end{flushleft}
\subsection {Application}
\subsection {Known Knowledge}
\subsection {Problem}
\section{Research motives}
\section{Objectives}
\section{Structure of thesis }
\chapter{Literature Review}
\section{Laboratory tests}
\subsection{Uniaxial Compression test }
\subsection{Brazilian tensile test}
\section{Relevant Rock Mechanics}
\section{Cracking process}
\subsection{Characteristics}
\subsection{aaaaa}
\subsection{Crack propagation}
\subsection{Quantification}
\section{techniques}
\section{Numerical techniques}
The most commonly applied numerical methods
\begin{itemize}
\item Continuum methods
\item Discrete methods
\item Hybrid
\end{itemize}
% Code stops working from here and I see the pdf genrated till the above line
\subsection{methods}
\subsection{ methods}
\section{FEM}
\section{FDEM}
\section{ Method }
\subsection{Background}
\subsection{Theory}
\subsection{Models}
\section{Calibration}
\subsection{Uniaxial Test}
\subsection{Brazilian test}
\bibliography{library}
\bibliographystyle{Apalike}
\end{document}
Antwort1
Wie ich in meinem Kommentar erwähnt habe, erschweren ( \let\cleardoublepage\relax
und \let\clearpage\relax
machen) die Zeilen das LaTeX
Deklarieren neuer Seiten. Ich rate dringend davon ab, solche grundlegenden Befehle neu zu definieren. Um die zusätzliche Seite nach Ihrer Titelseite zu entfernen, verwenden Sie nicht die flushleft
Umgebung. Standardmäßig ist bereits alles linksbündig. Verwenden Sie also anstelle dieses Teils Ihres Codes:
\title{hello}
\maketitle
\let\cleardoublepage\relax
\let\clearpage\relax
\begin{flushleft}
\chapter {Introduction}
\section {Intrdodution}
\subsection {Background Information}
\end{flushleft}
\subsection {Application}
\subsection {Known Knowledge}
\subsection {Problem}
Ihr Code sollte Folgendes enthalten:
\title{hello}
\maketitle
\chapter {Introduction}
\section {Intrdodution}
\subsection {Background Information}
\subsection {Application}
\subsection {Known Knowledge}
\subsection {Problem}