Skip to content

Commit

Permalink
chore: 提供紫色版本的校名校徽图片
Browse files Browse the repository at this point in the history
  • Loading branch information
atxy-blip committed May 3, 2023
1 parent 3c0f3d8 commit 736c8d5
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 11 deletions.
9 changes: 5 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,16 @@

## [1.2.1] - 2023-05-03

### 新增

- 新增研究生中文学位名称选项 `info/degree` - [#200]

### 修复

- 修复国家图书馆封面学位丢失的学位名称 - [#204]
- 新增研究生中文学位名称选项 `info/degree` - [#200]
- 修复研究生封面上学号下划线长度不足的问题

### 杂项

- 提供紫色版本的校名校徽图片

## [1.2.0] - 2023-05-02

### 新增
Expand Down
Binary file added docs/nju-emblem-purple.pdf
Binary file not shown.
Binary file added docs/nju-name-purple.pdf
Binary file not shown.
11 changes: 7 additions & 4 deletions docs/njuthesis-setup.def
Original file line number Diff line number Diff line change
Expand Up @@ -156,14 +156,17 @@
% 图片搜索路径
%
nju-emblem = {nju-emblem},
% 校徽图片路径
nju-name = {nju-name},
% 校徽和校名图片路径
% 建议使用 PDF 格式的矢量图
% 使用外置图片有助于减少编译时间
% 空置时会自动使用 njuvisual 宏包绘制
%
nju-name = {nju-name}
% 校名图片路径
% 说明同上
% nju-emblem = {nju-emblem-purple},
% nju-name = {nju-name-purple},
% 替换为紫色版本
% 这个选项只能填写一次
% 切换时要注释掉上方的黑色版本
}

% abstract 类用于设置摘要样式
Expand Down
9 changes: 9 additions & 0 deletions scripts/generate-img.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
@ECHO OFF

pdflatex --shell-escape generate-img
DEL "generate-img.pdf"
DEL "*.aux"
DEL "*.auxlock"
DEL "*.dpth"
DEL "*.log"
DEL "*.md5"
9 changes: 9 additions & 0 deletions scripts/generate-img.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env sh

pdflatex --shell-escape generate-img
rm generate-img.pdf
rm *.aux
rm *.auxlock
rm *.dpth
rm *.log
rm *.md5
10 changes: 7 additions & 3 deletions scripts/generate-img.tex
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 本文件用于生成黑色的校徽和校名图片
% 本文件用于生成校徽和校名图片
% 编译命令为 pdflatex --shell-escape generate-img
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass{article}
\usepackage{njuvisual}
\usetikzlibrary{external}
\tikzexternalize[prefix=nju-]
\begin{document}
\tikzsetnextfilename{emblem}\njuemblem[black]{!}{!}
\tikzsetnextfilename{name}\njuname[black]{!}{!}
% 黑色
\tikzsetnextfilename{emblem} \njuemblem[black]{!}{!}
\tikzsetnextfilename{name} \njuname [black]{!}{!}
% 紫色
\tikzsetnextfilename{emblem-purple} \njuemblem[njupurple]{!}{!}
\tikzsetnextfilename{name-purple} \njuname [njupurple]{!}{!}
\end{document}

0 comments on commit 736c8d5

Please sign in to comment.