LaTeX-Templates-ShortNotes-01

A compact template mainly for notes taken in English

Code

Codes:

%!TEX program=xelatex
\documentclass[preprint,11pt]{elsarticle}
\usepackage[slantfont,boldfont]{xeCJK}
\usepackage{titlesec}
\usepackage{verbatim}
\usepackage[title,titletoc]{appendix}
\usepackage{booktabs}
\usepackage{graphicx}
\usepackage{setspace}
\usepackage{amssymb}
\usepackage{bigstrut}
\usepackage{lineno}
\usepackage{afterpage}
\usepackage{graphicx}
\usepackage{array}
\usepackage{multirow}
\usepackage{amsfonts,epsfig}
\usepackage{rotating}
\usepackage{algorithmicx}
\usepackage{color}
\usepackage{subcaption}
\captionsetup{compatibility=false}
\usepackage[normalem]{ulem}
\usepackage{pstricks,pst-node,amsmath}
\usepackage{multirow}
\usepackage{graphicx,amsmath} 
\usepackage{flushend}
\usepackage{amssymb,amsfonts,amsbsy,epsfig}
\usepackage{lscape}
\usepackage[noend]{algpseudocode}
\usepackage{epstopdf}
\usepackage{amsmath,mathtools}
\usepackage{framed}
\usepackage{algorithm}
\usepackage[colorlinks, 
           linkcolor=black,            
           anchorcolor=black,            
           citecolor=black            
           ]{hyperref}
\usepackage[margin=0.5 in]{geometry}
\usepackage[symbol]{footmisc}
\usepackage [english]{babel}
\usepackage [autostyle, english = american]{csquotes}
\MakeOuterQuote{"}
\usepackage{amssymb}
\usepackage{xspace}
\usepackage{setspace}
\usepackage{array}
\usepackage{textcomp}
\setlength{\parskip}{0.256em}
%\usepackage{ctex}

%\journal{Future Generation Computing Systems}

\begin{document}

{\LARGE\textbf{A brief description of LSP}}
\\


%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%  BODY  %%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%

\section{Our Planet}
\subsection{Freshwater}

Ripening fig trees, overhanging the water's edge, provide welcome food for shoals of hungry fish.



The commotion attracts dorado, known locally as the river tiger.


They patrol the feeding shoals looking for a chance to strike.


And waiting in the wings, ready to pick off any injured fish, are the piranhas.


A feeding frenzy quickly develops.


Piranha can strip a fish to the bone in minutes.


Great numbers of fish sustain vast flocks of water birds.


The roseate spoonbill is just one of the 650 bird species found in the Pantanal.


They nest alongside woodstorks in colonies thousands strong.


Spectacled caiman linger below, waiting for a meal to fall out of the sky.


\subsection{Desert}

\subsubsection{沙漠}
These sand seas(沙海) can be hundreds of miles across. In Namibia, the winds have built some of the biggest dunes in the world. Star dunes like these can be 300 metres high. Grains swept up the flanks are blown off the crests of the ridges, so it's only the tops that are moving. The main body of these dunes may not have shifted for 5,000 years

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  



\section{Features}

\subsection{Picture}



In a row
%%%%%%%%%%%%%%%%%%%%%%%%
\begin{figure}[H]
	\centering
	\begin{subfigure}[b]{0.35\textwidth}                      \includegraphics[width=\textwidth]{1.jpg}
		\caption{足足丝丝}
		%\label{fig:2d}
	\end{subfigure}%
	\hspace{10pt}
	\begin{subfigure}[b]{0.35\textwidth}                    \includegraphics[width=\textwidth]{2.jpg}          
		\caption{足足丝丝}
		%\label{fig:3d}
	\end{subfigure}%
	
	\caption{硬硬射射}
	%\label{fig:movehard2}
\end{figure}   
%%%%%%%%%%%%%%%%%%%%%%%%% 

In a column
%%%%%%%%%%%%%%%%%%%%%%%%
\begin{figure}[H]
	\centering
	\begin{subfigure}[b]{0.35\textwidth}                      \includegraphics[width=\textwidth]{1.jpg}
		\caption{足足丝丝}
		%\label{fig:2d}
	\end{subfigure}%
	
	\vspace{10pt}
	
	\begin{subfigure}[b]{0.35\textwidth}                    \includegraphics[width=\textwidth]{2.jpg}          
		\caption{足足丝丝}
		%\label{fig:3d}
	\end{subfigure}%
	
	\caption{硬硬射射}
	%\label{fig:movehard2}
\end{figure}   
%%%%%%%%%%%%%%%%%%%%%%%%% 


\subsection{Pseudocode}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{algorithm}
	\caption{眼镜娘算法}
	\begin{algorithmic}
		\State \textbf{Inputs}: I want 眼镜娘
		\State \textbf{Outputs}: Girl.jpg
		\State  I am coming...
		\While{( NotEnd == True )}
		\State  Searching for 眼镜娘 in my disks
		\For{pic in \textit{H}}  
		\State\State 再找
		\If{( isGlasses is True)}
		\State Save
		%\EndIf
		\ElsIf{( isSetu ) } \Comment{其它的也不错} 
		\State  Save2
		%\EndIf
		\ElsIf{( 不是涩图 )}  \Comment{gei ye pa} 
		\State Continue
		\EndIf
		\EndFor 
		\EndWhile
		\State \textbf{Return} 找到的涩图
	\end{algorithmic}
\end{algorithm}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Formula}

\begin{equation} \label{eq:1} %%%这个会有角标
	LF(x)=0.01\times \frac{u\times \sigma }{\left | v \right |^{\frac{1}{\beta }}}, \sigma =\left ( \frac{\Gamma (1+\beta )\times sin(\frac{\pi\beta}{2})}{\Gamma(\frac{1+\beta}{2})\times \beta\times2^{(\frac{\beta-1}{2})})}  \right )^{\frac{1}{\beta}}
\end{equation}




\section*{References}
%%%这种参考文献标法也不错
\begin{itemize}
	\item 	\textsl{Harris Hawks Optimization: Algorithm and Applications, Ali Asghar Heidari and Seyedali Mirjalili and Hossam Faris and Ibrahim Aljarah and Majdi Mafarja and Huiling Chen, Future Generation Computer Systems, 2019}.
\end{itemize}




\end{document}

Style

It looks like this: