profile
viewpoint
Xiangdong Zeng stone-zeng Fudan University Shanghai, China https://stone-zeng.github.io

stone-zeng/fduthesis 266

LaTeX thesis template for Fudan University

firamath/firamath 208

Sans-serif font with Unicode math support

OsbertWang/install-latex-guide-zh-cn 91

一份简短的关于 LaTeX 安装的介绍

CTeX-org/forum 85

A temporarily alternate forum of `bbs.ctex.org`

stone-zeng/latex-talk 79

Modern LaTeX in a Nutshell

latexstudio/LaTeXFAQ-cn 51

中文 LaTeX 常见问题工程,见证中文社区的力量

stone-zeng/latex-emoji 10

Emoji support in (Lua)LaTeX

stone-zeng/resume 10

My Resume

CTeX-org/zhlipsum 8

Chinese dummy text

push eventfiramath/firamath

Xiangdong Zeng

commit sha 2e52af9f98e5c9038b49521dfdc09967de6df30f

set related symbols

view details

push time in 13 hours

push eventfiramath/firamath

Xiangdong Zeng

commit sha 703c6d1760d250f92a8edd326ccbeb9e38653f16

big operators: coproduct, quadrupleIntegral, summationWithIntegral

view details

Xiangdong Zeng

commit sha 9bbe6f137111f8b0b8cd8a5d2712255f211ebdb6

add primes The spacing of components in uni2033 `second is not correct when after export. I guess it's a bug of Glyphs3.

view details

Xiangdong Zeng

commit sha 74c16c4fc2a0f3b53f0322c08186b1b17263f0cd

delimiters Bars, angle brackets, flattened parenthesis, ceilings and floors

view details

push time in 3 days

push eventfiramath/firamath

Xiangdong Zeng

commit sha b09923b2e0cff22a38be7828093296111ee36071

add some binary operators

view details

Xiangdong Zeng

commit sha c9ba85aacecb0ab913068b1346dcdcbbdfb39668

add dots/ellipses

view details

push time in 5 days

push eventfiramath/firamath

Xiangdong Zeng

commit sha 7444b6803898fe227b72890ec510bd770eece098

draft: enlarge operators [ci skip]

view details

Xiangdong Zeng

commit sha e264b305c6cd0b125c4d0adbf39f9259a5b444c5

Merge branch 'binary' into glyphs3

view details

push time in 5 days

delete branch firamath/firamath

delete branch : binary

delete time in 5 days

push eventfiramath/firamath

Xiangdong Zeng

commit sha 025686e9e1787533d977e7831afdd2702308bd20

add radicals

view details

Xiangdong Zeng

commit sha 74f8971e007cc064038de39f05cfadbb21ab248a

add hebrew letters and nabla Hebrew letters are from FiraGO and are reinterpolated.

view details

Xiangdong Zeng

commit sha ff661cdb09353781f3cb766ee9998988fa666455

remove annotations

view details

Xiangdong Zeng

commit sha 40b52abfb4f2c06179744defa915608780847fe2

update metadata

view details

push time in 5 days

push eventfiramath/firamath

Xiangdong Zeng

commit sha 84ce8163d0d6a3331c41b9a9d4f380319e226fc5

add more integrals

view details

Xiangdong Zeng

commit sha 1f603e29557fac50568503ad657325ac1abf45b7

add delimiters Smart components are awesome!

view details

push time in 5 days

create barnchfiramath/firamath

branch : glyphs3

created branch time in 5 days

delete branch firamath/firamath

delete branch : glyphs-app

delete time in 6 days

startedunicode-org/last-resort-font

started time in 6 days

startedRuixiZhang42/newxeCJK

started time in 10 days

issue commentCTeX-org/ctex-kit

ctex: pdftex 模式不能通过编译

不知道是MikTeX的问题,还是要再等??

@CasperYC latex3 那边还没有更新。

stone-zeng

comment created time in 14 days

issue commentlatex3/latex3

\ProvidesExplPackage seems not recover the catcode

The original code in ctex actually uses \file_input:n, should it check the catcode?

stone-zeng

comment created time in 14 days

issue openedlatex3/latex3

\ProvidesExplPackage seems not recover the catcode

\ProvidesExplPackage and its friends seems not recover the catcode when the file ends:

\begin{filecontents}{a.sty}
\ProvidesExplPackage{a}{}{}{}
\end{filecontents}
\documentclass{minimal}
\input{a.sty}
\begin{document}
$A_B$
\end{document}

It gives A_B rather than A<sub>B</sub>.

This is from https://github.com/CTeX-org/ctex-kit/issues/544.

created time in 14 days

created tagfiramath/firamath

tagv0.3.4

Sans-serif font with Unicode math support

created time in 14 days

push eventfiramath/firamath

Xiangdong Zeng

commit sha 9c566d5afa8380b83c5321d136b161d9deeef0d4

typo in changelog

view details

push time in 14 days

push eventfiramath/firamath

Xiangdong Zeng

commit sha 9927262828707e5b01d4007d1170033066042672

update to v0.3.4

view details

push time in 14 days

issue closedfiramath/firamath

Problem with Acrobat reader

I am using lualatex. When I try to view the file in Adobe Acrobat Reader(2020.012.20048), I get the error message Cannot extract the embedded font `IKNDRR+FiraMath-Regular'. Some characters may not display or print correctly.

closed time in 14 days

svenkat93

push eventfiramath/firamath

Xiangdong Zeng

commit sha e41e83977a69e189b57fb934a17f8a87c274ae24

remove CounterMasks Fix #53.

view details

push time in 14 days

issue commentfiramath/firamath

Problem with Acrobat reader

It is from the CounterMasks data in the sfd files and I will remove them.

svenkat93

comment created time in 14 days

issue commentCTeX-org/ctex-kit

ctex: pdftex 模式不能通过编译

\documentclass[a4paper,10pt]{article}
\usepackage{ctex}
\listfiles
\begin{document}
测试
\end{document}

以上代码不能复现问题,加上补丁后也没有报错。版本信息:

This is XeTeX, Version 3.14159265-2.6-0.999992 (TeX Live 2020) (preloaded format=xelatex 2020.10.13)  13 OCT 2020 21:19
entering extended mode
 restricted \write18 enabled.
 %&-line parsing enabled.
