Skip to content

Commit

Permalink
change mono font to roboto mono
Browse files Browse the repository at this point in the history
  • Loading branch information
stone-zeng committed Mar 11, 2022
1 parent 2fe653e commit c3feb1f
Show file tree
Hide file tree
Showing 9 changed files with 93 additions and 87 deletions.
2 changes: 1 addition & 1 deletion include/about.tex
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
\tiny
Beamer 主题:萧山 \link{https://ctan.org/pkg/pgfornament-han} \\
正文字体:思源宋体 + Libertinus Serif \\
等宽字体:等距更纱黑体 + Iosevka
等宽字体:思源黑体 + Roboto Mono
\end{flushleft}
\vspace{-0.5cm}
\end{frame}
Expand Down
19 changes: 10 additions & 9 deletions include/advanced.tex
Original file line number Diff line number Diff line change
Expand Up @@ -364,8 +364,9 @@ \section{进阶扩展}
\frametitle{参考文献与扩展阅读}
\begin{multicols}{2}
\tiny
\newcommand\BOOK[1]{\textbf{#1}}
\newcommand\TAG[1]{\CASE{[#1]}}
\newcommand{\BOOK}[1]{\textbf{#1}}
\newcommand{\TAG}[1]{\CASE{[#1]}}
\newcommand{\URL}[1]{\scalebox{0.92}[1]{\url{#1}}}
\begin{thebibliography}{99}
\bibitem{}
\textsc{Knuth D E}.
Expand All @@ -388,19 +389,19 @@ \section{进阶扩展}
\textsc{Oetiker T}, \textsc{Partl H}, \textsc{Hyna I} and \textsc{Schlegl E}.
\CTeX{} 开发小组~译.
\BOOK{一份(不太)简短的 \LaTeXe{} 介绍:或 111 分钟了解 \LaTeXe{}} \TAG{EB/OL}, 2021.
\newblock \url{https://ctan.org/pkg/lshort-zh-cn}
\newblock \URL{https://ctan.org/pkg/lshort-zh-cn}
\bibitem{}
黄新刚(包太雷).
\BOOK{\LaTeX{} Notes: 雷太赫排版系统简介(第二版)} \TAG{EB/OL}, 2021.
\newblock \url{https://github.com/huangxg/lnotes}
\newblock \URL{https://github.com/huangxg/lnotes}
\bibitem{}
汪彧之,陈晟祺.
\BOOK{清华大学图书馆:如何使用 \LaTeX{} 排版论文} \TAG{EB/OL}, 2021.
\newblock \url{https://github.com/tuna/thulib-latex-talk}
\newblock \URL{https://github.com/tuna/thulib-latex-talk}
\bibitem{}
吴伟健,李子龙.
\BOOK{上海交通大学图书馆:如何使用 \LaTeX{} 排版论文} \TAG{EB/OL}, 2022.
\newblock \url{https://github.com/sjtug/sjtulib-latex-talk}
\newblock \URL{https://github.com/sjtug/sjtulib-latex-talk}
\bibitem{}
刘海洋.
\BOOK{\LaTeX{} \CJKsout[thickness=0.1em]{快速}入门} \TAG{EB/OL}, 2020.
Expand All @@ -414,15 +415,15 @@ \section{进阶扩展}
\bibitem{}
Wikibooks.
\BOOK{\LaTeX{}---Wikibooks, The Free Textbook Project} \TAG{EB/OL}.
\newblock \url{https://en.wikibooks.org/wiki/LaTeX}
\newblock \URL{https://en.wikibooks.org/wiki/LaTeX}
\bibitem{}
Overleaf.
\BOOK{Overleaf Documentation} \TAG{EB/OL}.
\newblock \url{https://www.overleaf.com/learn}
\newblock \URL{https://www.overleaf.com/learn}
\bibitem{}
\LaTeX{} project.
\BOOK{Learn\LaTeX.org} \TAG{EB/OL}.
\newblock \url{https://www.learnlatex.org}
\newblock \URL{https://www.learnlatex.org}
\end{thebibliography}
\end{multicols}
\end{frame}
63 changes: 30 additions & 33 deletions include/content.tex
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ \section{填写内容}
\documentclass{article} % 指明文档类型:文章
% 导言区:设置文档样式
\usepackage{amsmath} % 调用宏包,实现各种功能
\newcommand\keyword[1]{\textbf{#1}} % 自定义命令
\newcommand{\keyword}[1]{\textbf{#1}} % 自定义命令

\begin{document}
% 正文:套用格式
Expand Down Expand Up @@ -193,48 +193,45 @@ \section{填写内容}
\end{itemize} \pause

\item 报告,我想偷懒!
\item 报告,我听说了 Tailwind CSS!
\item 报告,我听说了 Tailwind CSS \link{https://tailwindcss.com}
\end{itemize}
\end{frame}

\begin{frame}[fragile]
\frametitle{常用环境:列表与枚举}
\begin{columns}
\begin{column}{0.55\textwidth}
\begin{column}{0.54\textwidth}
\begin{texcode}[gobble=4, emph={[1]enumerate,itemize}]
\begin{enumerate}
\item Da Vinci
\item Frontend
\begin{itemize}
\item \textit{The Last Supper}
\item \textit{Salvator Mundi}
\item \textit{Mona Lisa}
\end{itemize}
\item Shakespeare
\begin{itemize}
\item \textit{Macbeth}
\item \textit{Hamlet}
\item \textit{King Lear}
\item \textit{Othello}
\item React
\item Vue.js
\item Svelte
\end{itemize}
\item Backend
\begin{description}
\item[PHP] Laravel
\item[JavaScript] Express
\item[Python] Django
\end{description}
\end{enumerate}
\end{texcode}
\end{column}
\pause
\begin{column}{0.35\textwidth}
\begin{column}{0.38\textwidth}
\begin{enumerate}
\item Da Vinci
\item Frontend
\begin{itemize}
\item \textit{The Last Supper}
\item \textit{Salvator Mundi}
\item \textit{Mona Lisa}
\end{itemize}
\item Shakespeare
\begin{itemize}
\item \textit{Macbeth}
\item \textit{Hamlet}
\item \textit{King Lear}
\item \textit{Othello}
\item React
\item Vue.js
\item Svelte
\end{itemize}
\item Backend \par
\vspace{0.5ex}\small
\textbf{PHP}\enspace Laravel \\
\textbf{JavaScript}\enspace Express \\
\textbf{Python}\enspace Django
\end{enumerate}
\end{column}
\end{columns}
Expand All @@ -243,7 +240,7 @@ \section{填写内容}
\begin{frame}[fragile]
\frametitle{常用环境:图片}
\begin{columns}
\begin{column}{0.6\textwidth}
\begin{column}{0.64\textwidth}
\begin{texcode}[gobble=4, moretexcs={\graphicspath,\includegraphics},
emph={[1]figure}, emph={[2]graphicx}]
% 不是 graphics
Expand All @@ -262,7 +259,7 @@ \section{填写内容}
\end{texcode}
\end{column}
\pause
\begin{column}{0.3\textwidth}
\begin{column}{0.28\textwidth}
\begin{figure}
\centering
\fduemblem+[x=0.1pt, y=0.1pt, color=FudanBlue]
Expand All @@ -276,7 +273,7 @@ \section{填写内容}
\begin{frame}[fragile]
\frametitle{常用环境:表格}
\begin{columns}
\begin{column}{0.6\textwidth}
\begin{column}{0.62\textwidth}
\begin{texcode}[gobble=4, moretexcs={\toprule,\midrule,\bottomrule},
emph={[1]table,tabular}, emph={[2]booktabs}]
\usepackage{booktabs} % 三线表
Expand Down Expand Up @@ -323,7 +320,7 @@ \section{填写内容}
\begin{frame}[fragile]
\frametitle{常用环境:定理}
\begin{columns}
\begin{column}{0.57\textwidth}
\begin{column}{0.6\textwidth}
\begin{texcode}[gobble=4, moredelim={[is][emphstyle]{!}{!}}, moretexcs={\newtheorem*},
emph={[2]amsthm}]
\usepackage{amsthm}
Expand All @@ -344,8 +341,8 @@ \section{填写内容}
\end{texcode}
\end{column}
\pause
\begin{column}{0.33\textwidth}
\footnotesize
\begin{column}{0.32\textwidth}
\footnotesize\RaggedRight
\setlength{\parskip}{0.5em}
\setlength{\parindent}{0pt}

Expand Down Expand Up @@ -555,7 +552,7 @@ \section{填写内容}

\begin{itemize}
\item |\pause| 命令
\item |\onslide<1>|、|\item<1+>| 等
\item |\onslide<1>|、|\item<1->| 等
\end{itemize}
\end{itemize}
\end{frame}
7 changes: 4 additions & 3 deletions include/introduction.tex
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ \section{介绍}
\begin{frame}[fragile]
\frametitle{\LaTeX{} 是什么?\mbox{}——\mbox{}What you \emph{think} is what you get!}
\begin{columns}
\begin{column}{0.48\textwidth}
\begin{column}{0.5\textwidth}
\begin{texcode}[basicstyle=\tiny\ttfamily, moretexcs={\maketitle},
emph={[1]equation,itemize,document}, emph={[2]article,amsmath,graphicx}]
\documentclass{article}
Expand Down Expand Up @@ -99,11 +99,12 @@ \section{介绍}
\end{texcode}
\end{column}
\pause
\begin{column}{0.48\textwidth}
\begin{column}{0.42\textwidth}
\begin{figure}
\centering
\vspace{-0.8cm}
\includegraphics[width=\textwidth]{examples/normal-dist/normal-dist.pdf}
\includegraphics[width=\textwidth, trim={2cm 2cm 2cm 2cm}, clip]%
{examples/normal-dist/normal-dist.pdf}
\end{figure}
\end{column}
\end{columns}
Expand Down
7 changes: 3 additions & 4 deletions include/math.tex
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@ \section{公式}
\item<+-> 分式

\begin{itemize}
\item |\frac{〈分子〉}{〈分母〉}|
\item |\frac{<分子>}{<分母>}|
\item 行内分式、小分式不好看:改用 |a/b|,或改用独显公式
\item \alert{不推荐 \texttt{\textbackslash dfrac}}
\end{itemize}

\item<+-> 根式

\begin{itemize}
\item |\sqrt[〈次数〉]{〈内容〉}|
\item |\sqrt[<次数>]{<内容>}|
\item 复杂情况改用分数指数:|{...}^{1/n}|
\end{itemize}

Expand Down Expand Up @@ -223,7 +223,7 @@ \section{公式}
\item 抄录:忽略所有特殊类别码\zhparen{catcode},原样显示

\begin{itemize}
\item |\verbchar...char|、|verbatim| 环境
\item |\verb<char>...<char>|、|verbatim| 环境
\item \pkg{verbatim}、\pkg{fancyvrb} 宏包
\end{itemize} \pause

Expand All @@ -240,7 +240,6 @@ \section{公式}
\end{itemize} \pause
\begin{lstlisting}[
language = C,
basewidth = 0.54em,
xleftmargin = 6em,
numbers = left,
numberstyle = \tiny,
Expand Down
1 change: 1 addition & 0 deletions include/start.tex
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ \section{开始之前……}
\begin{frame}{编码}
关于 \LaTeX{} 源文件的编码,我们给出如下结论:\pause
\begin{alertblock}{编码定理}
\vspace{0cm}
一般地,在任何场合使用(不带 BOM 的) \alert{UTF\CASE{-}8} 编码均是最优选择.
\end{alertblock} \pause
此定理的证明留做习题.
Expand Down
23 changes: 12 additions & 11 deletions include/templates.tex
Original file line number Diff line number Diff line change
Expand Up @@ -38,24 +38,24 @@ \section{使用模板}
\begin{frame}[fragile]
\frametitle{\pkg{revtex}}
\begin{itemize}
\item 获取
\item<+-> 获取

\begin{itemize}
\item APS 官网 \link{https://journals.aps.org/revtex}
\item \TeX{} Live 自带(注意检查版本)
\item 阅读文档:|textdoc aps|
\end{itemize}

\item 写作
\item<+-> 写作

\begin{itemize}
\item 起手式:|\documentclass[aps,prl,twocolumn,...]{revtex4-2}|
\item |\documentclass[aps,prl,twocolumn,...]{revtex4-2}|
\item 作者信息:|\title|、|\author| 等需放在 |\begin{document}| 之后
\item 跨栏长公式:|widetext| 环境
\item 文献引用:|\cite| + |\bibliography|,无需 |\bibliographystyle|
\end{itemize}

\item 编译
\item<+-> 编译

\begin{itemize}
\item 推荐 \pdfLaTeX{},也可 |latexmk -pdf|
Expand All @@ -76,8 +76,8 @@ \section{使用模板}
\begin{columns}
\begin{column}{0.7\textwidth}
\begin{itemize}
\item 最新版本:v0.8-dev
\item 建议直接从 GitHub 下载 \link{https://github.com/stone-zeng/fduthesis}
\item<+-> 最新版本:v0.8-dev
\item<+-> 建议直接从 GitHub 下载 \link{https://github.com/stone-zeng/fduthesis}

\begin{itemize}
\item Code > Download ZIP
Expand All @@ -86,7 +86,7 @@ \section{使用模板}
\item Releases 中的版本较旧
\end{itemize}

\item \TeX{} Live 和 Overleaf
\item<+-> \TeX{} Live 和 Overleaf
\link{https://www.overleaf.com/latex/templates/fduthesis-latex-thesis-template-for-fudan-university/svtdhhstkmkt}
上的也较旧

Expand All @@ -97,6 +97,7 @@ \section{使用模板}
\end{itemize}
\end{column}
\begin{column}{0.26\textwidth}
\onslide<2->
\includegraphics[width=\textwidth]{images/github-download.png}
\end{column}
\end{columns}
Expand All @@ -105,14 +106,14 @@ \section{使用模板}
\begin{frame}[fragile]
\frametitle{\pkg{fduthesis}:使用}
\begin{itemize}
\item 文档类选项
\item<+-> 文档类选项

\begin{itemize}
\item 论文类型:\lstinline[style=style@inline]+type = doctor|master|bachelor+
\item 单双面模式:|oneside| 或 |twoside|
\end{itemize}

\item 参数设置举例
\item<+-> 参数设置举例

\begin{texcode}[gobble=4, basicstyle=\scriptsize\ttfamily, moretexcs={\fdusetup},
emph={[1]style,info,font-size,bib-resource,title,author}, alsoletter={-}]
Expand All @@ -123,14 +124,14 @@ \section{使用模板}
}
\end{texcode}

\item 文献引用
\item<+-> 文献引用

\begin{itemize}
\item |\cite|、|\citet|、|\parencite| 等
\item 文献列表:|\printbibliography|
\end{itemize}

\item 编译
\item<+-> 编译

\begin{itemize}
\item 推荐 \XeLaTeX{},也可 |latexmk -pdfxe|
Expand Down
4 changes: 2 additions & 2 deletions include/typography.tex
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ \section{字体排印}
\item<+-> 波浪号:

\begin{itemize}
\item |~| ≠ |\textasciitilde| ≠ |\texttildelow| ≠ |$\sim$| ≠ 你要的那一个
\item |~| ≠ |\textasciitilde| ≠ |\texttildelow| ≠ |$\sim$| ≠ 你要的那个
\item 那就是~青\textasciitilde\texttildelow$\sim$ 原~~~~

\begin{itemize}
Expand Down Expand Up @@ -210,7 +210,7 @@ \section{字体排印}
\item 等宽字体:
{\Courier Courier},
{\Menlo Menlo},
\texttt{Iosevka}, \textit{etc.}
{\Unifont GNU Unifont}, \textit{etc.}
\item 中文字体:宋体、{\HeiTi 黑体}、{\FangSong 仿宋}、{\KaiTi 楷书}、{\WaWa (娃娃体)}……
\end{itemize}

Expand Down
Loading

0 comments on commit c3feb1f

Please sign in to comment.