LaTeX: 新建笔记

\documentclass[UTF8]{article}

\usepackage{ctex}
\usepackage{verbatim}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{subfigure}
\usepackage{float}
\usepackage{booktabs}
\usepackage{amssymb}
\usepackage{bm}
\usepackage{ulem}
\usepackage{makecell}
%有下面这个就可以给内容上色了
\usepackage[colorlinks,linkcolor=black,
            pdftitle={title},
              pdfauthor={author},
              pdfkeywords={}]{hyperref}
%\usepackage{hyperref} 书签
%\usepackage{hologo}
%\usepackage{gbt7714}
%\usepackage[backend=biber,style=gb7714-2015]{biblatex}
%pdf书签
\usepackage[level]{datetime} % 时间包
\usepackage{pdfcomment}

\setlength{\parindent}{2em}  %中文缩进两个汉字位
\renewcommand{\baselinestretch}{1.3}

\setlength{\oddsidemargin}{0.1in} \setlength{\textwidth}{6.0in}
\setlength{\topmargin}{-0.25in} \setlength{\textheight}{8.7in}

%%%%%%%%%%%新的环境
%\newtheorem{construction}{Construction}
%\newtheorem{theorem}{Theorem}
%\newtheorem{corollary}{Corollary}
%\newtheorem{definition}{Definition}
%\newtheorem{Example}{Example}
%\newtheorem{proposition}{Proposition}
%\newtheorem{remark}{Remark}
%\newtheorem{example}{Example}
%\newtheorem{lemma}{Lemma}
%%%%%%%%%%%新的环境

%%%%%%%%%%%数学公式的一些定义
\def\bb{{\bf b}}
\def\uu{{\bf u}}
\def\vv{{\bf v}}
\def\aa{{\bf a}}
\def\xx{{\bf x}}
\def\yy{{\bf y}}
\newcommand{\F}{\mathbb{F}}
\newcommand{\Z}{\mathbb{Z}}
\newcommand{\E}{\mathbb{E}}
\newcommand{\B}{\mathcal{B}}
\newcommand{\nl}{\mathrm{nl}}
\newcommand{\Tr}{\mathrm{Tr}_1^n}
\newcommand{\tr}{\mathrm{Tr}_1^k}
\newcommand{\0}{\mathbf{0}}
\newcommand{\1}{\mathbf{1}}
%%%%%%%%%%%数学公式的一些定义
\newcommand{\sanhao}{\fontsize{15.75pt}{\baselineskip}\selectfont}
\newcommand{\chaodahao}{\fontsize{25pt}{\baselineskip}\selectfont}
\newcommand{\dahao}{\fontsize{15pt}{\baselineskip}\selectfont}
%\newcommand{\upcite}[1]{\textsuperscript{\textsuperscript{\cite{#1}}}}

\newtheorem{definition}{定义}
\newtheorem{theorem}{定理}
\newtheorem{proof}{证明}
\newtheorem{lemma}{引理}
\newtheorem{proposition}{命题}
\newtheorem{example}{例}

%图表公式 按 章.节  格式编号
\numberwithin{definition}{section}
\numberwithin{proposition}{section}
\numberwithin{lemma}{section}
\numberwithin{theorem}{section}
\numberwithin{table}{section}
\numberwithin{figure}{section}

%%%% 下面的命令重定义页面边距,使其符合中文刊物习惯 %%%%
\addtolength{\topmargin}{-54pt}
\setlength{\oddsidemargin}{0.63cm}  % 3.17cm - 1 inch
\setlength{\evensidemargin}{\oddsidemargin}
\setlength{\textwidth}{14.66cm}
\setlength{\textheight}{24.00cm}    % 24.62


%%%%%%%插入代码的预设
\usepackage{listings}
\usepackage{xcolor}
\definecolor{mygreen}{rgb}{0,0.6,0}
\definecolor{mygray}{rgb}{0.5,0.5,0.5}
\definecolor{mymauve}{rgb}{0.58,0,0.82}

\lstset{ %
  backgroundcolor=\color{white},   % choose the background color; you must add \usepackage{color} or \usepackage{xcolor}
  basicstyle=\footnotesize,        % the size of the fonts that are used for the code
  breakatwhitespace=false,         % sets if automatic breaks should only happen at whitespace
  breaklines=true,                 % sets automatic line breaking
  captionpos=bl,                    % sets the caption-position to bottom
  commentstyle=\color{mygreen},    % comment style
  deletekeywords={...},            % if you want to delete keywords from the given language
  escapeinside={\%*}{*)},          % if you want to add LaTeX within your code
  extendedchars=true,              % lets you use non-ASCII characters; for 8-bits encodings only, does not work with UTF-8
  frame=single,                    % adds a frame around the code
  keepspaces=true,                 % keeps spaces in text, useful for keeping indentation of code (possibly needs columns=flexible)
  keywordstyle=\color{blue},       % keyword style
  %language=Python,                 % the language of the code
  morekeywords={*,...},            % if you want to add more keywords to the set
  numbers=left,                    % where to put the line-numbers; possible values are (none, left, right)
  numbersep=5pt,                   % how far the line-numbers are from the code
  numberstyle=\tiny\color{mygray}, % the style that is used for the line-numbers
  rulecolor=\color{black},         % if not set, the frame-color may be changed on line-breaks within not-black text (e.g. comments (green here))
  showspaces=false,                % show spaces everywhere adding particular underscores; it overrides 'showstringspaces'
  showstringspaces=false,          % underline spaces within strings only
  showtabs=false,                  % show tabs within strings adding particular underscores
  stepnumber=1,                    % the step between two line-numbers. If it's 1, each line will be numbered
  stringstyle=\color{orange},     % string literal style
  tabsize=2,                       % sets default tabsize to 2 spaces
  %title=myPython.py                   % show the filename of files included with \lstinputlisting; also try caption instead of title
}


%%%%%%%%%

%\newdateformat{\ukdate}{\ordinaldate{\THEDAY} \monthname[\THEMONTH] \THEYEAR}%日月年

%%%% 正文开始 %%%%
\begin{document}
%%%% 定义标题格式,包括title,author,affiliation,email等 %%%%
\begin{center}
\chaodahao \textbf{笔记:认证加密}\\
\vspace{1cm}
{\Large Written by \\}
{\LARGE Jianchao Zhang, \today}
\end{center}
\setcounter{page}{0}
\thispagestyle{empty}
%%%% 以下部分是正文 %%%
\newpage
\tableofcontents

\newpage

\section{认证加密的方法}




\clearpage
%\section{Conclusions}
\bibliographystyle{unsrt}
%\bibliography{RMCube}
\bibliography{Note}
\end{document} 

 

posted @ 2022-01-21 15:32  PiaYie  阅读(131)  评论(0编辑  收藏  举报