所有模板目录改为中文名,并入幻灯片与科技报告两个仓库(#3)
目录改名(git mv 保留历史,包名不变): exam/ -> 试卷/ form/ -> 年度考核登记表/ form2/ -> 劳务发放说明表/ course/ -> 课程执行大纲/ 改名即可编译:实测 6 个模板在含中文的目录下 XeLaTeX 均零报错, PDF 逐页文本与改名前的版本完全一致(0 页差异,仅元数据时间戳变化)。 并入两个此前独立维护的仓库: ouc-slide-latex-template -> 幻灯片/ ouc-report-latex-template -> 科技报告/ 带入了 theme/ fonts/ logos/ figs/ cls/ input/ 与 fontawesome.pdf, 字体随模板附带(无须在系统安装)。中间文件一律不入库。 同步修正的文档:根 README 目录表改为中文名并说明统一维护; 四个子 README 的标题;ouclw.sty 注释里对 form/ 的交叉引用; 幻灯片与科技报告 README 里「从旧仓库 clone」「按年份切分支」等已失效的说明 (并入后只有 main 一个分支,各年份 TeX Live 通用)。 两个迁入模板的 PDF 保留源仓库原版(逐字节一致),未重新编译: 源 PDF 出自 TeX Live 2026,本机为 2022,重新编译会让结尾页装饰层定位 产生细微偏移,保留原版以保证样张与原来完全一致。
This commit is contained in:
@@ -0,0 +1,79 @@
|
||||
%!TEX program = xelatex
|
||||
|
||||
%% 版本:1.0
|
||||
%% 2022-05-07
|
||||
%% 作者:杨永全
|
||||
%%本文件的主要目的,是为了定义幻灯片主题
|
||||
|
||||
\RequirePackage{booktabs}
|
||||
\RequirePackage[T1]{fontenc}
|
||||
\RequirePackage{fontspec}
|
||||
\RequirePackage{hyperref}
|
||||
\RequirePackage[utf8x]{inputenc}
|
||||
\RequirePackage{listings}
|
||||
\RequirePackage{tikz}
|
||||
|
||||
%原模板代码
|
||||
\usetikzlibrary{
|
||||
calc,
|
||||
turtle,
|
||||
positioning
|
||||
}
|
||||
%应用额外的主题文件,原模板代码
|
||||
\usefonttheme{OUCSlide}
|
||||
\usecolortheme{OUCSlide}
|
||||
\useinnertheme{OUCSlide}
|
||||
\useoutertheme{OUCSlide}
|
||||
|
||||
%原模板代码
|
||||
\pgfkeys{/beameroucslide/.cd,
|
||||
.search also={
|
||||
/beameroucslide/inner,
|
||||
/beameroucslide/outer,
|
||||
/beameroucslide/color,
|
||||
/beameroucslide/font,
|
||||
},
|
||||
title=regular,
|
||||
subtitle=regular,
|
||||
part=regular,
|
||||
frametitle=regular,
|
||||
}
|
||||
%设置元素编号
|
||||
\setbeamertemplate{caption}[numbered]
|
||||
|
||||
%设置footnote在tcolorbox外面
|
||||
\makeatletter
|
||||
% restore footnote internals to those in normal page, not minipage
|
||||
\def\tcb@restore@footnote{%
|
||||
\def\@mpfn{footnote}%
|
||||
\def\thempfn{\arabic{footnote}}%
|
||||
\let\@footnotetext\tcb@footnote@collect
|
||||
}
|
||||
|
||||
% collect footnote text
|
||||
\long\def\tcb@footnote@collect#1{%
|
||||
% expand \@thefnmark before appending before app to \tcb@footnote@acc
|
||||
\expandafter\gappto\expandafter\tcb@footnote@acc\expandafter{%
|
||||
\expandafter\footnotetext\expandafter[\@thefnmark]{#1}%
|
||||
}%
|
||||
}
|
||||
|
||||
\def\tcb@footnote@use{%
|
||||
\tcb@footnote@acc
|
||||
\global\let\tcb@footnote@acc\@empty
|
||||
}
|
||||
\global\let\tcb@footnote@acc\@empty
|
||||
|
||||
|
||||
\tcbset{
|
||||
% restore for every box
|
||||
every box/.style={
|
||||
before upper pre=\tcb@restore@footnote
|
||||
},
|
||||
% use for layer 1 boxes only
|
||||
every box on layer 1/.append style={
|
||||
after app=\tcb@footnote@use
|
||||
}
|
||||
}
|
||||
\makeatother
|
||||
%设置footnote在tcolorbox外面结束
|
||||
Reference in New Issue
Block a user