Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ctex]使用LuaLaTeX编译出现Font shape undefined #493

Closed
kalteblau opened this issue Apr 4, 2020 · 3 comments
Closed

[ctex]使用LuaLaTeX编译出现Font shape undefined #493

kalteblau opened this issue Apr 4, 2020 · 3 comments

Comments

@kalteblau
Copy link

测试环境下CTeX版本为52683(2.4.16)
2020-04-03使用tlmgr升级了一下本地TexLive环境后,使用LuaLaTeX编译出现新的Warning(印象中升级前是没有的,升级前安装的是TexLive2019且未更新过)(且相同MWE用XeLaTeX编译无任何Warning)

MWE:

% !TEX program = lualatex
\documentclass[UTF8]{ctexart}
\title{Test}
\author{John}

\begin{document}
\maketitle
\end{document}

编译后出现的Warning为
ctex-engine-lualatex.def:

1. Functions of `CJKfntef' is not available in LuaLaTeX.

2. Font shape `LTJY3/song/m/n' undefined
(Font)	using `LTJY3/song/m/up' instead.
(Line 1106)

MWE.tex:

1. Some font shapes were not available, defaults substituted.

2.Font shape `LTJY3/SimSun(0)/m/up' undefined
(Font)	using `LTJY3/song/m/up' instead.
(Line 7)

CJKfntef相关Warning是#449#463 ,似乎已经修改完成。但是剩下的两个Warnings是什么原因?谢谢

@kalteblau
Copy link
Author

同时,在使用verbatim时候,如果其中内容跨页,也会报一个Warning,是

Font shape `LTJY3/FangSong(0)/m/sl' undefined
(Font)	using `LTJY3/song/m/up' instead.

MWE:

% !TEX program = lualatex

\documentclass[UTF8]{ctexart}
\usepackage{verbatim}

\title{Test}
\author{John}

\begin{document}

\maketitle

\clearpage

% No warning verbatim
\begin{verbatim}
    A
    B
    C
    D
    E
    F
    G
    H
    I
    J
    K
    L
    M
    N
    O
    P
    Q
    R
    S
    T
    U
    V
    W
    X
    Y
    Z
    a
    b
    c
    d
    e
    f
    g
\end{verbatim}

\clearpage
% Verbatim with warning
\begin{verbatim}
    A
    B
    C
    D
    E
    F
    G
    H
    I
    J
    K
    L
    M
    N
    O
    P
    Q
    R
    S
    T
    U
    V
    W
    X
    Y
    Z
    a
    b
    c
    d
    e
    f
    g
    h
\end{verbatim}
\end{document}

@muzimuzhi
Copy link
Contributor

可能和 latex2e 2020-02-02 把 \updefaultn 改成 up 有关,见提交 latex3/latex2e@69f6705 。看起来目前并不影响使用?

@kalteblau
Copy link
Author

@muzimuzhi 可能是和latex2e有关,目前不影响使用,编译出来结果未发现明显变化。

但是latex2e的改动,那么应该是和LTJY3/song/m/n->LTJY3/song/m/up这个错误有关,但后面那个LTJY3/SimSun(0)/m/up->LTJY3/song/m/up这个地方是怎么回事?而且我在一楼发现的那个verbatim跨页报字体错误也很是奇怪。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants