开源前排查,发现三处真实个人信息残留,全部清除: 1. 真名「杨永全」→ 中性署名「中国海洋大学 LaTeX 模板库」 幻灯片/ 下 6 个 sty 文件头的「%% 作者:杨永全」。 2. 个人账号 dryangyq → 占位地址 幻灯片/slides.tex 第 66 行脚注里的 github/gitee/gitlab 三个 dryangyq 仓库地址,改为 example.org 占位并注明开源后替换。 3. 个人域名 yangyq.net + 私有 Gitea 账号 laoyang → 占位地址 幻灯片/README.md 与科技报告/README.md 的 clone 地址 code.yangyq.net/laoyang/... 改为 example.org 占位。 另重编幻灯片/slides.pdf:旧 PDF 的脚注里还印着 dryangyq 与 yangyq.net 的 URL(源码改了但成品没重编),逐字提取确认后覆盖。 验证: - 全库源码(.tex/.sty/.cls/.md)grep 杨永全 / dryangyq / yangyq / yongquan / 永全 全部零命中 - 全库 PDF 成品用 pymupdf 提取渲染文本,上述关键词零命中 - 幻灯片重编 30 页、0 error 未处理(遗留,需另决策):git 历史 27 个 commit 的作者签名是 「laoyang <i@yangyq.net>」,含个人域名邮箱。若推到公开平台需 git filter-repo 重写历史(改全部 SHA + force push),属破坏性操作, 本单不做。
79 lines
1.8 KiB
TeX
79 lines
1.8 KiB
TeX
%!TEX program = xelatex
|
|
|
|
%% 版本:1.0
|
|
%% 2022-05-07
|
|
%% 作者:中国海洋大学 LaTeX 模板库
|
|
%%本文件的主要目的,是为了定义幻灯片主题
|
|
|
|
\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外面结束 |