**try
(./try.tex
LaTeX2e <2020-10-01> patch level 1
L3 programming layer <2020-10-05> xparse <2020-03-03>

...

 *File List*
 article.cls    2020/04/10 v1.4m Standard LaTeX document class
  size10.clo    2020/04/10 v1.4m Standard LaTeX file (size option)
    ctex.sty    2020/08/23 v2.5.4 Chinese adapter in LaTeX (CTEX)
   expl3.sty    2020-10-05 L3 programming layer (loader) 
l3backend-xetex.def    2020/08/23 v2.5.4 Chinese adapter in LaTeX (CTEX)
  xparse.sty    2020-10-05 L3 Experimental document command parser
xparse-generic.tex
l3keys2e.sty    2020-10-05 LaTeX2e option processing using LaTeX3 keys
ctexhook.sty    2020/08/23 v2.5.4 Document and package hooks (CTEX)
ctexpatch.sty    2020/08/23 v2.5.4 Patching commands (CTEX)
  fix-cm.sty    2015/01/14 v1.1t fixes to LaTeX
  ts1enc.def    2001/06/05 v3.0e (jk/car/fm) Standard LaTeX file
everysel.sty    2011/10/28 v1.2 EverySelectfont Package (MS)
ctexopts.cfg    2020/08/23 v2.5.4 Option configuration file (CTEX)
ctex-engine-xetex.def    2020/08/23 v2.5.4 XeLaTeX adapter (CTEX)
   xeCJK.sty    2020/08/23 v3.8.5 Typesetting CJK scripts with XeLaTeX
xtemplate.sty    2020-10-05 L3 Experimental prototype document functions
fontspec.sty    2020/02/21 v2.7i Font selection for XeLaTeX and LuaLaTeX
fontspec-xetex.sty    2020/02/21 v2.7i Font selection for XeLaTeX and LuaLaTeX
 fontenc.sty
fontspec.cfg
   xeCJK.cfg    2020/08/23 v3.8.5 Configuration file for xeCJK package
zhnumber.sty    2020/05/01 v2.8 Typesetting numbers with Chinese glyphs
zhnumber-utf8.cfg    2020/05/01 v2.8 Chinese numerals with UTF8 encoding
ctex-scheme-chinese.def    2020/08/23 v2.5.4 Chinese scheme for generic (CTEX)
ctex-name-utf8.cfg    2020/08/23 v2.5.4 Caption with encoding UTF-8 (CTEX)
indentfirst.sty    1995/11/23 v1.03 Indent first paragraph (DPC)
ctex-fontset-mac.def    2020/08/23 v2.5.4 macOS fonts definition (CTEX)
ctex-fontset-macnew.def    2020/08/23 v2.5.4 macOS fonts definition for El Capi
tan or later version (CTEX)
    ctex.cfg    2020/08/23 v2.5.4 Configuration file (CTEX)
 ***********
stone-zeng

comment created time in 16 days

push eventstone-zeng/stone-zeng.github.io

Xiangdong Zeng

commit sha 2d8d095c723ddd8ecd820ce4d32b6c1de588a31f

css: alignment in post/home; use webfonts only

view details

Xiangdong Zeng

commit sha 64c935397aee797943c99cb676524961d61d1fb9

l3tutorial-syntax: track latex3 change

view details

push time in 17 days

issue closedstone-zeng/fduthesis

请教以及具体的章节标题设置

尝试自己用 ctexset{chpater/xxx} 结果破坏了其他比如居中等样式,还求给个正确的(不影响其他样式)设置方式:

  • 章chapter标题字体设置为小二号黑体字居中
  • 节section标题字体大小设置为小三号

背景:通过设置正文字体为小四(\fdusetup{ style = { font-size = -4)之后,chapter 和 section 过大不符合学院要求……

不胜感激!

closed time in 17 days

Jeff-Tian

issue commentCTeX-org/forum

以下代码里的 red 为什么没有显示?

放在 \usepackage 后面

DUYANG2020

comment created time in 17 days

issue closedCTeX-org/forum

以下代码里的 red 为什么没有显示?

检查

<!-- 若需勾选,请把 [ ] 改为 [x] <!-- 注意:x 两侧不要留空格,即不要写成 [x ] 或 [ x] -->

  • [ ] 已在 issues 中进行搜索(包括已关闭的问题)

编译环境

  • 操作系统

    • [x] Windows 10
    • [ ] Windows 8/8.1
    • [ ] Windows 7
    • [ ] 更早版本的 Windows
    • [ ] macOS
    • [ ] Linux(请附发行版)
  • TeX 发行版

    • [x] TeX Live 2020 <!-- 年份 -->
    • [ ] MiKTeX <!-- 版本号 -->
    • [ ] CTeX 套装 2.9.2.164
    • [ ] 更早版本的 CTeX 套装

描述问题

这个代码里的 red 没有显示 <!-- 请在此处描述清楚您所遇到的问题:

1. 这个代码里的 red 没有显示

-->

最小工作示例(MWE)

<!-- 请在此处填写最小工作示例,要求:

1. 完整:要使大家都可以编译通过,而不需要添加额外的代码;不可以只有片段
2. 最小:不包含与问题无关的内容,尤其是不要把整个导言区都贴过来
3. 工作:要反映出您所描述的问题

下面是一个范例,请提问时修改为自己的代码: -->

\documentclass[10pt,a4paper]{article}
\usepackage{xcolor}
\usepackage{tikz}
\begin{document}
	\begin{tikzpicture}
	\shadedraw [ball color=red] (13,-5) circle (1cm);
	\end{tikzpicture}
\end{document}

(用 XeLaTeX 编译后)输出

正常显示圆,但是 red 的阴影没有显示

链接

<!-- 请在此处填写相关链接(如果有的话) -->

  • TeX.SX:
  • GitHub:

我还做了这些尝试

<!-- 请详述 -->

附件

<!-- 较长的 tex 或者 log 文件请以附件形式上传,不要在这里直接加入过长的代码 -->

closed time in 17 days

DUYANG2020

issue commentCTeX-org/forum

以下代码里的 red 为什么没有显示?

https://github.com/pgf-tikz/pgf/issues/928

在导言区添加:

\makeatletter
\def\pgfutil@insertatbegincurrentpagefrombox#1{%
  \edef\pgf@temp{\the\wd\pgfutil@abb}%
  \global\setbox\pgfutil@abb\hbox{%
    \unhbox\pgfutil@abb%
    \hskip\dimexpr2in-2\hoffset-\pgf@temp\relax% changed
    #1%
    \hskip\dimexpr-2in-2\hoffset\relax% new
  }%
}
\makeatother
DUYANG2020

comment created time in 17 days

issue commentstone-zeng/fduthesis

请教以及具体的章节标题设置

+= 覆盖原有的设置(其实只是定义了 chapter/format+ 这样的选项而并非统一的语法,仅限 ctex 等包):

\fdusetup{
  style/font-size=-4
}

\ctexset{
  chapter/format += \zihao{-2},
  section/format += \zihao{3}
}
Jeff-Tian

comment created time in 18 days

issue commentstone-zeng/fduthesis

文内引文格式

这个主要是为了引用中文文献时看起来比较一致,需要修改的话,在导言区加上

\expandafter\def\csname __fdu_set_cite_style_author_year:\endcsname{}
yangjichen

comment created time in 18 days

issue commentCTeX-org/ctex-kit

ctex: pdftex 模式不能通过编译

LaTeX3 team 已经修了,但还没有发布新版本,所以还要等。

临时的解决方案是在 \documentclass 之前添加:

\ExplSyntaxOn
\cs_new_protected:Npn \ctex_gadd_hook:Nn #1
  {
    \tl_new:N #1
    \tl_gput_right:Nn #1
  }
\exp_args:Nx \cctab_gset:Nn \c_document_cctab
  {
    \cctab_select:N \c_document_cctab
    \bool_lazy_or:nnF
      { \sys_if_engine_xetex_p: } { \sys_if_engine_luatex_p: }
      { \int_step_function:nnN { 128 } { 255 } \char_set_catcode_active:n }
  }
\ExplSyntaxOff
stone-zeng

comment created time in 20 days

push eventstone-zeng/stone-zeng.github.io

Xiangdong Zeng

commit sha 4670a5accd4fe5b802a99c74f932144d20995967

update about

view details

push time in 22 days

issue closedstone-zeng/fduthesis

打不开gbt7717-unsrt

似乎没有这个文件。 截屏2020-10-04 01 13 37

closed time in 23 days

mkyos

issue commentCTeX-org/ctex-kit

ctex: pdftex 模式不能通过编译

一部分问题在 27cad49 中修复,另一部分问题可能是因为 latex3/latex3#814。

stone-zeng

comment created time in 24 days

push eventCTeX-org/ctex-kit

Xiangdong Zeng

commit sha 27cad49af453e643b3250c8f0320eee225086e4c

ctex: 不再通过旧的钩子命令来定义 \CJKhook

view details

push time in 24 days

issue openedlatex3/latex3

\c_document_cctab does not make upper-half of the 8-bit range active

In l3interface:

  • \c_document_cctab:

    Category code table for a standard LaTeX document, as set by the LaTeX kernel. In particular, the upper-half of the 8-bit range will be set to "active" with pdfTeX only. No babel shorthands will be activated.

However, for the following example:

\csname tl_analysis_show:n\endcsname{1:^^70^^80}

\ExplSyntaxOn
\tl_analysis_show:n { 2:^^70^^80 }

\cctab_begin:N \c_document_cctab
\csname tl_analysis_show:n\endcsname{3:^^70^^80}
\cctab_end:

\ExplSyntaxOff

Run with latex or pdflatex (or *-dev), it gives

LaTeX2e <2020-10-01>
L3 programming layer <2020-09-24> xparse <2020-03-03>
The token list contains the tokens:
>  1 (the character 1)
>  : (the character :)
>  p (the letter p)
>  � (active character=macro:->\UTFviii@invalid@err �).
<recently read> }
                 
l.1 ...me tl_analysis_show:n\endcsname{1:^^70^^80}
                                                  
? 
The token list contains the tokens:
>  2 (the character 2)
>  : (the letter :)
>  p (the letter p)
>  � (active character=macro:->\UTFviii@invalid@err �).
<recently read> }
                 
