Compare commits

..

2 Commits

Author SHA1 Message Date
adc7fff83a remove thm env indent & tailing '.'; add thm numbers; slightly changed proof env 2025-05-02 23:29:42 +08:00
7e62e483a1 fira sans 2025-05-02 23:05:12 +08:00
6 changed files with 17 additions and 40 deletions

View File

@@ -2,8 +2,8 @@
% %
% This file may be distributed and/or modified % This file may be distributed and/or modified
% under the LaTeX Project Public License % under the LaTeX Project Public License
\usepackage{libertine} \usepackage[sfdefault]{FiraSans}
\RequirePackage[chinese, provide=*]{babel} \RequirePackage[english]{babel}
\RequirePackage{fancyhdr} % header footer \RequirePackage{fancyhdr} % header footer
\RequirePackage{xcolor} \RequirePackage{xcolor}
\RequirePackage{bookmark} \RequirePackage{bookmark}
@@ -20,32 +20,10 @@
\RequirePackage{subcaption} \RequirePackage{subcaption}
\RequirePackage{amsmath} \RequirePackage{amsmath}
\RequirePackage{amsthm} \RequirePackage{amsthm}
% \RequirePackage[utf8]{inputenc} \RequirePackage[utf8]{inputenc}
% \RequirePackage{CJKutf8} \RequirePackage{CJKutf8}
% \def\zh#1{\begin{CJK}{UTF8}{gbsn}#1\end{CJK}} \def\zh#1{\begin{CJK}{UTF8}{gbsn}#1\end{CJK}}
% \RequirePackage{aliascnt} \RequirePackage{aliascnt}
\RequirePackage{ctex}
\RequirePackage{fontspec}
\RequirePackage{xeCJK}
% infact italic and BoldItalic fonts are missing
\setCJKmainfont{LXGWNeoZhiSong}[
Path=./fonts/,
Extension = .ttf,
UprightFont=*,
BoldFont=*,
ItalicFont=*,
BoldItalicFont=*
]
\setCJKsansfont{LXGWWenKai}[
Path=./fonts/,
Extension = .ttf,
UprightFont=*-Regular,
BoldFont=*-Bold,
ItalicFont=*-Regular,
BoldItalicFont=*-Regular,
]
\XeTeXlinebreaklocale "zh"
\XeTeXlinebreakskip = 0pt plus 1pt
% a color box % a color box
\RequirePackage[breakable, theorems, skins]{tcolorbox} \RequirePackage[breakable, theorems, skins]{tcolorbox}
@@ -157,15 +135,14 @@
% theorem env % theorem env
\setbeamertemplate{theorem begin}{% \setbeamertemplate{theorem begin}{%
{ {
\vspace{5pt} \vspace{5pt}%
\usebeamerfont*{block title}% \usebeamerfont*{block title}%
\selectfont \selectfont%
\usebeamercolor[fg]{block title}% \usebeamercolor[fg]{block title}%
\textbf{ \textbf{%
\inserttheoremname \inserttheoremname
% \inserttheoremnumber \inserttheoremnumber
\ifx \inserttheoremaddition \empty \else\ [\inserttheoremaddition]\fi \ifx \inserttheoremaddition \empty \else\ [\inserttheoremaddition]\fi
\inserttheorempunctuation
} }
} }
} }
@@ -174,7 +151,7 @@
\setbeamertemplate{proof begin}{% \setbeamertemplate{proof begin}{%
{\vspace{5pt} {\vspace{5pt}
\usebeamercolor[fg]{block title} \usebeamercolor[fg]{block title}
\textit{Proof.}} \textit{\textbf{Proof:}}}
} }
\setbeamertemplate{proof end}{ \setbeamertemplate{proof end}{
\qedhere \qedhere

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
main.pdf

Binary file not shown.

View File

@@ -1,8 +1,8 @@
\documentclass{beamer} \documentclass{beamer}
\title[中文测试]{Minimizing the Sum of Piecewise Linear Convex Functions - 这是很长很长很长很长的兼有中文和英文的标题} \title[template example]{Minimizing the Sum of Piecewise Linear Convex Functions}
\date{\today} \date{\today}
\author{丛宇} \author{\texorpdfstring{\zh{丛宇}}{Yu Cong}}
% \AtBeginSection[]{ % \AtBeginSection[]{
% \frame{\frametitle{Outline}\tableofcontents[currentsection, % \frame{\frametitle{Outline}\tableofcontents[currentsection,
% subsectionstyle=show/show/shaded]} % subsectionstyle=show/show/shaded]}
@@ -17,13 +17,13 @@
\titlepage \titlepage
\end{frame} \end{frame}
\begin{frame}[plain]{计划} \begin{frame}[plain]{Plan}
\tableofcontents \tableofcontents
\end{frame} \end{frame}
\section{Problems \& Definitions 问题定义} \section{Problems \& Definitions}
\begin{frame}{$\min \sum f_i(a_i\cdot x-b_i)$ 中文测试} \begin{frame}{$\min \sum f_i(a_i\cdot x-b_i)$}
\begin{problem} regular 中文 jjjfff \begin{problem}
Given $n$ piecewise linear convex functions $f_1,...,f_n:\R \to \R$ of total $m$ breakpoints, and $n$ linear functions $a_i\cdot x-b_i:\R^d\to \R$, find $\min_x \sum_i f_i(a_i\cdot x-b_i)$. Given $n$ piecewise linear convex functions $f_1,...,f_n:\R \to \R$ of total $m$ breakpoints, and $n$ linear functions $a_i\cdot x-b_i:\R^d\to \R$, find $\min_x \sum_i f_i(a_i\cdot x-b_i)$.
\end{problem} \end{problem}
\begin{figure} \begin{figure}