GithubHelp home page GithubHelp logo

Comments (4)

TheNetAdmin avatar TheNetAdmin commented on May 12, 2024 2

在 config/zjuthesis.cls 中将这里的 -4 (小四)改为 4 (四号)

\LoadClass[
zihao=-4,
UTF8,
twoside
]{ctexrep}

from zjuthesis.

muzimuzhi avatar muzimuzhi commented on May 12, 2024 2

ctex 的文档类选项 zihao 只支持 zihao=-4|5|false 三个值,不支持 zihao=4

相关源码

    zihao .choice: ,
    zihao .value_required:n = true ,
    zihao /     5  .code:n = { \int_gset:Nn \g_@@_font_size_int { 0 } } ,
    zihao /    -4  .code:n = { \int_gset:Nn \g_@@_font_size_int { 1 } } ,
    zihao / false  .code:n = { \int_gset:Nn \g_@@_font_size_int { 2 } } ,

https://github.com/CTeX-org/ctex-kit/blob/72b67db47189e50ea219a693003a0aaaa4c8b391/ctex/ctex.dtx#L3387-L3391

正文字号(\normalsize)的调整是个系统工程,涉及

  • \small\large 等字号切换命令的重定义。例如 \normalsize 改成 14pt,那么 \large 可能就要改成 17pt
  • 一些间距的调整,例如行间公式前后的纵向间距

具体数值的设定是一个设计任务。ctex 宏集对应 zihao=-4 提供了配置文件 kpsewhich ctex-cs4size.clo,对应 zihao=5 的是 kpsewhich ctex-c5size.clo,可以仿照定制自己的字号配置文件。

只修改当前字号时,可以使用 ctex 宏集提供的 \zihao 命令。

from zjuthesis.

TheNetAdmin avatar TheNetAdmin commented on May 12, 2024

@muzimuzhi 感谢指出

from zjuthesis.

hietwll avatar hietwll commented on May 12, 2024

是的,我尝试过在config/zjuthesis.cls 改字号,编译报错。看来字体调整牵一发动全身,还是不调整了。感谢两位及时帮助~

from zjuthesis.

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.