├── Fonts ├── General platform │ ├── Latin Modern.zip │ ├── README.md │ └── SF Mono.zip ├── README.md ├── System default │ └── README.md ├── Windows │ ├── Alibaba PuHuiTi 2.0.zip │ ├── README.md │ └── 宋体-简.zip └── macOS │ ├── FZFS_Document.TTF.zip │ ├── FZHT_Document.TTF.zip │ ├── FZKT_Document.TTF.zip │ ├── README.md │ ├── STFangsong-Bold.ttf.zip │ └── STHeitiBold.ttf.zip ├── README.md ├── Supplemental ├── cover-template.md ├── essay-template.md ├── essay-template.pdf ├── sample-chinese.md ├── sample.md ├── tju-cover-template.md └── tju-cover-template.pdf ├── Windows ├── latex-dark.css ├── latex.css └── latex │ └── userCustom.css ├── image ├── cover_1.jpg ├── logo_1.png └── logo_2.png ├── macOS ├── latex-dark.css ├── latex.css └── latex │ └── userCustom.css ├── yfzhao_LICENSE ├── 天津大学关于本科生学位论文统一格式的规定.doc ├── 天津大学本科生毕业论文模板.doc └── 天津大学本科生毕业设计说明书模板.doc /Fonts/General platform/Latin Modern.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KuangjuX-Archived/TJU-typora-latex-theme/634011886e4269a833c66508b822f663b7edb8b8/Fonts/General platform/Latin Modern.zip -------------------------------------------------------------------------------- /Fonts/General platform/README.md: -------------------------------------------------------------------------------- 1 | # 使用字体(全平台) 2 | 3 | 全平台适用的额外字体。 4 | 5 | ### `Latin Modern` 6 | 7 |   `Latin Modern`文件夹存放了常规 LaTeX​ 文档使用的英文字体 **Latin Modern**,希望所有用户安装。(大家都会喜欢这个字体的,文件也不是很大,所以安装吧,就不把它们放在主题文件夹下再import了。~~绝不是因为我懒~~)。 8 | 9 | * 如果您的学校强制要求使用 **Times New Roman**,那当我没说。~~(Times New Roman 系列真的太窄了,只是适合报纸,哪本英文书会用 Times New Roman 排啊真是的)~~ 您可以在 `userCustom.css` 更换您默认使用的英文字体。 10 | 11 | ### `SF Mono` 系列 12 | 13 | **SF Mono** Apple Inc. 14 | 15 |   该字体被我选用作为 Typora 编辑模式的代码字体。您完全可以在 `userCustom.css` 中将其更换为您喜欢的另一种代码字体。 16 | 17 |   ***该Apple系统字体不被授权应用在任何除Xcode, Terminal.app和Console.app的其他应用程序上,此处分发仅用于学习目的,请在下载后24小时内删除。*** 18 | 19 | ## 说明 20 | 21 | * **所有的字体文件请自行获取授权**,本人不对您使用字体造成的法律纠纷负责。 -------------------------------------------------------------------------------- /Fonts/General platform/SF Mono.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KuangjuX-Archived/TJU-typora-latex-theme/634011886e4269a833c66508b822f663b7edb8b8/Fonts/General platform/SF Mono.zip -------------------------------------------------------------------------------- /Fonts/README.md: -------------------------------------------------------------------------------- 1 | # 使用字体 2 | 3 | 这里列出了所有我使用并在 CSS 中引用的字体。您可以在 `userCustom.css` 更换您默认使用的不同区块的字体。 4 | 5 | Mac 用户可以前往 [`/macOS`](./macOS) 和 [`/General platform`](./General%20platform) 获取适用于 macOS 的额外字体; 6 | 7 | Windows 用户可以前往 [`/Windows`](./Windows) 和 [`/General platform`](./General%20platform) 获取适用于 Windows 的额外字体; 8 | 9 | Linux 用户可以视自己系统字体的情况选择。 10 | 11 | * 如果您的电脑缺失了一部分系统字体,或您电脑的语言不是中文,或您的 Windows 电脑没有装载 MS Office,请尝试到 [`/System default`](./System%20default) 尝试安装部分系统字体。 12 | 13 | ## 说明 14 | 15 | * 如果您选用自己的其他字体,请尽量使用有完整字体系列的字体集作为正文字体,在 `userCustom.css` 中写入时尽量**填写字体系列名称而非 PostScript 名称**(除非您希望固定使用单一字重与字体风格),使 markdown 可以通过您书写时的标记自动选取使用的字体。对于中文字体,一个完整的字体系列应该包括:常规体(regular)、粗体(bold),如果您希望粗体风格更强,它应当还包含黑体(Heavy)。 16 | * **所有的字体文件请自行获取授权**,本人不对您使用字体造成的法律纠纷负责。 17 | 18 | -------------------------------------------------------------------------------- /Fonts/System default/README.md: -------------------------------------------------------------------------------- 1 | # 默认调用的系统字体 2 | 3 | 默认能够调用的系统字体。如果缺失这部分字体请尝试通过链接下载字体或修复。 4 | 5 | ### 全平台 6 | 7 | * 华文黑体 8 | 9 | * 华文楷体 10 | 11 | * 华文仿宋 12 | 13 | [视觉中国-华文字库](http://sinotype.vcg.com) 14 | 15 | ### macOS 16 | 17 | * 苹方-简 18 | * 宋体-简 19 | 20 | [在 Mac 上的“字体册”中安装和验证字体](https://support.apple.com/zh-cn/guide/font-book/fntbk1000/10.0/mac) 21 | 22 | [使用“字体册”恢复 Mac 随附的字体](https://support.apple.com/zh-cn/guide/font-book/fb34862/10.0/mac/) 23 | 24 | ### Windows 25 | 26 | 无 -------------------------------------------------------------------------------- /Fonts/Windows/Alibaba PuHuiTi 2.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KuangjuX-Archived/TJU-typora-latex-theme/634011886e4269a833c66508b822f663b7edb8b8/Fonts/Windows/Alibaba PuHuiTi 2.0.zip -------------------------------------------------------------------------------- /Fonts/Windows/README.md: -------------------------------------------------------------------------------- 1 | # 使用字体(Windows) 2 | 3 | Windows 上适用的额外字体。 4 | 5 | ### 宋体-简 6 | 7 | **宋体-简** © 2010-2012, Changzhou SinoType Technology Co., Ltd. All rights reserved. 常州华文印刷新技术有限公司 8 | 9 |   实际上是华文宋体的家族字(包含了**常规体**、**细体**、**粗体**、**黑体**共4个字重字体),但华文公司自己没有把它做成家族字,而是分开发行,每个样式自己作为 regular 常规体。这里选用了 macOS 系统中预装的 宋体-简 系列进行拆分,以达成家族字适配。这个“简”是字形是国家规范简体的意思,并不是说不能显示繁体(**黑体**样式除外)。 10 | 11 |   默认的 CSS 设置选用 900 (Heavy,黑体) 字重作为粗体字,效果挺好。 12 | 13 |   但要注意的是,该家族的**常规体**、**细体**、**粗体**均含是全字符集(43033 个字符),但**黑体**仅含 8535 个简体字符。 14 | 15 | * 如果您执意还原 LaTeX 的效果,也可以使用 **新宋体** 。但该字体在 Windows 上的低分辨率(低于2k)状态下小字号显示效果极差。再加之其他一些原因,个人不推荐使用。 16 | 17 | ### Alibaba PuHuiTi 2.0 18 | 19 | **阿里巴巴普惠体** 2.0 © 2020-2021 阿里巴巴(中国)有限公司,版权所有 20 | 21 |   实际是汉仪字库出的一款字体。因为苹方不适合嵌入 Windows 计算机,其他诸如方正兰亭黑、汉仪旗黑似乎也不合适……个人觉得这款字很舒服,故选用该字体作为界面(UI)字体,用于侧边栏和编辑模式等。 22 | 23 |   您也可以自由选用其他您认为合适的字体。仅需在 `userCustom.css` 更换。 24 | 25 | ## 说明 26 | 27 | * 拒绝**中易宋体**和**微软雅黑**,从我做起。 28 | * **所有的字体文件请自行获取授权**,本人不对您使用字体造成的法律纠纷负责。 -------------------------------------------------------------------------------- /Fonts/Windows/宋体-简.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KuangjuX-Archived/TJU-typora-latex-theme/634011886e4269a833c66508b822f663b7edb8b8/Fonts/Windows/宋体-简.zip -------------------------------------------------------------------------------- /Fonts/macOS/FZFS_Document.TTF.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KuangjuX-Archived/TJU-typora-latex-theme/634011886e4269a833c66508b822f663b7edb8b8/Fonts/macOS/FZFS_Document.TTF.zip -------------------------------------------------------------------------------- /Fonts/macOS/FZHT_Document.TTF.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KuangjuX-Archived/TJU-typora-latex-theme/634011886e4269a833c66508b822f663b7edb8b8/Fonts/macOS/FZHT_Document.TTF.zip -------------------------------------------------------------------------------- /Fonts/macOS/FZKT_Document.TTF.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KuangjuX-Archived/TJU-typora-latex-theme/634011886e4269a833c66508b822f663b7edb8b8/Fonts/macOS/FZKT_Document.TTF.zip -------------------------------------------------------------------------------- /Fonts/macOS/README.md: -------------------------------------------------------------------------------- 1 | # 使用字体(macOS) 2 | 3 | macOS 上适用的额外字体。 4 | 5 | ### 方正公文系列 6 | 7 | | 文件名 | 字体家族 | 版权信息 | 8 | | ------------------- | ---------------- | ------------------------------------------------------------ | 9 | | `FZFS_Document.TTF` | **方正公文仿宋** | © Beijing Founder Electronics Co.,Ltd. 北京北大方正电子有限公司 | 10 | | `FZHT_Document.TTF` | **方正公文黑体** | © Beijing Founder Electronics Co.,Ltd. 北京北大方正电子有限公司 | 11 | | `FZKT_Document.TTF` | **方正公文楷体** | © Beijing Founder Electronics Co.,Ltd. 北京北大方正电子有限公司 | 12 | 13 |   macOS 上 Typora 在导出时应用的伪粗体非常不理想,而方正的这一系列字体已经存在粗体效果,可以直接应用为标题字体而跳过Typora的伪粗体机制,因此选用他们。如果您拥有其他的粗体黑体与楷体等,也可以在 `userCustom.css` 中更换它们。 14 | 15 | ### `STFangsong-Bold.ttf` 16 | 17 |   这是拿方正公文仿宋处理家族名之后得到的粗体仿宋,使用了华文仿宋的名称,但本质仍是方正公文仿宋。此举仅仅是为了方便系统进行粗体设置,本意绝不是修改字体侵犯字体公司权益。**本字体文件仅供试用,请勿传播**。 18 | 19 | ### `STHeitiBold.ttf` 20 | 21 | **华文黑体Bold** © 2018, Changzhou SinoType Technology Co., Ltd.. All rights reserved. 常州华文文字技术有限公司 22 | 23 |   这比普通的华文黑体更黑(粗)。该字体默认被用于小标题样式 (heading) 。 24 | 25 | ## 说明 26 | 27 | * **所有的字体文件请自行获取授权**,本人不对您使用字体造成的法律纠纷负责。 -------------------------------------------------------------------------------- /Fonts/macOS/STFangsong-Bold.ttf.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KuangjuX-Archived/TJU-typora-latex-theme/634011886e4269a833c66508b822f663b7edb8b8/Fonts/macOS/STFangsong-Bold.ttf.zip -------------------------------------------------------------------------------- /Fonts/macOS/STHeitiBold.ttf.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KuangjuX-Archived/TJU-typora-latex-theme/634011886e4269a833c66508b822f663b7edb8b8/Fonts/macOS/STHeitiBold.ttf.zip -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # 使用Typora代替LaTex编写论文 2 | 3 | **本项目基于[typora-latex-theme](https://github.com/Keldos-Li/typora-latex-theme)进行二次开发,并将其适配成天津大学论文要求** 4 | 5 | ## 预览 6 | 7 | [天津大学封面样式预览](Supplemental/tju-cover-template.pdf) 8 | 9 | [论文样式预览](Supplemental/essay-template.pdf) 10 | 11 | ![天津大学本科毕业论文封面](image/cover_1.jpg) 12 | 13 | ## 使用 14 | 15 | 由于本项目是基于[typora-latex-theme](https://github.com/Keldos-Li/typora-latex-theme)项目进行二次开发,且之后也需要根据该项目的变动进行追踪与修改。而关于本项目的使用在原项目的[README](https://github.com/Keldos-Li/typora-latex-theme/blob/main/README.md)中进行了详细地描述,关于本项目的使用您也可以在这里得到详细的指导。 16 | 17 | 由于本项目仅仅是最轻量级的排版,因此如果您需要更加复杂的排版需求,可以参考[天津大学LaTex排版](https://github.com/twtstudio/TJUThesisLatexTemplate) 18 | 19 | 20 | 21 | ## 反馈 22 | 23 | 由于本项目为`fork`项目,因此我们在本项目无法提出`issues`,因此本人新建了一个仓库用来接收`issues` 24 | 25 | 因此您可以: 26 | 27 | - 向本项目提出[issues](https://github.com/KuangjuX/TJU-typora-latex-theme-issues/issues) 28 | - 向原仓库提出[issues](https://github.com/Keldos-Li/typora-latex-theme/issues/new) 29 | - 直接联系本人 30 | - 加入群643187070进行交流 31 | 32 | ## 帮助 33 | 34 | ### Word字体与HTML字体对照 35 | 36 | | word字字号 | word字体值(pt) | CSS字体值(px) | 37 | | ---------- | ---------------- | --------------- | 38 | | 初号 | 44pt | 58.6px | 39 | | 小初 | 36pt | 48px | 40 | | 一号 | 26pt | 34.6px | 41 | | 小一 | 24pt | 32px | 42 | | 二号 | 22pt | 29.3px | 43 | | 小二 | 18pt | 24px | 44 | | 三号 | 16pt | 21.3px | 45 | | 小三 | 15pt | 20px | 46 | | 四号 | 14pt | 18.6px | 47 | | 小四 | 12pt | 16px | 48 | | 五号 | 10.5pt | 14px | 49 | | 小五 | 9pt | 12px | 50 | | 六号 | 7.5pt | 10px | 51 | | 小六 | 6.5pt | 8.6px | 52 | | 七号 | 5.5pt | 7.3px | 53 | | 八号 | 5pt | 6.6px | 54 | 55 | 56 | -------------------------------------------------------------------------------- /Supplemental/cover-template.md: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 | 校名 5 |
6 |




7 |
8 | 校徽 9 |
10 |







11 | 《论文名称》 12 |

论文类型

13 |
14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 |
题  目 论文题目
上课时间 上课时间
授课教师教师姓名
姓  名 你的名字
学  号你的学号
组  别 你的组别
日  期完成日期
47 |
48 | 49 | 50 | -------------------------------------------------------------------------------- /Supplemental/essay-template.md: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 | 校名 5 |
6 |




7 |
8 | 校徽 9 |
10 |







11 | 《论文名称》 12 |

论文类型

13 |
14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 |
题  目 论文题目
上课时间 上课时间
授课教师教师姓名
姓  名 你的名字
学  号你的学号
组  别 你的组别
日  期完成日期
47 |
48 | 49 | 50 | 51 | # 计算机工作枢纽——操作系统 52 | 53 |
你的名字,12345678909 (学号)
54 |
浙江大学***** (单位) 55 |
56 |
57 |
摘 要:
58 |
在信息化时代背景下,计算机操作系统在各行业领域中得到广泛应用。本文试图通过对计算机系统概念、功能和分类、历史的介绍,大致地给出对计算机操作系统的认识,并通过对当前主流桌面操作系统Windows和macOS的简要介绍,使读者能够对现代图形界面操作系统有一个较为全面的了解,从而喜欢上某一个操作系统,供读者参考。
59 |
60 |
61 |
关键词:
62 |
计算机;操作系统;功能;发展;Windows;macOS;
63 |
64 | 65 | 66 | # Computer Work Hub — Operating System 67 | 68 |
Author
69 |
Zhejiang University 70 |
71 |
72 |
Abstract:
73 |
Under the background of the information age, computer operating systems are widely used in various industries. This paper tries to give a general understanding of the computer operating system by introducing the concept, functions and classifications, and history of computer systems. And by briefly introducing the current mainstream desktop operating systems Windows and macOS, readers can have a comprehensive view of modern graphical interface operating systems, and get to know thus begin to like one of them. This article is for readers' reference.
74 |
75 |
76 |
Key Words:
77 |
Computer; Operating System; Function; Development; Windows; macOS;
78 |
79 | 80 | 81 | ## 什么是计算机操作系统 82 | 83 |   操作系统(Operating System,OS)是一组相互关联的系统软件程序,用以主管并控制计算机操作、运用和运行硬件、软件资源和提供公共服务,最终来组织用户交互,更是也是计算机系统的核心支撑。操作系统需要处理如管理与配置内存、决定系统资源供需的优先次序、控制输入与输出设备、操作网络与管理文件系统等基本事务,以帮助用户使用计算机。操作系统也提供一个让用户与系统交互的操作界面,有些操作系统集成了图形用户界面,而有些仅使用命令行界面。^[1]^ 84 | 85 | ## 操作系统的功能、结构和分类 86 | 87 | ### 操作系统的功能 88 | 89 |   简单地说,操作系统管理并分配资源、调度和运行程序,位于底层硬件与用户之间,帮助用户和机器进行交互,架起了一座沟通用户与机器的桥梁:用户在操作系统的用户界面中输入命令;而操作系统则对命令进行解释,驱动硬件设备,以实现用户的要求。^[2]^ 一个符合现代标准个人电脑的操作系统一般应该提供以下的功能: 90 | 91 | #### 进程管理(处理器管理) 92 | 93 |   在系统运行过程中,通过实施CPU分配策略,中央处理器可以根据计算机操作系统运行情况、所需执行程序命令内容,将各项程序任务进行合理分配,以保证系统运行稳定、命令得到有效执行。 94 |   这分为四个方面:进程控制、进程同步、进程通信、调度。 95 |   进程控制,是在并发执行多个作业时,为作业窗创建、终止进程,以及对进程在运行中状态改变的控制。 96 |   下面随便放了一段东西: 97 | 98 | ##### 数学方法(假定) 99 | 100 |   根据*Zhejiang University Theorem*可知,该设想的处理过程是一个二重积分: 101 | $$ 102 | \iint\limits_{x^2 + y^2 \leq R^2} f(x,y)\,\mathrm{d}x\,\mathrm{d}y = \int_{\theta=0}^{2\pi} \mathrm{d}\theta\int_{r=0}^R f(r\cos\theta,r\sin\theta) r\,\mathrm{d}r\, \tag{1} 103 | $$ 104 | 其中$x$表示我们在卷的路上的行进距离。再由卷王公式 105 | $$ 106 | \frac{x^{2}}{1-x^{2}}+\frac{y^{2}}{1-y^{2}}+\frac{z^{2}}{1-z^{2}} \geq \frac{3 \sqrt{3}}{2} 107 | $$ 108 | 我们有了下面的数据处理方法。下面是我们的流程图表示说明: 109 | 110 | ```mermaid 111 | graph LR 112 | A(开始) --> 113 | input[/输入a,b/] --> if{a%b=0 ?} 114 | if --->|yes| f1[GCD = b] --> B(结束) 115 | if --->|no| f2["a, b = b, a % b "]-->if 116 | ``` 117 |
图 1 算法的流程图表示(假定)
118 | 119 | 有了这个流程图,我们就可以根据它编写python程序代码。 120 | 121 | ##### 算法的代码实现(假定) 122 | 123 | ```python 124 | from functools import cmp_to_key 125 | def cmpkey2(x,y): 126 | if x[1]>y[1]: return 1 127 | elif x[1]y[0]: return -1 129 | elif x[0]=len(cont): 149 | break 150 | key, val = cont[i] 151 | print(f"{key}={val}") 152 | ``` 153 |   …… 154 | 155 | #### 存储管理 156 | 157 |   这项系统功能主要包括: 158 |   …… 159 | 160 | #### 设备管理(驱动程序) 161 | 162 |   计算机操作系统中配置多种不同的硬件设备,且不同类型设备的规格、性能间存在明显差异。而对设备管理功能的配置,可以加强硬件设备的管理力度,提高设备实际利用率。[2] 这项系统功能具体包括: 163 |   …… 164 | 165 | #### 文件管理 166 | 167 |   计算机操作系统中的各类程序任务、所分布软件资源、实时产生数据均以文件形式进行外存。而文件管理功能的使用目的在于,对系统所存储文件进行空间分配、目录管理,根据用户提出请求来下达相应的操作命令。[2] 168 |   此功能分为文件存储空间的管理、目录管理、文件的读写管理和保护: 169 |   …… 170 | 171 | ### 操作系统的结构 172 | 173 |   …… 174 | 175 | ## 操作系统的发展 176 | 177 |   经过漫长的发展,操作系统逐渐成为今天我们熟悉的样子。从古至今,是一位位伟大的科学家和优秀的程序员共同努力才为我们带来了当今如此惊艳的伟大软件。 178 | 179 |   …… 180 | 181 | ### 操作系统的现状 182 | 183 |   现代操作系统通常都有一个亲切美丽的图形用户界面,并使用如鼠标、触控版等有别于键盘的输入设备提供用户交互。 184 | 185 |   …… 186 | 187 | #### 个人电脑 188 | 189 |   个人电脑市场目前分为两大阵营,此两种架构分别有支持的操作系统: 190 | 191 | | Apple Mac | macOS(原Mac OS X)、Windows(当前仅支持Intel平台,但有消息称ARM版Windows也即将支持使用Apple Silicon的Mac)、Linux、BSD | 192 | | ----------------- | ------------------------------------------------------------| 193 | | **IBM** **兼容PC** | Windows、Linux、BSD、macOS(非正式支持,俗称黑苹果) | 194 | 195 | #### 移动操作系统 196 | 197 |   在1990年代初期,Psion推出了小型移动计算设备Psion Series 3 PDA。它支持在名为EPOC的操作系统上运行的用户编写的应用程序。EPOC的更高版本成为Symbian,被用于诺基亚、爱立信、索尼爱立信、摩托罗拉、三星等手机;塞班在2010年之前曾是世界上使用最广泛的智能手机操作系统。微软也推出过Windows Mobile系列系统,它在2007年达到顶峰时,曾是美国智能手机最常用的操作系统。 198 |   Microsoft于2010年通过Windows Phone重新进入了移动操作系统市场,并在2015年被更新的Windows 10 Mobile取代。Windows 10 Mobile是Windows 10操作系统的分支版本,专为屏幕尺寸低于8寸的智能手机和平板电脑运行。它采用ARM架构和IA-32处理器架构,为移动设备提供了"强大的功能"。其中包括同步处理功能、通用应用、从Android和iOS的平台移植的应用、将设备连接至外部屏幕、可使用类似PC的鼠标和键盘输入等。尽管设想与愿景十分美好,但最终呈现效果始终不尽人意。2020年1月14日,因为Windows 10 Mobile使用人数太少,欠缺App开发人员,该系统正式停止更新,最后一个版本号停留在1709(10.0.15254.603)。许多人对Windows 10 Mobile的结局感到痛心疾首,读者可以通过[这里](https://www.microsoft.com/en-us/windows/windows-10-mobile-specifications)尝试为您的手机安装该系统。 199 |   Apple在2007年推出了iPhone及其操作系统,后者称为iPhone OS(也就是如今的iOS),它与Mac OS X一样,都基于类似Unix的Darwin。除了这些基础之外,它还引入了功能强大且创新的图形用户界面,该界面后来也用于Apple的平板电脑iPad上。(后来Apple将iPad上的操作系统与手机端区分开,改叫iPadOS。)一年后,基于经过修改的Linux内核,Google引入了具有自己的图形用户界面的Android。 200 |   截止本文完稿,iOS已更新至iOS 14.3;Android已更新至Android 11(Beta 3)。读者可以分别点击[这里](https://www.apple.com.cn/ios/)和[这里](https://android.com/)查看关于这两个操作系统的更多官方信息。 201 |   除了这些,移动领域还竞争着各种各样的其他移动操作系统。不过如今移动端主流的操作系统只有iOS和Android系统及基于Android内核修改的其他“换壳”安卓系统。 202 | 203 |
表 1 全球/中国移动操作系统市场份额占比(%)
204 | 205 | | OS | Android | iOS | Windows | 其他 | 206 | | ---- | ------- | ----- | ------- | ---- | 207 | | 全球 | 72.48 | 26.91 | 0.02 | 0.59 | 208 | | 中国 | 80.54 | 18.38 | 0.03 | 1.05 | 209 | 210 |   **表 1**展示了由互联网机构StatcCounter网站提供的数据截止2020年12月移动端全球与中国各移动操作系统市场份额占比。随着中国国产手机品牌的不断壮大,安卓系统的手机市场份额也在不断扩大。 211 | 212 | ## 当前主流操作系统简介 213 | 214 |   现阶段,应用较为常见的桌面计算机操作系统为三类,分别为Windows系统、Linux系统、Unix类系统。其中,Windows系统的技术体系较为成熟,图形化模式界面较为人性化,是当前PC端主流系统。Unix系统使用标准化的认证规范,用户可以直接在系统中移植相应应用程序,系统具有功能完备、稳定性强的应用优势,主要被用与网络服务器。但是,Unix系统对硬件配置有着较高的要求。另外,Apple公司的操作系统macOS也是Unix的变体。Linux系统则具有开源免费的应用优势,且系统软件环境较为良好,系统资源占用极低,可以长期保持开机(甚至除非更新内核安装更新也无需重启),在嵌入式、服务器操作系统领域中得到广泛应用,大有取代Unix之势。 215 | 216 |    217 | 218 | 219 | 220 | 221 | 222 | 223 |
图 8 全球操作系统市场份额图 9 中国操作系统市场份额
224 | 225 |   根据互联网机构StatcCounter网站提供的数据,截止2020年12月20日,全球与中国各桌面级操作系统市场份额占比分别如**图 8**、**图 9**所示,具体数据见**表 2**。 226 | 227 |
表 2 全球/中国桌面操作系统市场份额占比(%)
228 | 229 | | OS | Windows | macOS | Unknown | Linux | Chrome OS | 其他 | 230 | | ---- | ------- | ----- | ------- | ----- | --------- | ---- | 231 | | 全球 | 76.56 | 17.1 | 2.68 | 1.93 | 1.72 | 0.01 | 232 | | 中国 | 87.55 | 5.44 | 6.24 | 0.75 | 0.01 | 0.01 | 233 | 234 |   从中我们可以看出,Windows是依旧最受欢迎的主流桌面操作系统,市场占有率极大。在中国Windows对其他操作系统的优势进一步加大,达到了惊人的88%。当然,这与国内早期的盗版软件生态是分不开的。同时,国内很多早期的项目机器仍旧停留在Windows XP系统而不选择换用Unix服务器系统,这也进一步造成了差距的扩大。 235 |   下面我们对市场占有率最高的两个操作系统Microsoft Windows和Apple macOS进行介绍。 236 | 237 | ### Microsoft Windows 238 | 239 |   Microsoft Windows是微软公司以图形用户界面为主推出的一系列专有商业软件操作系统。…… 240 | 241 | ### macOS 242 | 243 |    macOS(2011年及之前称Mac OS X,2012年至2015年称OS X)是Apple公司推出的专为Mac系列电脑开发的基于图形用户界面的操作系统。 244 |    …… 245 |    笔者就拥有一台MacBook Pro,macOS的用户体验非常舒适,特别是当macOS与iOS、iPadOS等系统同时交互时,接力、随航、隔空投送及iCloud同步等苹果生态带来的流畅感和便捷性是Windows无法替代的。同时,macOS的自动保存技术也一次次拯救了笔者多次崩溃的Adobe Photoshop和Adobe Illustrator,设计师的心再也不会像在Windows平台那样因为一个崩溃提示而化为齑粉。 246 |    读者可以前往[Apple官网](https://www.apple.com.cn/macos/)进一步了解macOS。由于非Mac机器很难装载macOS系统,有条件的读者可以前往Apple Store体验或购买一台Mac。 247 | 248 | ## 结语 249 | 250 |    综上所述,计算机操作系统一步一步走到今天,已经和人们的生活紧密相连。计算机是一个高速发展的行业,它无时不刻不在更新着,而正是因为系统功能的不断进步,我们的生活也越来越方便快捷。“Windows”“iOS”“安卓”已经是妇孺皆知的概念,我们无法想象失去了操作系统的生活。感谢那么多科学家、工程师、开发者为我们带来了那么多优秀美丽的操作系统,也相信在未来的发展下,计算机系统也会在不断优化完善的路上越走越远。 251 | 252 | 253 | 254 | **参考文献:** 255 | 256 | [1] 维基百科编者.操作系统[G/OL].维基百科,2020(2020-11-24) [2021-01-09]. https://zh.wikipedia.org/w/index.php?title=操作系统&oldid=62920825. 257 | [2] 计算机操作系统及发展探讨.田舜文[J].数码设计 (下)2020,9(6):3. 258 | [3] 计算机操作系统功能与其相关分类.宋辰辉[J].电脑迷,2018(7):15. 259 | [4] 苏志明.计算机操作系统的功能、发展及分类[J].企业技术开发,2012,31(32):77-78. 260 | [5] 严静茹.浅谈计算机操作系统及其发展[J].计算机光盘软件与应用,2012(10):80+82. 261 | [6] Milo. History of Operating Systems [Z/OL]. (2010-10-03) [2021-01-09]. http://www.osdata.com/kind/history.Htm 262 | [7] 维基百科编者.操作系统历史[G/OL].维基百科,2020(2020-02-29) [2021-01-09]. https://zh.wikipedia.org/w/index.php?title=操作系统历史&oldid=58390753. 263 | [8] Wikipedia contributors. History of operating systems [G/OL]. Wikipedia, 2020(2020-12-21)[2021-01-10]. http://en.wikipedia.org/w/index.php?title=History_of_operating_systems&oldid=995571854 264 | [9] Statcounter. Mobile Operating System Market Share Worldwide [DS/OL]. (2020-12-20) [2021-01-09]. https://gs.statcounter.com/os-market-share/mobile/worldwide/ 265 | [10] Statcounter. Mobile Operating System Market Share China [DS/OL]. (2020-12-20) [2021-01-09]. https://gs.statcounter.com/os-market-share/mobile/china/ 266 | [11] Statcounter. Desktop Operating System Market Share Worldwide [DS/OL]. (2020-12-20) [2021-01-09]. https://gs.statcounter.com/os-market-share/desktop/world-wide/ 267 | [12] Statcounter. Desktop Operating System Market Share China [DS/OL]. (2020-12-20) [2021-01-09]. https://gs.statcounter.com/os-market-share/desktop/china/ 268 | [13] 维基百科编者.Microsoft Windows[G/OL].维基百科, 2021(2021-01-02)[2021-01-10]. https://zh.wikipedia.org/w/index.php?title=Microsoft_Windows&oldid=63546256. 269 | [14] 韩兵,李海坤.浅谈Windows操作系统[J].数码世界,2017(06):66-67. 270 | -------------------------------------------------------------------------------- /Supplemental/essay-template.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KuangjuX-Archived/TJU-typora-latex-theme/634011886e4269a833c66508b822f663b7edb8b8/Supplemental/essay-template.pdf -------------------------------------------------------------------------------- /Supplemental/sample-chinese.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: 乱数假文 3 | author: 假人 4 | description: 这个 block 块是 YAML front matters 5 | --- 6 | 7 | # 乱数假文 8 | 9 | 在[出版](https://www.wikiwand.com/en/Publishing)和[平面设计](https://www.wikiwand.com/en/Graphic_design)中,**lorem ipsum**(源自拉丁语*dolorem ipsum*,翻译为“痛苦本身”)是一个[填充文本](https://www.wikiwand.com/en/Filler_text),通常用于演示文档或视觉呈现的图形元素[^1] 10 | 11 | ## 样例文本 12 | 13 | 常见的*lorem ipsum*起头如下: 14 | 15 | > *Lorem ipsum dolor sit amet*, **consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua**. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. 16 | > 17 | > *我必须向你们解释*,**谴责快乐和赞美痛苦的这一错误观念是如何诞生的**,我将给你们一个完整的系统说明,并阐述真理的伟大探索者,人类幸福的主要建造者的实际教导。 18 | 19 | ------- 20 | 21 | 内联样式支持**粗体**、*斜体*、`code`、下划线、~~删除线~~、:smile:、$\LaTeX$、X^2^、H~2~O、==高亮==、[链接](typora.io)和图像: 22 | 23 | ![img](https://i.imgur.com/RGLj3oV.jpg) 24 | 25 | 层级标题: 26 | 27 | ### 标题3 28 | 29 | #### 标题4 30 | 31 | ##### 标题5 32 | 33 | ###### 标题6 34 | 35 | 表格: 36 | 37 |
表 2 全球/中国桌面操作系统市场份额占比(%)
38 | 39 | | OS | Windows | macOS | Unknown | Linux | Chrome OS | 其他 | 40 | | ---- | ------- | ----- | ------- | ----- | --------- | ---- | 41 | | 全球 | 76.56 | 17.1 | 2.68 | 1.93 | 1.72 | 0.01 | 42 | | 中国 | 87.55 | 5.44 | 6.24 | 0.75 | 0.01 | 0.01 | 43 | 44 | 项目列表: 45 | 46 | 1. 有序列表项 47 | 2. 有序列表项2 48 | + 无序列表项1 49 | + 无序列表项2. 50 | * [x] 表示已完成。 ***==(请尽量不要使用此功能,因为它的对齐效果不佳)==*** 51 | * [ ] 表示未完成。 52 | 53 | * 项目1 54 | * 项目2 55 | * 项目3 56 | 57 | 1. 项目1 58 | 2. 项目2 59 | 1. 项目2.1 60 | 2. 项目2.2 61 | 1. 项目2.2.1 62 | 2. 项目2.2.2 63 | 64 | 代码块: 65 | 66 | ```html 67 | 68 | 69 | 70 | 71 |

The *= Operator

72 | 73 |

74 | 75 | 80 | 81 | 82 | 83 | ``` 84 | 85 | mermaid 图形: 86 | 87 | ```mermaid 88 | graph LR 89 | A(开始) --> 90 | input[/输入a,b/] --> if{a%b=0 ?} 91 | if --->|yes| f1[GCD = b] --> B(结束) 92 | if --->|no| f2["a, b = b, a % b "]-->if 93 | ``` 94 | 95 | 公式: 96 | 97 | $$ 98 | \iint\limits_{x^2 + y^2 \leq R^2} f(x,y)\,\mathrm{d}x\,\mathrm{d}y = \int_{\theta=0}^{2\pi} \mathrm{d}\theta\int_{r=0}^R f(r\cos\theta,r\sin\theta) r\,\mathrm{d}r\, \tag{1} 99 | $$ 100 | 101 | 目录: 102 | 103 | [TOC] 104 | 105 | [^1]: 从 https://en.wikipedia.org/wiki/Lorem_ipsum *Forke*得到 106 | 107 | -------------------------------------------------------------------------------- /Supplemental/sample.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: Lorem ipsum 3 | author: dummy 4 | description: this block is YAML front matters 5 | --- 6 | 7 | # Lorem ipsum 8 | 9 | In [publishing](https://www.wikiwand.com/en/Publishing) and [graphic design](https://www.wikiwand.com/en/Graphic_design), **lorem ipsum** (derived from Latin *dolorem ipsum*, translated as "pain itself") is a [filler text](https://www.wikiwand.com/en/Filler_text) commonly used to demonstrate the graphic elements of a document or visual presentation. [^1] 10 | 11 | ## Example text 12 | 13 | A common form of *lorem ipsum* reads: 14 | 15 | > Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. 16 | 17 | ---- 18 | 19 | Inline styles support **strong**, *Emphasis*, `code`, underline, ~~strikethrough~~, :smile:, $\LaTeX$, X^2^, H~2~O, ==highlight==, [Link](typora.io), and image: 20 | 21 | ![img](https://i.imgur.com/RGLj3oV.jpg) 22 | 23 | level heading: 24 | 25 | ### Heading 3 26 | 27 | #### Heading 4 28 | 29 | ##### Heading 5 30 | 31 | ###### Heading 6 32 | 33 | table: 34 | 35 |
table 1 Global / Chinese Desktop operating system Market share (%)
36 | 37 | | OS | Windows | macOS | Unknown | Linux | Chrome OS | 其他 | 38 | | ---- | ------- | ----- | ------- | ----- | --------- | ---- | 39 | | Global | 76.56 | 17.1 | 2.68 | 1.93 | 1.72 | 0.01 | 40 | | Chinese | 87.55 | 5.44 | 6.24 | 0.75 | 0.01 | 0.01 | 41 | 42 | items: 43 | 44 | 1. ordered list item 1. 45 | 2. ordered list item 2. 46 | + sub-unordered list item 1. 47 | + sub-unordered list item 2. 48 | + [x] something is DONE. ***==(Please Do NOT Use This feature, for it's not well polished)==*** 49 | + [ ] something is not TODO. 50 | 51 | 52 | * item 1 53 | * Item 2 54 | * Item 3 55 | 56 | 1. Item 1 57 | 2. Item 2 58 | 1. Item 2.1 59 | 2. Item 2.2 60 | 1. Item 2.2.1 61 | 2. Item 2.2.2 62 | 63 | block code: 64 | 65 | ```html 66 | 67 | 68 | 69 | 70 |

The *= Operator

71 | 72 |

73 | 74 | 79 | 80 | 81 | 82 | ``` 83 | 84 | mermaid: 85 | 86 | ```mermaid 87 | graph LR 88 | A(start) --> 89 | input[/input a,b/] --> if{a%b=0 ?} 90 | if --->|yes| f1[GCD = b] --> B(quit) 91 | if --->|no| f2["a, b = b, a % b "]-->if 92 | ``` 93 | 94 | equations: 95 | 96 | $$ 97 | \iint\limits_{x^2 + y^2 \leq R^2} f(x,y)\,\mathrm{d}x\,\mathrm{d}y = \int_{\theta=0}^{2\pi} \mathrm{d}\theta\int_{r=0}^R f(r\cos\theta,r\sin\theta) r\,\mathrm{d}r\, \tag{1} 98 | $$ 99 | 100 | toc: 101 | 102 | [TOC] 103 | 104 | 105 | [^1]: *Forked* from https://en.wikipedia.org/wiki/Lorem_ipsum 106 | 107 | -------------------------------------------------------------------------------- /Supplemental/tju-cover-template.md: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 |
6 | 校名 7 |
8 | 本科生毕业论文 9 |
10 |

11 |
12 | 校徽 13 |
14 |


15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 |
学      院
专      业
年      级
姓      名
指导教师
39 |
40 |
41 | 年 月 日 42 |
43 |
44 |
45 | 46 | 47 | -------------------------------------------------------------------------------- /Supplemental/tju-cover-template.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KuangjuX-Archived/TJU-typora-latex-theme/634011886e4269a833c66508b822f663b7edb8b8/Supplemental/tju-cover-template.pdf -------------------------------------------------------------------------------- /Windows/latex-dark.css: -------------------------------------------------------------------------------- 1 | /* ============================================ 2 | * ============ TYPORA lATEX THEME ============ 3 | * ============================================ 4 | * THIS PROJECT IS BASED ON THE WORKS OF YFZHAO20 AND DU33169, 5 | WHOSE REPOSITORIES ARE ADRESSED ON 6 | 7 | AND , 8 | MANY THANKS TO THEM. 9 | * "TYPORA LATEX THEME" (MARKDOWN LATEX THEME) 10 | IS A THEME FOR TYPORA (OR CSS FOR OTHER MARKDOWN EDITORS), 11 | DESIGNED FOR CHINESE UNIVERSITY STUDENTS 12 | USED IN LATEX-STYLED ESSAYS OR EXPERIMENTAL REPORTS. 13 | * COPYRIGHT (C) 2021 KELDOS; 14 | REPOSITORY ADDRESS: ; 15 | LISENCED UNDER GPL v3.0, SEE 16 | */ 17 | 18 | /* LaTeX-dark on Windows */ 19 | 20 | @import "./latex/userCustom.css"; 21 | 22 | :root { 23 | --md-char-color: hsl(212, 100%, 85%); 24 | --link-hover: hsl(212, 100%, 85%); 25 | --focus-cont-bg: hsl(0, 0%, 10%); 26 | --focus-para-bg: hsl(0, 0%, 15%); 27 | --opt-borderb: 1px dashed hsl(212, 100%, 65%); 28 | --focus-shadow: 0px 8px 16px 0 rgba(0, 0, 0, 0.9); 29 | --opt-shadow: 0px 8px 16px 1px hsla(0, 0%, 0%, 0.3); 30 | 31 | --side-bar-bg-color: #282828; /*change background of sidebar*/ 32 | --window-border: 0px solid #929292; 33 | --title-color: #DDDDDD; 34 | --text-color: #DCDCDC; 35 | --select-text-bg-color: #9AB1CF; 36 | --select-text-font-color: #161616; 37 | /*--bg-color: hsl(0, 0%, 15%);*/ 38 | --mermaid-theme: night; 39 | } 40 | 41 | body { 42 | padding: 0 !important; 43 | margin: 0 !important; 44 | line-height: var(--base-line-height); 45 | /*counter-reset: tableHead 0 imgHead 0;*/ 46 | color: #DDDDDD; /* 黑色模式修改 */ 47 | background-color: #282828; /* 黑色模式修改 */ 48 | /*background:url(mermaidAPI.initialize({'fontFamily': '宋体-简, serif;'});); 可恶,不行 */ 49 | } 50 | 51 | /* 正文区基本属性,参照wordTeX模板设置字体大小*/ 52 | #write { 53 | font-family: var(--base-Latin-font), var(--base-Chinese-font), serif; 54 | font-size: var(--base-font-size); 55 | max-width: 21cm;/* A4标准宽度 */ 56 | background-color: #1E1E1E; /* 黑色模式修改 */ 57 | /* column-count: 2; 58 | column-gap: 25px; 59 | column-width: 8cm; 60 | display: inline-block; */ 61 | /* 这里可以试分栏的,但确实不适合实现 */ 62 | } 63 | 64 | strong { 65 | font-weight: var(--strong-weight); 66 | } 67 | 68 | @media screen { 69 | #write { 70 | padding: var(--set-margin); 71 | /*border: 1px solid #AAAAAA ;*/ 72 | box-shadow: 0 0 24px 12px #101010; /* 页边来一个阴影!!好耶 */ 73 | } 74 | } 75 | 76 | @media print { 77 | #write { 78 | padding: 0 !important; 79 | } 80 | #write a { 81 | color: inherit; 82 | text-decoration: none; 83 | } 84 | @page { 85 | /* size: A4; 强制A4大小 */ 86 | margin: 1.8cm 2cm 1.2cm 2cm !important; /* 虽然暗色不支持导出,但还是放着 */ 87 | } 88 | } 89 | 90 | #write p { 91 | text-align: left; 92 | } 93 | 94 | /* 95 | #write figure:after{ 96 | counter-increment: tableHead; 97 | content: "表" counter(tableHead) " "; 98 | text-align:center; 99 | width:100%; 100 | display:inline-block; 101 | }*/ 102 | /* 图片,导出PDF时暂时无法显示 */ 103 | /* 104 | #write .md-image:after{ 105 | counter-increment: imgHead; 106 | content: "图" counter(imgHead) " "; 107 | text-align:center; 108 | width:100%; 109 | display:inline-block; 110 | } 111 | */ 112 | 113 | /* basic样式采用一般的引言,具有左边框、左缩进 */ 114 | blockquote { 115 | font-style: normal; 116 | font-family: var(--quote-font), var(--base-Latin-font), var(--base-Chinese-font), -apple-system, serif; 117 | font-size: var(--quote-font-size); 118 | border-left: 3px solid grey; 119 | padding-left: 16px; /* 文字离左边框的距离 */ 120 | padding-right: 20pt; 121 | margin-left: 20px; /* 左边框离页面边的距离 */ 122 | color: #BFBFBF; /* 文字颜色 */ 123 | } 124 | 125 | /*border-width: 0.5pt 0; 126 | border-style:solid; 这一行本来使用了上下边框*/ 127 | 128 | /* 标题属性 */ 129 | #write h1, 130 | #write h2, 131 | #write h3, 132 | #write h4, 133 | #write h5, 134 | #write h6 { 135 | font-weight: normal; 136 | font-family: var(--heading-Latin-font), var(--heading-Chinese-font), sans-serif; 137 | page-break-after: avoid !important; 138 | } 139 | 140 | #write h1 { 141 | font-family: var(--heading-Latin-font), var(--title-Chinese-font), sans-serif; 142 | font-weight: bold; 143 | text-align: center; 144 | column-span: all; 145 | font-size: var(--title-font-size); 146 | } 147 | #write h2 { 148 | font-family: var(--heading-Latin-font), var(--h2-Chinese-font), sans-serif; 149 | font-size: var(--h2-font-size); 150 | } 151 | #write h3 { 152 | font-family: var(--heading-Latin-font), var(--h3-Chinese-font), sans-serif; 153 | font-size: var(--h3-font-size); 154 | line-height: var(--h3-font-size); 155 | } 156 | #write h4 { 157 | font-family: var(--heading-Latin-font), var(--h4-Chinese-font), sans-serif; 158 | font-size: var(--h4-font-size); 159 | line-height: var(--h4-font-size); 160 | } 161 | #write h5 { 162 | font-family: var(--heading-Latin-font), var(--h5-Chinese-font), sans-serif; 163 | font-size: var(--h5-font-size); 164 | line-height: var(--h5-font-size); 165 | } 166 | #write h6 { 167 | font-family: var(--heading-Latin-font), var(--h6-Chinese-font), sans-serif; 168 | font-size: var(--h6-font-size); 169 | line-height: var(--h5-font-size); /* 没有写错,为了避免行距太小才这么写 */ 170 | } 171 | 172 | 173 | /* 三线表 */ 174 | #write table { 175 | border-top: 1.2pt solid; /* 三线表第一条线宽度 */ 176 | border-bottom: 1.2pt solid; /* 三线表第二条线宽度 */ 177 | font-family: var(--table-font), var(--base-Latin-font), var(--base-Chinese-font), serif; 178 | /* font-size: var(--base-font-size); */ 179 | text-align: center; 180 | page-break-inside: avoid; 181 | border-spacing: 6px; 182 | width: auto; /* 自动布局表格宽度,如果有时内容太紧建议直接加空格吧,我自己看不惯和页面等宽的大表格 */ 183 | margin: 0 auto; /* 使表格默认居中;虽然这个代码不好,但好像没别的实现办法 */ 184 | } 185 | 186 | #write table td { 187 | padding: 2px; 188 | } 189 | 190 | #write table tr { 191 | padding: 2px; 192 | } 193 | 194 | #write th { 195 | padding: 0px 6px; 196 | } 197 | 198 | /* 表格标题(首行)样式 */ 199 | #write thead { 200 | border-bottom: 0.5pt solid; /* 三线表表头的线 */ 201 | font-family: var(--table-title-font), var(--heading-Latin-font), var(--heading-Chinese-font), serif !important; 202 | /* font-size: var(--base-font-size); */ 203 | font-weight: var(--strong-weight); 204 | } 205 | 206 | hr { 207 | border-top: solid 0.7px #888888; 208 | } 209 | 210 | img { 211 | page-break-inside: avoid; /* 避免图片在导出时被断开 */ 212 | } 213 | 214 | /* ============ 多级列表样式 ============ */ 215 | ul { 216 | list-style: disc; /* 无序列表第一级:实心圆点 */ 217 | } 218 | 219 | ul ul { 220 | /*list-style: circle;*/ 221 | list-style: '–  '; /* 直接用空格代替一部分缩进的调整了我真懒 */ 222 | /*left: -0.8em;*/ 223 | } 224 | 225 | ul ul ul { 226 | list-style: "◦  "; /* 无序列表第三极:小圈 */ 227 | left: 0.6em; 228 | } 229 | 230 | ol { 231 | list-style: decimal; 232 | /* 有序列表第一级:数字 */ 233 | } 234 | 235 | ol ol { 236 | counter-reset: liist; 237 | list-style: none; 238 | } 239 | ol ol li { 240 | counter-increment: liist; 241 | position: relative; 242 | } 243 | ol ol li::before { 244 | content: "("counter(liist, lower-alpha) ")  "; /* 有序列表第二级:括号加小写字母 */ 245 | position: absolute; 246 | margin-right: 2rem; 247 | left: -2.4em; 248 | } 249 | 250 | ol ol ol { 251 | counter-reset: liiist; 252 | list-style: none; 253 | margin: 0; 254 | } 255 | ol ol ol li { 256 | counter-increment: liiist; 257 | position: relative; 258 | } 259 | ol ol ol li::before { 260 | content: counter(liiist, lower-roman) ".   "; /* 有序列表第三级:小写罗马数字 这些后续还要改的可恶*/ 261 | align-self: flex-end; 262 | position: absolute; 263 | left: -2.4em; 264 | /* -moz-box-sizing: border-box; 265 | -webkit-box-sizing: border-box; 266 | box-sizing: border-box;*/ 267 | width: 4em; /* 为了让项目编号是重新用句点对齐而不是左对齐我调试了一整个晚上啊啊啊啊 CSS好难写 */ 268 | text-align: right; 269 | } 270 | 271 | li { 272 | position: relative; 273 | } 274 | /* ============ 多级列表样式END ============ */ 275 | 276 | 277 | /* 行内代码 */ 278 | p code, 279 | li code { 280 | color: #8BB1F9; /* 黑色模式修改 */ 281 | background-color: #161616; /* 黑色模式修改 */ 282 | font-family: var(--code-font), var(--ui-font), monospace; 283 | box-sizing: border-box; 284 | border-right: 0px; 285 | margin: 0 2px 0 2px; 286 | padding: 0 2px 0 2px; 287 | border-radius: 2px 2px 2px 2px; /* 圆角 */ 288 | box-shadow: 0 0 1px 1px #141414; /* 黑色模式修改 */ 289 | } 290 | 291 | /* 代码块样式*/ 292 | #write .CodeMirror-wrap { 293 | padding: 10px; /* 当代码太长跨页的时候好像也会有点问题,到时候再改 */ 294 | } 295 | 296 | #write .CodeMirror-code pre { 297 | font-family: var(--code-font), var(--ui-font), monospace; 298 | } 299 | 300 | /* typora 编写模式 */ 301 | #typora-source { 302 | /* background: ;*/ 303 | color: #DDDDDD; 304 | font-family: var(--sourceMode-font), var(--code-font), var(--ui-font), monospace; 305 | line-height: 2rem; 306 | } 307 | 308 | /* 下面是标题自动编号,初始化计数器。使用多级编号,编号后加空格模仿LaTeX */ 309 | /* 首先全局进行一次reset,这样即使不添加h1标题也可以使用较低级别的标题 */ 310 | #write { 311 | counter-reset: h2 0 h3 0 h4 0 h5 0 h6 0 312 | } 313 | 314 | #write h1 { 315 | counter-reset: h2 316 | } 317 | h2 { 318 | counter-reset: h3 319 | } 320 | h3 { 321 | counter-reset: h4 322 | } 323 | h4 { 324 | counter-reset: h5 325 | } 326 | h5 { 327 | counter-reset: h6 328 | } 329 | 330 | /* put counter result into headings */ 331 | #write h2:before { 332 | counter-increment: h2; 333 | content: counter(h2); 334 | margin-right: 2rem; 335 | } 336 | /** override the default style for focused headings */ 337 | #write h3:before, 338 | h3.md-focus.md-heading:before { 339 | counter-increment: h3; 340 | content: counter(h2) "."counter(h3); 341 | margin-right: 2rem; 342 | } 343 | #write h4:before, 344 | h4.md-focus.md-heading:before { 345 | counter-increment: h4; 346 | content: counter(h2) "."counter(h3) "."counter(h4); 347 | margin-right: 2rem; 348 | } 349 | #write h5:before, 350 | h5.md-focus.md-heading:before { 351 | counter-increment: h5; 352 | content: counter(h2) "."counter(h3) "."counter(h4) "."counter(h5); 353 | margin-right: 2rem; 354 | } 355 | #write h6:before, 356 | h6.md-focus.md-heading:before { 357 | counter-increment: h6; 358 | content: counter(h2) "."counter(h3) "."counter(h4) "."counter(h5) "."counter(h6); 359 | margin-right: 2rem; 360 | } 361 | 362 | /* 目录 */ 363 | .md-toc-content { 364 | margin-left: 2em; 365 | counter-reset: toc-h2 toc-h3 toc-h4; /* 修复缺失上级标题时无法递增 */ 366 | page-break-after: always; 367 | } 368 | .md-toc-inner { 369 | margin-left: 0 !important; 370 | color: #DDDDDD !important; 371 | } 372 | .md-toc-item { 373 | color: #DDDDDD !important; 374 | } 375 | 376 | /* 目录标题内容属性 */ 377 | .md-toc-h2, 378 | .md-toc-h3, 379 | .md-toc-h4, 380 | .md-toc-h5, 381 | .md-toc-h6 { 382 | font-size: var(--toc-font-size); 383 | font-family: var(--toc-font), var(--base-Latin-font), var(--base-Chinese-font), serif; 384 | } 385 | .md-toc-h2 { 386 | font-weight: var(--strong-weight); 387 | } 388 | 389 | /* 目录标题前 */ 390 | .md-toc-content .md-toc-h1 { 391 | display: var(--toc-show-title); 392 | counter-reset: toc-h2; 393 | } 394 | .md-toc-content .md-toc-h2 { 395 | counter-reset: toc-h3; 396 | } 397 | .md-toc-content .md-toc-h3 { 398 | counter-reset: toc-h4; 399 | } 400 | .md-toc-content .md-toc-h4 { 401 | counter-reset: toc-h5; 402 | } 403 | .md-toc-content .md-toc-h5 { 404 | counter-reset: toc-h6; 405 | } 406 | .md-toc-content .md-toc-h2:before { 407 | counter-increment: toc-h2; 408 | content: counter(toc-h2); 409 | margin-right: 1rem; 410 | font-weight: var(--strong-weight); 411 | } 412 | .md-toc-content .md-toc-h3:before { 413 | counter-increment: toc-h3; 414 | content: counter(toc-h2) "."counter(toc-h3); 415 | margin-left: 1.5rem; 416 | margin-right: 0.5rem; 417 | } 418 | .md-toc-content .md-toc-h4:before { 419 | counter-increment: toc-h4; 420 | content: counter(toc-h2) "."counter(toc-h3) "."counter(toc-h4); 421 | margin-left: 3.5rem; 422 | margin-right: 0.5rem; 423 | } 424 | .md-toc-content .md-toc-h5:before { 425 | counter-increment: toc-h5; 426 | content: counter(toc-h2) "."counter(toc-h3) "."counter(toc-h4) "."counter(toc-h5); 427 | margin-left: 5.5rem; 428 | margin-right: 0.5rem; 429 | } 430 | .md-toc-content .md-toc-h6:before { 431 | counter-increment: toc-h6; 432 | content: counter(toc-h2) "."counter(toc-h3) "."counter(toc-h4) "."counter(toc-h5) "."counter(toc-h6); 433 | margin-left: 7.5rem; 434 | margin-right: 0.5rem; 435 | } 436 | 437 | /* 侧边大纲标题 */ 438 | .sidebar-content .outline-h1 { 439 | counter-reset: outline-h2; 440 | } 441 | .sidebar-content .outline-h2 { 442 | counter-reset: outline-h3; 443 | } 444 | .sidebar-content .outline-h3 { 445 | counter-reset: outline-h4; 446 | } 447 | .sidebar-content .outline-h4 { 448 | counter-reset: outline-h5; 449 | } 450 | .sidebar-content .outline-h5 { 451 | counter-reset: outline-h6; 452 | } 453 | .sidebar-content .outline-h2 .outline-label:before { 454 | counter-increment: outline-h2; 455 | content: counter(outline-h2) " "; 456 | } 457 | .sidebar-content .outline-h3 .outline-label:before { 458 | counter-increment: outline-h3; 459 | content: counter(outline-h2) "."counter(outline-h3) " "; 460 | } 461 | .sidebar-content .outline-h4 .outline-label:before { 462 | counter-increment: outline-h4; 463 | content: counter(outline-h2) "."counter(outline-h3) "."counter(outline-h4) " "; 464 | } 465 | .sidebar-content .outline-h5 .outline-label:before { 466 | counter-increment: outline-h5; 467 | content: counter(outline-h2) "."counter(outline-h3) "."counter(outline-h4) "."counter(outline-h5) " "; 468 | } 469 | 470 | .sidebar-content { 471 | font-family: var(--ui-font); /* 侧边栏的字体修改 */ 472 | list-style: none; 473 | } 474 | 475 | .sidebar-content { 476 | font-family: var(--ui-font); /* 侧边栏的字体修改 */ 477 | list-style: none; 478 | background-color: #282828; /* 黑色模式修改 */ 479 | color: #E9E9E9; 480 | } 481 | 482 | /* 元数据(如YAML front matter)的背景框 */ 483 | pre.md-meta-block { 484 | background: #161616; 485 | color: white !important; 486 | padding: 1.4em; 487 | font-family: var(--code-font), var(--ui-font), monospace; 488 | } 489 | 490 | /** override the default style for focused headings */ 491 | #write>h3.md-focus:before, 492 | #write>h4.md-focus:before, 493 | #write>h5.md-focus:before, 494 | #write>h6.md-focus:before, 495 | h3.md-focus:before, 496 | h4.md-focus:before, 497 | h5.md-focus:before, 498 | h6.md-focus:before { 499 | color: inherit; 500 | border: inherit; 501 | border-radius: inherit; 502 | position: inherit; 503 | left:initial; 504 | float: none; 505 | top:initial; 506 | font-size: inherit; 507 | padding-left: inherit; 508 | padding-right: inherit; 509 | vertical-align: inherit; 510 | font-weight: inherit; 511 | line-height: inherit; 512 | } 513 | 514 | 515 | /* Modifications for dark-mode */ 516 | /*下面是针对代码块的修改,各部分含义由名称可以知道 */ 517 | /*.cm-s-inner .cm-variable { 518 | color: #fff; 519 | } 520 | .cm-s-inner .cm-operator { 521 | color: #69fc9a; 522 | } 523 | .cm-s-inner .cm-keyword { 524 | color: #fcad7e; 525 | } 526 | .cm-s-inner .cm-string { 527 | color: #01e5f9; 528 | } 529 | .cm-s-inner .cm-def { 530 | color: #93598f; 531 | } 532 | .cm-s-inner .cm-meta { 533 | color: #ad9494; 534 | } 535 | .cm-s-inner .cm-builtin { 536 | color: #7f69b1; 537 | } 538 | .cm-s-inner .cm-number { 539 | color: #8c5853; 540 | }*/ 541 | 542 | /* ====================我加的================== */ 543 | /*.cm-s-inner { 544 | background-color: #263238; 545 | color: rgba(233, 237, 237); 546 | }*/ 547 | /*.cm-s-inner .CodeMirror-gutters { 548 | background: #263238; 549 | color: #537f7e; 550 | border: none; 551 | }*/ 552 | /*.cm-s-inner .CodeMirror-guttermarker, 553 | .cm-s-inner .CodeMirror-guttermarker-subtle, 554 | .cm-s-inner .CodeMirror-linenumber { 555 | color: #537f7e; 556 | }*/ 557 | .cm-s-inner .CodeMirror-cursor { 558 | border-left: 1px solid #f8f8f0; 559 | } 560 | .cm-s-inner div.CodeMirror-selected { 561 | background: rgba(255, 255, 255, 0.15); 562 | } 563 | .cm-s-inner.CodeMirror-focused div.CodeMirror-selected { 564 | background: rgba(255, 255, 255, 0.1); 565 | } 566 | .cm-s-inner .CodeMirror-line::selection, 567 | .cm-s-inner .CodeMirror-line > span::selection, 568 | .cm-s-inner .CodeMirror-line > span > span::selection { 569 | background: rgba(255, 255, 255, 0.1); 570 | } 571 | .cm-s-inner .CodeMirror-line::-moz-selection, 572 | .cm-s-inner .CodeMirror-line > span::-moz-selection, 573 | .cm-s-inner .CodeMirror-line > span > span::-moz-selection { 574 | background: rgba(255, 255, 255, 0.1); 575 | } 576 | .cm-s-inner .CodeMirror-activeline-background { 577 | background: rgba(0, 0, 0, 0); 578 | } 579 | .cm-s-inner .cm-keyword { 580 | color: #c792ea; 581 | } 582 | .cm-s-inner .cm-operator { 583 | color: #e9eded; 584 | } 585 | .cm-s-inner .cm-variable-2 { 586 | color: #80CBC4; 587 | } 588 | .cm-s-inner .cm-variable-3 { 589 | color: #82B1FF; 590 | } 591 | .cm-s-inner .cm-builtin { 592 | color: #DECB6B; 593 | } 594 | .cm-s-inner .cm-atom { 595 | color: #F77669; 596 | } 597 | .cm-s-inner .cm-number { 598 | color: #F77669; 599 | } 600 | .cm-s-inner .cm-def { 601 | color: #e9eded; 602 | } 603 | .cm-s-inner .cm-string { 604 | color: #C3E88D; 605 | } 606 | .cm-s-inner .cm-string-2 { 607 | color: #80CBC4; 608 | } 609 | .cm-s-inner .cm-comment { 610 | color: #546E7A; 611 | } 612 | .cm-s-inner .cm-variable { 613 | color: #82B1FF; 614 | } 615 | .cm-s-inner .cm-tag { 616 | color: #80CBC4; 617 | } 618 | .cm-s-inner .cm-meta { 619 | color: #80CBC4; 620 | } 621 | .cm-s-inner .cm-attribute { 622 | color: #FFCB6B; 623 | } 624 | .cm-s-inner .cm-property { 625 | color: #80CBAE; 626 | } 627 | .cm-s-inner .cm-qualifier { 628 | color: #DECB6B; 629 | } 630 | .cm-s-inner .cm-variable-3 { 631 | color: #DECB6B; 632 | } 633 | .cm-s-inner .cm-tag { 634 | color: #ff5370; 635 | } 636 | .cm-s-inner .cm-error { 637 | color: #ffffff; 638 | background-color: #EC5F67; 639 | } 640 | .cm-s-inner .CodeMirror-matchingbracket { 641 | text-decoration: underline; 642 | color: white !important; 643 | } 644 | .cm-s-inner .cm-link, 645 | .cm-s-inner.cm-link { 646 | color: #4770C0; 647 | } 648 | 649 | .md-fences { 650 | /*background-color: #0E1116;*/ 651 | /*color: #e9eded;*/ 652 | } 653 | .md-fences .code-tooltip { 654 | background-color: #282828; 655 | } 656 | #write pre.md-fences { 657 | /*padding: 10rem;*/ 658 | } 659 | 660 | /* 改变光标的颜色,在黑暗背景下能显示*/ 661 | .CodeMirror div.CodeMirror-cursor { 662 | border-left: 1px solid #ffffff; 663 | z-index: 3; 664 | } 665 | 666 | :root { 667 | --blur-text-color: hsla(0, 0%, 90%, 0.2); 668 | --active-file-bg-color: hsl(0, 0%, 5%); 669 | /* 文件列表 当前文件激活 背景色*/ 670 | --active-file-text-color: hsl(212, 100%, 75%); 671 | --active-file-border-color: hsl(212, 100%, 75%); 672 | /* 树形结构下文件激活边框色 */ 673 | /*--side-bar-bg-color: hsl(0, 0%, 10%);*/ 674 | /*文件 大纲 侧边栏 背景色*/ 675 | --item-hover-bg-color: hsl(0, 0%, 5%); 676 | /* 打开文文件夹、正文菜单、最近使用 hover 效果 */ 677 | --item-hover-text-color: hsl(212, 100%, 75%); 678 | --primary-color: hsl(212, 100%, 75%); 679 | /* color of primary buttons */ 680 | --primary-btn-border-color: hsl(212, 100%, 75%); 681 | --primary-btn-text-color: hsl(0, 0%, 15%); 682 | --select-text-bg-color: hsl(212, 100%, 85%); 683 | --select-text-font-color: hsl(0, 0%, 15%); 684 | --active-bg: hsl(0, 0%, 10%); 685 | --window-border: var(--bg-color); 686 | --control-text-color: var(--title-color); 687 | --control-text-hover-color: var(--text-color); 688 | } 689 | .active-tab-files .info-panel-tab, 690 | .active-tab-outline .info-panel-tab { 691 | color: var(--active-file-text-color); 692 | } 693 | .file-list-item:hover { 694 | background: var(--item-hover-bg-color); 695 | color: var(--item-hover-text-color); 696 | } 697 | .file-node-content:hover { 698 | background: var(--active-file-bg-color); 699 | color: var(--active-file-text-color); 700 | } 701 | 702 | 703 | /* 整个界面编辑框外面的背景色 */ 704 | html>body>content { 705 | background-color: #161616; 706 | } 707 | 708 | /*#top-titlebar, 709 | #top-titlebar * { 710 | background-color: #1A1A1A; 711 | color: white; 712 | } 713 | ::-webkit-scrollbar-corner { 714 | display: none; 715 | background: transparent; 716 | } 717 | ::-webkit-scrollbar-thumb { 718 | background: rgba(0, 0, 0, 0.05); 719 | background-clip: padding-box; 720 | } 721 | [draggable] { 722 | cursor: pointer; 723 | }*/ 724 | 725 | 726 | /* 调整html编辑时的行为,能看清楚里面的文字 */ 727 | .md-rawblock-control:not(.md-rawblock-tooltip) { 728 | background-color: #1f1f1f; 729 | } 730 | .md-htmlblock .md-rawblock-tooltip { 731 | z-index: 0; 732 | color: rgb(45, 226, 43); 733 | background-color: #1f1f1f; 734 | } 735 | .CodeMirror{ 736 | background-color: #1f1e1e; 737 | } 738 | .md-rawblock-on-edit>.md-rawblock-tooltip, .md-rawblock:hover>.md-rawblock-container, .md-rawblock:hover>.md-rawblock-tooltip { 739 | background: #1B1D21; 740 | display: block; 741 | } 742 | .md-rawblock:hover>.md-rawblock-tooltip{ 743 | transition: none; 744 | animation: none; 745 | } 746 | 747 | /* 更改URL超链接颜色,最初的颜色不易查看 */ 748 | span > a { 749 | color: #8BB1F9; 750 | } -------------------------------------------------------------------------------- /Windows/latex.css: -------------------------------------------------------------------------------- 1 | /* ============================================ 2 | * ============ TYPORA lATEX THEME ============ 3 | * ============================================ 4 | * THIS PROJECT IS BASED ON THE WORKS OF YFZHAO20 AND DU33169, 5 | WHOSE REPOSITORIES ARE ADRESSED ON 6 | 7 | AND , 8 | MANY THANKS TO THEM. 9 | * "TYPORA LATEX THEME" (MARKDOWN LATEX THEME) 10 | IS A THEME FOR TYPORA (OR CSS FOR OTHER MARKDOWN EDITORS), 11 | DESIGNED FOR CHINESE UNIVERSITY STUDENTS 12 | USED IN LATEX-STYLED ESSAYS OR EXPERIMENTAL REPORTS. 13 | * COPYRIGHT (C) 2021 KELDOS; 14 | REPOSITORY ADDRESS: ; 15 | LISENCED UNDER GPL v3.0, SEE 16 | */ 17 | 18 | /* LaTeX-light on Windows */ 19 | 20 | @import "./latex/userCustom.css"; 21 | 22 | body { 23 | padding: 0 !important; 24 | margin: 0 !important; 25 | line-height: var(--base-line-height); 26 | /*counter-reset: tableHead 0 imgHead 0;*/ 27 | } 28 | 29 | /* 正文区基本属性 */ 30 | #write { 31 | font-family: var(--base-Latin-font), var(--base-Chinese-font), serif; 32 | font-size: var(--base-font-size); 33 | max-width: 21cm;/* A4标准宽度 */ 34 | background-color: white; 35 | /* column-count: 2; 36 | column-gap: 25px; 37 | column-width: 8cm; 38 | display: inline-block; */ 39 | /* 这里可以试分栏的,但确实不适合实现 */ 40 | } 41 | 42 | strong { 43 | font-weight: var(--strong-weight); 44 | } 45 | 46 | @media screen { 47 | #write { 48 | padding: var(--set-margin); 49 | /*border: 0.8px solid #AAC ; /* 添加一个淡蓝色的边框 */ 50 | box-shadow: 0 0 24px 12px #CCCCCC; /* 页边来一个阴影!!好耶 */ 51 | } 52 | } 53 | 54 | @media print { 55 | #write { 56 | padding: 0 !important; 57 | } 58 | #write a { 59 | color: inherit; 60 | text-decoration: none; 61 | } 62 | @page { 63 | /* size: A4; 强制A4大小 */ 64 | margin: 1.8cm 2cm 1.2cm 2cm !important; /* 页边距在这里!!!!!!!!!!!!!!!! */ 65 | /* 参阅 */ 66 | } 67 | } 68 | 69 | #write p { 70 | text-align: left; 71 | } 72 | 73 | /* 74 | #write figure:after{ 75 | counter-increment: tableHead; 76 | content: "表" counter(tableHead) " "; 77 | text-align:center; 78 | width:100%; 79 | display:inline-block; 80 | }*/ 81 | /* 图片,导出PDF时暂时无法显示 */ 82 | /* 83 | #write .md-image:after{ 84 | counter-increment: imgHead; 85 | content: "图" counter(imgHead) " "; 86 | text-align:center; 87 | width:100%; 88 | display:inline-block; 89 | } 90 | */ 91 | 92 | /* basic样式采用一般的引言,具有左边框、左缩进 */ 93 | blockquote { 94 | font-style: normal; 95 | font-family: var(--quote-font), var(--base-Latin-font), var(--base-Chinese-font), -apple-system, serif; 96 | font-size: var(--quote-font-size); 97 | border-left: 3px solid grey; 98 | padding-left: 16px; /* 文字离左边框的距离 */ 99 | padding-right: 20pt; 100 | margin-left: 20px; /* 左边框离页面边的距离 */ 101 | color: grey; 102 | } 103 | 104 | /*border-width: 0.5pt 0; 105 | border-style:solid; 这一行本来使用了上下边框*/ 106 | 107 | /* 标题属性 */ 108 | #write h1, 109 | #write h2, 110 | #write h3, 111 | #write h4, 112 | #write h5, 113 | #write h6 { 114 | font-weight: bold; /* 对 Windows 的修改 */ 115 | font-family: var(--heading-Latin-font), var(--heading-Chinese-font), sans-serif; 116 | page-break-after: avoid !important; 117 | } 118 | 119 | #write h1 { 120 | font-family: var(--heading-Latin-font), var(--title-Chinese-font), sans-serif; 121 | /*font-weight: bold;*/ 122 | text-align: center; 123 | column-span: all; 124 | font-size: var(--title-font-size); 125 | } 126 | #write h2 { 127 | font-family: var(--heading-Latin-font), var(--h2-Chinese-font), sans-serif; 128 | font-size: var(--h2-font-size); 129 | } 130 | #write h3 { 131 | font-family: var(--heading-Latin-font), var(--h3-Chinese-font), sans-serif; 132 | font-size: var(--h3-font-size); 133 | line-height: var(--h3-font-size); 134 | } 135 | #write h4 { 136 | font-family: var(--heading-Latin-font), var(--h4-Chinese-font), sans-serif; 137 | font-size: var(--h4-font-size); 138 | line-height: var(--h4-font-size); 139 | } 140 | #write h5 { 141 | font-family: var(--heading-Latin-font), var(--h5-Chinese-font), sans-serif; 142 | font-size: var(--h5-font-size); 143 | line-height: var(--h5-font-size); 144 | } 145 | #write h6 { 146 | font-family: var(--heading-Latin-font), var(--h6-Chinese-font), sans-serif; 147 | font-size: var(--h6-font-size); 148 | line-height: var(--h5-font-size); /* 没有写错,为了避免行距太小才这么写 */ 149 | } 150 | 151 | 152 | /* 三线表 */ 153 | #write table { 154 | border-top: 1.2pt solid; /* 三线表第一条线宽度 */ 155 | border-bottom: 1.2pt solid; /* 三线表第二条线宽度 */ 156 | font-family: var(--table-font), var(--base-Latin-font), var(--base-Chinese-font), serif; 157 | /* font-size: var(--base-font-size); */ 158 | text-align: center; 159 | page-break-inside: avoid; 160 | border-spacing: 6px; 161 | width: auto; /* 自动布局表格宽度,如果有时内容太紧建议直接加空格吧,我自己看不惯和页面等宽的大表格 */ 162 | margin: 0 auto; /* 使表格默认居中;虽然这个代码不好,但好像没别的实现办法 */ 163 | } 164 | 165 | #write table td { 166 | padding: 2px; 167 | } 168 | 169 | #write table tr { 170 | padding: 2px; 171 | } 172 | 173 | #write th { 174 | padding: 0px 6px; 175 | } 176 | 177 | /* 表格标题(首行)样式 */ 178 | #write thead { 179 | border-bottom: 0.5pt solid; /* 三线表表头的线 */ 180 | font-family: var(--table-title-font), var(--heading-Latin-font), var(--heading-Chinese-font), serif !important; 181 | /* font-size: var(--base-font-size); */ 182 | font-weight: var(--strong-weight); 183 | } 184 | 185 | hr { 186 | border-top: solid 0.7px #EEE; 187 | } 188 | 189 | img { 190 | page-break-inside: avoid; /* 避免图片在导出时被断开 */ 191 | } 192 | 193 | /* ============ 多级列表样式 ============ */ 194 | ul { 195 | list-style: disc; /* 无序列表第一级:实心圆点 */ 196 | } 197 | 198 | ul ul { 199 | /*list-style: circle;*/ 200 | list-style: '–  '; /* 直接用空格代替一部分缩进的调整了我真懒 */ 201 | /*left: -0.8em;*/ 202 | } 203 | 204 | ul ul ul { 205 | list-style: "◦  "; /* 无序列表第三极:小圈 */ 206 | left: 0.6em; 207 | } 208 | 209 | ol { 210 | list-style: decimal; 211 | /* 有序列表第一级:数字 */ 212 | } 213 | 214 | ol ol { 215 | counter-reset: liist; 216 | list-style: none; 217 | } 218 | ol ol li { 219 | counter-increment: liist; 220 | position: relative; 221 | } 222 | ol ol li::before { 223 | content: "("counter(liist, lower-alpha) ")  "; /* 有序列表第二级:括号加小写字母 */ 224 | position: absolute; 225 | margin-right: 2rem; 226 | left: -2.4em; 227 | } 228 | 229 | ol ol ol { 230 | counter-reset: liiist; 231 | list-style: none; 232 | margin: 0; 233 | } 234 | ol ol ol li { 235 | counter-increment: liiist; 236 | position: relative; 237 | } 238 | ol ol ol li::before { 239 | content: counter(liiist, lower-roman) ".   "; /* 有序列表第三级:小写罗马数字 这些后续还要改的可恶*/ 240 | align-self: flex-end; 241 | position: absolute; 242 | left: -2.4em; 243 | /* -moz-box-sizing: border-box; 244 | -webkit-box-sizing: border-box; 245 | box-sizing: border-box;*/ 246 | width: 4em; /* 为了让项目编号是重新用句点对齐而不是左对齐我调试了一整个晚上啊啊啊啊 CSS好难写 */ 247 | text-align: right; 248 | } 249 | 250 | li { 251 | position: relative; 252 | } 253 | /* ============ 多级列表样式END ============ */ 254 | 255 | 256 | /* 行内代码 */ 257 | p code, 258 | li code { 259 | color: rgb(60, 112, 198); 260 | background-color: #fefefe; 261 | font-family: var(--code-font), var(--ui-font), monospace; 262 | box-sizing: border-box; 263 | border-right: 0px; 264 | margin: 0 2px 0 2px; 265 | padding: 0 2px 0 2px; 266 | border-radius: 2px 2px 2px 2px; /* 圆角 */ 267 | box-shadow: 0 0 1px 1px #c8d3df; /* 阴影 */ 268 | } 269 | 270 | /* 代码块样式*/ 271 | #write .CodeMirror-wrap { 272 | padding: 10px; /* 当代码太长跨页的时候好像也会有点问题,到时候再改 */ 273 | } 274 | 275 | #write .CodeMirror-code pre { 276 | font-family: var(--code-font), var(--ui-font), monospace; 277 | } 278 | 279 | /* typora 编写模式 */ 280 | #typora-source { 281 | font-family: var(--sourceMode-font), var(--code-font), var(--ui-font), monospace; 282 | line-height: 2rem; 283 | } 284 | 285 | /* 下面是标题自动编号,初始化计数器。使用多级编号,编号后加空格模仿LaTeX */ 286 | /* 首先全局进行一次reset,这样即使不添加h1标题也可以使用较低级别的标题 */ 287 | #write { 288 | counter-reset: h2 0 h3 0 h4 0 h5 0 h6 0 289 | } 290 | 291 | #write h1 { 292 | counter-reset: h2 293 | } 294 | h2 { 295 | counter-reset: h3 296 | } 297 | h3 { 298 | counter-reset: h4 299 | } 300 | h4 { 301 | counter-reset: h5 302 | } 303 | h5 { 304 | counter-reset: h6 305 | } 306 | 307 | /* put counter result into headings */ 308 | #write h2:before { 309 | counter-increment: h2; 310 | content: counter(h2); 311 | margin-right: 2rem; 312 | } 313 | /** override the default style for focused headings */ 314 | #write h3:before, 315 | h3.md-focus.md-heading:before { 316 | counter-increment: h3; 317 | content: counter(h2) "."counter(h3); 318 | margin-right: 2rem; 319 | } 320 | #write h4:before, 321 | h4.md-focus.md-heading:before { 322 | counter-increment: h4; 323 | content: counter(h2) "."counter(h3) "."counter(h4); 324 | margin-right: 2rem; 325 | } 326 | #write h5:before, 327 | h5.md-focus.md-heading:before { 328 | counter-increment: h5; 329 | content: counter(h2) "."counter(h3) "."counter(h4) "."counter(h5); 330 | margin-right: 2rem; 331 | } 332 | #write h6:before, 333 | h6.md-focus.md-heading:before { 334 | counter-increment: h6; 335 | content: counter(h2) "."counter(h3) "."counter(h4) "."counter(h5) "."counter(h6); 336 | margin-right: 2rem; 337 | } 338 | 339 | /* 目录 */ 340 | .md-toc-content { 341 | margin-left: 2em; 342 | counter-reset: toc-h2 toc-h3 toc-h4; /* 修复缺失上级标题时无法递增 */ 343 | page-break-after: always; 344 | } 345 | .md-toc-inner { 346 | margin-left: 0 !important; 347 | color: black !important; 348 | } 349 | .md-toc-item { 350 | color: black !important; 351 | } 352 | 353 | /* 目录标题内容属性 */ 354 | .md-toc-h2, 355 | .md-toc-h3, 356 | .md-toc-h4, 357 | .md-toc-h5, 358 | .md-toc-h6 { 359 | font-size: var(--toc-font-size); 360 | font-family: var(--toc-font), var(--base-Latin-font), var(--base-Chinese-font), serif; 361 | } 362 | .md-toc-h2 { 363 | font-weight: var(--strong-weight); 364 | } 365 | 366 | /* 目录标题前 */ 367 | .md-toc-content .md-toc-h1 { 368 | display: var(--toc-show-title); 369 | counter-reset: toc-h2; 370 | } 371 | .md-toc-content .md-toc-h2 { 372 | counter-reset: toc-h3; 373 | } 374 | .md-toc-content .md-toc-h3 { 375 | counter-reset: toc-h4; 376 | } 377 | .md-toc-content .md-toc-h4 { 378 | counter-reset: toc-h5; 379 | } 380 | .md-toc-content .md-toc-h5 { 381 | counter-reset: toc-h6; 382 | } 383 | .md-toc-content .md-toc-h2:before { 384 | counter-increment: toc-h2; 385 | content: counter(toc-h2); 386 | margin-right: 1rem; 387 | font-weight: var(--strong-weight); 388 | } 389 | .md-toc-content .md-toc-h3:before { 390 | counter-increment: toc-h3; 391 | content: counter(toc-h2) "."counter(toc-h3); 392 | margin-left: 1.5rem; 393 | margin-right: 0.5rem; 394 | } 395 | .md-toc-content .md-toc-h4:before { 396 | counter-increment: toc-h4; 397 | content: counter(toc-h2) "."counter(toc-h3) "."counter(toc-h4); 398 | margin-left: 3.5rem; 399 | margin-right: 0.5rem; 400 | } 401 | .md-toc-content .md-toc-h5:before { 402 | counter-increment: toc-h5; 403 | content: counter(toc-h2) "."counter(toc-h3) "."counter(toc-h4) "."counter(toc-h5); 404 | margin-left: 5.5rem; 405 | margin-right: 0.5rem; 406 | } 407 | .md-toc-content .md-toc-h6:before { 408 | counter-increment: toc-h6; 409 | content: counter(toc-h2) "."counter(toc-h3) "."counter(toc-h4) "."counter(toc-h5) "."counter(toc-h6); 410 | margin-left: 7.5rem; 411 | margin-right: 0.5rem; 412 | } 413 | 414 | /* 侧边大纲标题 */ 415 | .sidebar-content .outline-h1 { 416 | counter-reset: outline-h2; 417 | } 418 | .sidebar-content .outline-h2 { 419 | counter-reset: outline-h3; 420 | } 421 | .sidebar-content .outline-h3 { 422 | counter-reset: outline-h4; 423 | } 424 | .sidebar-content .outline-h4 { 425 | counter-reset: outline-h5; 426 | } 427 | .sidebar-content .outline-h5 { 428 | counter-reset: outline-h6; 429 | } 430 | .sidebar-content .outline-h2 .outline-label:before { 431 | counter-increment: outline-h2; 432 | content: counter(outline-h2) " "; 433 | } 434 | .sidebar-content .outline-h3 .outline-label:before { 435 | counter-increment: outline-h3; 436 | content: counter(outline-h2) "."counter(outline-h3) " "; 437 | } 438 | .sidebar-content .outline-h4 .outline-label:before { 439 | counter-increment: outline-h4; 440 | content: counter(outline-h2) "."counter(outline-h3) "."counter(outline-h4) " "; 441 | } 442 | .sidebar-content .outline-h5 .outline-label:before { 443 | counter-increment: outline-h5; 444 | content: counter(outline-h2) "."counter(outline-h3) "."counter(outline-h4) "."counter(outline-h5) " "; 445 | } 446 | 447 | .sidebar-content { 448 | font-family: var(--ui-font); /* 侧边栏的字体修改 */ 449 | list-style: none; 450 | } 451 | 452 | /* 元数据(如YAML front matter)的背景框 */ 453 | pre.md-meta-block { 454 | background: #CCCCCC; 455 | padding: 1.4em; 456 | font-family: var(--code-font), var(--ui-font), monospace; 457 | } 458 | 459 | /** override the default style for focused headings */ 460 | #write>h3.md-focus:before, 461 | #write>h4.md-focus:before, 462 | #write>h5.md-focus:before, 463 | #write>h6.md-focus:before, 464 | h3.md-focus:before, 465 | h4.md-focus:before, 466 | h5.md-focus:before, 467 | h6.md-focus:before { 468 | color: inherit; 469 | border: inherit; 470 | border-radius: inherit; 471 | position: inherit; 472 | left: initial; 473 | float: none; 474 | top: initial; 475 | font-size: inherit; 476 | padding-left: inherit; 477 | padding-right: inherit; 478 | vertical-align: inherit; 479 | font-weight: inherit; 480 | line-height: inherit; 481 | } -------------------------------------------------------------------------------- /Windows/latex/userCustom.css: -------------------------------------------------------------------------------- 1 | /* ============================================ 2 | * ============ TYPORA lATEX THEME ============ 3 | * ============================================ 4 | */ 5 | 6 | /* userCustom on Windows */ 7 | 8 | :root { 9 | 10 | /* == 字体设置 == */ 11 | 12 | /* 基准字体 */ 13 | --base-Latin-font: "Times New Roman", Times; /* 备选:Times, "Times New Roman" */ 14 | --base-Chinese-font: 宋体-简, 华文宋体; 15 | --base-font-size: 12pt; /* 小四字体 */ 16 | 17 | /* 引言字体 */ 18 | --quote-font: "Times New Roman", Times, "Latin Modern Roman", "Latin Modern Roman 10", 华文仿宋; 19 | --quote-font-size: 12.5pt; 20 | 21 | /* 代码字体(代码中的中文会调用ui-font) */ 22 | --code-font: "Latin Modern Mono", "Latin Modern Mono 10"; 23 | 24 | /* 侧边栏字体 */ 25 | --ui-font: "阿里巴巴普惠体 2.0"; 26 | 27 | /* source mode 字体 */ 28 | --sourceMode-font: "SF Mono", "阿里巴巴普惠体 2.0"; /* 默认调用code-font和ui-font */ 29 | 30 | /* 目录字体 */ 31 | --toc-font: ""; /* 默认调用base-font */ 32 | --toc-font-size: ""; /* 默认调用base-font-size */ 33 | 34 | /* 表格字体 */ 35 | --table-title-font: ""; /* 默认调用heading-font */ 36 | --table-font: ""; /* 默认调用base-font */ 37 | 38 | /* 标题字体(总设置) */ 39 | --heading-Latin-font: var(--base-Latin-font); /* 默认调用base-font(bold) */ 40 | --heading-Chinese-font: 华文黑体; 41 | 42 | /* 标题字体分别设置 */ 43 | /* 大标题(h1)字体 */ 44 | --title-Chinese-font: "华文黑体"; 45 | --title-font-size: 16pt; 46 | /* h2字体 */ 47 | --h2-Chinese-font: 华文黑体; 48 | --h2-font-size: 14pt; 49 | /* h3字体 */ 50 | --h3-Chinese-font: "华文黑体"; 51 | --h3-font-size: 14pt; 52 | /* h4字体 */ 53 | --h4-Chinese-font: 华文楷体; 54 | --h4-font-size: 12pt; 55 | /* h5字体 */ 56 | --h5-Chinese-font: 华文仿宋; 57 | --h5-font-size: 12pt; 58 | /* h6字体 */ 59 | --h6-Chinese-font: 华文仿宋; 60 | --h6-font-size: 12pt; 61 | 62 | /* 粗体样式设置 */ 63 | --strong-weight: 900; /* 加粗风格时使用的字重;400等同于normal,700等同于bold,900等同于heavy */ 64 | 65 | /* 基础行距 */ 66 | --base-line-height: 16pt; 67 | 68 | /* == 页面设置 == */ 69 | /* 打印页边距 */ 70 | --set-margin: 1.8cm 2cm 1.2cm 2cm !important; 71 | /* 参阅 */ 72 | 73 | /* == 控制设置 == */ 74 | /* 目录中是否显示一级标题 */ 75 | --toc-show-title: none; 76 | } -------------------------------------------------------------------------------- /image/cover_1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KuangjuX-Archived/TJU-typora-latex-theme/634011886e4269a833c66508b822f663b7edb8b8/image/cover_1.jpg -------------------------------------------------------------------------------- /image/logo_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KuangjuX-Archived/TJU-typora-latex-theme/634011886e4269a833c66508b822f663b7edb8b8/image/logo_1.png -------------------------------------------------------------------------------- /image/logo_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KuangjuX-Archived/TJU-typora-latex-theme/634011886e4269a833c66508b822f663b7edb8b8/image/logo_2.png -------------------------------------------------------------------------------- /macOS/latex-dark.css: -------------------------------------------------------------------------------- 1 | /* ============================================ 2 | * ============ TYPORA lATEX THEME ============ 3 | * ============================================ 4 | * THIS PROJECT IS BASED ON THE WORKS OF YFZHAO20 AND DU33169, 5 | WHOSE REPOSITORIES ARE ADRESSED ON 6 | 7 | AND , 8 | MANY THANKS TO THEM. 9 | * "TYPORA LATEX THEME" (MARKDOWN LATEX THEME) 10 | IS A THEME FOR TYPORA (OR CSS FOR OTHER MARKDOWN EDITORS), 11 | DESIGNED FOR CHINESE UNIVERSITY STUDENTS 12 | USED IN LATEX-STYLED ESSAYS OR EXPERIMENTAL REPORTS. 13 | * COPYRIGHT (C) 2021 KELDOS; 14 | REPOSITORY ADDRESS: ; 15 | LISENCED UNDER GPL v3.0, SEE 16 | */ 17 | 18 | /* LaTeX-dark on macOS */ 19 | 20 | @import "./latex/userCustom.css"; 21 | 22 | :root { 23 | --md-char-color: hsl(212, 100%, 85%); 24 | --link-hover: hsl(212, 100%, 85%); 25 | --focus-cont-bg: hsl(0, 0%, 10%); 26 | --focus-para-bg: hsl(0, 0%, 15%); 27 | --opt-borderb: 1px dashed hsl(212, 100%, 65%); 28 | --focus-shadow: 0px 8px 16px 0 rgba(0, 0, 0, 0.9); 29 | --opt-shadow: 0px 8px 16px 1px hsla(0, 0%, 0%, 0.3); 30 | 31 | --side-bar-bg-color: #282828; /*change background of sidebar*/ 32 | --window-border: 0px solid #929292; 33 | --title-color: #DDDDDD; 34 | --text-color: #DCDCDC; 35 | --select-text-bg-color: #9AB1CF; 36 | --select-text-font-color: #161616; 37 | /*--bg-color: hsl(0, 0%, 15%);*/ 38 | --mermaid-theme: night; 39 | } 40 | 41 | body { 42 | padding: 0 !important; 43 | margin: 0 !important; 44 | line-height: var(--base-line-height); 45 | /*counter-reset: tableHead 0 imgHead 0;*/ 46 | color: #DDDDDD; /* 黑色模式修改 */ 47 | background-color: #282828; /* 黑色模式修改 */ 48 | /*background:url(mermaidAPI.initialize({'fontFamily': '宋体-简, serif;'});); 可恶,不行 */ 49 | } 50 | 51 | /* 正文区基本属性,参照wordTeX模板设置字体大小*/ 52 | #write { 53 | font-family: var(--base-Latin-font), var(--base-Chinese-font), serif; 54 | font-size: var(--base-font-size); 55 | max-width: 21cm;/* A4标准宽度 */ 56 | background-color: #1E1E1E; /* 黑色模式修改 */ 57 | /* column-count: 2; 58 | column-gap: 25px; 59 | column-width: 8cm; 60 | display: inline-block; */ 61 | /* 这里可以试分栏的,但确实不适合实现 */ 62 | } 63 | 64 | strong { 65 | font-weight: var(--strong-weight); 66 | } 67 | 68 | @media screen { 69 | #write { 70 | padding: var(--set-margin); 71 | /*border: 1px solid #AAAAAA ;*/ 72 | box-shadow: 0 0 24px 12px #101010; /* 页边来一个阴影!!好耶 */ 73 | } 74 | } 75 | 76 | @media print { 77 | #write { 78 | padding: 0 !important; 79 | } 80 | #write a { 81 | color: inherit; 82 | text-decoration: none; 83 | } 84 | @page { 85 | /* size: A4; 强制A4大小 */ 86 | margin: 1.8cm 2cm 1.2cm 2cm !important; /* 虽然暗色不支持导出,但还是放着 */ 87 | } 88 | } 89 | 90 | #write p { 91 | text-align: left; 92 | } 93 | 94 | /* 95 | #write figure:after{ 96 | counter-increment: tableHead; 97 | content: "表" counter(tableHead) " "; 98 | text-align:center; 99 | width:100%; 100 | display:inline-block; 101 | }*/ 102 | /* 图片,导出PDF时暂时无法显示 */ 103 | /* 104 | #write .md-image:after{ 105 | counter-increment: imgHead; 106 | content: "图" counter(imgHead) " "; 107 | text-align:center; 108 | width:100%; 109 | display:inline-block; 110 | } 111 | */ 112 | 113 | /* basic样式采用一般的引言,具有左边框、左缩进 */ 114 | blockquote { 115 | font-style: normal; 116 | font-family: var(--quote-font), var(--base-Latin-font), var(--base-Chinese-font), -apple-system, serif; 117 | font-size: var(--quote-font-size); 118 | border-left: 3px solid grey; 119 | padding-left: 16px; /* 文字离左边框的距离 */ 120 | padding-right: 20pt; 121 | margin-left: 20px; /* 左边框离页面边的距离 */ 122 | color: #BFBFBF; /* 文字颜色 */ 123 | } 124 | 125 | /*border-width: 0.5pt 0; 126 | border-style:solid; 这一行本来使用了上下边框*/ 127 | 128 | /* 标题属性 */ 129 | #write h1, 130 | #write h2, 131 | #write h3, 132 | #write h4, 133 | #write h5, 134 | #write h6 { 135 | font-weight: normal; 136 | font-family: var(--heading-Latin-font), var(--heading-Chinese-font), sans-serif; 137 | page-break-after: avoid !important; 138 | } 139 | 140 | #write h1 { 141 | font-family: var(--heading-Latin-font), var(--title-Chinese-font), sans-serif; 142 | font-weight: bold; 143 | text-align: center; 144 | column-span: all; 145 | font-size: var(--title-font-size); 146 | } 147 | #write h2 { 148 | font-family: var(--heading-Latin-font), var(--h2-Chinese-font), sans-serif; 149 | font-size: var(--h2-font-size); 150 | } 151 | #write h3 { 152 | font-family: var(--heading-Latin-font), var(--h3-Chinese-font), sans-serif; 153 | font-size: var(--h3-font-size); 154 | line-height: var(--h3-font-size); 155 | } 156 | #write h4 { 157 | font-family: var(--heading-Latin-font), var(--h4-Chinese-font), sans-serif; 158 | font-size: var(--h4-font-size); 159 | line-height: var(--h4-font-size); 160 | } 161 | #write h5 { 162 | font-family: var(--heading-Latin-font), var(--h5-Chinese-font), sans-serif; 163 | font-size: var(--h5-font-size); 164 | line-height: var(--h5-font-size); 165 | } 166 | #write h6 { 167 | font-family: var(--heading-Latin-font), var(--h6-Chinese-font), sans-serif; 168 | font-size: var(--h6-font-size); 169 | line-height: var(--h5-font-size); /* 没有写错,为了避免行距太小才这么写 */ 170 | } 171 | 172 | 173 | /* 三线表 */ 174 | #write table { 175 | border-top: 1.2pt solid; /* 三线表第一条线宽度 */ 176 | border-bottom: 1.2pt solid; /* 三线表第二条线宽度 */ 177 | font-family: var(--table-font), var(--base-Latin-font), var(--base-Chinese-font), serif; 178 | /* font-size: var(--base-font-size); */ 179 | text-align: center; 180 | page-break-inside: avoid; 181 | border-spacing: 6px; 182 | width: auto; /* 自动布局表格宽度,如果有时内容太紧建议直接加空格吧,我自己看不惯和页面等宽的大表格 */ 183 | margin: 0 auto; /* 使表格默认居中;虽然这个代码不好,但好像没别的实现办法 */ 184 | } 185 | 186 | #write table td { 187 | padding: 2px; 188 | } 189 | 190 | #write table tr { 191 | padding: 2px; 192 | } 193 | 194 | #write th { 195 | padding: 0px 6px; 196 | } 197 | 198 | /* 表格标题(首行)样式 */ 199 | #write thead { 200 | border-bottom: 0.5pt solid; /* 三线表表头的线 */ 201 | font-family: var(--table-title-font), var(--heading-Latin-font), var(--heading-Chinese-font), serif !important; 202 | /* font-size: var(--base-font-size); */ 203 | font-weight: var(--strong-weight); 204 | } 205 | 206 | hr { 207 | border-top: solid 0.7px #888888; 208 | } 209 | 210 | img { 211 | page-break-inside: avoid; /* 避免图片在导出时被断开 */ 212 | } 213 | 214 | /* ============ 多级列表样式 ============ */ 215 | ul { 216 | list-style: disc; /* 无序列表第一级:实心圆点 */ 217 | } 218 | 219 | ul ul { 220 | /*list-style: circle;*/ 221 | list-style: '–  '; /* 直接用空格代替一部分缩进的调整了我真懒 */ 222 | /*left: -0.8em;*/ 223 | } 224 | 225 | ul ul ul { 226 | list-style: "◦  "; /* 无序列表第三极:小圈 */ 227 | left: 0.6em; 228 | } 229 | 230 | ol { 231 | list-style: decimal; 232 | /* 有序列表第一级:数字 */ 233 | } 234 | 235 | ol ol { 236 | counter-reset: liist; 237 | list-style: none; 238 | } 239 | ol ol li { 240 | counter-increment: liist; 241 | position: relative; 242 | } 243 | ol ol li::before { 244 | content: "("counter(liist, lower-alpha) ")  "; /* 有序列表第二级:括号加小写字母 */ 245 | position: absolute; 246 | margin-right: 2rem; 247 | left: -2.4em; 248 | } 249 | 250 | ol ol ol { 251 | counter-reset: liiist; 252 | list-style: none; 253 | margin: 0; 254 | } 255 | ol ol ol li { 256 | counter-increment: liiist; 257 | position: relative; 258 | } 259 | ol ol ol li::before { 260 | content: counter(liiist, lower-roman) ".   "; /* 有序列表第三级:小写罗马数字 这些后续还要改的可恶*/ 261 | align-self: flex-end; 262 | position: absolute; 263 | left: -2.4em; 264 | /* -moz-box-sizing: border-box; 265 | -webkit-box-sizing: border-box; 266 | box-sizing: border-box;*/ 267 | width: 4em; /* 为了让项目编号是重新用句点对齐而不是左对齐我调试了一整个晚上啊啊啊啊 CSS好难写 */ 268 | text-align: right; 269 | } 270 | 271 | li { 272 | position: relative; 273 | } 274 | /* ============ 多级列表样式END ============ */ 275 | 276 | 277 | /* 行内代码 */ 278 | p code, 279 | li code { 280 | color: #8BB1F9; /* 黑色模式修改 */ 281 | background-color: #161616; /* 黑色模式修改 */ 282 | font-family: var(--code-font), var(--ui-font), monospace; 283 | box-sizing: border-box; 284 | border-right: 0px; 285 | margin: 0 2px 0 2px; 286 | padding: 0 2px 0 2px; 287 | border-radius: 2px 2px 2px 2px; /* 圆角 */ 288 | box-shadow: 0 0 1px 1px #141414; /* 黑色模式修改 */ 289 | } 290 | 291 | /* 代码块样式*/ 292 | #write .CodeMirror-wrap { 293 | padding: 10px; /* 当代码太长跨页的时候好像也会有点问题,到时候再改 */ 294 | } 295 | 296 | #write .CodeMirror-code pre { 297 | font-family: var(--code-font), var(--ui-font), monospace; 298 | } 299 | 300 | /* typora 编写模式 */ 301 | #typora-source { 302 | /* background: ;*/ 303 | color: #DDDDDD; 304 | font-family: var(--sourceMode-font), var(--code-font), var(--ui-font), monospace; 305 | line-height: 2rem; 306 | } 307 | 308 | /* 下面是标题自动编号,初始化计数器。使用多级编号,编号后加空格模仿LaTeX */ 309 | /* 首先全局进行一次reset,这样即使不添加h1标题也可以使用较低级别的标题 */ 310 | #write { 311 | counter-reset: h2 0 h3 0 h4 0 h5 0 h6 0 312 | } 313 | 314 | #write h1 { 315 | counter-reset: h2 316 | } 317 | h2 { 318 | counter-reset: h3 319 | } 320 | h3 { 321 | counter-reset: h4 322 | } 323 | h4 { 324 | counter-reset: h5 325 | } 326 | h5 { 327 | counter-reset: h6 328 | } 329 | 330 | /* put counter result into headings */ 331 | #write h2:before { 332 | counter-increment: h2; 333 | content: counter(h2); 334 | margin-right: 2rem; 335 | } 336 | /** override the default style for focused headings */ 337 | #write h3:before, 338 | h3.md-focus.md-heading:before { 339 | counter-increment: h3; 340 | content: counter(h2) "."counter(h3); 341 | margin-right: 2rem; 342 | } 343 | #write h4:before, 344 | h4.md-focus.md-heading:before { 345 | counter-increment: h4; 346 | content: counter(h2) "."counter(h3) "."counter(h4); 347 | margin-right: 2rem; 348 | } 349 | #write h5:before, 350 | h5.md-focus.md-heading:before { 351 | counter-increment: h5; 352 | content: counter(h2) "."counter(h3) "."counter(h4) "."counter(h5); 353 | margin-right: 2rem; 354 | } 355 | #write h6:before, 356 | h6.md-focus.md-heading:before { 357 | counter-increment: h6; 358 | content: counter(h2) "."counter(h3) "."counter(h4) "."counter(h5) "."counter(h6); 359 | margin-right: 2rem; 360 | } 361 | 362 | /* 目录 */ 363 | .md-toc-content { 364 | margin-left: 2em; 365 | counter-reset: toc-h2 toc-h3 toc-h4; /* 修复缺失上级标题时无法递增 */ 366 | page-break-after: always; 367 | } 368 | .md-toc-inner { 369 | margin-left: 0 !important; 370 | color: #DDDDDD !important; 371 | } 372 | .md-toc-item { 373 | color: #DDDDDD !important; 374 | } 375 | 376 | /* 目录标题内容属性 */ 377 | .md-toc-h2, 378 | .md-toc-h3, 379 | .md-toc-h4, 380 | .md-toc-h5, 381 | .md-toc-h6 { 382 | font-size: var(--toc-font-size); 383 | font-family: var(--toc-font), var(--base-Latin-font), var(--base-Chinese-font), serif; 384 | } 385 | .md-toc-h2 { 386 | font-weight: var(--strong-weight); 387 | } 388 | 389 | /* 目录标题前 */ 390 | .md-toc-content .md-toc-h1 { 391 | display: var(--toc-show-title); 392 | counter-reset: toc-h2; 393 | } 394 | .md-toc-content .md-toc-h2 { 395 | counter-reset: toc-h3; 396 | } 397 | .md-toc-content .md-toc-h3 { 398 | counter-reset: toc-h4; 399 | } 400 | .md-toc-content .md-toc-h4 { 401 | counter-reset: toc-h5; 402 | } 403 | .md-toc-content .md-toc-h5 { 404 | counter-reset: toc-h6; 405 | } 406 | .md-toc-content .md-toc-h2:before { 407 | counter-increment: toc-h2; 408 | content: counter(toc-h2); 409 | margin-right: 1rem; 410 | font-weight: var(--strong-weight); 411 | } 412 | .md-toc-content .md-toc-h3:before { 413 | counter-increment: toc-h3; 414 | content: counter(toc-h2) "."counter(toc-h3); 415 | margin-left: 1.5rem; 416 | margin-right: 0.5rem; 417 | } 418 | .md-toc-content .md-toc-h4:before { 419 | counter-increment: toc-h4; 420 | content: counter(toc-h2) "."counter(toc-h3) "."counter(toc-h4); 421 | margin-left: 3.5rem; 422 | margin-right: 0.5rem; 423 | } 424 | .md-toc-content .md-toc-h5:before { 425 | counter-increment: toc-h5; 426 | content: counter(toc-h2) "."counter(toc-h3) "."counter(toc-h4) "."counter(toc-h5); 427 | margin-left: 5.5rem; 428 | margin-right: 0.5rem; 429 | } 430 | .md-toc-content .md-toc-h6:before { 431 | counter-increment: toc-h6; 432 | content: counter(toc-h2) "."counter(toc-h3) "."counter(toc-h4) "."counter(toc-h5) "."counter(toc-h6); 433 | margin-left: 7.5rem; 434 | margin-right: 0.5rem; 435 | } 436 | 437 | /* 侧边大纲标题 */ 438 | .sidebar-content .outline-h1 { 439 | counter-reset: outline-h2; 440 | } 441 | .sidebar-content .outline-h2 { 442 | counter-reset: outline-h3; 443 | } 444 | .sidebar-content .outline-h3 { 445 | counter-reset: outline-h4; 446 | } 447 | .sidebar-content .outline-h4 { 448 | counter-reset: outline-h5; 449 | } 450 | .sidebar-content .outline-h5 { 451 | counter-reset: outline-h6; 452 | } 453 | .sidebar-content .outline-h2 .outline-label:before { 454 | counter-increment: outline-h2; 455 | content: counter(outline-h2) " "; 456 | } 457 | .sidebar-content .outline-h3 .outline-label:before { 458 | counter-increment: outline-h3; 459 | content: counter(outline-h2) "."counter(outline-h3) " "; 460 | } 461 | .sidebar-content .outline-h4 .outline-label:before { 462 | counter-increment: outline-h4; 463 | content: counter(outline-h2) "."counter(outline-h3) "."counter(outline-h4) " "; 464 | } 465 | .sidebar-content .outline-h5 .outline-label:before { 466 | counter-increment: outline-h5; 467 | content: counter(outline-h2) "."counter(outline-h3) "."counter(outline-h4) "."counter(outline-h5) " "; 468 | } 469 | 470 | .sidebar-content { 471 | font-family: var(--ui-font); /* 侧边栏的字体修改 */ 472 | list-style: none; 473 | } 474 | 475 | .sidebar-content { 476 | font-family: var(--ui-font); /* 侧边栏的字体修改 */ 477 | list-style: none; 478 | background-color: #282828; /* 黑色模式修改 */ 479 | color: #E9E9E9; 480 | } 481 | 482 | /* 元数据(如YAML front matter)的背景框 */ 483 | pre.md-meta-block { 484 | background: #161616; 485 | color: white !important; 486 | padding: 1.4em; 487 | font-family: var(--code-font), var(--ui-font), monospace; 488 | } 489 | 490 | /** override the default style for focused headings */ 491 | #write>h3.md-focus:before, 492 | #write>h4.md-focus:before, 493 | #write>h5.md-focus:before, 494 | #write>h6.md-focus:before, 495 | h3.md-focus:before, 496 | h4.md-focus:before, 497 | h5.md-focus:before, 498 | h6.md-focus:before { 499 | color: inherit; 500 | border: inherit; 501 | border-radius: inherit; 502 | position: inherit; 503 | left:initial; 504 | float: none; 505 | top:initial; 506 | font-size: inherit; 507 | padding-left: inherit; 508 | padding-right: inherit; 509 | vertical-align: inherit; 510 | font-weight: inherit; 511 | line-height: inherit; 512 | } 513 | 514 | 515 | /* Modifications for dark-mode */ 516 | /*下面是针对代码块的修改,各部分含义由名称可以知道 */ 517 | /*.cm-s-inner .cm-variable { 518 | color: #fff; 519 | } 520 | .cm-s-inner .cm-operator { 521 | color: #69fc9a; 522 | } 523 | .cm-s-inner .cm-keyword { 524 | color: #fcad7e; 525 | } 526 | .cm-s-inner .cm-string { 527 | color: #01e5f9; 528 | } 529 | .cm-s-inner .cm-def { 530 | color: #93598f; 531 | } 532 | .cm-s-inner .cm-meta { 533 | color: #ad9494; 534 | } 535 | .cm-s-inner .cm-builtin { 536 | color: #7f69b1; 537 | } 538 | .cm-s-inner .cm-number { 539 | color: #8c5853; 540 | }*/ 541 | 542 | /* ====================我加的================== */ 543 | /*.cm-s-inner { 544 | background-color: #263238; 545 | color: rgba(233, 237, 237); 546 | }*/ 547 | /*.cm-s-inner .CodeMirror-gutters { 548 | background: #263238; 549 | color: #537f7e; 550 | border: none; 551 | }*/ 552 | /*.cm-s-inner .CodeMirror-guttermarker, 553 | .cm-s-inner .CodeMirror-guttermarker-subtle, 554 | .cm-s-inner .CodeMirror-linenumber { 555 | color: #537f7e; 556 | }*/ 557 | .cm-s-inner .CodeMirror-cursor { 558 | border-left: 1px solid #f8f8f0; 559 | } 560 | .cm-s-inner div.CodeMirror-selected { 561 | background: rgba(255, 255, 255, 0.15); 562 | } 563 | .cm-s-inner.CodeMirror-focused div.CodeMirror-selected { 564 | background: rgba(255, 255, 255, 0.1); 565 | } 566 | .cm-s-inner .CodeMirror-line::selection, 567 | .cm-s-inner .CodeMirror-line > span::selection, 568 | .cm-s-inner .CodeMirror-line > span > span::selection { 569 | background: rgba(255, 255, 255, 0.1); 570 | } 571 | .cm-s-inner .CodeMirror-line::-moz-selection, 572 | .cm-s-inner .CodeMirror-line > span::-moz-selection, 573 | .cm-s-inner .CodeMirror-line > span > span::-moz-selection { 574 | background: rgba(255, 255, 255, 0.1); 575 | } 576 | .cm-s-inner .CodeMirror-activeline-background { 577 | background: rgba(0, 0, 0, 0); 578 | } 579 | .cm-s-inner .cm-keyword { 580 | color: #c792ea; 581 | } 582 | .cm-s-inner .cm-operator { 583 | color: #e9eded; 584 | } 585 | .cm-s-inner .cm-variable-2 { 586 | color: #80CBC4; 587 | } 588 | .cm-s-inner .cm-variable-3 { 589 | color: #82B1FF; 590 | } 591 | .cm-s-inner .cm-builtin { 592 | color: #DECB6B; 593 | } 594 | .cm-s-inner .cm-atom { 595 | color: #F77669; 596 | } 597 | .cm-s-inner .cm-number { 598 | color: #F77669; 599 | } 600 | .cm-s-inner .cm-def { 601 | color: #e9eded; 602 | } 603 | .cm-s-inner .cm-string { 604 | color: #C3E88D; 605 | } 606 | .cm-s-inner .cm-string-2 { 607 | color: #80CBC4; 608 | } 609 | .cm-s-inner .cm-comment { 610 | color: #546E7A; 611 | } 612 | .cm-s-inner .cm-variable { 613 | color: #82B1FF; 614 | } 615 | .cm-s-inner .cm-tag { 616 | color: #80CBC4; 617 | } 618 | .cm-s-inner .cm-meta { 619 | color: #80CBC4; 620 | } 621 | .cm-s-inner .cm-attribute { 622 | color: #FFCB6B; 623 | } 624 | .cm-s-inner .cm-property { 625 | color: #80CBAE; 626 | } 627 | .cm-s-inner .cm-qualifier { 628 | color: #DECB6B; 629 | } 630 | .cm-s-inner .cm-variable-3 { 631 | color: #DECB6B; 632 | } 633 | .cm-s-inner .cm-tag { 634 | color: #ff5370; 635 | } 636 | .cm-s-inner .cm-error { 637 | color: #ffffff; 638 | background-color: #EC5F67; 639 | } 640 | .cm-s-inner .CodeMirror-matchingbracket { 641 | text-decoration: underline; 642 | color: white !important; 643 | } 644 | .cm-s-inner .cm-link, 645 | .cm-s-inner.cm-link { 646 | color: #4770C0; 647 | } 648 | 649 | .md-fences { 650 | /*background-color: #0E1116;*/ 651 | /*color: #e9eded;*/ 652 | } 653 | .md-fences .code-tooltip { 654 | background-color: #282828; 655 | } 656 | #write pre.md-fences { 657 | /*padding: 10rem;*/ 658 | } 659 | 660 | /* 改变光标的颜色,在黑暗背景下能显示*/ 661 | .CodeMirror div.CodeMirror-cursor { 662 | border-left: 1px solid #ffffff; 663 | z-index: 3; 664 | } 665 | 666 | :root { 667 | --blur-text-color: hsla(0, 0%, 90%, 0.2); 668 | --active-file-bg-color: hsl(0, 0%, 5%); 669 | /* 文件列表 当前文件激活 背景色*/ 670 | --active-file-text-color: hsl(212, 100%, 75%); 671 | --active-file-border-color: hsl(212, 100%, 75%); 672 | /* 树形结构下文件激活边框色 */ 673 | /*--side-bar-bg-color: hsl(0, 0%, 10%);*/ 674 | /*文件 大纲 侧边栏 背景色*/ 675 | --item-hover-bg-color: hsl(0, 0%, 5%); 676 | /* 打开文文件夹、正文菜单、最近使用 hover 效果 */ 677 | --item-hover-text-color: hsl(212, 100%, 75%); 678 | --primary-color: hsl(212, 100%, 75%); 679 | /* color of primary buttons */ 680 | --primary-btn-border-color: hsl(212, 100%, 75%); 681 | --primary-btn-text-color: hsl(0, 0%, 15%); 682 | --select-text-bg-color: hsl(212, 100%, 85%); 683 | --select-text-font-color: hsl(0, 0%, 15%); 684 | --active-bg: hsl(0, 0%, 10%); 685 | --window-border: var(--bg-color); 686 | --control-text-color: var(--title-color); 687 | --control-text-hover-color: var(--text-color); 688 | } 689 | .active-tab-files .info-panel-tab, 690 | .active-tab-outline .info-panel-tab { 691 | color: var(--active-file-text-color); 692 | } 693 | .file-list-item:hover { 694 | background: var(--item-hover-bg-color); 695 | color: var(--item-hover-text-color); 696 | } 697 | .file-node-content:hover { 698 | background: var(--active-file-bg-color); 699 | color: var(--active-file-text-color); 700 | } 701 | 702 | 703 | /* 整个界面编辑框外面的背景色 */ 704 | html>body>content { 705 | background-color: #161616; 706 | } 707 | 708 | /*#top-titlebar, 709 | #top-titlebar * { 710 | background-color: #1A1A1A; 711 | color: white; 712 | } 713 | ::-webkit-scrollbar-corner { 714 | display: none; 715 | background: transparent; 716 | } 717 | ::-webkit-scrollbar-thumb { 718 | background: rgba(0, 0, 0, 0.05); 719 | background-clip: padding-box; 720 | } 721 | [draggable] { 722 | cursor: pointer; 723 | }*/ 724 | 725 | 726 | /* 调整html编辑时的行为,能看清楚里面的文字 */ 727 | .md-rawblock-control:not(.md-rawblock-tooltip) { 728 | background-color: #1f1f1f; 729 | } 730 | .md-htmlblock .md-rawblock-tooltip { 731 | z-index: 0; 732 | color: rgb(45, 226, 43); 733 | background-color: #1f1f1f; 734 | } 735 | .CodeMirror{ 736 | background-color: #1f1e1e; 737 | } 738 | .md-rawblock-on-edit>.md-rawblock-tooltip, .md-rawblock:hover>.md-rawblock-container, .md-rawblock:hover>.md-rawblock-tooltip { 739 | background: #1B1D21; 740 | display: block; 741 | } 742 | .md-rawblock:hover>.md-rawblock-tooltip{ 743 | transition: none; 744 | animation: none; 745 | } 746 | 747 | /* 更改URL超链接颜色,最初的颜色不易查看 */ 748 | span > a { 749 | color: #8BB1F9; 750 | } -------------------------------------------------------------------------------- /macOS/latex.css: -------------------------------------------------------------------------------- 1 | /* ============================================ 2 | * ============ TYPORA lATEX THEME ============ 3 | * ============================================ 4 | * THIS PROJECT IS BASED ON THE WORKS OF YFZHAO20 AND DU33169, 5 | WHOSE REPOSITORIES ARE ADRESSED ON 6 | 7 | AND , 8 | MANY THANKS TO THEM. 9 | * "TYPORA LATEX THEME" (MARKDOWN LATEX THEME) 10 | IS A THEME FOR TYPORA (OR CSS FOR OTHER MARKDOWN EDITORS), 11 | DESIGNED FOR CHINESE UNIVERSITY STUDENTS 12 | USED IN LATEX-STYLED ESSAYS OR EXPERIMENTAL REPORTS. 13 | * COPYRIGHT (C) 2021 KELDOS; 14 | REPOSITORY ADDRESS: ; 15 | LISENCED UNDER GPL v3.0, SEE 16 | */ 17 | 18 | /* LaTeX-light on macOS */ 19 | 20 | @import "./latex/userCustom.css"; 21 | 22 | body { 23 | padding: 0 !important; 24 | margin: 0 !important; 25 | line-height: var(--base-line-height); 26 | /*counter-reset: tableHead 0 imgHead 0;*/ 27 | } 28 | 29 | /* 正文区基本属性 */ 30 | #write { 31 | font-family: var(--base-Latin-font), var(--base-Chinese-font), serif; 32 | font-size: var(--base-font-size); 33 | max-width: 21cm;/* A4标准宽度 */ 34 | background-color: white; 35 | /* column-count: 2; 36 | column-gap: 25px; 37 | column-width: 8cm; 38 | display: inline-block; */ 39 | /* 这里可以试分栏的,但确实不适合实现 */ 40 | } 41 | 42 | strong { 43 | font-weight: var(--strong-weight); 44 | } 45 | 46 | @media screen { 47 | #write { 48 | padding: var(--set-margin); 49 | /*border: 0.8px solid #AAC ; /* 添加一个淡蓝色的边框 */ 50 | box-shadow: 0 0 24px 12px #CCCCCC; /* 页边来一个阴影!!好耶 */ 51 | } 52 | } 53 | 54 | @media print { 55 | #write { 56 | padding: 0 !important; 57 | } 58 | #write a { 59 | color: inherit; 60 | text-decoration: none; 61 | } 62 | @page { 63 | /* size: A4; 强制A4大小 */ 64 | margin: 1.8cm 2cm 1.2cm 2cm !important; /* 页边距在这里!!!!!!!!!!!!!!!! */ 65 | /* 参阅 */ 66 | } 67 | } 68 | 69 | #write p { 70 | text-align: left; 71 | } 72 | 73 | /* 74 | #write figure:after{ 75 | counter-increment: tableHead; 76 | content: "表" counter(tableHead) " "; 77 | text-align:center; 78 | width:100%; 79 | display:inline-block; 80 | }*/ 81 | /* 图片,导出PDF时暂时无法显示 */ 82 | /* 83 | #write .md-image:after{ 84 | counter-increment: imgHead; 85 | content: "图" counter(imgHead) " "; 86 | text-align:center; 87 | width:100%; 88 | display:inline-block; 89 | } 90 | */ 91 | 92 | /* basic样式采用一般的引言,具有左边框、左缩进 */ 93 | blockquote { 94 | font-style: normal; 95 | font-family: var(--quote-font), var(--base-Latin-font), var(--base-Chinese-font), -apple-system, serif; 96 | font-size: var(--quote-font-size); 97 | border-left: 3px solid grey; 98 | padding-left: 16px; /* 文字离左边框的距离 */ 99 | padding-right: 20pt; 100 | margin-left: 20px; /* 左边框离页面边的距离 */ 101 | color: grey; 102 | } 103 | 104 | /*border-width: 0.5pt 0; 105 | border-style:solid; 这一行本来使用了上下边框*/ 106 | 107 | /* 标题属性 */ 108 | #write h1, 109 | #write h2, 110 | #write h3, 111 | #write h4, 112 | #write h5, 113 | #write h6 { 114 | font-weight: normal; 115 | font-family: var(--heading-Latin-font), var(--heading-Chinese-font), sans-serif; 116 | page-break-after: avoid !important; 117 | } 118 | 119 | #write h1 { 120 | font-family: var(--heading-Latin-font), var(--title-Chinese-font), sans-serif; 121 | font-weight: bold; 122 | text-align: center; 123 | column-span: all; 124 | font-size: var(--title-font-size); 125 | } 126 | #write h2 { 127 | font-family: var(--heading-Latin-font), var(--h2-Chinese-font), sans-serif; 128 | font-size: var(--h2-font-size); 129 | } 130 | #write h3 { 131 | font-family: var(--heading-Latin-font), var(--h3-Chinese-font), sans-serif; 132 | font-size: var(--h3-font-size); 133 | line-height: var(--h3-font-size); 134 | } 135 | #write h4 { 136 | font-family: var(--heading-Latin-font), var(--h4-Chinese-font), sans-serif; 137 | font-size: var(--h4-font-size); 138 | line-height: var(--h4-font-size); 139 | } 140 | #write h5 { 141 | font-family: var(--heading-Latin-font), var(--h5-Chinese-font), sans-serif; 142 | font-size: var(--h5-font-size); 143 | line-height: var(--h5-font-size); 144 | } 145 | #write h6 { 146 | font-family: var(--heading-Latin-font), var(--h6-Chinese-font), sans-serif; 147 | font-size: var(--h6-font-size); 148 | line-height: var(--h5-font-size); /* 没有写错,为了避免行距太小才这么写 */ 149 | } 150 | 151 | 152 | /* 三线表 */ 153 | #write table { 154 | border-top: 1.2pt solid; /* 三线表第一条线宽度 */ 155 | border-bottom: 1.2pt solid; /* 三线表第二条线宽度 */ 156 | font-family: var(--table-font), var(--base-Latin-font), var(--base-Chinese-font), serif; 157 | /* font-size: var(--base-font-size); */ 158 | text-align: center; 159 | page-break-inside: avoid; 160 | border-spacing: 6px; 161 | width: auto; /* 自动布局表格宽度,如果有时内容太紧建议直接加空格吧,我自己看不惯和页面等宽的大表格 */ 162 | margin: 0 auto; /* 使表格默认居中;虽然这个代码不好,但好像没别的实现办法 */ 163 | } 164 | 165 | #write table td { 166 | padding: 2px; 167 | } 168 | 169 | #write table tr { 170 | padding: 2px; 171 | } 172 | 173 | #write th { 174 | padding: 0px 6px; 175 | } 176 | 177 | /* 表格标题(首行)样式 */ 178 | #write thead { 179 | border-bottom: 0.5pt solid; /* 三线表表头的线 */ 180 | font-family: var(--table-title-font), var(--heading-Latin-font), var(--heading-Chinese-font), serif !important; 181 | /* font-size: var(--base-font-size); */ 182 | font-weight: var(--strong-weight); 183 | } 184 | 185 | hr { 186 | border-top: solid 0.7px #EEE; 187 | } 188 | 189 | img { 190 | page-break-inside: avoid; /* 避免图片在导出时被断开 */ 191 | } 192 | 193 | /* ============ 多级列表样式 ============ */ 194 | ul { 195 | list-style: disc; /* 无序列表第一级:实心圆点 */ 196 | } 197 | 198 | ul ul { 199 | /*list-style: circle;*/ 200 | list-style: '–  '; /* 直接用空格代替一部分缩进的调整了我真懒 */ 201 | /*left: -0.8em;*/ 202 | } 203 | 204 | ul ul ul { 205 | list-style: "◦  "; /* 无序列表第三极:小圈 */ 206 | left: 0.6em; 207 | } 208 | 209 | ol { 210 | list-style: decimal; 211 | /* 有序列表第一级:数字 */ 212 | } 213 | 214 | ol ol { 215 | counter-reset: liist; 216 | list-style: none; 217 | } 218 | ol ol li { 219 | counter-increment: liist; 220 | position: relative; 221 | } 222 | ol ol li::before { 223 | content: "("counter(liist, lower-alpha) ")  "; /* 有序列表第二级:括号加小写字母 */ 224 | position: absolute; 225 | margin-right: 2rem; 226 | left: -2.4em; 227 | } 228 | 229 | ol ol ol { 230 | counter-reset: liiist; 231 | list-style: none; 232 | margin: 0; 233 | } 234 | ol ol ol li { 235 | counter-increment: liiist; 236 | position: relative; 237 | } 238 | ol ol ol li::before { 239 | content: counter(liiist, lower-roman) ".   "; /* 有序列表第三级:小写罗马数字 这些后续还要改的可恶*/ 240 | align-self: flex-end; 241 | position: absolute; 242 | left: -2.4em; 243 | /* -moz-box-sizing: border-box; 244 | -webkit-box-sizing: border-box; 245 | box-sizing: border-box;*/ 246 | width: 4em; /* 为了让项目编号是重新用句点对齐而不是左对齐我调试了一整个晚上啊啊啊啊 CSS好难写 */ 247 | text-align: right; 248 | } 249 | 250 | li { 251 | position: relative; 252 | } 253 | /* ============ 多级列表样式END ============ */ 254 | 255 | 256 | /* 行内代码 */ 257 | p code, 258 | li code { 259 | color: rgb(60, 112, 198); 260 | background-color: #fefefe; 261 | font-family: var(--code-font), var(--ui-font), monospace; 262 | box-sizing: border-box; 263 | border-right: 0px; 264 | margin: 0 2px 0 2px; 265 | padding: 0 2px 0 2px; 266 | border-radius: 2px 2px 2px 2px; /* 圆角 */ 267 | box-shadow: 0 0 1px 1px #c8d3df; /* 阴影 */ 268 | } 269 | 270 | /* 代码块样式*/ 271 | #write .CodeMirror-wrap { 272 | padding: 10px; /* 当代码太长跨页的时候好像也会有点问题,到时候再改 */ 273 | } 274 | 275 | #write .CodeMirror-code pre { 276 | font-family: var(--code-font), var(--ui-font), monospace; 277 | } 278 | 279 | /* typora 编写模式 */ 280 | #typora-source { 281 | font-family: var(--sourceMode-font), var(--code-font), var(--ui-font), monospace; 282 | line-height: 2rem; 283 | } 284 | 285 | /* 下面是标题自动编号,初始化计数器。使用多级编号,编号后加空格模仿LaTeX */ 286 | /* 首先全局进行一次reset,这样即使不添加h1标题也可以使用较低级别的标题 */ 287 | #write { 288 | counter-reset: h2 0 h3 0 h4 0 h5 0 h6 0 289 | } 290 | 291 | #write h1 { 292 | counter-reset: h2 293 | } 294 | h2 { 295 | counter-reset: h3 296 | } 297 | h3 { 298 | counter-reset: h4 299 | } 300 | h4 { 301 | counter-reset: h5 302 | } 303 | h5 { 304 | counter-reset: h6 305 | } 306 | 307 | /* put counter result into headings */ 308 | #write h2:before { 309 | counter-increment: h2; 310 | content: counter(h2); 311 | margin-right: 2rem; 312 | } 313 | /** override the default style for focused headings */ 314 | #write h3:before, 315 | h3.md-focus.md-heading:before { 316 | counter-increment: h3; 317 | content: counter(h2) "."counter(h3); 318 | margin-right: 2rem; 319 | } 320 | #write h4:before, 321 | h4.md-focus.md-heading:before { 322 | counter-increment: h4; 323 | content: counter(h2) "."counter(h3) "."counter(h4); 324 | margin-right: 2rem; 325 | } 326 | #write h5:before, 327 | h5.md-focus.md-heading:before { 328 | counter-increment: h5; 329 | content: counter(h2) "."counter(h3) "."counter(h4) "."counter(h5); 330 | margin-right: 2rem; 331 | } 332 | #write h6:before, 333 | h6.md-focus.md-heading:before { 334 | counter-increment: h6; 335 | content: counter(h2) "."counter(h3) "."counter(h4) "."counter(h5) "."counter(h6); 336 | margin-right: 2rem; 337 | } 338 | 339 | /* 目录 */ 340 | .md-toc-content { 341 | margin-left: 2em; 342 | counter-reset: toc-h2 toc-h3 toc-h4; /* 修复缺失上级标题时无法递增 */ 343 | page-break-after: always; 344 | } 345 | .md-toc-inner { 346 | margin-left: 0 !important; 347 | color: black !important; 348 | } 349 | .md-toc-item { 350 | color: black !important; 351 | } 352 | 353 | /* 目录标题内容属性 */ 354 | .md-toc-h2, 355 | .md-toc-h3, 356 | .md-toc-h4, 357 | .md-toc-h5, 358 | .md-toc-h6 { 359 | font-size: var(--toc-font-size); 360 | font-family: var(--toc-font), var(--base-Latin-font), var(--base-Chinese-font), serif; 361 | } 362 | .md-toc-h2 { 363 | font-weight: var(--strong-weight); 364 | } 365 | 366 | /* 目录标题前 */ 367 | .md-toc-content .md-toc-h1 { 368 | display: var(--toc-show-title); 369 | counter-reset: toc-h2; 370 | } 371 | .md-toc-content .md-toc-h2 { 372 | counter-reset: toc-h3; 373 | } 374 | .md-toc-content .md-toc-h3 { 375 | counter-reset: toc-h4; 376 | } 377 | .md-toc-content .md-toc-h4 { 378 | counter-reset: toc-h5; 379 | } 380 | .md-toc-content .md-toc-h5 { 381 | counter-reset: toc-h6; 382 | } 383 | .md-toc-content .md-toc-h2:before { 384 | counter-increment: toc-h2; 385 | content: counter(toc-h2); 386 | margin-right: 1rem; 387 | font-weight: var(--strong-weight); 388 | } 389 | .md-toc-content .md-toc-h3:before { 390 | counter-increment: toc-h3; 391 | content: counter(toc-h2) "."counter(toc-h3); 392 | margin-left: 1.5rem; 393 | margin-right: 0.5rem; 394 | } 395 | .md-toc-content .md-toc-h4:before { 396 | counter-increment: toc-h4; 397 | content: counter(toc-h2) "."counter(toc-h3) "."counter(toc-h4); 398 | margin-left: 3.5rem; 399 | margin-right: 0.5rem; 400 | } 401 | .md-toc-content .md-toc-h5:before { 402 | counter-increment: toc-h5; 403 | content: counter(toc-h2) "."counter(toc-h3) "."counter(toc-h4) "."counter(toc-h5); 404 | margin-left: 5.5rem; 405 | margin-right: 0.5rem; 406 | } 407 | .md-toc-content .md-toc-h6:before { 408 | counter-increment: toc-h6; 409 | content: counter(toc-h2) "."counter(toc-h3) "."counter(toc-h4) "."counter(toc-h5) "."counter(toc-h6); 410 | margin-left: 7.5rem; 411 | margin-right: 0.5rem; 412 | } 413 | 414 | /* 侧边大纲标题 */ 415 | .sidebar-content .outline-h1 { 416 | counter-reset: outline-h2; 417 | } 418 | .sidebar-content .outline-h2 { 419 | counter-reset: outline-h3; 420 | } 421 | .sidebar-content .outline-h3 { 422 | counter-reset: outline-h4; 423 | } 424 | .sidebar-content .outline-h4 { 425 | counter-reset: outline-h5; 426 | } 427 | .sidebar-content .outline-h5 { 428 | counter-reset: outline-h6; 429 | } 430 | .sidebar-content .outline-h2 .outline-label:before { 431 | counter-increment: outline-h2; 432 | content: counter(outline-h2) " "; 433 | } 434 | .sidebar-content .outline-h3 .outline-label:before { 435 | counter-increment: outline-h3; 436 | content: counter(outline-h2) "."counter(outline-h3) " "; 437 | } 438 | .sidebar-content .outline-h4 .outline-label:before { 439 | counter-increment: outline-h4; 440 | content: counter(outline-h2) "."counter(outline-h3) "."counter(outline-h4) " "; 441 | } 442 | .sidebar-content .outline-h5 .outline-label:before { 443 | counter-increment: outline-h5; 444 | content: counter(outline-h2) "."counter(outline-h3) "."counter(outline-h4) "."counter(outline-h5) " "; 445 | } 446 | 447 | .sidebar-content { 448 | font-family: var(--ui-font); /* 侧边栏的字体修改 */ 449 | list-style: none; 450 | } 451 | 452 | /* 元数据(如YAML front matter)的背景框 */ 453 | pre.md-meta-block { 454 | background: #CCCCCC; 455 | padding: 1.4em; 456 | font-family: var(--code-font), var(--ui-font), monospace; 457 | } 458 | 459 | /** override the default style for focused headings */ 460 | #write>h3.md-focus:before, 461 | #write>h4.md-focus:before, 462 | #write>h5.md-focus:before, 463 | #write>h6.md-focus:before, 464 | h3.md-focus:before, 465 | h4.md-focus:before, 466 | h5.md-focus:before, 467 | h6.md-focus:before { 468 | color: inherit; 469 | border: inherit; 470 | border-radius: inherit; 471 | position: inherit; 472 | left: initial; 473 | float: none; 474 | top: initial; 475 | font-size: inherit; 476 | padding-left: inherit; 477 | padding-right: inherit; 478 | vertical-align: inherit; 479 | font-weight: inherit; 480 | line-height: inherit; 481 | } -------------------------------------------------------------------------------- /macOS/latex/userCustom.css: -------------------------------------------------------------------------------- 1 | /* ============================================ 2 | * ============ TYPORA lATEX THEME ============ 3 | * ============================================ 4 | */ 5 | 6 | /* userCustom on macOS */ 7 | 8 | :root { 9 | 10 | /* == 字体设置 == */ 11 | 12 | /* 基准字体 */ 13 | --base-Latin-font: "Times New Roman", Times; /* 备选:Times, "Times New Roman" */ 14 | --base-Chinese-font: 宋体-简, 华文宋体; 15 | --base-font-size: 12pt; 16 | 17 | /* 引言字体 */ 18 | --quote-font: "Times New Roman", Times, "Latin Modern Roman", "Latin Modern Roman 10", 华文仿宋; 19 | --quote-font-size: 12.5pt; /* 这里字体用了10pt,比正文字体稍大 */ 20 | 21 | /* 代码字体(代码中的中文会调用ui-font) */ 22 | --code-font: "Latin Modern Mono", "Latin Modern Mono 10"; 23 | 24 | /* 侧边栏字体 */ 25 | --ui-font: 苹方-简; 26 | 27 | /* source mode 字体 */ 28 | --sourceMode-font: "SF Mono", 苹方-简; /* 默认调用code-font和ui-font */ 29 | 30 | /* 目录字体 */ 31 | --toc-font: ""; /* 默认调用base-font */ 32 | --toc-font-size: ""; /* 默认调用base-font-size */ 33 | 34 | /* 表格字体 */ 35 | --table-title-font: ""; /* 默认调用heading-font */ 36 | --table-font: ""; /* 默认调用base-font */ 37 | 38 | /* 标题字体(总设置) */ 39 | --heading-Latin-font: "LMRoman10-Bold"; 40 | --heading-Chinese-font: 华文黑体Bold; 41 | 42 | /* 标题字体分别设置 */ 43 | /* 大标题(h1)字体 */ 44 | --title-Chinese-font: 华文黑体Bold; 45 | --title-font-size: 16pt; 46 | /* h2字体 */ 47 | --h2-Chinese-font: 方正公文黑体; 48 | --h2-font-size: 14pt; 49 | /* h3字体 */ 50 | --h3-Chinese-font: 方正公文黑体; 51 | --h3-font-size: 14pt; 52 | /* h4字体 */ 53 | --h4-Chinese-font: 方正公文楷体; 54 | --h4-font-size: 12pt; 55 | /* h5字体 */ 56 | --h5-Chinese-font: 方正公文仿宋; 57 | --h5-font-size: 12pt; 58 | /* h6字体 */ 59 | --h6-Chinese-font: 方正公文仿宋; 60 | --h6-font-size: 12pt; 61 | 62 | /* 粗体样式设置 */ 63 | --strong-weight: 900; /* 加粗风格时使用的字重;400等同于normal,700等同于bold,900等同于heavy */ 64 | 65 | /* 基础行距 */ 66 | --base-line-height: 16pt; 67 | 68 | /* == 页面设置 == */ 69 | /* 打印页边距 */ 70 | --set-margin: 1.8cm 2cm 1.2cm 2cm !important; 71 | /* 参阅 */ 72 | 73 | /* == 控制设置 == */ 74 | /* 目录中是否显示一级标题 */ 75 | --toc-show-title: none; 76 | } -------------------------------------------------------------------------------- /yfzhao_LICENSE: -------------------------------------------------------------------------------- 1 | % This is the license declared by the origin repository founder yfzhao20. 2 | % You could see his project here: 3 | 4 | MIT License 5 | 6 | Copyright (c) 2021 yfzhao20 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in all 16 | copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 24 | SOFTWARE. -------------------------------------------------------------------------------- /天津大学关于本科生学位论文统一格式的规定.doc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KuangjuX-Archived/TJU-typora-latex-theme/634011886e4269a833c66508b822f663b7edb8b8/天津大学关于本科生学位论文统一格式的规定.doc -------------------------------------------------------------------------------- /天津大学本科生毕业论文模板.doc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KuangjuX-Archived/TJU-typora-latex-theme/634011886e4269a833c66508b822f663b7edb8b8/天津大学本科生毕业论文模板.doc -------------------------------------------------------------------------------- /天津大学本科生毕业设计说明书模板.doc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KuangjuX-Archived/TJU-typora-latex-theme/634011886e4269a833c66508b822f663b7edb8b8/天津大学本科生毕业设计说明书模板.doc --------------------------------------------------------------------------------