\usepackage[most]{tcolorbox}\newtcblisting{commandshell}{colback=white,colupper=black,colframe=black!75!black,
listing only,listing options={language=sh, breaklines=true,aboveskip=0pt, belowskip=0pt},
every listing line={\small\ttfamily\bfseries{[root@shchai]\$}}}\newtcblisting{sqlshell}{colback=white,colupper=black,colframe=black!75!black,
listing only,listing options={language=SQL, breaklines=true, aboveskip=0pt, belowskip=0pt},
every listing line={\small\ttfamily\bfseries{SQL> }}}\newtcblisting{messageshell}{colback=white,colupper=black,colframe=black!75!black,
listing only,listing options={language={}, basicstyle=\small\ttfamily, breaklines=true,aboveskip=0pt, belowskip=0pt},
every listing line={}}\begin{docuement}\begin{commandshell}\end{commandshell}\end{document}
使用algorithm, algorithmic
\usepackage[chapter]{algorithm}\renewcommand{\algorithmicrequire}{\textbf{Input:}}\renewcommand{\algorithmicensure}{\textbf{Output:}}\begin{document}\begin{algorithm}\caption{DBSCAN}\label{euclid}\begin{algorithmic}[1]
\Require Given parameter $\varepsilon,\mathcal{M}$ and $N_\varepsilon(i),i=1,2,\cdots,N$.
\Ensure$M=\{m_i\}_{i=1}^N$\State$k=1;m_i=0,i=1,2,\cdots,N;$\State$I=\{1,2,\cdots,N\}$;
\While{$I\neq\emptyset$}\State Get an element $i$ from $I$, and let $I:=I\setminus\{i\}$;
\If{$m_i=0$}\Comment{If point i has not been visited.}\State Initialize $T:=N_\varepsilon(i)$;
\If{$|T|<\mathcal{M}$}\State$m_i=-1$;\Comment{Label point i as noise point}\Else\Comment{If point i is a core point}\State$m_i=k$;\Comment{Indicate point i belonging to $C_k$}\While{$T\neq\emptyset$}\State Get any element $j$ from $T$, let $T:=T\setminus\{j\}$;
\If{$m_j=0$ or $m_j=-1$}\State$m_j=k$;
\EndIf\If{$|N_\varepsilon(j)|\geq\mathcal{M}$}\State{$T:=T\cup N_\varepsilon(j)$;}\EndIf\EndWhile\State$k=k+1$;
\EndIf\EndIf\EndWhile\end{algorithmic}\end{algorithm}\end{document}
\usepackage{graphicx}\graphicspath{{img/}}\begin{document}\begin{figure}[H]
\centering\includegraphics[width=0.8\textwidth,height=50mm]{}\caption{Test Test Test}\end{figure}\end{document}
文档框架
\title{Report}\date{}\author{Shitong CHAI}\begin{document}\maketitle\tableofcontents\chapter{Something about report\cite{cortes1995support}}\bibliography{bibtex}{}\bibliographystyle{plain}\end{document}