GithubHelp home page GithubHelp logo

医学实验班模板 - about thuthesis HOT 15 OPEN

ChelseaCHENX avatar ChelseaCHENX commented on June 6, 2024
医学实验班模板 -

from thuthesis.

Comments (15)

note286 avatar note286 commented on June 6, 2024
\DeclareCaptionFont{arial}{\fontspec{Arial}}
\captionsetup[figure]{labelfont=arial}
\captionsetup[table]{labelfont=arial}
\begin{document}

from thuthesis.

zepinglee avatar zepinglee commented on June 6, 2024

\fontsize{11bp}{14.3bp}\selectfont

在这里加 \sffamily 可以修改图题/表题的字体。另外图题的字号还需要调整。

@ChelseaCHENX 有没有完整的格式要求?我看看能不能在模板中统一配置。

from thuthesis.

zepinglee avatar zepinglee commented on June 6, 2024
\DeclareCaptionFont{arial}{\fontspec{Arial}}
\captionsetup[figure]{labelfont=arial}
\captionsetup[table]{labelfont=arial}
\begin{document}

\sffamily 可以兼容 Overleaf。而且 labelfont 只修改了序号部分,不包括图题的内容。

from thuthesis.

ChelseaCHENX avatar ChelseaCHENX commented on June 6, 2024

太感谢了❤️❤️ @note286 @zepinglee

@zepinglee 按第一种解决方案“在这里加 \sffamily 可以修改图题/表题的字体”会同时改了图题和图注的字体(以及表题),但实际上要求图题是Arial,但图注是Times Roman
Screenshot 2023-11-17 at 8 04 54 AM

@zepinglee 完整的格式说明文件如下(我加了一些与学校不同点的批注)
0医学实验班毕业论文写作指南-2023届.pdf
*Note: 论文主体为英文,但目录等细节部分内容里也有中文

我自己hard coding了一部分,目前待解决的问题包括

  1. “目录”页眉 - 中间还是有空格需要改成没有空格
  2. 目录字体 - 中文应该是黑体(代码只规定了英文是Arial,但中文default是黑体,而且看上去无差)
  3. 中文封面、英文页面、授权说明、声明不同(但可以手动插入,不是很prioritized)

from thuthesis.

zepinglee avatar zepinglee commented on June 6, 2024

@zepinglee 按第一种解决方案“在这里加 \sffamily 可以修改图题/表题的字体”会同时改了图题和图注的字体(以及表题),但实际上要求图题是Arial,但图注是Times Roman

你的“图注”是用的什么命令?标准 LaTeX 只有 \caption 命令,不能区分图题和图注。

@zepinglee 完整的格式说明文件如下(我加了一些与学校不同点的批注) 0医学实验班毕业论文写作指南-2023届.pdf

我看到你的批注,这很有帮助。

我自己hard coding了一部分,目前待解决的问题包括

  1. “目录”页眉 - 中间还是有空格需要改成没有空格
  2. 目录字体 - 中文应该是黑体(代码只规定了英文是Arial,但中文default是黑体,而且看上去无差)
  3. 中文封面、英文页面、授权说明、声明不同(但可以手动插入,不是很prioritized)

你是修改了 .dtx 文件吗?不妨将你修改后的模板发到 github,这样我可以直接在你的工作基础上进行修改。

from thuthesis.

zepinglee avatar zepinglee commented on June 6, 2024

另外需要考虑针对这个版本的接口怎么设计。一种是在 \documentclass 加参数;第二种是根据 \thusetupdegree 的值是否为“医学实验班八年制”(使用 \ifx)。我比较倾向于第二种。 @Harry-Chen 怎么看?

from thuthesis.

ChelseaCHENX avatar ChelseaCHENX commented on June 6, 2024

@zepinglee

你的“图注”是用的什么命令?标准 LaTeX 只有 \caption 命令,不能区分图题和图注。

对的这个我两者用的都是caption,所以还没解决如何让这两部分字体不同,可能不能在系统配置里统一解决,而需要在每个图里单独改格式

我看到你的批注,这很有帮助。

谢谢❤️

你是修改了 .dtx 文件吗?不妨将你修改后的模板发到 github,这样我可以直接在你的工作基础上进行修改。

我patchwise地改了 .dtxsetup.tex, example.tex,和data/chap01.tex | clinicalstudy.tex etc (sorry我对latex不太熟)在 https://github.com/ChelseaCHENX/thuthesis_medthu

谢谢!!

from thuthesis.

zepinglee avatar zepinglee commented on June 6, 2024

对的这个我两者用的都是caption,所以还没解决如何让这两部分字体不同,可能不能在系统配置里统一解决,而需要在每个图里单独改格式

