Yu Xiong

Results 10 issues of Yu Xiong

按照 stone-zeng#235 中的想法完成了封面内部实现机制的重构。这里使用了页面元素、页面整体的两层抽象,对应原本的页面内嵌页面元素循环。各种格式都是原样抄来的,所以在我本机上测试没有看出与之前的样式差别。 带来的最大好处应该是维护难度降低了,增补元素、添加页面时直接修改对应的实例即可。 另:如果不是原本模板中定义了上下边距和行距,我本来只想做页面元素这一层抽象的……不得不说框架真的很好。

这两天在重新拜读关于封面部分的代码。`fduthesis` 使用了 `xtemplate` 进行此部分的实现,但在实际阅读代码的时候,我并没有感到抽象化起到了简化的作用,反而是大量的嵌套导致直观上艰深难懂(也有很大可能是因为我菜)。仔细阅读这一宏包的使用手册后我发现了一个华点,简言之就是:*`Instance` 不应当是对整个页面内容的描述,而是对单个页面部件的描述。* 原文是这样写的: > There are three distinct layers in the definition of “a document” at this level > > 1. semantic elements such as the ideas...

enhancement
cover

看手册时注意到标题栏多了一些无效字符(图中下方窗口),使用 `hologo` 修复了一下。 ![图片](https://user-images.githubusercontent.com/63113546/182659149-e1aaab9a-80eb-45e4-b2fe-ac3d3f80deda.png)

Fix the missing spaces in the doc, which may otherwise cause wrongly rendered `macrocode` environment. Spotted in the original documentation as shown below. ![image](https://user-images.githubusercontent.com/63113546/158817275-82e654d4-ec58-4cbc-b385-fd75a1e8e782.png)

目前模板内的定理类环境是依赖 `ntheorem` 定制的(特别感谢 `fduthesis`),缺陷在于一旦预先设置了若干定理环境,用户做修改时只能重新进行定义。模板尝试在 `\njusetup` 提供了一些接口以预设样式,在导言区末尾载入宏包并创建环境。这会导致用户额外进行的修改只能放到导言区后,不符合使用直觉。 相似地,`thmtools` 似乎也不方便对已有的定理类环境进行样式修改。 最近注意到了 [`create-theorem`](https://ctan.org/pkg/create-theorem) 包,这是一个使用 LaTeX3 格式编写的上述包的轻量级替代品,大体上满足学校论文中简单定理类环境定制的要求。新宏包的好处是维护频繁,譬如昨天刚提出的 https://github.com/Jinwen-XU/create-theorem/issues/1 很快就获得了回复和更新,算是解决了十分关心的 QED 符号问题,为替换扫清了障碍。 而且,对前述的样式定制问题,`create-theorem` 提供了批量修改的解决方案: ```tex \SetTheorem{ ⟨list of the name of environments⟩ }{ ⟨key‑value configuration⟩...

enhancement
compatibility
math

在macOS找不到KaitiSC。 ``` Font shape `LTJY3/SimHei(0)/b/n' undefined (Font) using `LTJY3/SimHei(0)/m/n' instead. Font shape `LTJY3/SimSun(0)/m/sc' undefined (Font) using `LTJY3/SimSun(0)/m/n' instead. Font shape `LTJY3/FangSong(0)/b/n' undefined (Font) using `LTJY3/FangSong(0)/m/n' instead. ```

enhancement
help wanted
font

出于一些历史包袱,研究生院实际上没有提供*统一的*格式规定,而是交给各个院系出台规定。这个做法显然给模板制作者带来了挺大问题。 这个帖子用来征集格式研究生模板在审查方面相关的经历经验,包括: 1. 院系详细规定 2. 审查受阻原因 3. 成功通过经历 请在回复中提供模板版本号和院系名称。

enhancement
help wanted

Hi! When using `tabularray` as a general solution to typesetting tables, I would encounter some relatively tight tables with extra long captions. The traditional `\caption` solution leaves the caption text...

### Discussed in https://github.com/nju-lug/NJUThesis/discussions/180 Originally posted by **dreistein543** March 1, 2023 通过最新版(v1.1.2)模板打开盲审模式时,在摘要页依然保留了一些信息如下图所示 先提一下,这两天问一下教务员再来确认是否确实需要剔除 - 不需要隐去“南京大学”和“校徽” - 将作者和导师替换为“XXX”

enhancement

> 想问下是否有南大校徽+南大中英文校名组合的pdf矢量图呢?在云盘公共资料库里只有.jpg或.png格式的(03校标,中、英文校名组合.jpg),在模板中运行`pdflatex --shell-escape njuvisual-example.tex`命令也只能得到校徽、南大中文校名、英文校名各自 pdf图,自己通过插入多张图片的方式组合的话难以控制每个部分的size。 > > _Originally posted by @qleenju in https://github.com/nju-lug/NJUVisual/issues/5#issuecomment-1769792113_ 或许应该想办法把已经实现的校名校徽拼起来。

enhancement