l.4 \tl_analysis_show:n { 2:^^70^^80 }
                                      
? 
The token list contains the tokens:
>  3 (the character 3)
>  : (the character :)
>  p (the letter p)
>  � (the character �).
<recently read> }
                 
l.7 ...me tl_analysis_show:n\endcsname{3:^^70^^80}
                                                  
? 

So after \c_document_cctab, ^^80 becomes a normal character rather than an active one.

BTW, the variables described here should be \c_code_cctab and \c_document_cctab:

https://github.com/latex3/latex3/blob/19ea461b8a5126f08f1b5ed7494e328be033ec90/l3kernel/l3cctab.dtx#L769-L775

created time in 24 days

issue openedCTeX-org/ctex-kit

ctex: pdftex 模式不能通过编译

\documentclass[fontset=fandol]{ctexart}
\begin{document}
测试
\end{document}

使用 latex 编译,报错:

! Undefined control sequence.
l.177 \ctex_gadd_hook:Nn
                         \CJKhook { \ctex_set_ignorespaces: }
? 

LaTeX 版本为 2020-10-01,怀疑为钩子机制变动引起的 bug。

created time in 25 days

PR closed stone-zeng/latex-showcase

Tooltip
+463 -130

0 comment

1 changed file

stone-zeng

pr closed time in 25 days

push eventstone-zeng/latex-showcase

Qing Lee

commit sha c6b69bbac4a86f873614910071943275c3a59488

employ UnicodeData.txt to generate tooltip

view details

Qing Lee

commit sha 2ab114e6c26385d6b6542ca284b6904a4b481b67

employ l3draw

view details

Qing Lee

commit sha d1bd2925a56a371ed0b460addf7e58bedda10fa8

bug fix

view details

Qing Lee

commit sha 857f3d085bf0ce1bd8a0e9321c56025a2b53dd65

improve visual effects

view details

Qing Lee

commit sha 7fecbc9ff94ffc135dc8afe76ce416b59aa094fd

introduce PDF form XObject for a little smaller size of the PDF file

view details

push time in 25 days

PR opened stone-zeng/latex-showcase

Tooltip
+463 -130

0 comment

1 changed file

pr created time in 25 days

push eventstone-zeng/latex-showcase

Xiangdong Zeng

commit sha c8dc2f1dbfbe23b1345eb3c161f02669808571ab

codecharts: add noto-sansarabic

view details

push time in 25 days

issue commentstone-zeng/fduthesis

打不开gbt7717-unsrt

请把模板更新到 v0.7e,或者参考 #127 修改。

mkyos

comment created time in 25 days

issue commenttuna/thuthesis

字体问题导致编译失败

装一下字体包:

sudo apt install fonts-noto-cjk fonts-noto-cjk-extra
saprrow

comment created time in a month

push eventstone-zeng/latex-showcase

Xiangdong Zeng

commit sha 699f21a9547ff020bd7cb668714620f5a58898d0

codecharts: track noto fonts update

view details

push time in a month

issue closedstone-zeng/fduthesis

多行标题左对齐的方法

你好! 现在每章标题如果字数过多自动会将第二行居中对齐,请问下能否设置成为跟标题内容左对齐? 以前形式:第四章 一二三四五六 七八九 能否改成:第四章 一二三四五六 七八九 谢谢!

closed time in a month

zqcawzs

issue commentstone-zeng/fduthesis

多行标题左对齐的方法

导言区加上

\ctexset{
  chapter = {
    hang         = true,
    titleformat += \raggedright
  }
}

Screen Shot 2020-09-26 at 14 26 51

zqcawzs

comment created time in a month

issue commentstone-zeng/fduthesis

theorem-like环境共用计数器

可以绕开本模板的封装直接用 ntheorem 提供的功能:

\documentclass{fduthesis}

% 恢复 \newtheorem 的定义
\expandafter\let\expandafter\newtheorem\csname __fdu_thm_ntheorem_new:w\endcsname

% 重新定义已有的定理环境
\renewtheorem{theorem}{定理}[chapter]
\renewtheorem{lemma}[theorem]{引理}

% 默认没有定义 proposition
\newtheorem{proposition}[theorem]{命题}

\begin{document}
\chapter{测试}
\begin{theorem}
    111
\end{theorem}
\begin{lemma}
    222
\end{lemma}
\begin{proposition}
    333
\end{proposition}
\end{document}

YijunYuan

comment created time in a month

issue commentstone-zeng/fduthesis

找不到字体LibertinusSans-BoldOblique

libertinus-otf 在后续版本删掉了 LibertinusSans-BoldOblique.otf 等几个字体文件。临时的解决方法是在导言区加上

\expandafter\def\csname g__fdu_font_style_libertinus_bfsl_tl\endcsname{Bold}
YijunYuan

comment created time in a month

push eventstone-zeng/latex-showcase

Xiangdong Zeng

commit sha 70e08bae80f97cd083224e48a6da766877d183f5

codecharts: unicode 13.0

view details

push time in a month

push eventstone-zeng/latex-showcase

Xiangdong Zeng

commit sha fd43dbebdee8e458402cb35762c22e4451217e9c

codecharts: unicode 13.0

view details

push time in a month

issue commentstone-zeng/fduthesis

允许关闭 `unicode-math` 功能

是否可以选择不加载unicode-math?

暂时还不行,unicode-math 耦合地比较深。但你可以考虑换一下数学字体:

% 导言区
\setmathfont{...}

参考 https://www.zhihu.com/question/415431516/answer/1466968600

stone-zeng

comment created time in a month

startedwenweili/AlJabr-1

started time in a month

issue commentstone-zeng/fduthesis

mac引用会出现问题

  • 现在 v0.7e 已经做了修改,但那个 issue 暂时还没关
  • 看到你写了 bib-backend = biblatex,这样并不会调用 natbibgbt7714,要不再检查一下?
gongel

comment created time in a month

issue commentCTeX-org/ctex-kit

xeCJK: 文档的高亮部分标点符号出现重叠

See #308

sikouhjw

comment created time in a month

push eventCTeX-org/ctex-kit

Xiangdong Zeng

commit sha c677c21ebb80fc068f3d636ca7f1d4018ee012ee

ctex: track l3backend change

view details

push time in a month

push eventCTeX-org/ctex-kit

Xiangdong Zeng

commit sha 12b700fa44835220d054844c1908884fabe48744

xeCJK: add {} after \expstar and \rexpstar Fix #539.

view details

push time in a month

issue closedCTeX-org/ctex-kit

xeCJK 文档中星号后面没加空格

代码见 https://github.com/CTeX-org/ctex-kit/blob/6405ee14065c022ea9c2f030df727b20f7150c0c/xeCJK/xeCJK.dtx#L383-L385 应改成

 % 有些选项或命令后面带有 \exptarget\expstar{} 号,这表示这 
 % 个选项或命令只能在导言区中使用,而 \rexptarget\rexpstar{}
 % 号则表示这个选项或命令只能在导言区使用,并且只影响随后定义的 CJK 字体。其余不带特殊标记的 

closed time in a month

sikouhjw

push eventstone-zeng/talks

Xiangdong Zeng

commit sha 909292cfeb1b134b154718e737185158e1b6f660

add holographic-sc

view details

push time in a month

issue commentElegantLaTeX/ElegantBook

功能实现

\foreach 完全是为了构造例子方便所用的,与本来的问题无关。「借鉴」别人的代码不是叫你原封不动地照抄一份,希望用之前理解一下这是在干什么。

具体来说,几个字符定宽用 \makeboxs 参数以分散对齐(实际上用 xeCJKfntefCJKfilltwosides 环境处理中文会更好),\foreach 用来构造不同长度的例子(这种东西你看意思也能猜出来是干啥的吧),\par 为了每个例子之间分一段,你也没必要加上。

leec456

comment created time in 2 months

push eventCTeX-org/lshort-zh-cn

Xiangdong Zeng

commit sha 433af55ee76b12df80646550ec129aec950e27e9

Update chap.03.elements.tex Fix #56.

view details

push time in 2 months

issue closedCTeX-org/lshort-zh-cn

笔误:按按

https://github.com/CTeX-org/lshort-zh-cn/blob/e8e236919c599ff3232ceed9a39b32aeac209572/src/chap/chap.03.elements.tex#L524

closed time in 2 months

linsui

push eventstone-zeng/homework

Xiangdong Zeng

commit sha 0754184654f1019704aef257d5b8b70e10b8249c

add pdf for qft-ii

view details

push time in 2 months

issue openedCTeX-org/ctex-kit

xeCJK: 修改 \CJKfamilydefault 命令无效果

\documentclass{ctexart}
\usepackage{lipsum,zhlipsum}
\renewcommand\familydefault{\sfdefault}
\renewcommand\CJKfamilydefault{\CJKrmdefault}
\begin{document}
\lipsum[1]
\zhlipsum[1]
\end{document}

应当设置为中文字体为宋体,但编译结果仍为黑体。加上

\RequirePackage[2020-01-01]{latexrelease}

可以恢复原有的结果,所以大概还是和 LaTeX 2020-02-02 的兼容性问题。

created time in 2 months

issue commentlearnlatex/learnlatex.github.io

Provide a search bar

Does Baidu offer a similar service?

I think bing is ok.

stone-zeng

comment created time in 2 months

issue commentlearnlatex/learnlatex.github.io

Provide a search bar

Note that in china mainland google and duckduck are not available, unfortunately.

stone-zeng

comment created time in 2 months

issue closedCTeX-org/forum

\choicee 报错

检查

<!-- 若需勾选,请把 [ ] 改为 [x] <!-- 注意:x 两侧不要留空格,即不要写成 [x ] 或 [ x] -->

  • [x] 已在 issues 中进行搜索(包括已关闭的问题)

编译环境

  • 操作系统

    • [x] Windows 10
  • TeX 发行版

    • [x] TeX Live <!-- 年份 -->2020

描述问题

  1. 报错 <!-- 请在此处描述清楚您所遇到的问题:

    1. 报错 -->
  2. 报错

最小工作示例(MWE)

<!-- 请在此处填写最小工作示例,要求:

1. 完整:要使大家都可以编译通过,而不需要添加额外的代码;不可以只有片段
2. 最小:不包含与问题无关的内容,尤其是不要把整个导言区都贴过来
3. 工作:要反映出您所描述的问题

下面是一个范例,请提问时修改为自己的代码: -->

\documentclass[UTF8]{ctexart}

%                    *********************
%                    **** 五项选择题 ****
%                    *********************
%      用法: \choicee{ }{ }{ }{ }{ }

\newcommand{\fivech}[5]{\begin{tabular}{*{5}{@{}p{0.2 \textwidth}}}(A)~#1 & (B)~#2 & (C)~#3 & (D)~#4 & (E)~#5\end{tabular}}
\newcommand{\twooch}[5]{\begin{tabular}{*{2}{@{}p{0.48\textwidth}}}(A)~#1 & (B)~#2\end{tabular}\\ 
	             \indent\begin{tabular}{*{2}{@{}p{0.48\textwidth}}}(C)~#3 & (D)~#4\end{tabular}\\ 
	             \indent\begin{tabular}{*{2}{@{}p{0.48\textwidth}}}(E)~#5 & \end{tabular}}
\newcommand{\oneech}[5]{\noindent(A)~#1 \\ \qquad(B)~#2 \\ \indent(C)~#3 \\ \indent(D)~#4 \\ \indent(E)~#5}

\newlength\widthcha
\newlength\widthchb
\newlength\widthchc
\newlength\widthchd
\newlength\widthche
\newlength\widthch
\newlength\tabmaxwidth
\setlength\tabmaxwidth{1\textwidth}
\newlength\fivethtabwidth
\setlength\fivethtabwidth{0.24\textwidth}
\newlength\halftabwidth
\setlength\halftabwidth{0.48\textwidth}

\newcommand{\choicee}[5]{\settowidth\widthcha{AM.#1} \setlength{\widthch}{\widthcha}
	                     \settowidth\widthchb{BM.#2} \ifthenelse{\widthch<\widthchb}{\setlength{\widthch}{\widthchb}}{}
	                     \settowidth\widthchb{CM.#3} \ifthenelse{\widthch<\widthchb}{\setlength{\widthch}{\widthchb}}{}
	                     \settowidth\widthchb{DM.#4} \ifthenelse{\widthch<\widthchb}{\setlength{\widthch}{\widthchb}}{}
	                     \settowidth\widthchb{EM.#5} \ifthenelse{\widthch<\widthchb}{\setlength{\widthch}{\widthchb}}{}
	                                                 \ifthenelse{\widthch<\fivethtabwidth}{\fivech{#1}{#2}{#3}{#4}{#5}}
	                      {\ifthenelse{\widthch<\halftabwidth\and\widthch>\fivethtabwidth}{\twooch{#1}{#2}{#3}{#4}{#5}}{\oneech{#1}{#2}{#3}{#4}{#5}}}}    
	
	\begin{document}\begin{enumerate}
	\item 某中学的 $5$ 个学科各推荐 $2$ 名教师作为支教候选人,若从中选派来自不同学科的 $2$ 人参加支教工作,则不同的选派方式有( $\quad$)种.
	
	\choicee{$20$}{$24$}{$30$}{$40$}{$45$}
\end{enumerate}\end{document}

(用 XeLaTeX 编译后)输出

行 38: Undefined control sequence. ^^I\choicee{$20$}{$24$}{$30$}{$40$}{$45$}
行 38: Missing number, treated as zero. ^^I\choicee{$20$}{$24$}{$30$}{$40$}{$45$}
行 38: Illegal unit of measure (pt inserted). ^^I\choicee{$20$}{$24$}{$30$}{$40$}{$45$}
行 38: Missing number, treated as zero. ^^I\choicee{$20$}{$24$}{$30$}{$40$}{$45$}
行 38: Illegal unit of measure (pt inserted). ^^I\choicee{$20$}{$24$}{$30$}{$40$}{$45$}
行 38: Undefined control sequence. ^^I\choicee{$20$}{$24$}{$30$}{$40$}{$45$}
行 38: Missing number, treated as zero. ^^I\choicee{$20$}{$24$}{$30$}{$40$}{$45$}
行 38: Illegal unit of measure (pt inserted). ^^I\choicee{$20$}{$24$}{$30$}{$40$}{$45$}
行 38: Missing number, treated as zero. ^^I\choicee{$20$}{$24$}{$30$}{$40$}{$45$}
行 38: Illegal unit of measure (pt inserted). ^^I\choicee{$20$}{$24$}{$30$}{$40$}{$45$}
行 38: Undefined control sequence. ^^I\choicee{$20$}{$24$}{$30$}{$40$}{$45$}
行 38: Missing number, treated as zero. ^^I\choicee{$20$}{$24$}{$30$}{$40$}{$45$}
行 38: Illegal unit of measure (pt inserted). ^^I\choicee{$20$}{$24$}{$30$}{$40$}{$45$}
行 38: Missing number, treated as zero. ^^I\choicee{$20$}{$24$}{$30$}{$40$}{$45$}
行 38: Illegal unit of measure (pt inserted). ^^I\choicee{$20$}{$24$}{$30$}{$40$}{$45$}
行 38: Undefined control sequence. ^^I\choicee{$20$}{$24$}{$30$}{$40$}{$45$}
行 38: Missing number, treated as zero. ^^I\choicee{$20$}{$24$}{$30$}{$40$}{$45$}
行 38: Illegal unit of measure (pt inserted). ^^I\choicee{$20$}{$24$}{$30$}{$40$}{$45$}
行 38: Missing number, treated as zero. ^^I\choicee{$20$}{$24$}{$30$}{$40$}{$45$}
行 38: Illegal unit of measure (pt inserted). ^^I\choicee{$20$}{$24$}{$30$}{$40$}{$45$}
行 38: Undefined control sequence. ^^I\choicee{$20$}{$24$}{$30$}{$40$}{$45$}
行 38: Missing number, treated as zero. ^^I\choicee{$20$}{$24$}{$30$}{$40$}{$45$}
行 38: Illegal unit of measure (pt inserted). ^^I\choicee{$20$}{$24$}{$30$}{$40$}{$45$}
行 38: Missing number, treated as zero. ^^I\choicee{$20$}{$24$}{$30$}{$40$}{$45$}
行 38: Illegal unit of measure (pt inserted). ^^I\choicee{$20$}{$24$}{$30$}{$40$}{$45$}
行 38: Undefined control sequence. ^^I\choicee{$20$}{$24$}{$30$}{$40$}{$45$}
行 38: Missing number, treated as zero. ^^I\choicee{$20$}{$24$}{$30$}{$40$}{$45$}
行 38: Illegal unit of measure (pt inserted). ^^I\choicee{$20$}{$24$}{$30$}{$40$}{$45$}
行 38: Missing number, treated as zero. ^^I\choicee{$20$}{$24$}{$30$}{$40$}{$45$}
行 38: Illegal unit of measure (pt inserted). ^^I\choicee{$20$}{$24$}{$30$}{$40$}{$45$}
行 38: Misplaced \crcr. ^^I\choicee{$20$}{$24$}{$30$}{$40$}{$45$}
行 38: Extra }, or forgotten $. ^^I\choicee{$20$}{$24$}{$30$}{$40$}{$45$}
行 38: \begin{enumerate} on input line 35 ended by \end{tabular}. ^^I\choicee{$20$}{$24$}{$30$}{$40$}{$45$}
行 38: Missing $ inserted. ^^I\choicee{$20$}{$24$}{$30$}{$40$}{$45$}
行 38: Missing number, treated as zero. ^^I\choicee{$20$}{$24$}{$30$}{$40$}{$45$}
行 38: Illegal unit of measure (pt inserted). ^^I\choicee{$20$}{$24$}{$30$}{$40$}{$45$}
行 38: Missing number, treated as zero. ^^I\choicee{$20$}{$24$}{$30$}{$40$}{$45$}
行 38: Illegal unit of measure (pt inserted). ^^I\choicee{$20$}{$24$}{$30$}{$40$}{$45$}
行 38: Missing \cr inserted. ^^I\choicee{$20$}{$24$}{$30$}{$40$}{$45$}
行 38: Missing { inserted. ^^I\choicee{$20$}{$24$}{$30$}{$40$}{$45$}
行 39: \begin{tabular} on input line 38 ended by \end{enumerate}. \end{enumerate}
行 39: Missing } inserted. \end{enumerate}
行 39: Missing $ inserted. \end{enumerate}
行 39: Missing } inserted. \end{enumerate}
行 38: Overfull \hbox (63.37115pt too wide) in paragraph
行 38: Overfull \hbox (74.16797pt too wide) in paragraph

链接

<!-- 请在此处填写相关链接(如果有的话) -->

  • TeX.SX:
  • GitHub:

我还做了这些尝试

附件

<!-- 较长的 tex 或者 log 文件请以附件形式上传,不要在这里直接加入过长的代码 -->

closed time in 2 months

DUYANG2020

issue commentCTeX-org/forum

\choicee 报错

调一下 ifthen 宏包:

\usepackage{ifthen}
DUYANG2020

comment created time in 2 months

issue commentCTeX-org/forum

miktex expl3 too old

升级 l3kernell3packagesl3experimentall3backend。当然,直接升级所有宏包就好了。

zhaofeng-shu33

comment created time in 2 months

push eventstone-zeng/rustotf

Xiangdong Zeng

commit sha 2e30b701fb25693bb0460cbc518a7a3fe0588d42

update tests Source Sans Pro has been renamed as Source Sans 3.

view details

push time in 2 months

push eventstone-zeng/rustotf

Xiangdong Zeng

commit sha 209e74932901747a74fbfc78e899ff81c1f36862

remove type annotations

view details

Xiangdong Zeng

commit sha 7eff899b191a96e9243ecd6ced510d07993ab55a

clean up offset skip

view details

Xiangdong Zeng

commit sha 2cf1959f8a91b365201854a6ba51c319e052be13

use map to replace for-loop

view details

push time in 2 months

push eventstone-zeng/rustotf

Xiangdong Zeng

commit sha fd1ef20184714e4e3831006075f44e227bdb4e66

util: to_string -> to_str for Tag

view details

push time in 2 months

PublicEvent

issue commentstone-zeng/fduthesis

请问如何让 Abstract 全部大写: ABSTRACT?

呃我糊涂了……应该是修改 \c__fdu_name_abstract_en_tl

Jeff-Tian

comment created time in 2 months

issue closedstone-zeng/fduthesis

请问如何让 Abstract 全部大写: ABSTRACT?

查到这个链接:https://www.ee.iitb.ac.in/~trivedi/LatexHelp/latexchangename.htm , 但是没用……

closed time in 2 months

Jeff-Tian

issue commentstone-zeng/fduthesis

请问如何让 Abstract 全部大写: ABSTRACT?

导言区:

\ExplSyntaxOn
\tl_set:Nn \c__fdu_name_abstract_tl { ABSTRACT }
\ExplSyntaxOff
Jeff-Tian

comment created time in 2 months

issue commentbe5invis/Iosevka

Support ligature for Rule-Delayed as `:>`

And I think it's better to use double lines for === and !==, as there is a congruent symbol is wolfram lang.

kenkangxgwe

comment created time in 2 months

issue commentbe5invis/Iosevka

Support ligature for Rule-Delayed as `:>`

Also pls consider add [[ for and its mirror character. Th

[[/]] ligatures can be misleading when nested with [/] or even nested [] such as f[g[x]]. Is it possible to make correct ligatures according to bracket matching?

kenkangxgwe

comment created time in 2 months

issue commentbe5invis/Iosevka

Support ligature for Rule-Delayed as `:>`

A (not complete) survey:

image

kenkangxgwe

comment created time in 2 months

issue commentbe5invis/Iosevka

Support ligature for Rule-Delayed as `:>`

Hope that there can be a feature tag for wolfram language (e.g. WOLF).

kenkangxgwe

comment created time in 2 months

issue closedCTeX-org/lshort-zh-cn

改进建议

第一页中“二零二零”的“零”错误,应为“二〇二〇”。

closed time in 2 months

lihaoyu1234

issue commentCTeX-org/lshort-zh-cn

改进建议

根据《现代汉语词典》,「零」和「〇」在此处都可以用。但文档使用的 Fandol 字体里面「〇」做得比较丑,所以用了「零」:

Screen Shot 2020-09-03 at 16 05 47

lihaoyu1234

comment created time in 2 months

push eventstone-zeng/stone-zeng.github.io

Xiangdong Zeng

commit sha 4489952868edc6e273a080cbbbbe6a574f372cca

modular-tensor-category: draft 2

view details

push time in 2 months

issue commentCTeX-org/ctex-kit

xpinyin: 不能正确处理颜色

说起来,latex3 的颜色和 xcolor 是兼容的吗?

\documentclass{article}
\usepackage{xcolor}
\begin{document}
\textcolor{red}{
  \expandafter\show\csname l__color_current_tl\endcsname
}
\end{document}

输出:

> \l__color_current_tl=macro:
->{gray}{0}.
<recently read> \l__color_current_tl
stone-zeng

comment created time in 2 months

push eventstone-zeng/fduthesis

Xiangdong Zeng

commit sha 6c32f74f79618157c5f071d1773ef29f46f6daef

update overleaf release script [ci skip]

view details

push time in 2 months

created tagstone-zeng/fduthesis

tagv0.7e

LaTeX thesis template for Fudan University

created time in 2 months

push eventstone-zeng/fduthesis

Xiangdong Zeng

commit sha d1ab5a9af22216d014e69f7320d9474a60a54364

update docs

view details

Xiangdong Zeng

commit sha 109b50281c86dc9f5568a57fb02716ac73cd0064

step version: v0.7e

view details

push time in 2 months

issue openedCTeX-org/ctex-kit

xpinyin: 不能正确处理颜色

\documentclass{article}
\usepackage{xeCJK,xcolor,xpinyin}
\begin{document}
\textcolor{red}{\xpinyin{拼}{pin1}音}
\textcolor{red}{\xpinyin[format=\color{red}]{拼}{pin1}音}
\end{document}

image

之前 xpinyin 会将拼音与文本显示为相同的颜色,是不是因为 LaTeX kernel 修改了颜色分组有关定义?

created time in 2 months

push eventstone-zeng/fduthesis

Xiangdong Zeng

commit sha 38917bd129821119850fd6025159fd7a01690080

ci debug: add bibtex

view details

push time in 2 months

push eventstone-zeng/fduthesis

Xiangdong Zeng

commit sha 25f8c45ff18c70bf66f5b5c1be73767764c3321e

ci debug: update dependencies; do not check lualatex (#150)

view details

push time in 2 months

push eventstone-zeng/fduthesis

Xiangdong Zeng

commit sha 7ff98ee6a28740df5b84102fd56e6dd5a7f21a4a

ci debug: remove latexmk `-cd` and `-quiet` options

view details

push time in 2 months

push eventstone-zeng/fduthesis

Xiangdong Zeng

commit sha ef31122e66cf7d4bd8aa091aa224a4ed2acc06fe

test: check full thesis

view details

push time in 2 months

push eventstone-zeng/fduthesis

Xiangdong Zeng

commit sha 6d048e7108060cd8a5688cb6cce7673369042a7b

synchronize with gbt7714 v2.0

view details

push time in 2 months

issue closedCTeX-org/forum

章节标题怎么显示?

检查

<!-- 若需勾选,请把 [ ] 改为 [x] <!-- 注意:x 两侧不要留空格,即不要写成 [x ] 或 [ x] -->

  • [x] 已在 issues 中进行搜索(包括已关闭的问题)

编译环境

  • 操作系统

    • [x] Windows 10
    • [ ] Windows 8/8.1
    • [ ] Windows 7
    • [ ] 更早版本的 Windows
    • [ ] macOS
    • [ ] Linux(请附发行版)
  • TeX 发行版

    • [x] TeX Live <!-- 年份 -->2020
    • [ ] MiKTeX <!-- 版本号 -->
    • [ ] CTeX 套装 2.9.2.164
    • [ ] 更早版本的 CTeX 套装

描述问题

 章节标题无法显示

<!-- 请在此处描述清楚您所遇到的问题:

1. 描述出现的情况
2. 给出复现步骤
3. 给出您解决问题所进行的尝试

-->

最小工作示例(MWE)

<!-- 请在此处填写最小工作示例,要求:

1. 完整:要使大家都可以编译通过,而不需要添加额外的代码;不可以只有片段
2. 最小:不包含与问题无关的内容,尤其是不要把整个导言区都贴过来
3. 工作:要反映出您所描述的问题

下面是一个范例,请提问时修改为自己的代码: -->

\documentclass[11pt,openany,twoside,no-math,CJKchecksingle]{ctexbook}

\usepackage[explicit]{titlesec}              % 控制章节演示的宏包
%\usepackage{titlesec}                         % 控制章节演示的宏包

\usepackage{xcolor}
\definecolor{darkblue}{cmyk}{1,0,0,0}%纯蓝

%自定义一个空命令,用于注释掉文本中不需要的部分。
\newcommand{\commen}[1]{}

%%%%%%%%%%%%%%%%%%%%%%部分标题样式%%%%%%%%%%%%%%%begin%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

        \usepackage{fourier}% change to lmodern if fourier is no available
        \usepackage{tikz}
        \usepackage[explicit]{titlesec}
        
        \definecolor{mybluei}{RGB}{0,173,239}
        \definecolor{myblueii}{RGB}{63,200,244}
        \definecolor{myblueiii}{RGB}{199,234,253}
        
        \renewcommand\thepart{\arabic{part}}
        
      \newcommand\partnumfont{% font specification for the number
       	\fontsize{380}{130}\color{myblueii}\selectfont%
        }
        
        \newcommand\partnamefont{% font specification for the name "PART"
        	\normalfont\color{white}\scshape\small\bfseries
        }
        
        \titleformat{\part}
        {\normalfont\Huge\filleft}
        {}
        {80pt}
        {\begin{tikzpicture}[remember picture,overlay]
        	\fill[myblueiii]
        	(current page.north west) rectangle ([yshift=-13cm]current page.north east);
        	\node[
        	fill=mybluei,
        	text width=2\paperwidth,
        	rounded corners=6cm,
        	text depth=18cm,
        	anchor=center,
        	inner sep=0pt] at (current page.north east) (parttop)
        	{\thepart};%
        	\node[
        	anchor=south east,
        	inner sep=0pt,
        	outer sep=0pt] (partnum) at ([xshift=-20pt]parttop.south)
        	{\partnumfont\thepart};
        	\node[
        	anchor=south,
        	inner sep=0pt] (partname) at ([yshift=2pt]partnum.south)
        	{\partnamefont PART};
        	\node[
        	anchor=north east,
        	align=right,
        	inner xsep=0pt] at ([yshift=-0.5cm]partname.east|-partnum.south)
        	{\parbox{.7\textwidth}{\raggedleft#1}};
        	\end{tikzpicture}%
        }
%%%%%%%%%%%%%%%%%%%%%部分标题样式%%%%%%%%%%%%%%%%%%%end%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%===========================章节标题样式========挺好的================
\commen{
	\titleformat{\chapter}[display]
	{\normalfont\bfseries\color{darkblue}}
	{\filleft\hspace*{-60pt}%
		\rotatebox[origin=c]{90}{%
			\normalfont\color{darkblue}\Large%
			%        \textls[180]{\textsc{\chaptertitlename}}%
		}\hspace{10pt}%
		{\setlength\fboxsep{0pt}%
			\colorbox{darkblue}{\parbox[c][3cm][c]{2.5cm}{%
					\centering\color{white}\fontsize{80}{90}\selectfont\thechapter}%
		}}%
	}
	{10pt}
	{\titlerule[2.5pt]\vskip3pt\titlerule\vskip4pt\LARGE\sffamily}
}
%===================章节目录样式=end================================

%===================章节标题样式===begin=====蓝色=========================

%\commen{
\newcommand\secformat[1]{%
	\parbox[b]{.5\textwidth}{\filleft\bfseries #1}%
	\quad\rule[0pt]{2pt}{3cm}\hspace{2pt}\rule[0pt]{0.5pt}{3cm}\hspace{2pt}
	{\setlength\fboxsep{0pt}%
		\colorbox{darkblue}{\parbox[b][3cm][c]{2.5cm}{%
				\centering\color{white}\fontsize{80}{90}\selectfont\thechapter}}}}

\titleformat{\chapter}{\filleft\color{darkblue}\fontsize{21}{60}\bfseries}{}{0pt}{\secformat}\titlespacing*{\chapter}{0pt}{*3}{*2}[1pc]

\newcommand\SectionFont{\bfseries\selectfont\zihao{4}}
\titleformat{\section}
{\centering\normalfont\small\SectionFont\color{darkblue}}
{\setlength\fboxsep{0em}
	\colorbox{darkblue}{\parbox[c][16pt][c]{3cm}{
			\color{darkblue}{
				\raisebox{-2.8em}{\rule[0\baselineskip]{8cm}{0.5pt}}\\
				\raisebox{-0.9em}{\rule[0.5\baselineskip]{8cm}{1.5pt}}}}
		\hspace{-5.5em}\raisebox{-2pt}{\centering\textcolor{white}{\SectionFont\Large\thesection~~}}}}{1em}{}

\titlespacing{\section}{0pt}{*4}{*4}

%}



%======================章节标题样式==end=============================================
%======================章节标题样式==begin=============================================

\commen{
	\titleformat{\section}[block]
	{\normalfont\ChapterFont\huge\color{darkblue}}%\raisebox{-0.6\height}
	{\tcbset{colframe=mybluei, boxrule=0.8pt, left=0pt, right=0pt, top=0pt, bottom=0pt}\raisebox{-0.48\height}{\rotatebox{90}{\tcbox[boxsep=4pt, colback= white ]{\color{darkblue}\Large\chaptertitlename}}}\hskip 0.25em\mbox{\tcbox[ boxsep=12pt, colback=darkblue, tcbox raise = -35pt]{\color{white}\bfseries\fontsize{70}{70}\selectfont\thechapter}}}
	{0.5em}
	{\vskip0.6ex\endgraf\titlerule[1ex]}[]
	
	\titleformat{name=\section,numberless}[block]
	{\normalfont\selectfont\huge\color{darkblue}}
	{}
	{0pt}
	{\parbox[b]{70pt}{\mbox{}}%
		\hspace{15pt}%
		\parbox[b]{\dimexpr\textwidth-15pt}{%
			\raggedright\bfseries\vskip6pt%
		}%
	}
	\titleformat{\section}
	{\normalfont\small\sffamily\SectionFont\color{darkblue}}
	{\colorbox{mybluei}{%
			\parbox[c][16pt][c]{40pt}{%
				\centering\textcolor{white}{\SectionFont\Large\rmfamily\thesection}%
			}%
		}%
	}
	{1em}
	{}
	[\vspace{-0.755\baselineskip}%
	\color{myblueii}\hspace*{\dimexpr40pt+2\fboxsep\relax}%
	\rule{\dimexpr\textwidth-40pt-2\fboxsep\relax}{1pt}%
	]
	
}
%======================章节标题样式==end=============================================
%======================章节标题样式==begin=============================================

\commen{
	\definecolor{mybluei}{RGB}{5, 0, 100}
	\definecolor{myblueii}{RGB}{0, 0, 100}
	
	
	\newcommand\ChapterFont{\rmfamily\selectfont\huge}
	\newcommand\SectionFont{\bfseries\rmfamily\selectfont\Large}
	
	\titleformat{\chapter}[block]
	{\normalfont\ChapterFont\huge\color{myblueii}}%\raisebox{-0.6\height}
	{\tcbset{colframe=mybluei, boxrule=0.8pt, left=0pt, right=0pt, top=0pt, bottom=0pt}\raisebox{-0.48\height}{\rotatebox{90}{\tcbox[boxsep=4pt, colback= white ]{\color{mybluei}\Large\chaptertitlename}}}\hskip 0.25em\mbox{\tcbox[ boxsep=12pt, colback=mybluei, tcbox raise = -35pt]{\color{white}\bfseries\fontsize{70}{70}\selectfont\thechapter}}}
	{0.5em}
	{#1\vskip0.6ex\endgraf\titlerule[1ex]}[]
	
	\titleformat{name=\chapter,numberless}[block]
	{\normalfont\selectfont\huge\color{myblueii}}
	{}
	{0pt}
	{\parbox[b]{70pt}{\mbox{}}%
		\hspace{15pt}%
		\parbox[b]{\dimexpr\textwidth-15pt}{%
			\raggedright\bfseries#1\vskip6pt%
		}%
	}
	\titleformat{\section}
	{\normalfont\small\sffamily\SectionFont\color{myblueii}}
	{\colorbox{mybluei}{%
			\parbox[c][16pt][c]{40pt}{%
				\centering\textcolor{white}{\SectionFont\Large\rmfamily\thesection}%
			}%
		}%
	}
	{1em}
	{#1}
	[\vspace{-0.755\baselineskip}%
	\color{myblueii}\hspace*{\dimexpr40pt+2\fboxsep\relax}%
	\rule{\dimexpr\textwidth-40pt-2\fboxsep\relax}{1pt}%
	]
	
	
	\renewcommand{\qedsymbol}{$\blacksquare$}
}
%======================章节标题样式==end=============================================

   \begin{document}
\part{数学}
\chapter{算术}
  \section{整数}
    \subsection{实数的分类}
    \end{document}

(用 XeLaTeX 编译后)输出

其它一切正常

链接

<!-- 请在此处填写相关链接(如果有的话) -->

  • TeX.SX:
  • GitHub:

我还做了这些尝试

<!-- 请详述 -->

附件

<!-- 较长的 tex 或者 log 文件请以附件形式上传,不要在这里直接加入过长的代码 -->

closed time in 2 months

DUYANG2020

push eventstone-zeng/stone-zeng.github.io

Xiangdong Zeng

commit sha 3449f9346bbf83e7f09587e9cbb8de1d85d03ac1

draft of modular-tensor-category

view details

push time in 2 months

issue openedCTeX-org/ctex-kit

xeCJK: 硬换行+空格+引号会影响间距

\documentclass{article}
\usepackage{xeCJK}
\begin{document}

% 有换行,「2」前后无空格,引号前面有空格 -> 有 bug
填空。\\
第2自然段写林, “林”的特点是颜色绿。

\mbox{}

% 有换行,「2」后无空格,引号前面有空格 -> 有 bug
填空。\\
第 2自然段写林, “林”的特点是颜色绿。

\mbox{}

% 有换行,「2」前后无空格,引号前面无空格 -> 无 bug
填空。\\
第2自然段写林,“林”的特点是颜色绿。

\mbox{}

% 有换行,「2」前后有空格,引号前面有空格 -> 无 bug
填空。\\
第 2 自然段写林, “林”的特点是颜色绿。

\mbox{}

% 有换行,「2」前后无空格,无引号 -> 无 bug
填空。\\
第2自然段写林, 林的特点是颜色绿。

\mbox{}

% 无换行,「2」前后无空格,引号前面有空格 -> 无 bug
第2自然段写林, “林”的特点是颜色绿。

\end{document}

image

log 中给出的信息(意料之中)是

Underfull \hbox (badness 10000) in paragraph at lines ...

created time in 2 months

issue openedbe5invis/Iosevka

Registered sign at superscript position

  • [x] The requested variant shape does not go too far away from Iosevka's design.
  • [x] The requested variant does not conflict with any characters in Unicode that Iosevka currently supports.
  • [x] Some other monospace/programming fonts supported the requested variant. Provide images below.

In a lot of fonts U+00AE REGISTERED SIGN ® is designed in the superscript position, and is aligned of U+2122 TRADE MARK SIGN . So please consider to add this variant.

image

image

image

created time in 2 months

pull request commentlearnlatex/learnlatex.github.io

First design update

The LaTeX logo can be much better if adjust the css for "A" as:

element.style {
    font-variant: small-caps;
    font-weight: 600;
    vertical-align: .4ex;
    margin-left: -.25em;
    margin-right: -.05em;
}

image

However, these values may be dependent on the actual font that used here.

jonasjacek

comment created time in 2 months

issue openedstone-zeng/stone-zeng.github.io

Project Euler (41–50) | stone-zeng.github.io

https://stone-zeng.github.io/2020-08-11-euler-41-50/

欧拉计划 41–50 题。

created time in 2 months

more