自用LaTex 模板(包括英文Beamer和中文笔记模板)
beamer模板.
\documentclass[aspectratio=43]{beamer}
\usetheme{CambridgeUS}
\usepackage[fontsize=10pt]{fontsize}
% 更好看的数学字母
\usefonttheme{professionalfonts}
% 把enumerate前的圆球 (bullet)去掉, 也就是设置成默认符号就行
\setbeamertemplate{enumerate items}[default]
% 导航符号是右下角的前进后退符号
% \setbeamertemplate{navigation symbols}{}
\def\pgfsysdriver{pgfsys -dvipdfmx.def}
\usepackage{tikz}
\usepackage{array}
\usepackage{setspace}
\usepackage{amsmath}
% 参考文献
\usepackage[numbers]{natbib}
\newcommand{\upcite}[1]{\textsuperscript{\citep{#1}}}
% 行间距
% \renewcommand{\baselinestretch}{1.1}
% 图片的编号
\setbeamertemplate{caption}[numbered]
\usepackage[
n,%or lambda
advantage,operators,sets,adversary,landau,probability,notions,logic,ff,mm,primitives,events,complexity,oracles,asymptotics,keys
]{cryptocode}
% Title page details:
\title[Extending Oblivious Transfers Efficiently]{Extending Oblivious Transfers Efficiently}
% \title{Syndrome Decoding in the Head: Shorter Signatures from Zero-Knowledge Proofs}
\author{Name}
% \author{latex-beamer.com}
\institute[IIE, CAS]{Institute of Information Engineering, CAS}
% \date{2024\4\15}
\date{2024.5.17}
% \logo{\large \LaTeX{}}
\begin{document}
% Title page frame
\begin{frame}
\titlepage
\end{frame}
\begin{frame}{Beamer}
Presentation.
\end{frame}
% Outline frame
\begin{frame}{Outline}
\tableofcontents[hideallsubsections]
\end{frame}
\section{Introduction}
\begin{frame}{Outline}
\tableofcontents[currentsection=true, hideothersubsections]
\end{frame}
\begin{frame}
\begin{center}
\Huge Thanks!
\end{center}
\end{frame}
\end{document}
笔记模板.
\documentclass[10pt]{ctexart}
\usepackage{color}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{ntheorem}
\let\proof\relax\let\endproof\relax
% \usepackage{amsthm}
\newtheorem{theorem}{Theorem}[section]
\newtheorem{definition}[theorem]{定义}
\newtheorem{lemma}{引理}
\newtheorem{corollary}[theorem]{推论}
\newtheorem{example}[theorem]{例}
\newtheorem{proposition}[theorem]{命题}
\theoremstyle{definition}
\newtheorem*{proof}{Proof}
\usepackage[left=3.0cm,right=3.0cm,top=2.5cm,bottom=2cm]{geometry}
\makeatletter
% 使\section中的内容左对齐
\usepackage{titlesec}
\titleformat{\section}{\normalfont\Large\bfseries\raggedright}{\thesection}{1em}{}
\makeatother
\begin{document}
\title{笔记}
\author{作者}
\date{\today}
\maketitle
\section{代数知识}
\section{不等式}
\subsection{Jensen's inequality}
In its simplest form the inequality states that the convex transformation of a mean is less than or equal to the mean applied after convex transformation(or equivalently, the opposite inequality for concave transformations).
In the context of probability theory, it is generally stated in the following form: if $X$ is a random variable and $\varphi$ is a convex function, then
\begin{equation*}
\varphi (\mathbb{E}[X]) \leq \mathbb{E} [\varphi (X)].
\end{equation*}
\end{document}

浙公网安备 33010602011771号