Coder Social home page Coder Social logo

Comments (6)

EthanDeng avatar EthanDeng commented on August 24, 2024

英文模式下没有提供中文支持,如果需要添加部分中文文字的话,可以考虑自行添加 ctex 宏包 或者使用 xeCJK 宏包指定字体。

from elegantnote.

Sollovin avatar Sollovin commented on August 24, 2024

英文模式下没有提供中文支持,如果需要添加部分中文文字的话,可以考虑自行添加 ctex 宏包 或者使用 xeCJK 宏包指定字体。

我知道为什么了。
在 2.20 版的 elegantnote.cls 中:第 48-50 行:

\ifdefstring{\ELEGANT@lang}{cn}{
\RequirePackage[UTF8, scheme=plain,punct=kaiming]{ctex}
}

上面这个 if 判断使得如果指定 lang=en 的话,ctex 宏包就不会被加载。

所以后面的开发是打算设置 lang=en 的话就默认不提供中英文混排功能吗?

from elegantnote.

EthanDeng avatar EthanDeng commented on August 24, 2024

对,要么选择中文模式,支持中文和英文,要么选择英文模式,不写入中文字符(包括标点)。

from elegantnote.

Sollovin avatar Sollovin commented on August 24, 2024

好的。

from elegantnote.

EthanDeng avatar EthanDeng commented on August 24, 2024

非常抱歉,我没把说明文档更新,我刚看到了一句话

不管选用中文环境还是英文环境均可输入中文。

这是一开始的设计,后来觉得不妥把 ctex 宏包从英文模式下移除了,2.3 一直处于待更新状态。

from elegantnote.

Sollovin avatar Sollovin commented on August 24, 2024

非常抱歉,我没把说明文档更新,我刚看到了一句话

不管选用中文环境还是英文环境均可输入中文。

这是一开始的设计,后来觉得不妥把 ctex 宏包从英文模式下移除了,2.3 一直处于待更新状态。

没关系的,开发维护不易:-)

from elegantnote.

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.