最好避免在 figure 中手动修改格式,这不符合内容与格式分离原则。

我看到 thuthesis_medthu 中目前的代码是,\caption 表示图题而 \caption* 表示图注。这俩的格式同时由 caption 宏包的 \captionsetup 控制。理论上可以设置为不同格式,但是需要修改底层命令。

另一种方式是 apa7\figurenote\tablenote,跟 \caption 区分开。

from thuthesis.

ChelseaCHENX avatar ChelseaCHENX commented on June 6, 2024

对的这个我两者用的都是caption,所以还没解决如何让这两部分字体不同,可能不能在系统配置里统一解决,而需要在每个图里单独改格式

最好避免在 figure 中手动修改格式,这不符合内容与格式分离原则。

我看到 thuthesis_medthu 中目前的代码是,\caption 表示图题而 \caption* 表示图注。这俩的格式同时由 caption 宏包的 \captionsetup 控制。理论上可以设置为不同格式,但是需要修改底层命令。

另一种方式是 apa7\figurenote\tablenote,跟 \caption 区分开。

好的!

BTW,如果是完善“医学实验班模板”的其它部分,我们可以继续follow up here麽(or otherwise?

谢谢😊

from thuthesis.

ChelseaCHENX avatar ChelseaCHENX commented on June 6, 2024

对的这个我两者用的都是caption,所以还没解决如何让这两部分字体不同,可能不能在系统配置里统一解决,而需要在每个图里单独改格式

最好避免在 figure 中手动修改格式,这不符合内容与格式分离原则。

我看到 thuthesis_medthu 中目前的代码是,\caption 表示图题而 \caption* 表示图注。这俩的格式同时由 caption 宏包的 \captionsetup 控制。理论上可以设置为不同格式,但是需要修改底层命令。

另一种方式是 apa7\figurenote\tablenote,跟 \caption 区分开。

刚发现了另个相关问题,Table caption 要求是11pt,Figure caption是10.5pt,但它们俩是统一在\DeclareCaptionFont{thu}控制的,也在想方法看怎么分开控制

from thuthesis.

zepinglee avatar zepinglee commented on June 6, 2024

这周在发烧和赶活,我这周末处理一下。

from thuthesis.

ChelseaCHENX avatar ChelseaCHENX commented on June 6, 2024

No worries take care!

我之前改了一个hard coded version(能力时间所限没有做到内容与格式分离,结果个人目测是达标的),也包括了最新的格式要求(及我的批注), 供参考哈https://github.com/ChelseaCHENX/thuthesis_medthu

from thuthesis.

zepinglee avatar zepinglee commented on June 6, 2024

我在 medical 分支做了医学实验班版本的适配,尽量将格式与内容分离。不过目前参考文献和临床研究部分还有一些问题待调整。

我有两点疑问:

  1. 指南要求“格式遵从Cell杂志参考文献的格式”,但是给出的参考文献表示例是 author-date 式,即没有序号。而目前 Cell 已经改为了 numeric 样式,即上标序号作为引用,参考文献表有序号。你们具体需要哪种格式?
  2. 《指南》第 15 页要求(正文)“The name of the figure e.g. “Figure 3.1 xxx” should be in Arial, 10.5pt, align in the center, single line-spacing”,但第 21 页要求(临床研究)“图序与图名置于图的下方,采用宋体11磅字居中书写”,这两种格式不一致。所以你们的正文是固定使用英文书写、而临床研究部分要分中英文两种格式?

from thuthesis.

Harry-Chen avatar Harry-Chen commented on June 6, 2024

另外需要考虑针对这个版本的接口怎么设计。一种是在 \documentclass 加参数;第二种是根据 \thusetupdegree 的值是否为“医学实验班八年制”(使用 \ifx)。我比较倾向于第二种。 @Harry-Chen 怎么看?

第二种的问题是,硬编码内容判断似乎有点奇怪,但确实现在的 documentclass 参数已经足够多了。是否考虑在 \thusetup 中增加类似 variant 的 key 来做判断?

from thuthesis.

zepinglee avatar zepinglee commented on June 6, 2024

另外需要考虑针对这个版本的接口怎么设计。一种是在 \documentclass 加参数;第二种是根据 \thusetupdegree 的值是否为“医学实验班八年制”(使用 \ifx)。我比较倾向于第二种。 @Harry-Chen 怎么看?

第二种的问题是,硬编码内容判断似乎有点奇怪,但确实现在的 documentclass 参数已经足够多了。是否考虑在 \thusetup 中增加类似 variant 的 key 来做判断?

嗯,可以。我稍后改一下。

from thuthesis.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.